9b472e10a6ad59c74a0bca20b5ceaf1946763c2a
[gnulib.git] / ChangeLog
1 2012-01-17  Jim Meyering  <meyering@redhat.com>
2
3         maint: enable sc_prohibit_cloexec_without_use
4         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
5         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
6
7 2012-01-17  Jim Meyering  <meyering@redhat.com>
8
9         maint: enable sc_prohibit_intprops_without_use
10         * cfg.mk: Enable sc_prohibit_intprops_without_use
11         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
12
13 2012-01-17  Jim Meyering  <meyering@redhat.com>
14
15         maint: enable sc_prohibit_hash_pjw_without_use
16         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
17         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
18         to match any use of \<hash_pjw\>, i.e., not necessarily with a
19         following " (".
20
21 2012-01-17  Jim Meyering  <meyering@redhat.com>
22
23         maint: enable double-word-prohibiting rule
24         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
25         Exempt three files.
26
27 2012-01-17  Jim Meyering  <meyering@redhat.com>
28
29         maint: remove empty lines at EOF, but excluding modules/*
30         Apply syntax rules at home as well as abroad.  Most changes
31         were induced by running this:
32           make srcdir=. _build-aux=build-aux -f top/maint.mk \
33             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
34             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
35         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
36         Exempt modules/* and two binary files.
37         Also exempt doc/INSTALL*, per request from Bruno Haible.
38         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
39         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
40         * doc/Copyright/request-assign.future: Likewise.
41         * doc/Copyright/request-disclaim.changes: Likewise.
42         * doc/INSTALL: Likewise.
43         * doc/INSTALL.ISO: Likewise.
44         * doc/INSTALL.UTF-8: Likewise.
45         * doc/acl-cygwin.txt: Likewise.
46         * doc/acl-resources.txt: Likewise.
47         * doc/fdl-1.2.texi: Likewise.
48         * doc/fdl-1.3.texi: Likewise.
49         * doc/fdl.texi: Likewise.
50         * lib/argp-pin.c: Likewise.
51         * lib/round.c: Likewise.
52         * lib/unicase/u16-totitle.c: Likewise.
53         * lib/unictype/block_test.c: Likewise.
54         * lib/uninorm/canonical-decomposition.c: Likewise.
55         * m4/README: Likewise.
56         * m4/relocatable-lib.m4: Likewise.
57         * tests/test-isnand-nolibm.c: Likewise.
58         * tests/test-isnand.c: Likewise.
59         * tests/uninorm/NormalizationTest.txt: Likewise.
60
61 2012-01-17  Jim Meyering  <meyering@redhat.com>
62
63         maint: add framework to run syntax-check rules against gnulib sources
64         * cfg.mk: New file, to disable all currently-failing tests.
65         We'll enable them one by one, as they are made to pass.
66         * Makefile (sc_maint): New rule.
67
68 2012-01-21  Bruno Haible  <bruno@clisp.org>
69
70         stdint: Add support for Android.
71         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
72         include the system's <stdint.h>.
73         Reported by Simon Josefsson <simon@josefsson.org>.
74
75 2012-01-19  Jim Meyering  <meyering@redhat.com>
76
77         bootstrap: add bootstrap_post_import_hook
78         Bison does still need something like the gnulib_mk_hook whose
79         invocation I had to remove along with slurp in commit 767ccd40.
80         Technically, we could get along without it, but doing so would
81         have required living with a warning and a mandatory post-bootstrap
82         automake rerun.
83         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
84         (bootstrap_post_import_hook): New function.
85         Invoke it after gnulib-tool --import and before autoreconf.
86
87 2012-01-18  Jim Meyering  <meyering@redhat.com>
88
89         gitlog-to-changelog: don't use "no_"-prefixed variable name
90         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
91         to enable both --cluster and --no-cluster.  Change variable name,
92         s/\$no_cluster/$cluster/, and reverse usage to match.
93
94         gitlog-to-changelog: use "||", not "or" in expressions
95         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
96         expressions.
97
98 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
99
100         gitlog-to-changelog: new option --no-cluster
101         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
102         clustering of adjacent commit messages.
103
104 2012-01-17  Jim Meyering  <meyering@redhat.com>
105
106         maint: spell file systems with two words, not one
107         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
108         two words, not one.
109
110 2012-01-16  Jim Meyering  <meyering@redhat.com>
111
112         bootstrap: add a FIXME comment to ensure we eventually remove the hack
113         * build-aux/bootstrap (gnulib_tool_options): Add comment.
114
115 2012-01-16  Eric Blake  <eblake@redhat.com>
116
117         bootstrap: cater to autoconf 2.59
118         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
119         is not available.
120
121         bootstrap: properly check for libtool
122         * build-aux/bootstrap (libtoolize): Also run libtool when older
123         usage is detected.
124
125 2012-01-15  Bruno Haible  <bruno@clisp.org>
126
127         Improve support for MSVC 9.
128         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
129         clashes on MSVC.
130         * lib/fcntl.in.h: Likewise.
131         * lib/stdlib.in.h: Likewise.
132         * lib/sys_stat.in.h: Likewise.
133
134 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
135
136         gnupload: we hold the master copy of this script now
137         For motivation and more information, see:
138         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
139         * build-aux/gnupload: Make it clear in the heading comments that the
140         master copy of this file is maintained by gnulib.  Since we are at
141         it, bump its copyright year and ...
142         ($scriptversion): ... the date in its version.
143         ($usage): Patches and bug reports should be sent to the gnulib list,
144         not the automake one.
145         * config/srclist.txt: Don't try to sync 'gnupload' from automake
146         anymore.
147
148 2012-01-15  Bruno Haible  <bruno@clisp.org>
149
150         Fix module 'random'.
151         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
152         initstate, setstate are declared.
153
154 2012-01-14  Bruno Haible  <bruno@clisp.org>
155
156         Tests for module 'random'.
157         * modules/random-tests: New file.
158         * tests/test-random.c: New file, based on tests/test-random_r.c.
159
160         New module 'random'.
161         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
162         declarations.
163         * lib/random.c: New file, based on glibc/stdlib/random.c.
164         * m4/random.m4: New file.
165         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
166         HAVE_RANDOM.
167         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
168         * modules/random: New file.
169         * config/srclist.txt: Add an entry for random.c.
170         * doc/posix-functions/random.texi: Mention the 'random' module.
171         * doc/posix-functions/initstate.texi: Likewise.
172         * doc/posix-functions/setstate.texi: Likewise.
173         * doc/posix-functions/srandom.texi: Likewise.
174
175 2012-01-12  Bruno Haible  <bruno@clisp.org>
176
177         random_r: Use common idioms.
178         * lib/random_r.c: Include <stdlib.h> first.
179
180         random_r: Override incompatible API on AIX, OSF/1.
181         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
182         Override the system function if REPLACE_RANDOM_R is 1.
183         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
184         and OSF/1, set REPLACE_RANDOM_R.
185         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
186         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
187         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
188         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
189         * doc/glibc-functions/random_r.texi: Likewise.
190         * doc/glibc-functions/setstate_r.texi: Likewise.
191
192         random_r: Support for MSVC 9.
193         * lib/random_r.c: Include stdint.h, not inttypes.h.
194
195 2012-01-12  Eric Blake  <eblake@redhat.com>
196
197         inet_ntop: guard extra work by IF_LINT
198         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
199         better code generation when not checking for warnings.
200         Suggested by Paul Eggert and Jim Meyering.
201
202         strptime: fix regression on mingw
203         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
204         Fix regression.  Reported by Bruno Haible.
205
206 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
207             Bruno Haible  <bruno@clisp.org>
208
209         copy-file: add error-code-returning variant.
210         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
211         (qcopy_file_preserving): New declaration.
212         * lib/copy-file.c (qcopy_file_preserving): Renamed from
213         copy_file_preserving. Change return type to 'int'. Don't emit an error
214         message here.
215         (copy_file_preserving): New function.
216         * tests/test-copy-file.c: Include <stdlib.h>.
217         (main): Test qcopy_file_preserving if the environment variable
218         NO_STDERR_OUTPUT is set.
219         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
220         with NO_STDERR_OUTPUT
221         * tests/test-copy-file-2.sh: Likewise.
222
223 2012-01-10  Bruno Haible  <bruno@clisp.org>
224
225         copy-file: Use 'quote' module consistently.
226         * lib/copy-file.c (copy_file_preserving): Use quote().
227
228         copy-file: Refactor.
229         * lib/copy-file.c: Include quote.h.
230         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
231         message here.
232         * modules/copy-file (Depends-on): Add quote.
233
234         acl: Export qcopy_acl.
235         * lib/acl.h (qcopy_acl): New declaration.
236         * lib/copy-acl.c (qcopy_acl): Make non-static.
237
238         acl: Rename a local variable.
239         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
240
241         acl: Align return values of copy_acl and qcopy_acl.
242         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
243         maybe < -1.
244
245 2012-01-11  Eric Blake  <eblake@redhat.com>
246
247         strptime: silence gcc warnings
248         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
249         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
250         Reported by Daniel P. Berrange.
251
252         inet_ntop: silence gcc warning
253         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
254         Reported by Daniel P. Berrange.
255
256 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
257
258         getloadavg test: skip the test on GNU/Linux without /proc mounted
259         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
260         file.  When /proc is not mounted, it always fails with ENOENT.
261         * tests/test-getloadavg.c (main): Treat ENOENT return code from
262         getloadavg(3) the same way as ENOSYS and ENOTSUP.
263
264 2012-01-10  Bruno Haible  <bruno@clisp.org>
265
266         regex: Avoid link error on MSVC 9.
267         * modules/regex (Depends-on): Add wctype.
268
269 2012-01-10  Bruno Haible  <bruno@clisp.org>
270
271         doc: Mention --with-tests option.
272         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
273         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
274         --with-tests.
275         Reported by Reuben Thomas.
276
277 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
278
279         users.txt: order package names lexicographically.
280         * users.txt: Order package names lexicographically.
281
282 2012-01-10  Jim Meyering  <meyering@redhat.com>
283
284         maint.mk: fix description in comment
285         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
286
287         ignore-value: remove deprecated ignore_ptr function
288         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
289         * NEWS: Note this.
290
291 2012-01-09  Jim Meyering  <meyering@redhat.com>
292
293         test-init.sh: avoid a subshell
294         * tests/test-init.sh: Remove protective subshell.
295         Suggested by Bernhard Voelker.  While a subshell is normally
296         required to protect against older shells (Solaris, FreeBSD) that
297         warn about a missing program before performing redirection, the
298         shell-selection tests performed by init.sh probably exclude any
299         offending shell.
300
301 2012-01-08  Bruno Haible  <bruno@clisp.org>
302
303         setlocale tests: Avoid test failure on Solaris 11 2011-11.
304         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
305         variable.
306
307 2012-01-08  Bruno Haible  <bruno@clisp.org>
308
309         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
310         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
311         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
312         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
313         macro.
314         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
315         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
316         * lib/spawn_faction_addopen.c: Add workaround implementation if
317         HAVE_WORKING_POSIX_SPAWN.
318         * modules/spawn (Makefile): Substitute
319         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
320         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
321         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
322         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
323         (Depends-on): Update conditions.
324         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
325         the Solaris 11 bug.
326
327 2012-01-08  Bruno Haible  <bruno@clisp.org>
328
329         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
330         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
331         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
332         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
333         macro.
334         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
335         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
336         * lib/spawn_faction_adddup2.c: Add workaround implementation if
337         HAVE_WORKING_POSIX_SPAWN.
338         * modules/spawn (Makefile): Substitute
339         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
340         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
341         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
342         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
343         (Depends-on): Update conditions.
344         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
345         the Solaris 11 bug.
346
347 2012-01-08  Bruno Haible  <bruno@clisp.org>
348
349         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
350         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
351         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
352         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
353         HAVE_WORKING_POSIX_SPAWN.
354         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
355         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
356         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
357         * lib/spawn_faction_addclose.c: Add workaround implementation if
358         HAVE_WORKING_POSIX_SPAWN.
359         * modules/spawn (Makefile): Substitute
360         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
361         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
362         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
363         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
364         (Depends-on): Update conditions.
365         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
366         the Solaris 11 bug.
367
368 2012-01-08  Bruno Haible  <bruno@clisp.org>
369
370         doc: Update for Solaris 11 2011-11.
371         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
372         * m4/printf.m4: Update comments.
373
374 2012-01-08  Bruno Haible  <bruno@clisp.org>
375
376         mktime: Avoid compilation error on Solaris 11.
377         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
378
379 2012-01-08  Bruno Haible  <bruno@clisp.org>
380
381         doc: Small fix.
382         * doc/posix-headers/nl_types.texi: Correct platforms list.
383
384 2012-01-08  Simon Josefsson  <simon@josefsson.org>
385
386         Add lgpl-3.0 module.
387         * MODULES.html.sh (Support for building documentation): Add
388         lgpl-3.0.
389         * modules/lgpl-3.0: New file.
390
391 2012-01-08  Jim Meyering  <meyering@redhat.com>
392
393         select.c: indent with spaces, not TABs
394         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
395
396 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
397
398         quotearg: do not use grave accent for left quote
399         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
400         locale_quoting_style.
401         (quotearg_buffer_restyled): Fix example.
402         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
403
404 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
405
406         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
407         Most programs do not have translation catalogs for English and much
408         less separate catalogs for British and American English.  Drop the
409         suggestion to translators about these two, and provide it
410         automatically for Unicode locales.  Like most programs, even those
411         using American English, we use single quotation marks.  This conflicts
412         with the American typographic convention, but works better when you
413         cite the entire error message within double quotes.  It also tries not
414         to clash with established practice and with what non-gnulib programs
415         will usually do.
416         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
417         using an UTF-8 or GB-18030 locale.  The list of other locales with
418         quotes was provided by Bruno Haible.
419         (quotearg_buffer_restyled): Adjust instructions to translators.
420         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
421         text, since this would be wrong when using Unicode.
422         * modules/quotearg: Depend on c-strcaseeq.
423
424 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
425
426         quotearg: fix Wikipedia link
427         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
428
429 2012-01-07  Simon Josefsson  <simon@josefsson.org>
430
431         Fix for mingw with MSVC9.
432         * m4/ld-version-script.m4: Check that compiler rejects version
433         scripts with syntax errors.  Reported by Bruno Haible
434         <bruno@clisp.org>.
435
436 2012-01-06  Bruno Haible  <bruno@clisp.org>
437
438         Talk about "native Windows API", not "Woe32".
439         * lib/accept4.c: Update comments to mention native Windows.
440         * lib/execute.c: Likewise.
441         * lib/fatal-signal.c: Likewise.
442         * lib/localcharset.c: Likewise.
443         * lib/nanosleep.c: Likewise.
444         * lib/nl_langinfo.c: Likewise.
445         * lib/pclose.c: Likewise.
446         * lib/pipe-filter-gi.c: Likewise.
447         * lib/pipe-filter-ii.c: Likewise.
448         * lib/pipe.c: Likewise.
449         * lib/pipe2.c: Likewise.
450         * lib/popen.c: Likewise.
451         * lib/progreloc.c: Likewise.
452         * lib/relocatable.c: Likewise.
453         * lib/sigaction.c: Likewise.
454         * lib/sigprocmask.c: Likewise.
455         * lib/spawn-pipe.h: Likewise.
456         * lib/spawn-pipe.c: Likewise.
457         * lib/spawni.c: Likewise.
458         * lib/stat-time.h: Likewise.
459         * lib/w32spawn.h: Likewise.
460         * tests/test-isatty.c: Likewise.
461         * lib/config.charset: More comments.
462         * doc/gnulib-intro.texi: Mention native Windows.
463         * doc/posix-functions/_Exit_C99.texi: Likewise.
464         * doc/posix-headers/fcntl.texi: Likewise.
465
466 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
467
468         argp: Avoid crash if translator uses % characters in a translation.
469         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
470         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
471
472 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
473
474         doc: C11 and C++11 are now official
475         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
476         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
477         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
478         * modules/stdalign:
479         Replace references to draft C1X to C11, and to draft C++0X to C++11.
480
481 2012-01-06  Bruno Haible  <bruno@clisp.org>
482
483         uc-is-grapheme-break tests: Tweak.
484         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
485         message.
486
487 2012-01-06  Bruno Haible  <bruno@clisp.org>
488
489         test-init.sh: correct the test for diff -u
490         * tests/test-init.sh: Also redirect stdout to /dev/null.
491
492 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
493
494         Use ', not `, for quoting output.
495         * build-aux/announce-gen (usage, sizes, print_news_deltas)
496         (print_changelog_deltas, get_tool_versions, main program):
497         * build-aux/git-version-gen:
498         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
499         * build-aux/move-if-change (help):
500         * build-aux/useless-if-before-free (usage, main program):
501         * check-module (parse_module_file, usage)
502         (find_included_lib_files, check_module):
503         * lib/argmatch.c (main) [TEST]:
504         * lib/argp-help.c (_help):
505         * lib/getopt1.c (main) [TEST]:
506         * lib/git-merge-changelog.c (usage):
507         * lib/xstrtol-error.c (xstrtol_error):
508         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
509         * m4/argz.m4 (gl_FUNC_ARGZ):
510         * m4/bison.m4 (gl_BISON):
511         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
512         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
513         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
514         * m4/fpending.m4 (gl_PREREQ_FPENDING):
515         * m4/gc-random.m4 (gl_GC_RANDOM):
516         * m4/intl.m4 (gt_CHECK_DECL):
517         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
518         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
519         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
520         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
521         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
522         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
523         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
524         * tests/test-dirname.c (main):
525         * tests/test-getpass.c (main):
526         * tests/test-iconvme.c (main):
527         * tests/test-parse-datetime.c (LOG):
528         * tests/test-xstrtoimax.sh:
529         * tests/test-xstrtol.sh:
530         * tests/test-xstrtoll.sh:
531         * tests/test-xstrtoumax.sh:
532         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
533         * top/GNUmakefile (abort-due-to-no-makefile):
534         Quote 'like this', not `like this', as per the recent change to
535         the GNU coding standards.
536
537 2012-01-05  Bruno Haible  <bruno@clisp.org>
538
539         strtoimax: Don't force a replacement on systems where intmax_t is int.
540         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
541         'intmax_t' is not larger than 'int'.
542         Reported by Pádraig Brady <P@draigBrady.com>.
543
544 2012-01-05  Bruno Haible  <bruno@clisp.org>
545
546         doc: Mention NetBSD bugs.
547         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
548         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
549
550 2012-01-05  Bruno Haible  <bruno@clisp.org>
551
552         strtoumax tests: Enhance tests.
553         * tests/test-strtoumax.c (main): Add tests for large values.
554
555 2012-01-05  Bruno Haible  <bruno@clisp.org>
556
557         strtoimax: Work around AIX 5.1 bug.
558         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
559         definition.
560         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
561         Set HAVE_STRTOIMAX.
562         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
563         REPLACE_STRTOIMAX.
564         * modules/inttypes-incomplete (Makefile.am): Substitute
565         REPLACE_STRTOIMAX.
566         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
567         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
568         (Depends-on): Update conditions.
569         * tests/test-strtoimax.c (main): Add tests for large values.
570         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
571
572 2012-01-05  Bruno Haible  <bruno@clisp.org>
573
574         inttypes: Modernize.
575         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
576         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
577         (Makefile.am): Update inttypes.h rule.
578
579 2012-01-05  Jim Meyering  <meyering@redhat.com>
580
581         init.sh: don't waste a subshell just to redirect stderr
582         * tests/init.sh: In testing for diff -u and diff -c, use a
583         stderr-redirecting exec inside `...` rather than a subshell.
584
585         test-init.sh: avoid failure on HP-UX 11.00
586         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
587         resolves to diff -c or cmp.  Reported by Bruno Haible.
588
589 2012-01-05  Bruno Haible  <bruno@clisp.org>
590
591         Tests for module 'strtoull'.
592         * modules/strtoull-tests: New file.
593         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
594
595 2012-01-05  Bruno Haible  <bruno@clisp.org>
596
597         Tests for module 'strtoll'.
598         * modules/strtoll-tests: New file.
599         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
600
601 2012-01-05  Bruno Haible  <bruno@clisp.org>
602
603         Tests for module 'strtoul'.
604         * modules/strtoul-tests: New file.
605         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
606
607 2012-01-05  Bruno Haible  <bruno@clisp.org>
608
609         Tests for module 'strtol'.
610         * modules/strtol-tests: New file.
611         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
612
613 2012-01-04  Jim Meyering  <meyering@redhat.com>
614
615         test-init.sh: accommodate Solaris 5.10's different diff -u output
616         * tests/test-init.sh: Also exempt @@ lines from the comparison
617         of diff output, since Solaris 5.10 and GNU diff formats differ.
618         Reported by Stefano Lattarini.
619
620 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
621
622         test-posixtm: don't assume signed integer wraparound
623         * tests/test-posixtm.c (main): Don't assume wraparound semantics
624         after signed integer overflow.  Inspired by (though it may not
625         fix) Bruno Haible's bug report in
626         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
627
628         Spell out "Windows 9x" and "Windows XP".
629         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
630         "Windows 9x" and "WinXP" with "Windows XP".
631
632 2012-01-04  Jim Meyering  <meyering@redhat.com>
633
634         test-vc-list-files-cvs.sh: remove obsolete comment
635         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
636         double exit.  Now that's all encapsulated via skip_ and Exit.
637
638 2012-01-04  Bruno Haible  <bruno@clisp.org>
639
640         Talk about "native Windows API", not "Win32".
641         * lib/classpath.c: Update comments to mention native Windows.
642         * lib/csharpexec.c: Likewise.
643         * lib/dup2.c: Likewise.
644         * lib/error.c: Likewise.
645         * lib/fcntl.c: Likewise.
646         * lib/filename.h: Likewise.
647         * lib/findprog.c: Likewise.
648         * lib/get-rusage-as.c: Likewise.
649         * lib/get-rusage-data.c: Likewise.
650         * lib/getpagesize.c: Likewise.
651         * lib/javaexec.c: Likewise.
652         * lib/msvc-inval.c: Likewise.
653         * lib/msvc-nothrow.c: Likewise.
654         * lib/nanosleep.c: Likewise.
655         * lib/nonblocking.c: Likewise.
656         * lib/printf-parse.c: Likewise.
657         * lib/setlocale.c: Likewise.
658         * lib/sigaction.c: Likewise.
659         * lib/strerror_r.c: Likewise.
660         * lib/tmpdir.c: Likewise.
661         * lib/vasnprintf.c: Likewise.
662         * lib/w32spawn.h: Likewise.
663         * lib/waitpid.c: Likewise.
664         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
665         * m4/locale-ar.m4: Likewise.
666         * m4/locale-fr.m4: Likewise.
667         * m4/locale-ja.m4: Likewise.
668         * m4/locale-tr.m4: Likewise.
669         * m4/locale-zh.m4: Likewise.
670         * m4/printf.m4: Likewise.
671         * tests/test-cloexec.c: Likewise.
672         * tests/test-copy-acl.sh: Likewise.
673         * tests/test-copy-file.sh: Likewise.
674         * tests/test-file-has-acl.sh: Likewise.
675         * tests/test-set-mode-acl.sh: Likewise.
676         * tests/test-dup-safer.c: Likewise.
677         * tests/test-dup2.c: Likewise.
678         * tests/test-dup3.c: Likewise.
679         * tests/test-fcntl.c: Likewise.
680         * tests/test-nonblocking-pipe.h: Likewise.
681         * tests/test-nonblocking-socket.h: Likewise.
682         * tests/test-pipe.c: Likewise.
683         * tests/test-pipe2.c: Likewise.
684         * tests/test-spawn-pipe-child.c: Likewise.
685         * doc/acl-resources.txt: Likewise.
686         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
687         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
688         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
689         * lib/localcharset.c: Update comments to mention native Windows.
690         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
691         * lib/localename.c: Likewise.
692         * lib/progreloc.c: Likewise.
693         * lib/relocatable.c: Likewise.
694         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
695         (windows_compute_revents): Renamed from win32_compute_revents.
696         (windows_compute_revents_socket): Renamed from
697         win32_compute_revents_socket.
698         * lib/select.c: Update comments to mention native Windows.
699         (windows_poll_handle): Renamed from win32_poll_handle.
700         * m4/threadlib.m4: Update comments to mention native Windows.
701         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
702         --enable-threads=windows instead of --enable-threads=win32. Set
703         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
704         * lib/glthread/lock.h: Update comments to mention native Windows.
705         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
706         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
707         USE_WIN32_THREADS.
708         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
709         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
710         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
711         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
712         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
713         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
714         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
715         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
716         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
717         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
718         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
719         * tests/test-tls.c: Likewise.
720         Rationale:
721         Microsoft renamed the "Win32 API" to "Windows API", as it is available
722         on both 32-bit and 64-bit Windows systems.
723         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
724         line of distinction is between "native Windows" on one side and Unix/
725         POSIX systems on the other side. More details in
726         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
727         Suggested by Paul Eggert.
728
729 2012-01-03  Bruno Haible  <bruno@clisp.org>
730
731         isatty: Support for MSVC 9.
732         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
733         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
734         (_isatty_nothrow): New function.
735         (isatty): Use it instead of _isatty.
736         (IsConsoleHandle): Add comment, from Paolo Bonzini.
737         * lib/poll.c (IsConsoleHandle): Likewise.
738         * lib/select.c (IsConsoleHandle): Likewise.
739         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
740         (gl_PREREQ_ISATTY): New macro.
741         * modules/isatty (Depends-on): Add msvc-inval.
742         (configure.ac): Invoke gl_PREREQ_ISATTY.
743
744 2012-01-03  Jim Meyering  <meyering@redhat.com>
745
746         maint.mk: remove temporary transition aid from over 1.5 years ago
747         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
748         purpose was to aid in the transition (avoiding silent malfunction)
749         from that old name to the new _sc_search_regexp.  This shim was
750         added by commit 219c504b.
751
752         init.sh: do not try to accommodate compare arguments starting with "-"
753         * tests/init.sh (compare_dev_null_): Do not try to accommodate
754         compare arguments that start with "-".  Besides, we do not worry
755         about this when invoking diff or cmp; why start now with sed?
756         Using "--" to separate options from argument would trigger sed
757         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
758         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
759
760 2012-01-02  Bruno Haible  <bruno@clisp.org>
761
762         Enhance tests for module 'isatty'.
763         * modules/isatty-tests (Depends-on): Add pipe-posix.
764         * tests/test-isatty.c: Include <fcntl.h>.
765         (DEV_NULL): New macro.
766         (main): Test the resut of isatty() also on regular files, pipes, and
767         /dev/null.
768
769         New module 'isatty'.
770         * lib/unistd.in.h (isatty): New declaration.
771         * lib/isatty.c: New file, based on an idea of
772         Bastien Roucariès <roucaries.bastien@gmail.com>.
773         * m4/isatty.m4: New file.
774         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
775         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
776         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
777         REPLACE_ISATTY.
778         * modules/isatty: New file.
779         * doc/posix-functions/isatty.texi: Mention the new module.
780         Suggested by Paolo Bonzini.
781
782 2012-01-02  Bruno Haible  <bruno@clisp.org>
783
784         canonicalize: Tweak 2011-12-29 commit.
785         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
786         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
787
788 2012-01-02  Jim Meyering  <meyering@redhat.com>
789
790         gitlog-to-changelog: describe input syntax in --help output
791         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
792
793         gitlog-to-changelog: fix typo in --help: show backslash before email @
794         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
795         in sources, but not in actual output.
796
797 2011-12-30  Jim Meyering  <meyering@redhat.com>
798
799         gitlog-to-changelog: don't malfunction when name contains %-directive
800         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
801         in a name string cause trouble.  E.g., with a user name of "%s",
802         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
803
804 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
805
806         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
807         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
808         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
809         the "  (tiny change)" notation that is appended to the standard
810         ChangeLog "date  name  email" header line.
811
812 2012-01-01  Jim Meyering  <meyering@redhat.com>
813
814         test-framework-sh: init.sh: fix "make dist" failure
815         When using gnulib-tool's --with-tests option and any module that
816         depends on test-framework-sh, "make dist" would fail due to the
817         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
818         in the gltests directory, and not in the gllib/ directory.
819         One way to work around that is to move the EXTRA_DIST += init.sh
820         from the primary module to the -tests one:
821         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
822         * modules/test-framework-sh (Makefile.am): ...not here.
823         Reported by Tom G. Christensen in
824         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
825
826         version-etc: update copyright year reported by --version
827         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
828
829 2011-12-31  Pádraig Brady  <P@draigBrady.com>
830
831         canonicalize: only stat() if required
832         * lib/canonicalize.c (canonicalize_filename_mode):
833         Avoid calling l?stat() when both CAN_MISSING,
834         and CAN_NOLINKS are set, as we neither need
835         to resolve symlinks or test component existence.
836
837 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
838
839         doc: cover st_ino issues once; add OpenVMS etc.
840         * doc/posix-functions/stat.texi (stat):
841         * doc/posix-functions/lstat.texi (lstat):
842         * doc/posix-functions/fstatat.texi (fstatat):
843         * doc/posix-functions/fstat.texi (fstat):
844         Move general 'struct stat' stuff to sys_stat.texi,
845         leaving behind a pointer.
846         * doc/posix-headers/sys_stat.texi (sys/stat.h):
847         Merge duplicate info about 'struct stat' problems into here.
848         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
849         and suggest partial workarounds.
850
851         same-inode: port to OpenVMS
852         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
853         three st_ino values.
854
855 2011-12-30  Pádraig Brady  <P@draigBrady.com>
856
857         canonicalize: fix references to stat() and lstat()
858         * lib/canonicalize.c (canonicalize_filename_mode):
859         Ensure references always resolve to a replacement
860         function if required (even via a macro).
861
862 2011-12-30  Jim Meyering  <meyering@redhat.com>
863
864         gitlog-to-changelog: remove a little duplication
865         * build-aux/gitlog-to-changelog (main): Grep @lines once,
866         rather than twice.
867
868 2011-12-29  Pádraig Brady  <P@draigBrady.com>
869
870         canonicalize: add support for not resolving symlinks
871         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
872         indicate we don't want to follow symlinks.  Also
873         provide CAN_MODE_MASK to aid setting these existing
874         mutually exclusive values.
875         * lib/canonicalize.c (canonicalize_filename_mode):
876         Extract the flags from can_mode parameter, which
877         are currently just used to select between stat()
878         and lstat().  Also ensure that mutually exclusive
879         values are flagged immediately as invalid.
880         * tests/test-canonicalize.c: Verify symlinks are
881         not followed, and that invalid flag combinations
882         are diagnosed.
883
884 2011-12-25  Jim Meyering  <meyering@redhat.com>
885
886         gitlog-to-changelog: do not clump multi-paragraph entries
887         Identical header lines (date,name,email+coauthors) are suppressed,
888         thus putting all entries with those same characteristics under
889         a single header.  However, when a log entry consists of two or
890         more paragraphs, it may not be clear where it starts and ends.
891         This change makes it so that such an entry is always separated
892         from others by a header line, even when that header would
893         otherwise be suppressed.
894         * build-aux/gitlog-to-changelog: Implement the above.
895         Inspired by a related request from Stefano Lattarini in
896         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
897
898 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
899
900         announce-gen: fix `cmd' typo in diagnostic
901         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
902         diagnostic: a missing '$' meant that the command was not output.
903
904 2011-12-23  Jim Meyering  <meyering@redhat.com>
905
906         test-framework-sh: distribute init.sh
907         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
908         Otherwise, "make -C gnulib-tests check" (at least in grep) would
909         fail due to the lack of init.sh.
910
911         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
912         * modules/atexit-tests: Rather than listing tests/init.sh,
913         now that there's a module for it, simply depend on that new module.
914         * modules/closein-tests: Likewise.
915         * modules/exclude-tests: Likewise.
916         * modules/getcwd-tests: Likewise.
917         * modules/perror-tests: Likewise.
918         * modules/pread-tests: Likewise.
919         * modules/pwrite-tests: Likewise.
920         * modules/vc-list-files-tests: Likewise.
921         * modules/verify-tests: Likewise.
922         * modules/xalloc-die-tests: Likewise.
923         * modules/xstrtoimax-tests: Likewise.
924         * modules/xstrtol-tests: Likewise.
925         * modules/xstrtoll-tests: Likewise.
926         * modules/xstrtoumax-tests: Likewise.
927         * modules/yesno-tests: Likewise.
928
929 2011-12-22  Jim Meyering  <meyering@redhat.com>
930
931         test-framework-sh: add minimal tests of init.sh's compare function
932         * modules/test-framework-sh-tests: New file.
933         * tests/test-init.sh: New file.
934
935         test-framework-sh: new module
936         * modules/test-framework-sh: New file.
937         * MODULES.html.sh (Support for maintaining and releasing projects):
938         List it.
939
940         init.sh: do not emit simulated diff output to stderr
941         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
942
943 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
944
945         .gitignore: ignore gnulib.dvi and regex.info
946         * doc/.gitignore:add gnulib.dvi and regex.info
947
948 2011-12-22  Jim Meyering  <meyering@redhat.com>
949
950         init.sh: correct previous change
951         * tests/init.sh (compare): My previous change was wrong.
952         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
953
954         init.sh: avoid unwarranted test failure when using "set -e"
955         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
956         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
957         a use like "compare exp out" would get evoke an unconditional failure.
958
959 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
960
961         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
962         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
963         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
964         autoreconf that did not.
965         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
966         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
967
968 2011-12-17  Jim Meyering  <meyering@redhat.com>
969
970         bootstrap: remove some now-unneeded code
971         This script arose back when gnulib-tool was young.
972         Since then, it has seen improvements that render much of this
973         script unnecessary.  In particular, it can now make symlinks
974         to the files it uses.  Also, I no longer see as much value in
975         marking files as read-only via comments.
976         If you relied on the symlink-creation feature of the preceding
977         version of this script, you can get most of that functionality
978         by adding the --symlink option to the definition of
979         gnulib_tool_option_extras in your bootstrap.conf file.
980         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
981         Run autopoint and libtoolize *before* gnulib-tool.
982         After it, run an abbreviated autoreconf, rather than a loop around
983         all tools.
984         (slirp, bt_mark_as_generated): Remove functions.
985
986 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
987
988         ftoastr: fix typo
989         * lib/ftoastr.h: Fix misspelling in comment.
990
991 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
992
993         * top/README-release: fix punctuation.
994
995 2011-12-17  Jim Meyering  <meyering@redhat.com>
996
997         bootstrap: correct the recent buildreq change
998         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
999         had no effect.
1000         * build-aux/bootstrap (buildreq): Bracket each search term with
1001         "*...*", so that the shell "case" statement works as intended.
1002         Add comments.
1003
1004 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
1005
1006         build: let bootstrap resort to wget when downloading .po files
1007         * build-aux/bootstrap (download_po_files): Fallback to wget when
1008         downloading the .po files via rsync fails.  This is necessary to
1009         bootstrap from behind a strict firewall.
1010
1011 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1012
1013         stdint: don't assume C++11 when compiling with g++
1014         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
1015         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
1016         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
1017         work also in C++ before C++11, as that improperly inhibits
1018         generating a substitute stdint.h for that case.
1019
1020 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1021
1022         alloca: protect comment from gnulib-tool
1023         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
1024         that gnulib-tool doesn't think it's a license, and munge it to
1025         say "GCC version 3".
1026
1027 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
1028
1029         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
1030         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
1031         $(abs_top_builddir) instead of $(top_builddir).
1032
1033 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
1034
1035         strftime-tests: also test nanoseconds
1036         * tests/test-strftime.c (T): Add a test of %N.
1037
1038 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
1039
1040         inttypes, stdint: add C++11 support
1041         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
1042         when including inttypes.h and stdint.h.  Support this change to
1043         the standard.
1044         * doc/posix-headers/inttypes.texi (inttypes.h):
1045         * doc/posix-headers/stdint.texi (stdint.h): Document this.
1046         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
1047         Define if not defined already, for the benefit of pre-C++11 hosts.
1048         Define the standard format macros (e.g., PRId8) always.
1049         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
1050         Likewise, if __cpluspus.  Define the standard constant and limit
1051         macros (e.g., INT8_C, INT8_MAX) always.
1052         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
1053         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
1054         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
1055         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
1056         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
1057         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
1058         Likewise.
1059
1060 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
1061
1062         nonblocking tests: Fix test failure on Linux/PPC.
1063         Suggested by Prerna Saxena in
1064         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
1065         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
1066         Set to 1100000.
1067
1068 2011-12-12  Jim Meyering  <meyering@redhat.com>
1069
1070         argmatch: don't hard-code `' when listing valid option arguments
1071         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
1072         use the quote function to add quotes.  Use fputs rather than
1073         fprintf for the format string with no format directive.
1074
1075 2011-12-07  Eric Blake  <eblake@redhat.com>
1076
1077         bootstrap: detect tools required by gnulib-tool
1078         * build-aux/bootstrap (buildreq): Provide minimum implicit
1079         dependencies.
1080         * DEPENDENCIES: Mention patch as a prereq.
1081
1082 2011-12-04  Bruno Haible  <bruno@clisp.org>
1083
1084         sethostname: Port to Windows platforms.
1085         * lib/sethostname.c: Provide an alternate implementation for Windows
1086         platforms.
1087         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
1088         (main): Skip the test if sethostname() fails with EPERM. On Windows
1089         platforms, don't check the result of gethostname().
1090
1091 2011-12-04  Bruno Haible  <bruno@clisp.org>
1092             Jim Meyering  <meyering@redhat.com>
1093
1094         tests: Avoid spurious error message on platforms without mktemp program.
1095         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
1096
1097 2011-12-04  Bruno Haible  <bruno@clisp.org>
1098
1099         sethostname: Fix documentation.
1100         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
1101         "not fixed" section.
1102
1103 2011-12-03  Bruno Haible  <bruno@clisp.org>
1104
1105         gnulib-tool: Verify that the License field is present and non-empty.
1106         * gnulib-tool (func_get_license_raw): New function, extracted from
1107         func_get_license.
1108         (func_get_license): Use it. Warn if the module is not a test module and
1109         has no license.
1110         Suggested by Jim Meyering.
1111
1112 2011-12-03  Bruno Haible  <bruno@clisp.org>
1113
1114         sethostname tests: Fix link error on mingw.
1115         * tests/test-sethostname1.c: New file, extracted from
1116         tests/test-sethostname.c.
1117         * tests/test-sethostname2.c: New file, extracted from
1118         tests/test-sethostname.c.
1119         * tests/test-sethostname.c: Remove file.
1120         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
1121         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
1122         (Depends-on): Add gethostname.
1123         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
1124         Link the latter with $(GETHOSTNAME_LIB).
1125
1126         sethostname tests: Fix compilation error on mingw.
1127         * tests/test-sethostname.c: Don't include <sys/types.h>.
1128         (geteuid): Use a dummy value without uid_t.
1129         * modules/sethostname-tests (Depends-on): Remove sys_types.
1130
1131         sethostname tests: Avoid a gcc warning.
1132         * tests/test-sethostname.c (main): Remove an unused variable.
1133
1134         Tweak last commit.
1135         * modules/sethostname-tests (Files): Sort by decreasing importance.
1136         (configure.ac): Check for geteuid.
1137         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
1138         the test when there's nothing to test. Drop an unnecessary cast.
1139         Improve an error message. Verify that the final sethostname() call
1140         succeeds.
1141
1142 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1143
1144         Add a test suite for the sethostname module.
1145         * modules/sethostname-tests: New file.  A test program
1146         for the sethostname module.
1147         * tests/test-sethostname.c: Likewise.
1148
1149 2011-12-03  Bruno Haible  <bruno@clisp.org>
1150
1151         Tweak last commit.
1152         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
1153         Fix preprocessor directives indentation. Fix typos.
1154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
1155         * modules/unistd (Makefile): Likewise.
1156
1157 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1158
1159         Integrate the sethostname module into unistd.
1160         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
1161         into the unistd.h header.
1162         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
1163         preprocessor directives.
1164         * modules/unistd: Setup the Makefile substitutions of the
1165         SETHOSTNAME preprocessor directives.
1166
1167 2011-12-03  Bruno Haible  <bruno@clisp.org>
1168
1169         Tweak last commit.
1170         * lib/sethostname.c: Don't include <string.h>.
1171         (sethostname): No need to copy the argument string to the stack. Don't
1172         call clearerr. Preserve errno when fprintf failed.
1173         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
1174         Don't invoke AC_REPLACE_FUNCS.
1175         * modules/sethostname (Link): Remove empty section.
1176         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
1177         failure problem.
1178
1179 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1180
1181         New module 'sethostname'.
1182         * lib/sethostname.c (sethostname): New file.  Provide sethostname
1183         for systems that lack it.
1184         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
1185         sethostname declaration and function.
1186         * modules/sethostname: New file.  Define the sethostname module.
1187
1188 2011-12-03  Bruno Haible  <bruno@clisp.org>
1189
1190         Tweak last commit.
1191         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
1192
1193 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1194
1195         Split the HOST_NAME_MAX detection into a separate m4 macro.
1196         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
1197         macro so it can be used by the pending sethostname module.
1198
1199 2011-12-03  Bruno Haible  <bruno@clisp.org>
1200
1201         Fix module descriptions syntax.
1202         * modules/argv-iter (License): Fix syntax.
1203         * modules/di-set (License): Likewise.
1204         * modules/ino-map (License): Likewise.
1205         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
1206
1207 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1208
1209         stdalign: port to Clang 3.0
1210         Problem reported by Simon Josefsson in
1211         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
1212         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
1213         which has <stdalign.h> but which does not define alignof.
1214         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
1215
1216 2011-12-01  Eric Blake  <eblake@redhat.com>
1217
1218         mktempd: silence dd usage
1219         * build-aux/mktempd (rand_bytes): Silence dd.
1220
1221 2011-11-30  Simon Josefsson  <simon@josefsson.org>
1222
1223         manywarnings: Don't mention gcc version in docstring.
1224         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
1225         Jim Meyering <meyering@redhat.com>.
1226
1227 2011-11-30  Jim Meyering  <meyering@redhat.com>
1228
1229         hash: mark a few floating point constants with "f" suffix
1230         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
1231         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
1232         floating point constants with "f", since they're destined to be
1233         saved/used as "float"s.
1234
1235 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
1236
1237         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
1238         * tests/test-float.c (test_long_double): Correct and re-enable the
1239         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
1240
1241 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
1242
1243         Avoid subtracting two pointers that don't point into the same block.
1244         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
1245         only pointers into the same memory block are subtracted. We cannot
1246         assume that sizeof (ptrdiff_t) == sizeof (void *).
1247
1248 2011-11-29  Eric Blake  <eblake@redhat.com>
1249
1250         maint.mk: add syntax check for use of compare from init.sh
1251         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
1252         moved here from coreutils.
1253
1254         manywarnings: drop -Wunsuffixed-float-constants
1255         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
1256         '1.0D', which is the only way to silence this warning for 'double'.
1257
1258 2011-11-29  Jim Meyering  <meyering@redhat.com>
1259
1260         hash: mark compute_bucket_size with the pure attribute
1261         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
1262
1263         quotearg, propername: correct pragma guard expression
1264         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
1265         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
1266
1267 2011-11-28  Jim Meyering  <meyering@redhat.com>
1268
1269         propername: do not mark proper_name with the const attribute
1270         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
1271         since it examines data pointed to by its parameter.
1272         * lib/propername.c (proper_name): Instead, add a pragma to suppress
1273         the suggestion from -Wsuggest-attribute=const.
1274
1275         propername: mark one more function as const
1276         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
1277
1278 2011-11-27  Jim Meyering  <meyering@redhat.com>
1279
1280         mark functions with const and pure attributes
1281
1282         Mark functions per suggestions from gcc-4.6 when using these options:
1283         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
1284         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
1285         Follow these guidelines: when possible, apply the attribute to
1286         an extern declaration, not to its definition.  Apply it to the
1287         definition only when the definition is static.
1288         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
1289         * lib/argv-iter.h (argv_iter_n_args): Likewise.
1290         * lib/base64.h (isbase64): Likewise.
1291         * lib/basename-lgpl.c (last_component, base_len): Likewise.
1292         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
1293         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
1294         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
1295         (c_tolower, c_toupper): Likewise.
1296         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
1297         * lib/chdir-long.c (find_non_slash): Likewise.
1298         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
1299         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
1300         * lib/file-type.h (file_type): Likewise.
1301         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
1302         * lib/filevercmp.c (verrevcmp): Likewise.
1303         * lib/freadahead.h (freadahead): Likewise.
1304         * lib/fts.c (fts_maxarglen): Likewise.
1305         * lib/hash-pjw.h (hash_pjw): Likewise.
1306         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
1307         * lib/hash.c (is_prime, next_prime): Likewise.
1308         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
1309         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
1310         (hash_table_ok, hash_get_first, hash_string): Likewise.
1311         (compute_bucket_size): Likewise.
1312         * lib/i-ring.h (i_ring_empty): Likewise.
1313         * lib/isnan.c (isnanl): Likewise.
1314         * lib/math.h (isnanl, rpl_isnanl): Likewise.
1315         * lib/memcasecmp.h (memcasecmp): Likewise.
1316         * lib/memchr2.h (memchr2): Likewise.
1317         * lib/memcmp2.h (memcmp2): Likewise.
1318         * lib/parse-datetime.y (lookup_zone): Likewise.
1319         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
1320         [!WINDOWS_SOCKETS]: Likewise.
1321         * lib/strnlen1.h (strnlen1): Likewise.
1322         * lib/uniwidth.in.h (uc_width): Likewise.
1323         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
1324         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
1325         (quoting_options_from_style): Add a comment.
1326         * lib/propername.h (proper_name): Add a comment.
1327
1328 2011-11-27  Bruno Haible  <bruno@clisp.org>
1329
1330         Remove unused macros from !_LIBC code in glibc-borrowed files.
1331         * lib/fnmatch.c (STRCOLL): Remove macro.
1332         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
1333         * lib/glob.c (__stat, __readdir64): Remove macros.
1334         * lib/tempname.c (__open64, __xstat64): Remove macros.
1335         Suggested by Paul Eggert.
1336
1337 2011-11-27  Bruno Haible  <bruno@clisp.org>
1338
1339         getcwd: Fix link error on MSVC 9.
1340         * modules/getcwd (Depends-on): Add readdir, rewinddir.
1341
1342 2011-11-27  Bruno Haible  <bruno@clisp.org>
1343
1344         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
1345         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
1346         HAVE_OPENDIR is 0.
1347         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
1348         HAVE_CLOSEDIR is 0.
1349         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
1350         is 0.
1351         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
1352
1353 2011-11-27  Bruno Haible  <bruno@clisp.org>
1354
1355         getcwd: Fix bug from 2011-08-17.
1356         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
1357         platforms that need it.
1358         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
1359         code of 4 to be a failure, not a success. This ensures that
1360         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
1361
1362 2011-11-27  Bruno Haible  <bruno@clisp.org>
1363
1364         binary-io tests: Avoid test failure on mingw when libtool is used.
1365         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
1366         Don't verify the size of t-bin-out1.tmp here.
1367         * tests/test-binary-io.sh: Verify it here.
1368         Reported by Simon Josefsson.
1369
1370 2011-11-26  Bruno Haible  <bruno@clisp.org>
1371
1372         Fix conflict between two instantiations of module 'unistd'.
1373         * gnulib-tool (func_emit_autoconf_snippet): Substitute
1374         ${include_guard_prefix} also in the autoconf snippet.
1375         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
1376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
1377         GNULIB_UNISTD_H_GETOPT.
1378         * modules/getopt-posix (configure.ac): Set the
1379         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
1380         * modules/getopt-gnu (configure.ac): Likewise.
1381         * modules/unistd (Makefile.am): Change the substitution value of
1382         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
1383         Reported by Simon Josefsson.
1384
1385 2011-11-25  Bruno Haible  <bruno@clisp.org>
1386
1387         pagealign_alloc: Doc and comments.
1388         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
1389         module.
1390         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
1391
1392 2011-11-25  Jim Meyering  <meyering@redhat.com>
1393
1394         test-update-copyright.sh: avoid false-positive failure
1395         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
1396         around false positive failure on Cygwin/Windows.  The latter was
1397         matching erroneously-created files with names like
1398         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
1399
1400 2011-11-25  Simon Josefsson  <simon@josefsson.org>
1401
1402         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
1403         * m4/valgrind-tests.m4: Check that the parameters that will be
1404         used works, not just a subset of them.  Reported by Bruno Haible
1405         <bruno@clisp.org>.
1406
1407 2011-11-24  Jim Meyering  <meyering@redhat.com>
1408
1409         test-stdalign.c: comment out long double tests
1410         * tests/test-stdalign.c: Don't try to reduce alignment of long double
1411         variables.  That provokes errors like this from gcc-4.7.0 20111124:
1412         error: '_Alignas' specifiers cannot reduce alignment of \
1413         'static_longdouble_alignas'.
1414
1415 2011-11-22  Jim Meyering  <meyering@redhat.com>
1416
1417         init.sh: make "compare /dev/null FILE" output more readable
1418         * tests/init.sh (compare_): Document the preferred order of arguments.
1419         (emit_diff_u_header_): New function.
1420         (compare_dev_null_): Emit a simulated diff, rather than just the
1421         contents of the unexpected file.  Suggestion from Bruno Haible.
1422
1423 2011-11-21  Jim Meyering  <meyering@redhat.com>
1424             Eric Blake  <eblake@redhat.com>
1425
1426         init.sh: work around OSF/1 5.1's mishandling of /dev/null
1427         * tests/init.sh: Make our compare function slightly more portable.
1428         Reported by Bruno Haible in
1429         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
1430
1431 2011-11-21  Simon Josefsson  <simon@josefsson.org>
1432
1433         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
1434         before using it, in code that ends up in config.h.
1435
1436 2011-11-20  Bruno Haible  <bruno@clisp.org>
1437
1438         getcwd: Work around getcwd bug on AIX 5..7.
1439         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
1440         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
1441         Use a different value for gl_cv_func_getcwd_path_max. Move the
1442         definition of HAVE_PARTLY_WORKING_GETCWD from here...
1443         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
1444         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
1445         Define HAVE_MINIMALLY_WORKING_GETCWD.
1446         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
1447         where it is not even minimally working, that is, on AIX.
1448         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
1449         m4/getcwd-path-max.m4.
1450         (main): Update exit code computation.
1451         * doc/posix-functions/getcwd.texi: Mention list of platforms where
1452         getcwd does not handle long file names.
1453
1454 2011-11-20  Bruno Haible  <bruno@clisp.org>
1455
1456         getcwd: Fix bug from 2009-09-10.
1457         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
1458         like "no".
1459
1460 2011-11-20  Simon Josefsson  <simon@josefsson.org>
1461
1462         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
1463
1464 2011-11-20  Bruno Haible  <bruno@clisp.org>
1465
1466         fma tests: Avoid shadowing local variables.
1467         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
1468         expected.
1469
1470 2011-11-20  Bruno Haible  <bruno@clisp.org>
1471
1472         copysignf tests: Fix.
1473         * tests/test-copysignf.c: Fix signature check.
1474
1475 2011-11-20  Bruno Haible  <bruno@clisp.org>
1476
1477         fma: Remove unused code.
1478         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
1479         unused macros.
1480
1481 2011-11-20  Bruno Haible  <bruno@clisp.org>
1482
1483         sethostname: Fix doc about AIX.
1484         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
1485         sethostname; it has it.
1486
1487         sethostname: Mention more portability problems.
1488         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
1489         problem.
1490         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1491
1492 2011-11-19  Bruno Haible  <bruno@clisp.org>
1493
1494         Depend on module fcntl-h when AT_FDCWD is used.
1495         * modules/utimens (Depends-on): Add fcntl-h.
1496         * modules/areadlinkat (Depends-on): Likewise.
1497         * modules/areadlinkat-with-size (Depends-on): Likewise.
1498         * modules/faccessat (Depends-on): Likewise.
1499         * modules/fchmodat (Depends-on): Likewise.
1500         * modules/fchownat (Depends-on): Likewise.
1501         * modules/getcwd (Depends-on): Likewise.
1502         * modules/mkdirat (Depends-on): Likewise.
1503         * modules/mkfifoat (Depends-on): Likewise.
1504         * modules/readlinkat (Depends-on): Likewise.
1505         * modules/symlinkat (Depends-on): Likewise.
1506         * modules/dup2-tests (Depends-on): Likewise.
1507         * modules/fdutimensat-tests (Depends-on): Likewise.
1508         * modules/futimens-tests (Depends-on): Likewise.
1509
1510 2011-11-19  Bruno Haible  <bruno@clisp.org>
1511
1512         euidaccess: Update a comment.
1513         * lib/euidaccess.c: Update comment about platforms with faccessat.
1514
1515 2011-11-19  Bruno Haible  <bruno@clisp.org>
1516
1517         openat: Fix file list.
1518         * modules/openat (Files): Remove lib/at-func.c.
1519
1520 2011-11-19  Bruno Haible  <bruno@clisp.org>
1521
1522         fstatat: Simplify.
1523         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
1524         gnulib should define rpl_fstatat, there is a
1525         "#define fstatat rpl_fstatat" in <sys/stat.h>.
1526
1527 2011-11-19  Bruno Haible  <bruno@clisp.org>
1528
1529         Ensure 'inline' can be used in tests/test-utimens-common.h.
1530         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
1531         * modules/futimens-tests (configure.ac): Likewise.
1532         * modules/utimens-tests (configure.ac): Likewise.
1533         * modules/utimensat-tests (configure.ac): Likewise.
1534
1535 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1536
1537         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
1538         not hash_insert0.
1539         (hash_insert_if_absent): Doc fix.
1540
1541 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1542
1543         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
1544
1545 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1546
1547         test-getcwd: disambiguate exit status
1548         * tests/test-getcwd.c (test_long_name): Return 0..7.
1549         (main): Exit with an unambiguous exit status.  The old
1550         code yielded a mysterious mixture of two failure codes.
1551
1552         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
1553         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
1554         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
1555         rpl_fstatat or fstatat.  This should fix the other problem
1556         reported by Kai Habel in
1557         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1558         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
1559         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
1560         and I reproduced it on a Solaris 8 host we still have in production.
1561
1562 2011-11-18  Jim Meyering  <meyering@redhat.com>
1563
1564         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
1565         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
1566         Add a sentence to the comment.
1567         (hash_insert0): New function that simply calls hash_insert_if_absent.
1568         * lib/hash.h (hash_insert_if_absent): Declare it.
1569         (hash_insert0): Add deprecation attribute.
1570         (_GL_ATTRIBUTE_DEPRECATED): Define.
1571         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
1572         not hash_insert0.
1573         * NEWS: Mention it, even though it's not really an incompatible change.
1574
1575 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
1576
1577         openat: avoid compilation failure due to lack of <errno.h> inclusion
1578         * lib/openat.c: Include <errno.h>.
1579
1580 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1581
1582         * modules/getcwd (Depends-on): Add fdopendir.
1583         This fixes one of the two problems reported by Kai Habel in
1584         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1585
1586         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
1587         stdalign problem reported by Ian Beckwith in
1588         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
1589         * modules/crypto/gc-arcfour (Depends-on):
1590         Depend conditionally on crypto/arcfour.
1591         * modules/crypto/gc-arctwo (Depends-on):
1592         Depend conditionally on crypto/arctwo.
1593         * modules/crypto/gc-des (Depends-on):
1594         Depend conditionally on crypto/des.
1595         * modules/crypto/gc-hmac-md5 (Depends-on):
1596         Depend conditionally on crypto/hmac-md5.
1597         * modules/crypto/gc-hmac-sha1 (Depends-on):
1598         Depend conditionally on crypto/hmac-sha1.
1599         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
1600         * modules/crypto/gc-md4 (Depends-on):
1601         Depend conditionally on crypto/md4.
1602         * modules/crypto/gc-md5 (Depends-on):
1603         Depend conditionally on crypto/md5.
1604         * modules/crypto/gc-rijndael (Depends-on):
1605         Depend conditionally on crypto/rijndael.
1606         * modules/crypto/gc-sha1 (Depends-on):
1607         Depend conditionally on crypto/sha1.
1608         * modules/crypto/gc-arcfour:
1609         * modules/crypto/gc-arctwo:
1610         * modules/crypto/gc-des:
1611         * modules/crypto/gc-hmac-md5:
1612         * modules/crypto/gc-hmac-sha1:
1613         * modules/crypto/gc-md2:
1614         * modules/crypto/gc-md4:
1615         * modules/crypto/gc-md5:
1616         * modules/crypto/gc-rijndael:
1617         * modules/crypto/gc-sha1:
1618         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
1619         now that the conditional dependencies do the work for us.
1620
1621 2011-11-17  Jim Meyering  <meyering@redhat.com>
1622
1623         tests: factor st_ctime-comparison out of two headers
1624         * tests/test-utimens-common.h (ctime_compare): Define.
1625         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
1626         * tests/test-lutimens.h (test_lutimens): Likewise.
1627         * tests/test-utimens.h (test_utimens): Likewise.
1628
1629         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
1630         Invoke the test program via an init.sh-using wrapper.
1631         * tests/test-getcwd.sh: New file.
1632         * modules/getcwd-tests (Files): Add it.
1633         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
1634
1635 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
1636
1637         gitlog-to-changelog: support multi-author commits.
1638         The FSF cares about keeping track of all authors of patches to its
1639         projects, but Git doesn't provide obvious support for multi-author
1640         changesets. Consensus seems to be forming around the use of extra
1641         Signed-off-by inspired lines in the log message formatted as
1642         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
1643         multi-author commits between version control systems.
1644         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
1645         log message and output in standard ChangeLog multi-author format.
1646         Reported by Peter Rosin <peda@lysator.liu.se>
1647
1648 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
1649             Bruno Haible  <bruno@clisp.org>
1650
1651         Fix some modules' file list.
1652         * modules/fstatat (Files): Add m4/lstat.m4.
1653         * modules/openat (Files): Likewise.
1654         * modules/unlinkat (Files): Likewise.
1655
1656 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
1657
1658         maint.mk: fix tight-scope.mk generation in VPATH builds.
1659         * top/maint.mk (tight-scope.mk): Make sure to prefix file
1660         reference with $(srcdir) so that the file is found correctly even
1661         when running `make syntax-check' in a VPATH build.
1662
1663 2011-11-13  Bruno Haible  <bruno@clisp.org>
1664             Jim Meyering  <meyering@redhat.com>
1665
1666         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
1667         * tests/init.sh (compare): Remove "No differences encountered" or
1668         synonymous output from the 'diff' program.
1669
1670 2011-11-13  Bruno Haible  <bruno@clisp.org>
1671
1672         Makefile: Tweak indentation.
1673         * Makefile: Use tab as first character in every line that contains rule
1674         commands.
1675
1676 2011-11-13  Bruno Haible  <bruno@clisp.org>
1677
1678         Syntax check for copyright statements.
1679         * check-copyright: New file.
1680         * Makefile (sc_check_copyright): New rule.
1681
1682 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1683
1684         * build-aux/git-version-gen: Add --prefix to configure the tag
1685         match string.
1686
1687 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1688
1689         * build-aux/git-version-gen: Add --help and --version.
1690
1691 2011-11-12  Jim Meyering  <meyering@redhat.com>
1692
1693         revamp the other test-exclude?.sh scripts to use init.sh, too
1694         * tests/test-exclude1.sh: Use init.sh.
1695         * tests/test-exclude2.sh: Likewise.
1696         * tests/test-exclude3.sh: Likewise.
1697         * tests/test-exclude4.sh: Likewise.
1698         * tests/test-exclude5.sh: Likewise.
1699         * tests/test-exclude6.sh: Likewise.
1700         * tests/test-exclude7.sh: Likewise.
1701         * tests/test-exclude8.sh: Likewise.
1702         * modules/exclude-tests (Files): List init.sh.
1703
1704         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
1705         These shell scripts ignored failure of the binary test-exclude,
1706         so making the latter return 77 didn't cause them to be skipped.
1707         * tests/test-exclude5.sh: Exit with test-exclude's error status
1708         when that program fails.  Revamp to use init.sh.
1709         * tests/test-exclude2.sh: Likewise.
1710
1711         test-exclude: fix a typo
1712         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
1713
1714 2011-11-11  Bruno Haible  <bruno@clisp.org>
1715
1716         obstack: Fix compilation error on MSVC 9.
1717         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
1718
1719 2011-11-11  Jim Meyering  <meyering@redhat.com>
1720
1721         test-exclude: skip tests rather than failing on deficient systems
1722         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
1723         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
1724         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
1725         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
1726
1727 2011-11-10  Bruno Haible  <bruno@clisp.org>
1728
1729         ptsname_r test: Avoid gcc warning on glibc systems.
1730         * tests/test-ptsname_r.c (null_ptr): New function.
1731         (test_errors): Use it.
1732
1733 2011-11-10  Bruno Haible  <bruno@clisp.org>
1734
1735         ptsname_r: Avoid compilation error on OSF/1 5.1.
1736         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
1737         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
1738         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
1739         function is not declared or incompatibly declared.
1740         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
1741         * modules/ptsname_r (Depends-on, configure.ac): Update.
1742         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
1743
1744 2011-11-10  Bruno Haible  <bruno@clisp.org>
1745
1746         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
1747         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
1748         When cross-compiling, guess yes on all platforms except AIX.
1749         Reported by Ludovic Courtès <ludo@gnu.org>.
1750
1751 2011-11-09  Bruno Haible  <bruno@clisp.org>
1752
1753         ptsname_r tests: Fix bugs.
1754         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
1755         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
1756
1757 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1758
1759         fstatat: work with cross-compilation
1760         Problem reported by Ludovic Courtès in
1761         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
1762         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
1763         "cross-compiling" and assume the bug is present.  Replace
1764         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
1765         an inverted sense, to be more conservative about our assumptions.
1766         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
1767
1768 2011-11-09  Bruno Haible  <bruno@clisp.org>
1769
1770         Improve MODULES.html output.
1771         * modules/mkfifoat (Description): Use the word "function".
1772         * modules/readlinkat (Description): Likewise.
1773         * modules/symlinkat (Description): Likewise.
1774
1775 2011-11-09  Eric Blake  <eblake@redhat.com>
1776
1777         ptsname_r-tests: new test module
1778         * modules/ptsname_r-tests: New module.
1779         * tests/test-ptsname_r.c: New file.
1780
1781         ptsname_r: new module
1782         * modules/ptsname_r: New module.
1783         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
1784         * lib/ptsname.c (__ptsname_r): Split...
1785         * lib/ptsname_r.c: ...into new file.
1786         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1787         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
1788         * modules/stdlib (Makefile.am): Substitute witnesses.
1789         * lib/stdlib.in.h (ptsname_r): Declare it.
1790         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
1791         * MODULES.html.sh (Misc): Likewise.
1792         * modules/ptsname (Depends-on): Alter dependency.
1793         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
1794
1795 2011-11-09  Jim Meyering  <meyering@redhat.com>
1796
1797         announce-gen: be more concise when there's only one URL+tarball
1798         * build-aux/announce-gen (get_tool_versions): When you distribute
1799         only one type of tarball, combine the first two "Here are..."
1800         sections and make the key-checking grammar independent of
1801         how many tarballs there are.
1802
1803 2011-11-09  Eric Blake  <eblake@redhat.com>
1804
1805         openpty: provide a stub on mingw
1806         * lib/pty.in.h (includes): Provide forward declarations.
1807         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
1808
1809         raise: fix mingw handling of SIGPIPE
1810         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
1811
1812 2011-11-08  Bruno Haible  <bruno@clisp.org>
1813
1814         More conditional dependencies.
1815         * modules/faccessat (Depends-on): Add conditions.
1816         * modules/fchmodat (Depends-on): Likewise.
1817         * modules/fchownat (Depends-on): Likewise.
1818         * modules/fstatat (Depends-on): Likewise.
1819         * modules/mkfifoat (Depends-on): Likewise.
1820         * modules/readlinkat (Depends-on): Likewise.
1821         * modules/symlinkat (Depends-on): Likewise.
1822         * modules/unlinkat (Depends-on): Likewise.
1823         * modules/utimensat (Depends-on): Likewise.
1824         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
1825         * modules/linkat (Depends-on): Refine the conditions.
1826         * modules/renameat (Depends-on): Likewise.
1827
1828 2011-11-08  Bruno Haible  <bruno@clisp.org>
1829
1830         faccessat: Move AC_LIBOBJ invocation to module description.
1831         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
1832         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
1833         invocation from here...
1834         * modules/faccessat (configure.ac): ... to here. Invoke
1835         gl_PREREQ_FACCESSAT.
1836
1837 2011-11-08  Bruno Haible  <bruno@clisp.org>
1838
1839         faccessat: Simplify autoconf macro.
1840         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
1841         gl_FUNC_EUIDACCESS.
1842
1843 2011-11-08  Bruno Haible  <bruno@clisp.org>
1844
1845         renameat: Fix dependencies.
1846         * modules/renameat (Depends-on): Add stdbool.
1847
1848 2011-11-08  Bruno Haible  <bruno@clisp.org>
1849
1850         mkfifoat: Fix module description.
1851         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
1852         not gl_UNISTD_MODULE_INDICATOR.
1853
1854 2011-11-08  Bruno Haible  <bruno@clisp.org>
1855
1856         fstatat: Remove unused dependency.
1857         * modules/fstatat (Depends-on): Remove fstat.
1858
1859 2011-11-08  Simon Josefsson  <simon@josefsson.org>
1860
1861         GNUmakefile: behave when Makefile is missing.
1862         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
1863
1864 2011-11-08  Bruno Haible  <bruno@clisp.org>
1865
1866         openat: Conditionalize dependencies.
1867         * lib/openat.c: Reduce the scope of some #includes.
1868         * modules/openat (Depends-on): Add conditions.
1869
1870 2011-11-07  Jim Meyering  <meyering@redhat.com>
1871
1872         maint.mk: extract GPG key ID without using a temporary file
1873         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
1874         without using a temporary file.  Based on a suggestion from Werner Koch
1875         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
1876
1877 2011-11-07  Eric Blake  <eblake@redhat.com>
1878
1879         grantpt: fix typo
1880         * lib/stdlib.in.h (grantpt): Check correct function.
1881
1882         maint.mk: silence new syntax check
1883         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
1884
1885 2011-11-06  Bruno Haible  <bruno@clisp.org>
1886
1887         Doc about floating-point and math API.
1888         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
1889         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
1890
1891 2011-11-06  Bruno Haible  <bruno@clisp.org>
1892
1893         stdalign tests: Skip the test when compiled by Sun C.
1894         * tests/test-stdalign.c (main): Skip the test on Sun C.
1895
1896 2011-11-06  Bruno Haible  <bruno@clisp.org>
1897
1898         ansi-c++-opt: Complete the 2011-06-05 change.
1899         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
1900         does not support namespaces, set the variable to "no", not to ":".
1901
1902 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1903
1904         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
1905
1906 2011-11-06  Bruno Haible  <bruno@clisp.org>
1907
1908         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
1909         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
1910         (minus_zerol) [HP-UX]: New macro.
1911         (unary_minus) [HP-UX]: New function.
1912         (copysignl) [HP-UX]: Use unary_minus function.
1913
1914 2011-11-06  Bruno Haible  <bruno@clisp.org>
1915
1916         ldexp, ldexpf, ldexpl: Enhance tests.
1917         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
1918         and tests/test-ldexpl.c.
1919         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
1920         LDEXP, MIN_EXP, MAX_EXP): New macros.
1921         Include test-ldexp.h.
1922         (main): Just call test_function.
1923         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
1924         infinity.h, nan.h.
1925         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1926         MAX_EXP): New macros.
1927         Include test-ldexp.h.
1928         (x, y): Remove variables.
1929         (main): Just call test_function.
1930         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
1931         infinity.h, nan.h.
1932         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1933         MAX_EXP): New macros.
1934         Include test-ldexp.h.
1935         (x, y): Remove variables.
1936         (main): Just call test_function.
1937         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
1938         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
1939         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1940         (Depends-on): Add isnand-nolibm, signbit, float.
1941         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
1942         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1943         (Depends-on): Add isnanf-nolibm, signbit, float.
1944
1945 2011-11-06  Bruno Haible  <bruno@clisp.org>
1946
1947         math tests: Cosmetics.
1948         * tests/test-math-c++.cc: Reorder declarations.
1949
1950 2011-11-05  Bruno Haible  <bruno@clisp.org>
1951
1952         fma*: Simplify test.
1953         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
1954         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
1955
1956         Tests for module 'fmal'.
1957         * modules/fmal-tests: New file.
1958         * tests/test-fmal1.c: New file.
1959         * tests/test-fmal2.c: New file.
1960
1961         New module 'fmal'.
1962         * lib/math.in.h (fmal): New declaration.
1963         * lib/fmal.c: New file.
1964         * m4/fmal.m4: New file.
1965         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
1966         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
1967         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
1968         REPLACE_FMAL.
1969         * modules/fmal: New file.
1970         * doc/posix-functions/fmal.texi: Mention the new module and the various
1971         bugs.
1972
1973         Tests for module 'fmaf'.
1974         * modules/fmaf-tests: New file.
1975         * tests/test-fmaf1.c: New file.
1976         * tests/test-fmaf2.c: New file.
1977
1978         New module 'fmaf'.
1979         * lib/math.in.h (fmaf): New declaration.
1980         * lib/fmaf.c: New file.
1981         * m4/fmaf.m4: New file.
1982         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
1983         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
1984         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
1985         REPLACE_FMAF.
1986         * modules/fmaf: New file.
1987         * doc/posix-functions/fmaf.texi: Mention the new module and the various
1988         bugs.
1989
1990         Tests for module 'fma'.
1991         * modules/fma-tests: New file.
1992         * tests/test-fma1.c: New file.
1993         * tests/test-fma1.h: New file.
1994         * tests/test-fma2.c: New file.
1995         * tests/test-fma2.h: New file.
1996
1997         New module 'fma'.
1998         * lib/math.in.h (fma): New declaration.
1999         * lib/fma.c: New file.
2000         * m4/fma.m4: New file.
2001         * m4/fegetround.m4: New file.
2002         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
2003         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
2004         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
2005         REPLACE_FMA.
2006         * modules/fma: New file.
2007         * doc/posix-functions/fma.texi: Mention the new module and the various
2008         bugs.
2009
2010         Extend gl_MATHFUNC.
2011         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
2012         Support 'void' as argument type.
2013         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
2014
2015 2011-11-05  Jim Meyering  <meyering@redhat.com>
2016
2017         maint.mk: also prohibit inclusion of dirent.h without use
2018         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
2019
2020 2011-11-05  Bruno Haible  <bruno@clisp.org>
2021
2022         ldexpl tests: Avoid test failure on MSVC 9.
2023         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
2024         value. Needed in order to enforce the conversion from a value greater
2025         than LDBL_MAX to Infinity.
2026
2027 2011-11-05  Bruno Haible  <bruno@clisp.org>
2028
2029         New modules 'at-internal', 'openat-h', split off from module 'openat'.
2030         * modules/at-internal: New file, extracted from modules/openat.
2031         * modules/openat-h: New file.
2032         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
2033         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
2034         * modules/openat (Description): Add reference to POSIX function.
2035         (Files): Remove lib/openat.h, lib/openat-proc.c.
2036         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
2037         intprops, unistd.
2038         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
2039         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
2040         gl_FCNTL_MODULE_INDICATOR.
2041         (Include): Remove unistd.h, openat.h.
2042         * modules/areadlinkat (Files): Add lib/at-func.c.
2043         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2044         openat-die, openat-h, save-cwd.
2045         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
2046         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2047         openat-die, openat-h, save-cwd, unistd.
2048         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
2049         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2050         openat-h, save-cwd. Remove fcntl-h, openat.
2051         * modules/fchmodat (Files): Remove lib/openat.h.
2052         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2053         openat, stdbool, unistd.
2054         * modules/fchownat (Files): Remove lib/openat.h.
2055         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2056         openat, stdbool, sys_stat.
2057         * modules/fdopendir (Files): Remove lib/openat-priv.h,
2058         lib/openat-proc.c.
2059         (Depends-on): Add at-internal.
2060         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
2061         * modules/fstatat (Files): Remove lib/openat.h.
2062         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2063         stdbool, unistd.
2064         * modules/fts (Depends-on): Add openat-h.
2065         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
2066         openat.
2067         * modules/mkdirat (Files): Remove lib/openat.h.
2068         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2069         openat, stdbool, sys_stat.
2070         * modules/mkfifoat (Files): Add lib/at-func.c.
2071         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2072         openat-h, save-cwd. Remove fcntl-h, openat.
2073         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
2074         * modules/readlinkat (Files): Add lib/at-func.c.
2075         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2076         openat-h, save-cwd. Remove fcntl-h, openat.
2077         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
2078         openat.
2079         * modules/selinux-at (Files): Add lib/at-func.c.
2080         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2081         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
2082         * modules/symlinkat (Files): Add lib/at-func.c.
2083         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2084         openat-h, save-cwd. Remove fcntl-h, openat.
2085         * modules/unlinkat (Files): Remove lib/openat.h.
2086         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2087         stdbool.
2088         * modules/utimensat (Files): Add lib/at-func.c.
2089         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
2090         openat-die, openat-h, save-cwd.
2091         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
2092         * modules/fdutimensat-tests (Depends-on): Add openat.
2093         * modules/fstatat-tests (Depends-on): Add openat-h.
2094         * modules/readlinkat-tests (Depends-on): Add openat.
2095         * modules/symlinkat-tests (Depends-on): Add openat.
2096
2097 2011-11-05  Bruno Haible  <bruno@clisp.org>
2098
2099         openat: Include <stdbool.h>.
2100         * lib/openat.c: Include <stdbool.h>.
2101
2102 2011-11-04  Bruno Haible  <bruno@clisp.org>
2103
2104         fchownat, renameat, unlinkat: Fix dependencies.
2105         * modules/fchownat (Depends-on): Add fstatat.
2106         * modules/renameat (Depends-on): Likewise.
2107         * modules/unlinkat (Depends-on): Likewise.
2108
2109 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
2110
2111         openat: remove direct dependency on dirent
2112         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
2113         and hasn't been needed ever since fdopendir was split into its own
2114         module on 2009-08-31.
2115         * modules/openat (Depends-on): Remove dirent.
2116
2117 2011-11-04  Bruno Haible  <bruno@clisp.org>
2118
2119         renameat: Optimize code size.
2120         * modules/renameat (configure.ac): Don't compile at-func2.c if
2121         REPLACE_RENAMEAT is 1.
2122
2123 2011-11-04  Bruno Haible  <bruno@clisp.org>
2124
2125         openat tests: Fix file list.
2126         * modules/openat-tests (Files): Add tests/test-open.h.
2127
2128 2011-11-04  Bruno Haible  <bruno@clisp.org>
2129
2130         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
2131         * modules/fchmodat (Depends-on): Add openat-die.
2132         * modules/fchownat (Depends-on): Likewise.
2133         * modules/linkat (Depends-on): Likewise.
2134         * modules/renameat (Depends-on): Likewise.
2135         * modules/openat (Depends-on): Add dirent.
2136
2137 2011-11-04  Jim Meyering  <meyering@redhat.com>
2138
2139         at-func*.c: fix comments
2140         * lib/at-func2.c: Correct/improve first-line comment.
2141         * lib/at-func.c: Correct grammar in first-line comment.
2142
2143 2011-11-04  Bruno Haible  <bruno@clisp.org>
2144
2145         New module 'mkdirat', split off from module 'openat'.
2146         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
2147         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
2148         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
2149         * modules/mkdirat: New file, extracted from modules/openat.
2150         * modules/openat (Files): Remove lib/mkdirat.c.
2151         (Depends-on): Remove mkdir.
2152         (configure.ac): Remove AC_LIBOBJ of mkdirat.
2153         (Include): Remove <sys/stat.h>.
2154         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
2155         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
2156         tests/test-mkdir.h.
2157         (Depends-on): Remove ignore-value.
2158         (Makefile.am): Remove rules for test-mkdirat.
2159         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
2160         of module 'openat'.
2161         * NEWS: Mention the change.
2162
2163 2011-11-04  Bruno Haible  <bruno@clisp.org>
2164
2165         closedir: Avoid warning on mingw.
2166         * lib/closedir.c: Include <unistd.h>.
2167
2168 2011-11-04  Bruno Haible  <bruno@clisp.org>
2169
2170         New module 'fstatat', split off from module 'openat'.
2171         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
2172         defined.
2173         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
2174         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
2175         gl_FUNC_FSTATAT.
2176         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
2177         * modules/fstatat: New file, extracted from modules/openat.
2178         * modules/openat (Files): Remove lib/fstatat.c.
2179         (Depends-on): Remove lstat.
2180         (configure.ac): Remove AC_LIBOBJ of fstatat.
2181         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
2182         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
2183         tests/test-lstat.h, tests/test-stat.h.
2184         (Depends-on): Remove getcwd-lgpl.
2185         (Makefile.am): Remove rules for test-fstatat.
2186         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
2187         of module 'openat'.
2188         * NEWS: Mention the change.
2189         * modules/getcwd (Depends-on): Add fstatat.
2190         * modules/linkat (Depends-on): Likewise.
2191         * modules/mkfifoat-tests (Depends-on): Likewise.
2192         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
2193
2194 2011-11-03  Bruno Haible  <bruno@clisp.org>
2195
2196         New module 'unlinkat', split off from module 'openat'.
2197         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
2198         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
2199         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
2200         * modules/unlinkat: New file, extracted from modules/openat. Correct
2201         the dependency conditions.
2202         * modules/openat (Files): Remove lib/unlinkat.c.
2203         (Depends-on): Remove rmdir, unlink.
2204         (configure.ac): Remove AC_LIBOBJ of unlinkat.
2205         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
2206         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
2207         tests/test-rmdir.h, tests/test-unlink.h.
2208         (Depends-on): Remove unlinkdir.
2209         (Makefile.am): Remove rules for test-unlinkat.
2210         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
2211         of module 'openat'.
2212         * NEWS: Mention the change.
2213         * modules/linkat-tests (Depends-on): Add unlinkat.
2214         * modules/mkfifoat-tests (Depends-on): Likewise.
2215         * modules/readlinkat-tests (Depends-on): Likewise.
2216
2217 2011-11-02  Bruno Haible  <bruno@clisp.org>
2218
2219         New module 'fchmodat', split off from module 'openat'.
2220         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
2221         defined.
2222         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
2223         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
2224         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
2225         * modules/fchmodat: New file, extracted from modules/openat.
2226         * modules/openat (Files): Remove lib/fchmodat.c.
2227         (configure.ac): Remove AC_LIBOBJ of fchmodat.
2228         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
2229         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
2230         (Makefile.am): Remove rules for test-fchmodat.
2231         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
2232         of module 'openat'.
2233         * NEWS: Mention the change.
2234
2235 2011-11-02  Jim Meyering  <meyering@redhat.com>
2236
2237         putenv: indent #definition of "environ" to placate cppi
2238         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
2239
2240         gitlog-to-changelog: provide a ChangeLog-repair mechanism
2241         Git logs are often treated as immutable, because editing them
2242         changes the SHA1 checksums of all descendants.  Thus, errors in
2243         git logs tend to stay there forever.  However, when we generate
2244         a ChangeLog file -- typically for distribution -- from that git log,
2245         we can actually make corrections in the generated file.  The key
2246         lies in recording in machine-readable/applicable form the desired
2247         corrections.  See --help for description and an example.
2248         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
2249         (usage): Describe it; alphabetize option descriptions.
2250         (main): Honor the new option, carefully.
2251
2252 2011-11-01  Jim Meyering  <meyering@redhat.com>
2253
2254         gitlog-to-changelog: avoid an infloop
2255         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
2256         that ends up being empty.
2257
2258 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2259
2260         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
2261         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
2262         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
2263         contains (possibly-quoted) backslashes.  This should avoid
2264         all-too-common shell bugs if COMPLICATED contains backslashes in
2265         the "wrong" places.  Reported by David Evans in
2266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
2267         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
2268         because we want ASCII ranges.  Is there some reason we don't use
2269         the C locale everywhere in this script?
2270         (func_module, top level): Avoid unwanted pathname expansion when
2271         $repo_url_prefix or $repo_url_suffix_repl contain shell
2272         metacharacters like '?' and '*'.
2273
2274 2011-11-01  Bruno Haible  <bruno@clisp.org>
2275
2276         fchownat: Improve description.
2277         * modules/fchownat (Description): Add link to function.
2278
2279 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2280
2281         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
2282         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
2283         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
2284         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
2285
2286 2011-11-01  Bruno Haible  <bruno@clisp.org>
2287
2288         alignof: Avoid collision with stdalign module.
2289         * lib/alignof.h (alignof): Remove macro.
2290         * NEWS: Mention the change.
2291         Reported by Paul Eggert.
2292
2293 2011-11-01  Bruno Haible  <bruno@clisp.org>
2294
2295         New module 'fchownat', split off from module 'openat'.
2296         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
2297         defined.
2298         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
2299         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
2300         invoke gl_FUNC_FCHOWNAT.
2301         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
2302         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
2303         * modules/fchownat: New file, extracted from modules/openat.
2304         * modules/openat (Files): Remove lib/fchownat.c.
2305         (Depends-on): Remove lchown.
2306         (configure.ac): Remove AC_LIBOBJ of fchownat.
2307         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
2308         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
2309         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
2310         (Depends-on): Remove mgetgroups, usleep, stat-time.
2311         (configure.ac): Remove test for getegid.
2312         (Makefile.am): Remove rules for test-fchownat.
2313         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
2314         of module 'openat'.
2315         * NEWS: Mention the change.
2316
2317 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2318
2319         stdalign: port better to MSVC and to Sun C 5.11
2320         This fixes some of the problems reported by Bruno Haible in
2321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
2322         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
2323         shortcomings of MSVC and of Sun C 5.11.
2324         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
2325         around __declspec arg.
2326         * modules/stdalign-tests (Files): Add tests/macros.h.
2327         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
2328         Include macros.h, for ASSERT.
2329         (DECLARE_ALIGNED): Remove.
2330         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
2331         to catch bug), and to 1 if not (simplifies the rest of the code).
2332         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
2333         (CHECK_AUTO): Remove.
2334         (CHECK_ALIGNED): Check only the alignment of the static vars,
2335         since auto var alignment isn't supported by Sun C 5.11.
2336         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
2337         ASSERT failures are easier to diagnose.
2338
2339 2011-10-31  Bruno Haible  <bruno@clisp.org>
2340
2341         doc about some IRIX 5.3 problems.
2342         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
2343         on IRIX 5.3.
2344         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
2345         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
2346         5.3.
2347         * doc/posix-functions/grantpt.texi: Likewise.
2348         * doc/posix-functions/unlockpt.texi: Likewise.
2349         * doc/posix-functions/lgamma.texi: Likewise.
2350         * doc/posix-functions/nextafter.texi: Likewise.
2351         * doc/posix-functions/remainder.texi: Likewise.
2352         * doc/posix-functions/select.texi: Mention misplaced declaration on
2353         IRIX 5.3.
2354         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2355
2356 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
2357
2358         gitlog-to-changelog: fix git-log invocation.
2359         git-log mishandles date strings before 1970-01-01 UTC, and there is
2360         no use to specify --since=1970-01-01 by default anyway.
2361         * build-aux/gitlog-to-changelog: By default, when no --since option
2362         was given, do not specify explicit --since option to git-log.
2363
2364 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
2365
2366         gitlog-to-changelog: new option --append-dot.
2367         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
2368         first non-blank line of each commit message terminated with a dot.
2369
2370 2011-10-30  Bruno Haible  <bruno@clisp.org>
2371
2372         ffsl, ffsll: Avoid compilation error due to 'restrict'.
2373         * lib/ffsl.h: Include <config.h>.
2374         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
2375
2376 2011-10-30  Jim Meyering  <meyering@redhat.com>
2377
2378         GNUmakefile: reenable "make syntax-check" for most projects
2379         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
2380         build-aux variable", "syntax-check" would do nothing but succeed with
2381         the "No version control files detected..." diagnostic (unless you
2382         happened to override _build-aux via cfg.mk).
2383         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
2384         to precede inclusion of maint.mk.  Otherwise, these variables would
2385         be used undefined in any project that does not override the default.
2386
2387 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
2388
2389         gitlog-to-changelog: treat a message with only blank lines as empty.
2390         * build-aux/gitlog-to-changelog: Move the code that removes leading and
2391         trailing blank lines before the code that issues a warning about an
2392         empty commit message.
2393
2394 2011-10-30  Jim Meyering  <meyering@redhat.com>
2395
2396         test-parse-datetime.c: avoid new DST-related false positive test failure
2397         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
2398         based on the time/date we'll convert, not the current time.
2399         Otherwise, the moment we cross a DST boundary like today's in
2400         Europe, (CEST to CET), that offset ends up being one hour off.
2401
2402 2011-10-27  Bruno Haible  <bruno@clisp.org>
2403
2404         fstat: Tweak documentation.
2405         * modules/fstat (Description): More precise description.
2406
2407 2011-10-27  Bruno Haible  <bruno@clisp.org>
2408
2409         Update documentation regarding 'largefile' module.
2410         * doc/posix-functions/fstat.texi: Tweak wording.
2411         * doc/posix-functions/opendir.texi: Mention that the module fixes the
2412         problems with huge directories and/or small ino_t types.
2413         * doc/posix-functions/readdir.texi: Likewise.
2414         * doc/posix-functions/rewinddir.texi: Likewise.
2415
2416 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
2417
2418         maint.mk: don't maintain a second build-aux variable.
2419         * maint.mk (build_aux): Removed.  The maintainer-makefile module
2420         depends on GNUmakefile, which already maintains a cfg.mk
2421         overridable $(_build-aux) for projects with a non-standard
2422         build-aux directory location, although without the $(srcdir)
2423         prefix.  Use that variable consistently instead of introducing a
2424         second one.  Adjust all call sites.
2425
2426 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2427
2428         Add stdalign module and use it in other modules.
2429         This is based on a previous proposal by Bruno Haible
2430         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
2431
2432         stdalign: new module
2433         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
2434         * modules/stdalign: New files.
2435         * MODULES.html.sh (c1x_core_properties): Add stdalign.
2436         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
2437
2438         stdalign-tests: new module
2439         * modules/stdalign-tests, tests/test-stdalign.c: New files.
2440
2441         argp: use stdalign
2442         * lib/argp-parse.c: Include <stdalign.h>.
2443         (alignof): Remove.
2444         * modules/argp (Depends-on): Add stdalign.
2445
2446         crypto libraries: use stdalign
2447         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2448         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
2449         Do not include <stdlib.h> twice, in md4.c.
2450         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
2451         because we are accessing a pointer's bit-pattern, not a size.
2452         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
2453         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
2454         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2455         * modules/crypto/sha512: Likewise.
2456
2457         sys_socket: use stdalign, not alignof
2458         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
2459         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
2460
2461 2011-10-27  Bruno Haible  <bruno@clisp.org>
2462
2463         raise test: Avoid a test failure on Linux/MIPS.
2464         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
2465         because 99 is a valid signal on Linux/MIPS.
2466
2467 2011-10-27  Bruno Haible  <bruno@clisp.org>
2468
2469         nonblocking tests: Fix test failure on Linux/MIPS.
2470         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
2471         Set to 270000.
2472
2473 2011-10-27  Bruno Haible  <bruno@clisp.org>
2474
2475         utimensat: Work around problem on Linux/hppa.
2476         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
2477         values.
2478         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
2479
2480 2011-10-25  Jim Meyering  <meyering@redhat.com>
2481
2482         maint.mk: fix a bug in sc_prohibit_stddef_without_use
2483         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
2484         after symbols like NULL, size_t, etc.
2485         Reported by Alfred M. Szmidt.
2486
2487         maint.mk: exempt ENODATA from a syntax-check rule
2488         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
2489         from the sc_prohibit_always-defined_macros syntax-check rule.
2490         Add a comment.  See this for more details:
2491         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
2492
2493 2011-10-23  Jim Meyering  <meyering@redhat.com>
2494
2495         fts: close parent dir FD before returning from post-traversal fts_read
2496         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
2497         unlink A, even though an FD open on A remained.  This is suboptimal
2498         (holding a file descriptor open longer than needed), but otherwise not
2499         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
2500         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
2501         that represents a real problem: it causes the removal of A to fail
2502         with e.g., "rm: cannot remove `A': Device or resource busy"
2503
2504         fts visits each directory twice and keeps a cache (fts_fd_ring) of
2505         directory file descriptors.  After completing the final, FTS_DP,
2506         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
2507         cache, but then proceeded to add a new FD to it via the subsequent
2508         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
2509         final file descriptor would be closed only via fts_close's call to
2510         fd_ring_clear.  Now, it is usually closed earlier, via the final
2511         FTS_DP-returning fts_read call.
2512         * lib/fts.c (restore_initial_cwd): New function, converted from
2513         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
2514         Update callers.
2515         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
2516         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
2517
2518 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
2519             Bruno Haible  <bruno@clisp.org>
2520             Jim Meyering  <jim@meyering.net>
2521
2522         readme-release: improve safety of release prep instructions.
2523         * README-release: Don't git pull all branches when only master
2524         is needed for the release process.
2525         Run make maintainer-clean before changing trees and merging.
2526         Don't try to run ./configure right after git pull in case files
2527         that influence the bootstrap process have changed, move the
2528         ./configure step to after running ./bootstrap.
2529         Don't bootstrap "one last time"... it's the first time!
2530
2531 2011-10-22  Bruno Haible  <bruno@clisp.org>
2532
2533         errno, strerror-override: Support for MSVC 10.
2534         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
2535         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
2536         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
2537         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
2538         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
2539         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
2540         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
2541         Assign values compatible with MSVC 10.
2542         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
2543         New macros.
2544         (GNULIB_defined_EWINSOCK): New macro.
2545         * lib/strerror-override.c (strerror_override): Update accordingly.
2546         * lib/strerror-override.h: Likewise.
2547         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
2548         longer equal to the corresponding errno value.
2549         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2550
2551 2011-10-22  Bruno Haible  <bruno@clisp.org>
2552
2553         perror: Recognize when test program crashes.
2554         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
2555         strerror, set gl_cv_func_perror_works to no.
2556         Reported by Daniel Richard G. <skunk@iskunk.org>.
2557
2558         perror: Fix indentation.
2559         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
2560
2561 2011-10-22  Bruno Haible  <bruno@clisp.org>
2562
2563         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
2564         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
2565         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
2566         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
2567         functions, not as a macro.
2568         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
2569         macros.
2570         (isfinite, isinf, isnan, signbit): Check overloaded functions and
2571         absence of macro.
2572         Suggested by Eric Blake.
2573         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2574
2575 2011-10-21  Bruno Haible  <bruno@clisp.org>
2576
2577         relocatable-prog-wrapper: Don't leave object files behind.
2578         * build-aux/install-reloc: Re-synchronize list of .o files to be
2579         removed with list of compilation units.
2580
2581 2011-10-20  Bruno Haible  <bruno@clisp.org>
2582
2583         openpty, posix_openpt: Remove code duplication.
2584         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
2585         * lib/openpty.c: Include <stdlib.h>.
2586         (openpty): Use posix_openpt on all platforms except IRIX.
2587         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
2588
2589 2011-10-20  Bruno Haible  <bruno@clisp.org>
2590
2591         unlockpt: Detect invalid argument.
2592         * lib/unlockpt.c: Include <fcntl.h>.
2593         (unlockpt): Check whether fd is valid, using fcntl().
2594         * modules/unlockpt (Depends-on): Add fcntl-h.
2595
2596 2011-10-20  Bruno Haible  <bruno@clisp.org>
2597
2598         openpty: Avoid compilation error on AIX 6.1.
2599         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
2600
2601 2011-10-20  Bruno Haible  <bruno@clisp.org>
2602
2603         posix_openpt: Support for OpenBSD.
2604         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
2605         (posix_openpt) [OpenBSD]: New code.
2606         * lib/grantpt.c: Include <fcntl.h>.
2607         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
2608         * modules/grantpt (Depends-on): Add fcntl-h.
2609
2610 2011-10-20  Bruno Haible  <bruno@clisp.org>
2611
2612         posix_openpt test: Coding style.
2613         * tests/test-posix_openpt.c: Use GNU coding style.
2614
2615 2011-10-20  Bruno Haible  <bruno@clisp.org>
2616
2617         grantpt: Support --avoid=pt_chown.
2618         * modules/grantpt (Files): Add lib/pty-private.h.
2619
2620 2011-10-20  Bruno Haible  <bruno@clisp.org>
2621
2622         posix_openpt: Fix autoconf macro.
2623         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
2624         unneeded check for _getpty.
2625
2626 2011-10-20  Bruno Haible  <bruno@clisp.org>
2627
2628         openpty: Update comments.
2629         * lib/openpty.c: Add comments about Minix.
2630
2631 2011-10-19  Eric Blake  <eblake@redhat.com>
2632
2633         openpty: relax license
2634         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
2635
2636         pt_chown: use configmake to simplify build
2637         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
2638
2639         ptsname and others: relax license
2640         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
2641         * modules/unlockpt (License): Likewise.
2642         * modules/pt_chown (License): Likewise.
2643         * modules/ptsname (License): Likewise.
2644         * modules/ttyname_r (License): Likewise.
2645
2646 2011-10-19  Jim Meyering  <meyering@redhat.com>
2647
2648         posix_openpt: remove spurious #endif
2649         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
2650
2651 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
2652
2653         maint.mk: Respect $(build_aux) in web-manual rule.
2654         * top/maint.mk (web-manual): Find gen-announce script in user's
2655         $(build_aux) directory instead of hard-coding 'build-aux'.
2656
2657 2011-10-19  Bruno Haible  <bruno@clisp.org>
2658
2659         posix_openpt: Fix compilation error.
2660         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
2661         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
2662         Mention the openpty module as an alternative.
2663
2664 2011-10-19  Bruno Haible  <bruno@clisp.org>
2665
2666         Support for old NeXTstep 3.3 frexp().
2667         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
2668         execution time of the test to 5 seconds.
2669         Reported by Daniel Richard G. <skunk@iskunk.org>.
2670
2671 2011-10-19  Bruno Haible  <bruno@clisp.org>
2672
2673         Support for old NeXTstep 3.3 sed.
2674         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
2675         part, use /.../, not \|...|. Escape periods in the header file name.
2676         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2677         Reported by Daniel Richard G. <skunk@iskunk.org>.
2678
2679 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2680
2681         Support for old NeXTstep 3.3 gcc.
2682         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
2683         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
2684         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
2685         * lib/spawn.in.h (_Restrict_arr_): Likewise.
2686         * lib/regex.h (_Restrict_arr_): Likewise.
2687         * lib/regex_internal.h (re_token_t): Likewise.
2688         * lib/regexec.c (check_node_accept_bytes): Likewise.
2689         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
2690
2691 2011-10-18  Eric Blake  <eblake@redhat.com>
2692
2693         posix_openpt: new module
2694         * modules/posix_openpt: New module.
2695         * m4/posix_openpt.m4: New file.
2696         * lib/posix_openpt.c: Likewise.
2697         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2698         (gl_STDLIB_H_DEFAULTS): Set defaults.
2699         * modules/stdlib (Makefile.am): Substitute macros.
2700         * lib/stdlib.in.h (posix_openpt): Declare.
2701         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
2702         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
2703         * modules/posix_openpt-tests: New test module.
2704         * tests/test-posix_openpt.c: New test.
2705
2706 2011-10-15  Bruno Haible  <bruno@clisp.org>
2707
2708         xstrtoll: Fix compilation failure.
2709         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
2710         from lib/strtol.c.
2711         * doc/posix-headers/limits.texi: Mention missing numerical limits on
2712         some platforms.
2713         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2714
2715 2011-10-15  Bruno Haible  <bruno@clisp.org>
2716
2717         vasnprintf: Optimize bit search operation.
2718         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
2719         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
2720         gl_DOUBLE_EXPONENT_LOCATION.
2721         * modules/vasnprintf (Files): Add m4/exponentd.m4.
2722         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2723         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2724         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2725         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2726         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2727         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2728         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2729         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
2730
2731 2011-10-15  Bruno Haible  <bruno@clisp.org>
2732
2733         vasnprintf: Fix comments.
2734         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
2735
2736 2011-10-14  Bruno Haible  <bruno@clisp.org>
2737
2738         Tests for module 'integer_length_ll'.
2739         * modules/integer_length_ll-tests: New file.
2740         * tests/test-integer_length_ll.c: New file.
2741
2742         New module 'integer_length_ll'.
2743         * lib/integer_length_ll.c: New file.
2744         * modules/integer_length_ll: New file.
2745
2746 2011-10-14  Bruno Haible  <bruno@clisp.org>
2747
2748         Tests for module 'integer_length_l'.
2749         * modules/integer_length_l-tests: New file.
2750         * tests/test-integer_length_l.c: New file.
2751
2752         New module 'integer_length_l'.
2753         * lib/integer_length_l.c: New file.
2754         * modules/integer_length_l: New file.
2755
2756 2011-10-14  Bruno Haible  <bruno@clisp.org>
2757
2758         Tests for module 'integer_length'.
2759         * modules/integer_length-tests: New file.
2760         * tests/test-integer_length.c: New file.
2761
2762         New module 'integer_length'.
2763         * lib/integer_length.h: New file.
2764         * lib/integer_length.c: New file.
2765         * modules/integer_length: New file.
2766
2767 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2768
2769         popen: Fix dependency conditions.
2770         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
2771
2772 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2773
2774         perror: Fix autoconf test.
2775         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
2776         <stdlib.h> and <string.h>.
2777
2778 2011-10-14  Bruno Haible  <bruno@clisp.org>
2779
2780         ffsl: Optimize on 64-bit platforms.
2781         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
2782         unrolling.
2783
2784 2011-10-13  Bruno Haible  <bruno@clisp.org>
2785
2786         ffsl: Optimize on 32-bit platforms.
2787         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
2788         use ffs() without a loop.
2789
2790         ffsl, ffsll: Optimize for GCC.
2791         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
2792         * lib/ffsl.c (GCC_BUILTIN): New macro.
2793         * lib/ffsll.c (GCC_BUILTIN): Likewise.
2794
2795 2011-10-13  Bruno Haible  <bruno@clisp.org>
2796
2797         ffs, bcopy, memset: Support symbol renaming via config.h.
2798         * lib/ffs.c: Include <config.h>.
2799         * lib/bcopy.c: Likewise.
2800         * lib/memset.c: Likewise.
2801
2802 2011-10-10  Bruno Haible  <bruno@clisp.org>
2803
2804         atanl: Simplify for platforms where 'long double' == 'double'.
2805         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2806         alternative implementation.
2807         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2808         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2809         * modules/atanl (Depends-on): Add atan. Update conditions.
2810
2811 2011-10-10  Bruno Haible  <bruno@clisp.org>
2812
2813         acosl: Simplify for platforms where 'long double' == 'double'.
2814         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2815         alternative implementation.
2816         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2817         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2818         * modules/acosl (Depends-on): Add acos. Update conditions.
2819
2820 2011-10-10  Bruno Haible  <bruno@clisp.org>
2821
2822         asinl: Simplify for platforms where 'long double' == 'double'.
2823         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2824         alternative implementation.
2825         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2826         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2827         * modules/asinl (Depends-on): Add asin. Update conditions.
2828
2829 2011-10-10  Bruno Haible  <bruno@clisp.org>
2830
2831         tanl: Simplify for platforms where 'long double' == 'double'.
2832         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2833         implementation.
2834         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2835         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2836         * modules/tanl (Depends-on): Add tan. Update conditions.
2837         (configure.ac): Don't compile trigl.c if
2838         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2839
2840 2011-10-10  Bruno Haible  <bruno@clisp.org>
2841
2842         cosl: Simplify for platforms where 'long double' == 'double'.
2843         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2844         implementation.
2845         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2846         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2847         * modules/cosl (Depends-on): Add cos. Update conditions.
2848         (configure.ac): Don't compile sincosl.c and trigl.c if
2849         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2850
2851 2011-10-10  Bruno Haible  <bruno@clisp.org>
2852
2853         sinl: Simplify for platforms where 'long double' == 'double'.
2854         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2855         implementation.
2856         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2857         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2858         * modules/sinl (Depends-on): Add sin. Update conditions.
2859         (configure.ac): Don't compile sincosl.c and trigl.c if
2860         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2861
2862 2011-10-10  Bruno Haible  <bruno@clisp.org>
2863
2864         logl: Simplify for platforms where 'long double' == 'double'.
2865         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2866         implementation.
2867         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2868         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2869         * modules/logl (Depends-on): Add log. Update conditions.
2870
2871 2011-10-10  Bruno Haible  <bruno@clisp.org>
2872
2873         expl: Simplify for platforms where 'long double' == 'double'.
2874         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2875         implementation.
2876         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2877         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2878         * modules/expl (Depends-on): Add exp. Update conditions.
2879
2880 2011-10-10  Bruno Haible  <bruno@clisp.org>
2881
2882         sqrtl: Simplify for platforms where 'long double' == 'double'.
2883         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2884         alternative implementation.
2885         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2886         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2887         * modules/sqrtl (Depends-on): Update conditions.
2888
2889 2011-10-10  Bruno Haible  <bruno@clisp.org>
2890
2891         ldexpl: Simplify for platforms where 'long double' == 'double'.
2892         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2893         alternative implementation.
2894         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2895         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2896         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
2897
2898 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
2899
2900         ffsll: set correct witness
2901         * modules/ffsll (configure.ac): Fix typo.
2902
2903 2011-10-10  Bruno Haible  <bruno@clisp.org>
2904
2905         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
2906         * lib/printf-frexpl.c: Include <config.h>.
2907         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2908         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
2909         second time.
2910         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
2911         gl_LONG_DOUBLE_VS_DOUBLE.
2912         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
2913         conditions.
2914
2915 2011-10-10  Bruno Haible  <bruno@clisp.org>
2916
2917         frexpl: Simplify for platforms where 'long double' == 'double'.
2918         * lib/frexpl.c: Include <config.h>.
2919         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2920         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2921         time.
2922         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2923         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2924         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
2925         * modules/frexpl (Depends-on): Add frexp. Update conditions.
2926         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
2927         conditions.
2928
2929 2011-10-10  Jim Meyering  <meyering@redhat.com>
2930
2931         test-renameat: don't leave behind a temporary file
2932         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
2933           ERROR: files left in build directory after distclean:
2934           ./gltests/test-renameat.too
2935           make[1]: *** [distcleancheck] Error 1
2936         Reported by Tom G. Christensen.
2937
2938 2011-10-09  Bruno Haible  <bruno@clisp.org>
2939
2940         rint: Determine RINT_LIBM correctly on AIX 7.
2941         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
2942         directly, not only through a function pointer. Also accept an optional
2943         4th argument with extra code.
2944         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
2945         rintf() call by gcc when optimizing.
2946
2947         mathfunc.m4: Refactor.
2948         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
2949         m4 variable.
2950
2951 2011-10-09  Bruno Haible  <bruno@clisp.org>
2952
2953         rintl: Simplify for platforms where 'long double' == 'double'.
2954         * lib/rintl.c: Include <config.h>.
2955         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2956         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2957         time.
2958         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2959         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2960         * modules/rintl (Depends-on): Add rint. Update conditions.
2961
2962 2011-10-09  Bruno Haible  <bruno@clisp.org>
2963
2964         roundl: Simplify for platforms where 'long double' == 'double'.
2965         * lib/roundl.c: Include <config.h>.
2966         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2967         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2968         time.
2969         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2970         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2971         * modules/roundl (Depends-on): Add round. Update conditions.
2972
2973 2011-10-09  Bruno Haible  <bruno@clisp.org>
2974
2975         truncl: Simplify for platforms where 'long double' == 'double'.
2976         * lib/truncl.c: Include <config.h>.
2977         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2978         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2979         time.
2980         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2981         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2982         * modules/truncl (Depends-on): Add trunc. Update conditions.
2983
2984 2011-10-09  Bruno Haible  <bruno@clisp.org>
2985
2986         ceill: Simplify for platforms where 'long double' == 'double'.
2987         * lib/ceill.c: Include <config.h>.
2988         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2989         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2990         time.
2991         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2992         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2993         * modules/ceill (Depends-on): Add ceil. Update conditions.
2994
2995 2011-10-09  Bruno Haible  <bruno@clisp.org>
2996
2997         floorl: Simplify for platforms where 'long double' == 'double'.
2998         * lib/floorl.c: Include <config.h>.
2999         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3000         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3001         time.
3002         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3003         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3004         * modules/floorl (Depends-on): Add floor. Update conditions.
3005
3006 2011-10-09  Bruno Haible  <bruno@clisp.org>
3007
3008         rint: Fix ordering constraints.
3009         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
3010         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3011         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3012
3013 2011-10-09  Bruno Haible  <bruno@clisp.org>
3014
3015         copysignl: Simplify for platforms where 'long double' == 'double'.
3016         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3017         alternative.
3018         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3019         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3020         * modules/copysignl (Depends-on): Add copysign. Update conditions.
3021
3022 2011-10-09  Bruno Haible  <bruno@clisp.org>
3023
3024         Tests for module 'rintl'.
3025         * modules/rintl-tests: New file.
3026         * tests/test-rintl.c: New file.
3027
3028         New module 'rintl'.
3029         * lib/math.in.h (rintl): New declaration.
3030         * lib/rintl.c: New file.
3031         * m4/rintl.m4: New file.
3032         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
3033         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
3034         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
3035         * modules/rintl: New file.
3036         * tests/test-math-c++.cc: Check the declaration of rintl.
3037         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3038         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
3039         * doc/posix-functions/rintl.texi: Mention the new module.
3040
3041 2011-10-09  Bruno Haible  <bruno@clisp.org>
3042
3043         Tests for module 'rintf'.
3044         * modules/rintf-tests: New file.
3045         * tests/test-rintf.c: New file.
3046
3047         New module 'rintf'.
3048         * lib/math.in.h (rintf): New declaration.
3049         * lib/rintf.c: New file.
3050         * m4/rintf.m4: New file.
3051         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
3052         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
3053         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
3054         * modules/rintf: New file.
3055         * tests/test-math-c++.cc: Check the declaration of rintf.
3056         * doc/posix-functions/rintf.texi: Mention the new module.
3057
3058 2011-10-09  Bruno Haible  <bruno@clisp.org>
3059
3060         rint: Support for MSVC.
3061         * lib/math.in.h (rint): New declaration.
3062         * lib/rint.c: New file.
3063         * m4/rint.m4: New file.
3064         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
3065         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
3066         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
3067         * modules/rint (Description): Fix.
3068         (Files): Add lib/rint.c, m4/rint.m4.
3069         (Depends-on): Add math.
3070         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
3071         gl_MATH_MODULE_INDICATOR.
3072         * tests/test-math-c++.cc: Check the declaration of rint.
3073         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3074         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
3075         * doc/posix-functions/rint.texi: Mention the replacement provided by
3076         the module.
3077
3078         rint tests: More tests.
3079         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
3080         minus-zero.h, infinity.h, nan.h.
3081         (main): Skip the test if the current rounding mode is not standard. Add
3082         tests for negative numbers, minus zero, infinity, NaN.
3083         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
3084         tests/nan.h.
3085         (Depends-on): Add isnand-nolibm.
3086
3087 2011-10-09  Bruno Haible  <bruno@clisp.org>
3088
3089         Tests for module 'copysignl'.
3090         * modules/copysignl-tests: New file.
3091         * tests/test-copysignl.c: New file.
3092
3093         New module 'copysignl'.
3094         * lib/math.in.h (copysignl): New declaration.
3095         * lib/copysignl.c: New file.
3096         * m4/copysignl.m4: New file.
3097         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
3098         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
3099         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
3100         HAVE_COPYSIGNL.
3101         * modules/copysignl: New file.
3102         * tests/test-math-c++.cc: Check the declaration of copysignl.
3103         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3104         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
3105         * doc/posix-functions/copysignl.texi: Mention the new module.
3106
3107 2011-10-09  Bruno Haible  <bruno@clisp.org>
3108
3109         Tests for module 'copysignf'.
3110         * modules/copysignf-tests: New file.
3111         * tests/test-copysignf.c: New file.
3112
3113         New module 'copysignf'.
3114         * lib/math.in.h (copysignf): New declaration.
3115         * lib/copysignf.c: New file.
3116         * m4/copysignf.m4: New file.
3117         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
3118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
3119         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
3120         HAVE_COPYSIGNF.
3121         * modules/copysignf: New file.
3122         * tests/test-math-c++.cc: Check the declaration of copysignf.
3123         * doc/posix-functions/copysignf.texi: Mention the new module.
3124
3125 2011-10-09  Bruno Haible  <bruno@clisp.org>
3126
3127         Ensure that HAVE_* variables are set to 1 before they are set to 0.
3128         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
3129         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
3130         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3131         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
3132         gl_SIGNAL_H_DEFAULTS.
3133
3134 2011-10-09  Bruno Haible  <bruno@clisp.org>
3135
3136         poll: Make macro safer.
3137         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
3138         ac_cv_header_poll_h is not set.
3139
3140 2011-10-09  Bruno Haible  <bruno@clisp.org>
3141
3142         copysign: Provide replacement.
3143         * lib/math.in.h (copysign): New declaration.
3144         * lib/copysign.c: New file.
3145         * m4/copysign.m4: New file.
3146         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
3147         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
3148         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
3149         HAVE_COPYSIGN.
3150         * modules/copysign (Description): Clarify.
3151         (Files): Add lib/copysign.c, m4/copysign.m4.
3152         (Depends-on): Add math, signbit.
3153         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
3154         gl_MATH_MODULE_INDICATOR.
3155         * tests/test-math-c++.cc: Check the declaration of copysign.
3156         * doc/posix-functions/copysign.texi: Mention the effects of the module
3157         on Minix and MSVC.
3158
3159 2011-10-09  Bruno Haible  <bruno@clisp.org>
3160
3161         isinf: Ensure macro on AIX 5.1.
3162         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
3163         macro.
3164         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
3165
3166 2011-10-09  Bruno Haible  <bruno@clisp.org>
3167
3168         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
3169         * modules/snprintf-posix-tests (configure.ac): Require
3170         gl_LONG_DOUBLE_VS_DOUBLE.
3171         * modules/sprintf-posix-tests (configure.ac): Likewise.
3172         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
3173         * modules/vasprintf-posix-tests (configure.ac): Likewise.
3174         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
3175         * modules/vsprintf-posix-tests (configure.ac): Likewise.
3176         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
3177         tests on platforms where 'long double' is the same as 'double'.
3178         * tests/test-sprintf-posix.h (test_function): Likewise.
3179         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3180         * tests/test-vasprintf-posix.c (test_function): Likewise.
3181
3182         *printf: Fix for platforms where 'long double' == 'double'.
3183         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
3184         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
3185         * modules/dprintf-posix (Files): Add m4/math_h.m4.
3186         * modules/fprintf-posix (Files): Likewise.
3187         * modules/obstack-printf-posix (Files): Likewise.
3188         * modules/snprintf-posix (Files): Likewise.
3189         * modules/sprintf-posix (Files): Likewise.
3190         * modules/vasnprintf (Files): Likewise.
3191         * modules/vasnprintf-posix (Files): Likewise.
3192         * modules/vasprintf-posix (Files): Likewise.
3193         * modules/vdprintf-posix (Files): Likewise.
3194         * modules/vfprintf-posix (Files): Likewise.
3195         * modules/vsnprintf-posix (Files): Likewise.
3196         * modules/vsprintf-posix (Files): Likewise.
3197         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3198         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3199         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3200         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3201         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3202         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3203         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3204
3205         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
3206         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
3207         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3208         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
3209         'long double'.
3210         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
3211
3212         isinf: Fix for platforms where 'long double' == 'double'.
3213         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3214         Don't blindly assume 80-bit 'long double'.
3215
3216         isfinite: Fix for platforms where 'long double' == 'double'.
3217         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3218         Don't blindly assume 80-bit 'long double'.
3219
3220         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
3221         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
3222         * modules/isfinite-tests (configure.ac): Require
3223         gl_LONG_DOUBLE_VS_DOUBLE.
3224         * modules/isinf-tests (configure.ac): Likewise.
3225         * modules/isnan-tests (configure.ac): Likewise.
3226         * modules/isnanl-tests (configure.ac): Likewise.
3227         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
3228         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
3229         tests on platforms where 'long double' is the same as 'double'.
3230         * tests/test-isinf.c (test_isinfl): Likewise.
3231         * tests/test-isnan.c (test_long_double): Likewise.
3232         * tests/test-isnanl.h (main): Likewise.
3233
3234 2011-10-08  Bruno Haible  <bruno@clisp.org>
3235
3236         Tests for module 'tanhf'.
3237         * modules/tanhf-tests: New file.
3238         * tests/test-tanhf.c: New file.
3239
3240         New module 'tanhf'.
3241         * lib/math.in.h (tanhf): New declaration.
3242         * lib/tanhf.c: New file.
3243         * m4/tanhf.m4: New file.
3244         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
3245         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
3246         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
3247         * modules/tanhf: New file.
3248         * tests/test-math-c++.cc: Check the declaration of tanhf.
3249         * doc/posix-functions/tanhf.texi: Mention the new module.
3250
3251         tanh: Use a .m4 file.
3252         * m4/tanh.m4: New file.
3253         * modules/tanh (Files): Add it.
3254         (configure.ac): Just invoke gl_FUNC_TANH.
3255
3256 2011-10-08  Bruno Haible  <bruno@clisp.org>
3257
3258         Tests for module 'coshf'.
3259         * modules/coshf-tests: New file.
3260         * tests/test-coshf.c: New file.
3261
3262         New module 'coshf'.
3263         * lib/math.in.h (coshf): New declaration.
3264         * lib/coshf.c: New file.
3265         * m4/coshf.m4: New file.
3266         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
3267         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
3268         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
3269         * modules/coshf: New file.
3270         * tests/test-math-c++.cc: Check the declaration of coshf.
3271         * doc/posix-functions/coshf.texi: Mention the new module.
3272
3273         cosh: Use a .m4 file.
3274         * m4/cosh.m4: New file.
3275         * modules/cosh (Files): Add it.
3276         (configure.ac): Just invoke gl_FUNC_COSH.
3277
3278 2011-10-08  Bruno Haible  <bruno@clisp.org>
3279
3280         Tests for module 'sinhf'.
3281         * modules/sinhf-tests: New file.
3282         * tests/test-sinhf.c: New file.
3283
3284         New module 'sinhf'.
3285         * lib/math.in.h (sinhf): New declaration.
3286         * lib/sinhf.c: New file.
3287         * m4/sinhf.m4: New file.
3288         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
3289         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
3290         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
3291         * modules/sinhf: New file.
3292         * tests/test-math-c++.cc: Check the declaration of sinhf.
3293         * doc/posix-functions/sinhf.texi: Mention the new module.
3294
3295         sinh: Use a .m4 file.
3296         * m4/sinh.m4: New file.
3297         * modules/sinh (Files): Add it.
3298         (configure.ac): Just invoke gl_FUNC_SINH.
3299
3300 2011-10-08  Bruno Haible  <bruno@clisp.org>
3301
3302         Tests for module 'atan2f'.
3303         * modules/atan2f-tests: New file.
3304         * tests/test-atan2f.c: New file.
3305
3306         New module 'atan2f'.
3307         * lib/math.in.h (atan2f): New declaration.
3308         * lib/atan2f.c: New file.
3309         * m4/atan2f.m4: New file.
3310         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
3311         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
3312         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
3313         * modules/atan2f: New file.
3314         * tests/test-math-c++.cc: Check the declaration of atan2f.
3315         * doc/posix-functions/atan2f.texi: Mention the new module.
3316
3317         atan2: Use a .m4 file.
3318         * m4/atan2.m4: New file.
3319         * modules/atan2 (Files): Add it.
3320         (configure.ac): Just invoke gl_FUNC_ATAN2.
3321
3322 2011-10-08  Bruno Haible  <bruno@clisp.org>
3323
3324         Tests for module 'atanf'.
3325         * modules/atanf-tests: New file.
3326         * tests/test-atanf.c: New file.
3327
3328         New module 'atanf'.
3329         * lib/math.in.h (atanf): New declaration.
3330         * lib/atanf.c: New file.
3331         * m4/atanf.m4: New file.
3332         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
3333         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
3334         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
3335         * modules/atanf: New file.
3336         * tests/test-math-c++.cc: Check the declaration of atanf.
3337         * doc/posix-functions/atanf.texi: Mention the new module.
3338
3339         atan: Use a .m4 file.
3340         * m4/atan.m4: New file.
3341         * modules/atan (Files): Add it.
3342         (configure.ac): Just invoke gl_FUNC_ATAN.
3343
3344 2011-10-08  Bruno Haible  <bruno@clisp.org>
3345
3346         Tests for module 'acosf'.
3347         * modules/acosf-tests: New file.
3348         * tests/test-acosf.c: New file.
3349
3350         New module 'acosf'.
3351         * lib/math.in.h (acosf): New declaration.
3352         * lib/acosf.c: New file.
3353         * m4/acosf.m4: New file.
3354         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
3355         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
3356         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
3357         * modules/acosf: New file.
3358         * tests/test-math-c++.cc: Check the declaration of acosf.
3359         * doc/posix-functions/acosf.texi: Mention the new module.
3360
3361         acos: Use a .m4 file.
3362         * m4/acos.m4: New file.
3363         * modules/acos (Files): Add it.
3364         (configure.ac): Just invoke gl_FUNC_ACOS.
3365
3366 2011-10-08  Bruno Haible  <bruno@clisp.org>
3367
3368         Tests for module 'asinf'.
3369         * modules/asinf-tests: New file.
3370         * tests/test-asinf.c: New file.
3371
3372         New module 'asinf'.
3373         * lib/math.in.h (asinf): New declaration.
3374         * lib/asinf.c: New file.
3375         * m4/asinf.m4: New file.
3376         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
3377         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
3378         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
3379         * modules/asinf: New file.
3380         * tests/test-math-c++.cc: Check the declaration of asinf.
3381         * doc/posix-functions/asinf.texi: Mention the new module.
3382
3383         asin: Use a .m4 file.
3384         * m4/asin.m4: New file.
3385         * modules/asin (Files): Add it.
3386         (configure.ac): Just invoke gl_FUNC_ASIN.
3387
3388 2011-10-08  Bruno Haible  <bruno@clisp.org>
3389
3390         Tests for module 'tanf'.
3391         * modules/tanf-tests: New file.
3392         * tests/test-tanf.c: New file.
3393
3394         New module 'tanf'.
3395         * lib/math.in.h (tanf): New declaration.
3396         * lib/tanf.c: New file.
3397         * m4/tanf.m4: New file.
3398         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
3399         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
3400         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
3401         * modules/tanf: New file.
3402         * tests/test-math-c++.cc: Check the declaration of tanf.
3403         * doc/posix-functions/tanf.texi: Mention the new module.
3404
3405         tan: Use a .m4 file.
3406         * m4/tan.m4: New file.
3407         * modules/tan (Files): Add it.
3408         (configure.ac): Just invoke gl_FUNC_TAN.
3409
3410 2011-10-08  Bruno Haible  <bruno@clisp.org>
3411
3412         Tests for module 'cosf'.
3413         * modules/cosf-tests: New file.
3414         * tests/test-cosf.c: New file.
3415
3416         New module 'cosf'.
3417         * lib/math.in.h (cosf): New declaration.
3418         * lib/cosf.c: New file.
3419         * m4/cosf.m4: New file.
3420         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
3421         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
3422         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
3423         * modules/cosf: New file.
3424         * tests/test-math-c++.cc: Check the declaration of cosf.
3425         * doc/posix-functions/cosf.texi: Mention the new module.
3426
3427         cos: Use a .m4 file.
3428         * m4/cos.m4: New file.
3429         * modules/cos (Files): Add it.
3430         (configure.ac): Just invoke gl_FUNC_COS.
3431
3432 2011-10-08  Bruno Haible  <bruno@clisp.org>
3433
3434         Tests for module 'sinf'.
3435         * modules/sinf-tests: New file.
3436         * tests/test-sinf.c: New file.
3437
3438         New module 'sinf'.
3439         * lib/math.in.h (sinf): New declaration.
3440         * lib/sinf.c: New file.
3441         * m4/sinf.m4: New file.
3442         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
3443         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
3444         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
3445         * modules/sinf: New file.
3446         * tests/test-math-c++.cc: Check the declaration of sinf.
3447         * doc/posix-functions/sinf.texi: Mention the new module.
3448
3449         sin: Use a .m4 file.
3450         * m4/sin.m4: New file.
3451         * modules/sin (Files): Add it.
3452         (configure.ac): Just invoke gl_FUNC_SIN.
3453
3454 2011-10-08  Bruno Haible  <bruno@clisp.org>
3455
3456         Tests for module 'powf'.
3457         * modules/powf-tests: New file.
3458         * tests/test-powf.c: New file.
3459
3460         New module 'powf'.
3461         * lib/math.in.h (powf): New declaration.
3462         * lib/powf.c: New file.
3463         * m4/powf.m4: New file.
3464         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
3465         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
3466         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
3467         * modules/powf: New file.
3468         * tests/test-math-c++.cc: Check the declaration of powf.
3469         * doc/posix-functions/powf.texi: Mention the new module.
3470
3471         pow: Use a .m4 file.
3472         * m4/pow.m4: New file.
3473         * modules/pow (Files): Add it.
3474         (configure.ac): Just invoke gl_FUNC_POW.
3475
3476 2011-10-08  Bruno Haible  <bruno@clisp.org>
3477
3478         Tests for module 'log10f'.
3479         * modules/log10f-tests: New file.
3480         * tests/test-log10f.c: New file.
3481
3482         New module 'log10f'.
3483         * lib/math.in.h (log10f): New declaration.
3484         * lib/log10f.c: New file.
3485         * m4/log10f.m4: New file.
3486         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
3487         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
3488         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
3489         * modules/log10f: New file.
3490         * tests/test-math-c++.cc: Check the declaration of log10f.
3491         * doc/posix-functions/log10f.texi: Mention the new module.
3492
3493         log10: Use a .m4 file.
3494         * m4/log10.m4: New file.
3495         * modules/log10 (Files): Add it.
3496         (configure.ac): Just invoke gl_FUNC_LOG10.
3497
3498 2011-10-08  Bruno Haible  <bruno@clisp.org>
3499
3500         Tests for module 'logf'.
3501         * modules/logf-tests: New file.
3502         * tests/test-logf.c: New file.
3503
3504         New module 'logf'.
3505         * lib/math.in.h (logf): New declaration.
3506         * lib/logf.c: New file.
3507         * m4/logf.m4: New file.
3508         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
3509         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
3510         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
3511         * modules/logf: New file.
3512         * tests/test-math-c++.cc: Check the declaration of logf.
3513         * doc/posix-functions/logf.texi: Mention the new module.
3514
3515         log: Use a .m4 file.
3516         * m4/log.m4: New file.
3517         * modules/log (Files): Add it.
3518         (configure.ac): Just invoke gl_FUNC_LOG.
3519
3520 2011-10-08  Bruno Haible  <bruno@clisp.org>
3521
3522         Tests for module 'expf'.
3523         * modules/expf-tests: New file.
3524         * tests/test-expf.c: New file.
3525
3526         New module 'expf'.
3527         * lib/math.in.h (expf): New declaration.
3528         * lib/expf.c: New file.
3529         * m4/expf.m4: New file.
3530         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
3531         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
3532         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
3533         * modules/expf: New file.
3534         * tests/test-math-c++.cc: Check the declaration of expf.
3535         * doc/posix-functions/expf.texi: Mention the new module.
3536
3537         exp: Use a .m4 file.
3538         * m4/exp.m4: New file.
3539         * modules/exp (Files): Add it.
3540         (configure.ac): Just invoke gl_FUNC_EXP.
3541
3542 2011-10-08  Bruno Haible  <bruno@clisp.org>
3543
3544         Tests for module 'sqrtf'.
3545         * modules/sqrtf-tests: New file.
3546         * tests/test-sqrtf.c: New file.
3547
3548         New module 'sqrtf'.
3549         * lib/math.in.h (sqrtf): New declaration.
3550         * lib/sqrtf.c: New file.
3551         * m4/sqrtf.m4: New file.
3552         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
3553         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
3554         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
3555         * modules/sqrtf: New file.
3556         * tests/test-math-c++.cc: Check the declaration of sqrtf.
3557         * doc/posix-functions/sqrtf.texi: Mention the new module.
3558
3559 2011-10-08  Bruno Haible  <bruno@clisp.org>
3560
3561         Tests: Avoid link failures w.r.t. libintl.
3562         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
3563         $(LIBINTL).
3564         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
3565         $(LIBINTL).
3566         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
3567         against $(LIBINTL).
3568         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
3569         $(LIBINTL).
3570         * modules/openat-tests (Makefile.am): Link test-fchmodat against
3571         $(LIBINTL).
3572         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
3573
3574 2011-10-08  Bruno Haible  <bruno@clisp.org>
3575
3576         pow tests: Defeat compiler optimizations.
3577         * tests/test-pow.c (main): Assign arguments to x and y before use.
3578
3579 2011-10-08  Bruno Haible  <bruno@clisp.org>
3580
3581         gnulib-tool: Improve last commit.
3582         * gnulib-tool (func_modules_transitive_closure): Simplify code.
3583         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
3584         ignore dependencies that are not among the modules list.
3585
3586 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
3587
3588         gnulib-tool: don't follow dependencies to avoided modules
3589         This fixes a bug that is related to the previous one.
3590         * gnulib-tool (func_modules_transitive_closure)
3591         (func_emit_autoconf_snippets):
3592         Check whether a dependency is acceptable before using it.
3593         (--extract-dependencies): Report an error if --avoid is also used,
3594         since this combination of options is not yet supported.
3595
3596         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
3597         Problem reported by Peter Dyballa in
3598         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
3599         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
3600         when echoing "$condition".
3601
3602 2011-10-07  Bruno Haible  <bruno@clisp.org>
3603
3604         Fix documentation about math functions on MacOS X.
3605         * doc/posix-functions/exp2.texi: Don't say the function is missing on
3606         MacOS X 10.5.
3607         * doc/posix-functions/fdim.texi: Likewise.
3608         * doc/posix-functions/feclearexcept.texi: Likewise.
3609         * doc/posix-functions/fegetenv.texi: Likewise.
3610         * doc/posix-functions/fegetround.texi: Likewise.
3611         * doc/posix-functions/feholdexcept.texi: Likewise.
3612         * doc/posix-functions/feraiseexcept.texi: Likewise.
3613         * doc/posix-functions/fesetenv.texi: Likewise.
3614         * doc/posix-functions/fesetround.texi: Likewise.
3615         * doc/posix-functions/fetestexcept.texi: Likewise.
3616         * doc/posix-functions/feupdateenv.texi: Likewise.
3617         * doc/posix-functions/fmax.texi: Likewise.
3618         * doc/posix-functions/fmin.texi: Likewise.
3619         * doc/posix-functions/log2.texi: Likewise.
3620         * doc/posix-functions/modff.texi: Likewise.
3621         * doc/posix-functions/nan.texi: Likewise.
3622         * doc/posix-functions/nanf.texi: Likewise.
3623         * doc/posix-functions/nextafterf.texi: Likewise.
3624         * doc/posix-functions/remquo.texi: Likewise.
3625
3626 2011-10-07  Bruno Haible  <bruno@clisp.org>
3627
3628         modff: Drop assumption about library that defines modff.
3629         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
3630         AC_CHECK_FUNCS.
3631         * modules/modff (Files): Add m4/mathfunc.m4.
3632
3633 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
3634
3635         raise tests: Avoid a GCC warning.
3636         * tests/test-raise.c (handler): Use _Noreturn.
3637
3638 2011-10-07  Bruno Haible  <bruno@clisp.org>
3639
3640         Tests for module 'ldexpf'.
3641         * modules/ldexpf-tests: New file.
3642         * tests/test-ldexpf.c: New file.
3643
3644         New module 'ldexpf'.
3645         * lib/math.in.h (ldexpf): New declaration.
3646         * lib/ldexpf.c: New file.
3647         * m4/ldexpf.m4: New file.
3648         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
3649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
3650         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
3651         * modules/ldexpf: New file.
3652         * tests/test-math-c++.cc: Check the declaration of ldexpf.
3653         * doc/posix-functions/ldexpf.texi: Mention the new module.
3654
3655 2011-10-06  Bruno Haible  <bruno@clisp.org>
3656
3657         frexpf: Work around problems on IRIX and mingw.
3658         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
3659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
3660         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
3661         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
3662         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
3663         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
3664         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
3665
3666 2011-10-06  Bruno Haible  <bruno@clisp.org>
3667
3668         fabsf: Drop assumption about library that defines fabsf.
3669         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
3670         AC_CHECK_FUNCS.
3671         * modules/fabsf (Files): Add m4/mathfunc.m4.
3672
3673 2011-10-06  Bruno Haible  <bruno@clisp.org>
3674
3675         frexpf: Drop assumption about library that defines frexpf.
3676         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
3677         'int *', 'float *', 'long double *', 'float', 'long double'.
3678         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
3679         AC_CHECK_FUNCS.
3680         * modules/frexpf (Files): Add m4/mathfunc.m4.
3681
3682         Tests for module 'frexpf'.
3683         * modules/frexpf-tests: New file.
3684         * tests/test-frexpf.c: New file.
3685
3686         New module 'frexpf'.
3687         * lib/math.in.h (frexpf): New declaration.
3688         * lib/frexpf.c: New file.
3689         * m4/frexpf.m4: New file.
3690         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
3691         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
3692         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
3693         * modules/frexpf: New file.
3694         * tests/test-math-c++.cc: Check the declaration of frexpf.
3695         * doc/posix-functions/frexpf.texi: Mention the new module.
3696
3697 2011-10-06  Bruno Haible  <bruno@clisp.org>
3698
3699         math: Sort function declarations of math.in.h.
3700         * lib/math.in.h (frexp, logb): Move declarations.
3701
3702 2011-10-05  Bruno Haible  <bruno@clisp.org>
3703
3704         Tests for module 'modff'.
3705         * modules/modff-tests: New file.
3706         * tests/test-modff.c: New file.
3707
3708         New module 'modff'.
3709         * lib/math.in.h (modff): New declaration.
3710         * lib/modff.c: New file.
3711         * m4/modff.m4: New file.
3712         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
3713         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
3714         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
3715         * modules/modff: New file.
3716         * tests/test-math-c++.cc: Check the declaration of modff.
3717         * doc/posix-functions/modff.texi: Mention the new module.
3718
3719         modf tests: Make test sharper.
3720         * tests/test-modf.c (main): Strengthen upper bound.
3721
3722         modf: Use a .m4 file.
3723         * m4/modf.m4: New file.
3724         * modules/modf (Files): Add it.
3725         (configure.ac): Just invoke gl_FUNC_MODF.
3726
3727 2011-10-05  Bruno Haible  <bruno@clisp.org>
3728
3729         Tests for module 'fmodf'.
3730         * modules/fmodf-tests: New file.
3731         * tests/test-fmodf.c: New file.
3732
3733         New module 'fmodf'.
3734         * lib/math.in.h (fmodf): New declaration.
3735         * lib/fmodf.c: New file.
3736         * m4/fmodf.m4: New file.
3737         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
3738         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
3739         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
3740         * modules/fmodf: New file.
3741         * tests/test-math-c++.cc: Check the declaration of fmodf.
3742         * doc/posix-functions/fmodf.texi: Mention the new module.
3743
3744         fmod: Use a .m4 file.
3745         * m4/fmod.m4: New file.
3746         * modules/fmod (Files): Add it.
3747         (configure.ac): Just invoke gl_FUNC_FMOD.
3748
3749 2011-10-05  Bruno Haible  <bruno@clisp.org>
3750
3751         Tests for module 'fabsf'.
3752         * modules/fabsf-tests: New file.
3753         * tests/test-fabsf.c: New file.
3754
3755         New module 'fabsf'.
3756         * lib/math.in.h (fabsf): New declaration.
3757         * lib/fabsf.c: New file.
3758         * m4/fabsf.m4: New file.
3759         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
3760         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
3761         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
3762         * modules/fabsf: New file.
3763         * tests/test-math-c++.cc: Check the declaration of fabsf.
3764         * doc/posix-functions/fabsf.texi: Mention the new module.
3765
3766         fabs: Use a .m4 file.
3767         * m4/fabs.m4: New file.
3768         * modules/fabs (Files): Add it.
3769         (configure.ac): Just invoke gl_FUNC_FABS.
3770
3771 2011-10-05  Jim Meyering  <meyering@redhat.com>
3772
3773         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
3774         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
3775         ls -lL regression introduced in coreutils-8.12, it does so at the
3776         cost of an additional stat call in the common case.  Besides, now
3777         that the kernel change that prompted commit 95f7c57f has been reverted
3778         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
3779         we have no use for commit 95f7c57f, "file-has-acl: use
3780         acl_extended_file_nofollow if available".
3781
3782 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
3783
3784         file-has-acl: revert unintended change in behavior of ls -L
3785         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
3786         derived from...
3787         (file_has_acl): ...code here.  Call it.
3788         This problem was introduced with 2011-07-22 commit 95f7c57f,
3789         "file-has-acl: use acl_extended_file_nofollow if available".
3790         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
3791
3792 2011-10-03  Bruno Haible  <bruno@clisp.org>
3793
3794         poll: Avoid link errors on MSVC.
3795         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
3796         * modules/poll (Depends-on): Add sockets.
3797         (Link): New section.
3798         * NEWS: Mention the change.
3799         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
3800         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
3801         $(LIB_POLL) instead of $(LIBSOCKET).
3802
3803 2011-10-03  Bruno Haible  <bruno@clisp.org>
3804
3805         sys_select tests: Fix link error on MSVC 9.
3806         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
3807         with $(LIB_SELECT) instead of $(LIBSOCKET).
3808
3809 2011-10-03  Bruno Haible  <bruno@clisp.org>
3810
3811         sys_select: Fix compilation error on mingw.
3812         * lib/sys_select.in.h: On native Windows, include <io.h>.
3813
3814 2011-10-03  Bruno Haible  <bruno@clisp.org>
3815
3816         wmemset: Support for MSVC.
3817         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
3818         whether wmemset() exists.
3819
3820 2011-10-03  Bruno Haible  <bruno@clisp.org>
3821
3822         wmemmove: Support for MSVC.
3823         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
3824         whether wmemmove() exists.
3825
3826 2011-10-03  Bruno Haible  <bruno@clisp.org>
3827
3828         wmemcpy: Support for MSVC.
3829         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
3830         whether wmemcpy() exists.
3831
3832 2011-10-03  Bruno Haible  <bruno@clisp.org>
3833
3834         wmemcmp: Support for MSVC.
3835         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
3836         whether wmemcmp() exists.
3837
3838 2011-10-03  Bruno Haible  <bruno@clisp.org>
3839
3840         wmemchr: Support for MSVC.
3841         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
3842         whether wmemchr() exists.
3843
3844 2011-10-03  Bruno Haible  <bruno@clisp.org>
3845
3846         glthread/*, strsignal: Support for MSVC.
3847         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
3848         including <winsock.h> on MSVC 9.
3849         * lib/glthread/lock.h: Likewise.
3850         * lib/glthread/thread.h: Likewise.
3851         * lib/glthread/tls.h: Likewise.
3852         * lib/glthread/yield.h: Likewise.
3853         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
3854         if HAVE_UNISTD_H is false.
3855         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
3856
3857 2011-10-03  Bruno Haible  <bruno@clisp.org>
3858
3859         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
3860         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
3861         Set to 100000.
3862
3863 2011-10-03  Bruno Haible  <bruno@clisp.org>
3864
3865         acl: Fix specification.
3866         * lib/file-has-acl.c (file_has_acl): Fix specification.
3867
3868 2011-10-03  Bruno Haible  <bruno@clisp.org>
3869
3870         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
3871         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
3872         (compute_curr_prefix, shared_library_fullname,
3873         find_shared_library_fullname, get_shared_library_fullname, relocate):
3874         Use it together with PIC && INSTALLDIR.
3875         Reported by <jojelino@gmail.com>
3876         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
3877
3878 2011-10-01  Jim Meyering  <meyering@redhat.com>
3879
3880         maint.mk: adjust a release-related rule not to require use of gzip
3881         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
3882         Instead, check each file in $(DIST_ARCHIVES).  This is better for
3883         projects that build only .tar.xz files.  Also fix an erroneous test.
3884
3885         test-linkat: don't leave behind a temporary file
3886         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
3887         Otherwise, coreutils' "make distcheck" would fail with this:
3888           Only in /c/cu/tests/torture/coreutils/test/\
3889             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
3890           make[2]: *** [my-distcheck] Error 1
3891
3892         float, math: add omitted file
3893         * lib/itold.c: Add file, required for yesterday's float change.
3894
3895 2011-10-01  Bruno Haible  <bruno@clisp.org>
3896
3897         isinf: Fix for OpenBSD/x86.
3898         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
3899         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
3900         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
3901
3902 2011-10-01  Bruno Haible  <bruno@clisp.org>
3903
3904         isfinite: Fix syntax error in configure test.
3905         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
3906
3907         isfinite: Fix typo.
3908         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
3909         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
3910
3911 2011-10-01  Bruno Haible  <bruno@clisp.org>
3912
3913         nonblocking tests: Fix test failure on Linux/IA-64.
3914         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
3915         Set to 270000.
3916
3917 2011-10-01  Bruno Haible  <bruno@clisp.org>
3918
3919         mkfifoat tests: Fix a test failure on mingw.
3920         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
3921         with error ENOSYS.
3922
3923 2011-09-30  Bruno Haible  <bruno@clisp.org>
3924
3925         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
3926         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
3927         'long double'. Set REPLACE_ITOLD.
3928         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
3929         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
3930         * lib/itold.c: New file.
3931         * modules/float (Files): Add lib/itold.c.
3932         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
3933         (Makefile.am): Substitute REPLACE_ITOLD.
3934         * modules/math (Depends-on): Add float.
3935         (Makefile.am): Substitute REPLACE_ITOLD.
3936         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
3937         * doc/posix-headers/math.texi: Likewise.
3938         * doc/posix-functions/logl.texi: Likewise.
3939
3940 2011-09-30  Bruno Haible  <bruno@clisp.org>
3941
3942         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
3943         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
3944         Set to 140000.
3945
3946 2011-09-30  Bruno Haible  <bruno@clisp.org>
3947
3948         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
3949         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
3950         invocation, say "right after AC_PROG_CC_STDC", not "right after
3951         AC_PROG_CC".
3952         Reported by Gary V. Vaughan <gary@gnu.org>.
3953
3954 2011-09-30  Bruno Haible  <bruno@clisp.org>
3955
3956         Centralize C99 requirement.
3957         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
3958         * modules/stdarg (configure.ac-early): Invoke it instead of
3959         AC_PROG_CC_STDC.
3960         Reported by Gary V. Vaughan and Paul Eggert.
3961
3962 2011-09-29  Bruno Haible  <bruno@clisp.org>
3963
3964         float: Fix LDBL_MAX value on Linux/PowerPC.
3965         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
3966         on Linux/PowerPC.
3967         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
3968         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
3969         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
3970         platform.
3971         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
3972
3973 2011-09-29  Bruno Haible  <bruno@clisp.org>
3974
3975         doc: Improve doc about gl_EARLY.
3976         * doc/gnulib-tool.texi (Initial import): Mention where to place an
3977         AC_PROG_CC_STDC invocation.
3978         Reported by Gary V. Vaughan <gary@gnu.org>.
3979
3980 2011-09-28  Bruno Haible  <bruno@clisp.org>
3981
3982         fgetc, fputc, fread, fwrite tests: Fix link error.
3983         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
3984         on non-MSVC platforms.
3985         * tests/test-fputc.c (main): Likewise.
3986         * tests/test-fread.c (main): Likewise.
3987         * tests/test-fwrite.c (main): Likewise.
3988         Reported by Jim Meyering.
3989
3990 2011-09-27  Bruno Haible  <bruno@clisp.org>
3991
3992         fputc, fwrite tests: Avoid test failure on MSVC.
3993         * tests/test-fgetc.c: Include msvc-inval.h.
3994         (main): Invoke gl_msvc_inval_ensure_handler.
3995         * tests/test-fputc.c: Include msvc-inval.h.
3996         (main): Invoke gl_msvc_inval_ensure_handler.
3997         * tests/test-fread.c: Include msvc-inval.h.
3998         (main): Invoke gl_msvc_inval_ensure_handler.
3999         * tests/test-fwrite.c: Include msvc-inval.h.
4000         (main): Invoke gl_msvc_inval_ensure_handler.
4001         * modules/fgetc-tests (Depends-on): Add msvc-inval.
4002         * modules/fputc-tests (Depends-on): Likewise.
4003         * modules/fread-tests (Depends-on): Likewise.
4004         * modules/fwrite-tests (Depends-on): Likewise.
4005
4006 2011-09-27  Bruno Haible  <bruno@clisp.org>
4007
4008         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
4009         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
4010         (raise): Remove older, duplicated declaration.
4011         (_gl_raise_SIGPIPE): New declaration.
4012         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
4013         (rpl_raise): Remove function.
4014         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
4015         a gnulib-defined SIGPIPE here.
4016         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
4017         'sigprocmask' has detected missing signal-blocking and the module
4018         'sigpipe' is enabled.
4019         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4020
4021 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
4022
4023         base64-tests: avoid memory leak
4024         * tests/test-base64.c (main): Plug memory leak.
4025
4026         base32: new module
4027         * modules/base32: New module.
4028         * lib/base32.c: New file.
4029         * lib/base32.h: Likewise.
4030         * m4/base32.m4: Likewise.
4031         * modules/base32-tests: New test.
4032         * tests/test-base32.c: Likewise.
4033         * MODULES.html.sh (Misc): Mention it.
4034
4035 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4036
4037         gnulib: use more-standard license notice wording
4038         * gnulib-tool (func_emit_copyright_notice): When emitting a
4039         license notice into a file, use the standard wording as suggested
4040         by the current information for GNU maintainers, except say "file"
4041         rather than "program".  The new wording gives a license version
4042         number, which addresses an issue raised by Glenn Morris in
4043         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
4044         * m4/onceonly.m4: Use that same wording here, too.
4045
4046         dup2: minor simplification
4047         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
4048         as lib/dup2.c no longer uses 'inline'.
4049
4050 2011-09-25  Bruno Haible  <bruno@clisp.org>
4051
4052         strings: Fix compilation error on MSVC.
4053         * lib/strings.in.h: Include <stddef.h> for size_t.
4054
4055 2011-09-25  Bruno Haible  <bruno@clisp.org>
4056
4057         fflush et al.: Document limitation on MSVC.
4058         * doc/posix-functions/fflush.texi: Document possible crash in handling
4059         mode other than DEFAULT_HANDLING.
4060         * doc/posix-functions/fgetc.texi: Likewise.
4061         * doc/posix-functions/fputc.texi: Likewise.
4062         * doc/posix-functions/fread.texi: Likewise.
4063         * doc/posix-functions/fwrite.texi: Likewise.
4064
4065 2011-09-25  Bruno Haible  <bruno@clisp.org>
4066
4067         msvc-inval: Allow three invalid parameter handling modes.
4068         * lib/msvc-inval.h: Don't include <stdlib.h> here.
4069         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
4070         macros.
4071         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
4072         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
4073         SANE_LIBRARY_HANDLING as a no-op.
4074         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
4075         <stdlib.h>.
4076         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
4077
4078 2011-09-25  Bruno Haible  <bruno@clisp.org>
4079
4080         msvc-inval: Make handler multithread-safe.
4081         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
4082         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
4083         declarations.
4084         (gl_msvc_inval_current): New declaration.
4085         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4086         Operate on the structure returned by gl_msvc_inval_current().
4087         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
4088         Remove varaiables.
4089         (tls_index, tls_initialized): New variables.
4090         (not_per_thread): New variable.
4091         (gl_msvc_inval_current): New function.
4092         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
4093         returned by gl_msvc_inval_current().
4094
4095 2011-09-25  Bruno Haible  <bruno@clisp.org>
4096
4097         msvc-inval: Install handler globally.
4098         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
4099         !_MSC_VER.
4100         (gl_msvc_invalid_parameter_handler): Remove declaration.
4101         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
4102         declarations.
4103         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4104         Install the handler globally, don't uninstall it.
4105         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
4106         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
4107         currently valid, call RaiseException instead.
4108         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
4109         for !_MSC_VER.
4110
4111 2011-09-25  Bruno Haible  <bruno@clisp.org>
4112
4113         strerror_r-posix: Fix for MSVC 9.
4114         * lib/strerror_r.c (local_snprintf): New function.
4115         (snprintf): Define to local_snprintf, not to _snprintf.
4116
4117 2011-09-25  Bruno Haible  <bruno@clisp.org>
4118
4119         ftruncate: Support for MSVC 9.
4120         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
4121         (chsize_nothrow): New function.
4122         (chsize): Redefine as a macro.
4123         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
4124         * modules/ftruncate (Depends-on): Add msvc-inval.
4125
4126 2011-09-25  Bruno Haible  <bruno@clisp.org>
4127
4128         New module 'fstat'.
4129         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
4130         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
4131         * lib/fchdir.c (rpl_fstat): Remove function.
4132         * m4/fstat.m4: New file.
4133         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
4134         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
4135         declared.
4136         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
4137         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
4138         * modules/fstat: New file.
4139         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
4140         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
4141         is set.
4142         * doc/posix-functions/fstat.texi: Mention the new module and the
4143         problem on MSVC.
4144         * NEWS: Mention the change.
4145         * modules/acl (Depends-on): Add fstat.
4146         * modules/chdir-safer (Depends-on): Likewise.
4147         * modules/chown (Depends-on): Likewise.
4148         * modules/copy-file (Depends-on): Likewise.
4149         * modules/fchdir (Depends-on): Likewise.
4150         * modules/fdopendir (Depends-on): Likewise.
4151         * modules/fopen (Depends-on): Likewise.
4152         * modules/fts (Depends-on): Likewise.
4153         * modules/getcwd (Depends-on): Likewise.
4154         * modules/isapipe (Depends-on): Likewise.
4155         * modules/linkat (Depends-on): Likewise.
4156         * modules/lseek (Depends-on): Likewise.
4157         * modules/mkdir-p (Depends-on): Likewise.
4158         * modules/open (Depends-on): Likewise.
4159         * modules/openat (Depends-on): Likewise.
4160         * modules/read-file (Depends-on): Likewise.
4161         * modules/renameat (Depends-on): Likewise.
4162         * modules/utimens (Depends-on): Likewise.
4163
4164 2011-09-25  Bruno Haible  <bruno@clisp.org>
4165
4166         linkat: Fix compilation on MSVC 9.
4167         * lib/linkat.c: Don't include <stdint.h>.
4168
4169 2011-09-25  Bruno Haible  <bruno@clisp.org>
4170
4171         fclose: Support for MSVC 9.
4172         * lib/fclose.c: Include msvc-inval.h.
4173         (fclose_nothrow): New function.
4174         (rpl_fclose): Use it.
4175         * modules/fclose (Depends-on): Add msvc-inval.
4176         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
4177
4178 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
4179
4180         dup2: minor simplifications
4181         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
4182         that it's a performance win.
4183         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
4184         ! defined __CYGWIN__)" to "ifdef F_GETFL".
4185
4186 2011-09-24  Jim Meyering  <meyering@redhat.com>
4187
4188         test-futimens: avoid a warning from gcc -Wshadow
4189         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
4190         to avoid a shadowing warning.
4191
4192 2011-09-24  Bruno Haible  <bruno@clisp.org>
4193
4194         fdopen: Support for MSVC 9.
4195         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
4196         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
4197         * lib/fdopen.c: Include msvc-inval.h.
4198         (fdopen_nothrow): New function.
4199         (rpl_fdopen): Use it.
4200         * modules/fdopen (Depends-on): Add msvc-inval.
4201         * modules/fclose-tests (Depends-on): Add fdopen.
4202         * modules/fflush-tests (Depends-on): Likewise.
4203         * modules/fgetc-tests (Depends-on): Likewise.
4204         * modules/fputc-tests (Depends-on): Likewise.
4205         * modules/fread-tests (Depends-on): Likewise.
4206         * modules/freopen-tests (Depends-on): Likewise.
4207         * modules/fseeko-tests (Depends-on): Likewise.
4208         * modules/ftello-tests (Depends-on): Likewise.
4209         * modules/fwrite-tests  (Depends-on): Likewise.
4210         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
4211
4212 2011-09-24  Bruno Haible  <bruno@clisp.org>
4213
4214         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
4215         * modules/fgetc-tests (Depends-on): Add unistd.
4216         * modules/fputc-tests (Depends-on): Likewise.
4217         * modules/fread-tests (Depends-on): Likewise.
4218         * modules/fwrite-tests (Depends-on): Likewise.
4219
4220 2011-09-24  Bruno Haible  <bruno@clisp.org>
4221
4222         dup: Simplify autoconf test.
4223         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
4224         on gl_MSVC_INVAL's result.
4225
4226 2011-09-24  Bruno Haible  <bruno@clisp.org>
4227
4228         Tests for function fwrite().
4229         * modules/fwrite-tests: New file.
4230         * tests/test-fwrite.c: New file.
4231         * modules/stdio-tests (Depends-on): Add fwrite-tests.
4232
4233         Tests for function fread().
4234         * modules/fread-tests: New file.
4235         * tests/test-fread.c: New file.
4236         * modules/stdio-tests (Depends-on): Add fread-tests.
4237
4238         Activate fputc tests.
4239         * modules/stdio-tests (Depends-on): Add fputc-tests.
4240
4241         Enhance fgetc, fputc tests.
4242         * tests/test-fgetc.c (main): Also test the stream's error indicator.
4243         * tests/test-fputc.c (main): Likewise.
4244
4245 2011-09-24  Bruno Haible  <bruno@clisp.org>
4246
4247         write: Support for MSVC 9.
4248         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4249         is not 1.
4250         * lib/write.c (write_nothrow): New function.
4251         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
4252         not 1. Use write_nothrow.
4253         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
4254         invalid parameter handler.
4255         (gl_PREREQ_WRITE): New macro.
4256         * modules/write (Depends-on): Add msvc-inval.
4257         (configure.ac): Invoke gl_PREREQ_WRITE.
4258         * doc/posix-functions/write.texi: Mention the problem on MSVC.
4259
4260 2011-09-24  Bruno Haible  <bruno@clisp.org>
4261
4262         read: Fix last commit.
4263         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
4264
4265 2011-09-24  Bruno Haible  <bruno@clisp.org>
4266
4267         dup2: Fix last commit.
4268         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
4269         (rpl_dup2): Disable fcntl workaround on native Windows.
4270
4271         sigprocmask: Make code safer.
4272         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
4273         section that changes macro definitions for this compilation unit.
4274
4275 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
4276
4277         dup2: clarify by coalescing Windows-specific material
4278         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
4279         "msvc-nothrow.h"' to the Windows-specific section, so that the
4280         Emacs source need not contain these include files.
4281         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
4282         Windows-specific fixes into this function rather than just the
4283         nothrow fix, as this shortens and clarifies the code.  Always
4284         define as a function, as that's a bit cleaner than having it be
4285         sometimes a function and sometimes a macro.
4286         (rpl_dup2): Move the Windows-specific stuff out of here and into
4287         ms_windows_dup2.  Don't protect the Haiku-related fix with
4288         "#if !defined __linux__", as the same code also works around
4289         a Linux kernel bug, and it doesn't add any system calls on any
4290         platform.  Add comment about FreeBSD 6.1.
4291
4292         sigprocmask: move #include directive
4293         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
4294         Windows-specific section, so that the Emacs source need not
4295         contain msvc-inval.h.
4296
4297 2011-09-23  Bruno Haible  <bruno@clisp.org>
4298
4299         read: Support for MSVC 9.
4300         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4301         is not 1.
4302         * lib/read.c (read_nothrow): New function.
4303         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
4304         read_nothrow.
4305         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
4306         invalid parameter handler.
4307         (gl_PREREQ_READ): New macro.
4308         * modules/read (Depends-on): Add msvc-inval.
4309         (configure.ac): Invoke gl_PREREQ_READ.
4310         * doc/posix-functions/read.texi: Mention the problem on MSVC.
4311
4312 2011-09-23  Bruno Haible  <bruno@clisp.org>
4313
4314         close: Support for MSVC 9.
4315         * lib/close.c: Include <errno.h>, msvc-inval.h.
4316         (close_nothrow): New function.
4317         (rpl_close): Use it.
4318         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
4319         invalid parameter handler.
4320         * modules/close (Depends-on): Add msvc-inval.
4321         * modules/dup2-tests (Depends-on): Add close.
4322         * modules/dup3-tests (Depends-on): Likewise.
4323         * modules/fcntl-tests (Depends-on): Likewise.
4324         * modules/spawn-pipe-tests (Depends-on): Likewise.
4325         * modules/unistd-safer-tests (Depends-on): Likewise.
4326         * doc/posix-functions/close.texi: Mention the problem on MSVC.
4327
4328 2011-09-23  Bruno Haible  <bruno@clisp.org>
4329
4330         New module 'dup'.
4331         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
4332         Allow replacement.
4333         * lib/dup.c: New file.
4334         * lib/fchdir.c (rpl_dup): Remove function.
4335         * m4/dup.m4: New file.
4336         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
4337         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
4338         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
4339         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
4340         * modules/dup: New file.
4341         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
4342         'dup' module is in use.
4343         * modules/fdopendir (Depends-on): Add dup.
4344         * modules/fdutimensat-tests (Depends-on): Likewise.
4345         * modules/fts (Depends-on): Likewise.
4346         * modules/futimens-tests (Depends-on): Likewise.
4347         * modules/posix_spawnp-tests (Depends-on): Likewise.
4348         * modules/unistd-safer-tests (Depends-on): Likewise.
4349         * modules/utimens-tests (Depends-on): Likewise.
4350         * doc/posix-functions/dup.texi: Mention the new module and the problem
4351         on MSVC.
4352
4353 2011-09-23  Bruno Haible  <bruno@clisp.org>
4354
4355         getdtablesize: Support for MSVC 9.
4356         * lib/getdtablesize.c: Include msvc-inval.h.
4357         (_setmaxstdio_nothrow): New function.
4358         (_setmaxstdio): Redefine it.
4359         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
4360         * modules/getdtablesize (Depends-on): Add msvc-inval.
4361         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
4362
4363 2011-09-23  Bruno Haible  <bruno@clisp.org>
4364
4365         signal-h: Rename from signal.
4366         * modules/signal-h: Renamed from modules/signal.
4367         * modules/pthread_sigmask (Depends-on): Update.
4368         * modules/raise (Depends-on): Likewise.
4369         * modules/sigaction (Depends-on): Likewise.
4370         * modules/sigpipe (Depends-on): Likewise.
4371         * modules/sigprocmask (Depends-on): Likewise.
4372         * modules/sys_select (Depends-on): Likewise.
4373         * modules/signal-h-tests: Renamed from modules/signal-tests.
4374         (Files, Depends-on, Makefile.am): Update.
4375         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
4376         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
4377         (Files, Makefile.am): Update.
4378         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
4379         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
4380         * modules/signal: New placeholder file.
4381         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
4382         * doc/posix-headers/signal.texi: Update.
4383         * NEWS: Mention the change.
4384
4385 2011-09-23  Bruno Haible  <bruno@clisp.org>
4386
4387         sigprocmask: Avoid crashes through signal() on MSVC 9.
4388         * lib/sigprocmask.c: Include msvc-inval.h.
4389         (signal_nothrow): New function.
4390         (signal): Redefine it.
4391         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
4392         * modules/sigprocmask (Depends-on): Add msvc-inval.
4393         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
4394
4395 2011-09-23  Bruno Haible  <bruno@clisp.org>
4396
4397         Tests for module 'raise'.
4398         * modules/raise-tests: New file.
4399         * tests/test-raise.c: New file.
4400
4401         raise: Support for MSVC.
4402         * lib/signal.in.h (raise): New declaration.
4403         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
4404         for native Windows platforms.
4405         * m4/raise.m4: New file.
4406         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
4407         HAVE_RAISE, REPLACE_RAISE.
4408         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
4409         REPLACE_RAISE.
4410         * modules/raise (Status, Notice): Remove fields.
4411         (Files): Add m4/raise.m4.
4412         (Depends-on): Add signal, msvc-inval.
4413         (configure.ac): Use the common idioms.
4414         (Maintainer): Add me.
4415         * tests/test-signal-c++.cc: Check the signature of raise.
4416         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
4417
4418 2011-09-23  Bruno Haible  <bruno@clisp.org>
4419
4420         pipe2: Fix compilation on pre-C99 compilers.
4421         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
4422
4423 2011-09-23  Bruno Haible  <bruno@clisp.org>
4424
4425         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
4426         * lib/msvc-nothrow.h: New file.
4427         * lib/msvc-nothrow.c: New file.
4428         * m4/msvc-nothrow.m4: New file.
4429         * modules/msvc-nothrow: New file.
4430         * lib/dup2.c: Include msvc-nothrow.h.
4431         (rpl_dup2): No need to protect _get_osfhandle call here.
4432         * lib/accept4.c: Include msvc-nothrow.h.
4433         * lib/error.c: Likewise.
4434         * lib/fcntl.c: Likewise.
4435         * lib/lseek.c: Likewise.
4436         * lib/nonblocking.c: Likewise.
4437         * lib/poll.c: Likewise.
4438         * lib/read.c: Likewise.
4439         * lib/select.c: Likewise.
4440         * lib/sockets.h: Likewise.
4441         * lib/sockets.c: Likewise.
4442         * lib/stdio-read.c: Likewise.
4443         * lib/stdio-write.c: Likewise.
4444         * lib/write.c: Likewise.
4445         * lib/w32sock.h: Likewise.
4446         * lib/w32spawn.h: Likewise.
4447         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
4448         * lib/fsync.c: Likewise.
4449         * lib/isapipe.c: Likewise.
4450         * modules/dup2 (Depends-on): Add msvc-nothrow.
4451         * modules/accept4 (Depends-on): Likewise.
4452         * modules/error (Depends-on): Likewise.
4453         * modules/fcntl (Depends-on): Likewise.
4454         * modules/lseek (Depends-on): Likewise.
4455         * modules/nonblocking (Depends-on): Likewise.
4456         * modules/poll (Depends-on): Likewise.
4457         * modules/read (Depends-on): Likewise.
4458         * modules/select (Depends-on): Likewise.
4459         * modules/sockets (Depends-on): Likewise.
4460         * modules/sigpipe (Depends-on): Likewise.
4461         * modules/write (Depends-on): Likewise.
4462         * modules/accept (Depends-on): Likewise.
4463         * modules/bind (Depends-on): Likewise.
4464         * modules/connect (Depends-on): Likewise.
4465         * modules/gethostname (Depends-on): Likewise.
4466         * modules/getpeername (Depends-on): Likewise.
4467         * modules/getsockname (Depends-on): Likewise.
4468         * modules/getsockopt (Depends-on): Likewise.
4469         * modules/ioctl (Depends-on): Likewise.
4470         * modules/listen (Depends-on): Likewise.
4471         * modules/recv (Depends-on): Likewise.
4472         * modules/recvfrom (Depends-on): Likewise.
4473         * modules/send (Depends-on): Likewise.
4474         * modules/sendto (Depends-on): Likewise.
4475         * modules/setsockopt (Depends-on): Likewise.
4476         * modules/shutdown (Depends-on): Likewise.
4477         * modules/socket (Depends-on): Likewise.
4478         * modules/execute (Depends-on): Likewise.
4479         * modules/spawn-pipe (Depends-on): Likewise.
4480         * modules/flock (Depends-on): Likewise.
4481         * modules/fsync (Depends-on): Likewise.
4482         * modules/isapipe (Depends-on): Likewise.
4483         * tests/test-cloexec.c: Include msvc-nothrow.h.
4484         * tests/test-dup-safer.c: Likewise.
4485         * tests/test-dup2.c: Likewise.
4486         * tests/test-dup3.c: Likewise.
4487         * tests/test-fcntl.c: Likewise.
4488         * tests/test-pipe.c: Likewise.
4489         * tests/test-pipe2.c: Likewise.
4490         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
4491         * modules/unistd-safer-tests (Depends-on): Likewise.
4492         * modules/dup2-tests (Depends-on): Likewise.
4493         * modules/dup3-tests (Depends-on): Likewise.
4494         * modules/fcntl-tests (Depends-on): Likewise.
4495         * modules/pipe-posix-tests (Depends-on): Likewise.
4496         * modules/pipe2-tests (Depends-on): Likewise.
4497
4498 2011-09-23  Bruno Haible  <bruno@clisp.org>
4499
4500         dup2: Make code more maintainable.
4501         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
4502         (rpl_dup2): Use it.
4503         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
4504         * modules/dup2 (configure.ac): Invoke it.
4505         Reported by Paul Eggert.
4506
4507 2011-09-23  Bruno Haible  <bruno@clisp.org>
4508
4509         msvc-inval: Fix compilation error.
4510         * lib/msvc-inval.h: Include <excpt.h>.
4511
4512 2011-09-23  Bruno Haible  <bruno@clisp.org>
4513
4514         mkdir: Tweak for MSVC 9.
4515         * lib/sys_stat.in.h: Update comments.
4516         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
4517
4518         Tests for module 'chdir'.
4519         * modules/chdir-tests: New file.
4520         * tests/test-chdir.c: New file.
4521
4522         New module 'chdir'.
4523         * modules/chdir: New file.
4524         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
4525         (chdir): New declaration.
4526         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
4527         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
4528         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
4529         * tests/test-unistd-c++.cc: Check signature of chdir.
4530         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
4531         * modules/chdir-long (Depends-on): Add chdir.
4532         * modules/fchdir (Depends-on): Likewise.
4533         * modules/rename (Depends-on): Likewise.
4534         * modules/savewd (Depends-on): Likewise.
4535
4536         rmdir: Support for mingw, MSVC 9.
4537         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
4538         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
4539
4540         getcwd: Tweak for MSVC 9.
4541         * lib/unistd.in.h: Update comments.
4542         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
4543
4544 2011-09-22  Bruno Haible  <bruno@clisp.org>
4545
4546         strerror_r-posix: Avoid a link error on MSVC.
4547         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
4548         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
4549
4550 2011-09-22  Bruno Haible  <bruno@clisp.org>
4551
4552         select: Avoid link errors on MSVC.
4553         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
4554         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
4555         * modules/pselect (Link): Likewise.
4556         * NEWS: Mention the change.
4557         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
4558         test-select-stdin against $(LIB_SELECT).
4559         * modules/pselect-tests (Makefile.am): Link test-pselect against
4560         $(LIB_SELECT).
4561
4562 2011-09-22  Bruno Haible  <bruno@clisp.org>
4563
4564         select: Avoid compilation error on MSVC.
4565         * lib/select.c: Don't include <stdbool.h>.
4566
4567 2011-09-21  Bruno Haible  <bruno@clisp.org>
4568
4569         Consolidate all uses of PATH_MAX in *.m4 files.
4570         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
4571         macros.
4572         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
4573         and gl_PATHMAX_SNIPPET.
4574         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4575         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4576         * modules/chdir-long (Files): Add m4/pathmax.m4.
4577         * modules/getcwd (Files): Likewise.
4578
4579 2011-09-21  Bruno Haible  <bruno@clisp.org>
4580
4581         ftruncate: Un-deprecate, concentrate on Win32 support.
4582         * modules/ftruncate (Status, Notice): Remove sections.
4583         (Depends-on): Add largefile.
4584         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
4585         non-mingw platforms.
4586         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
4587         include <io.h>.
4588         * modules/perror-tests (Depends-on): Add ftruncate.
4589         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
4590         'ftruncate' module.
4591
4592 2011-09-21  Bruno Haible  <bruno@clisp.org>
4593
4594         Add dependencies to new dirent related modules.
4595         * modules/opendir (Depends-on): Add closedir.
4596         * modules/getcwd (Depends-on): Add opendir, closedir.
4597         * modules/dirent-safer-tests (Depends-on): Likewise.
4598         * modules/fdopendir-tests (Depends-on): Likewise.
4599         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
4600         * modules/renameat-tests (Depends-on): Likewise.
4601
4602 2011-09-21  Bruno Haible  <bruno@clisp.org>
4603
4604         opendir: Avoid compilation error on mingw.
4605         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
4606         * modules/opendir (Depends-on): Add unistd.
4607
4608 2011-09-21  Bruno Haible  <bruno@clisp.org>
4609
4610         ftruncate tests: Avoid a test failure on mingw.
4611         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
4612
4613 2011-09-21  Bruno Haible  <bruno@clisp.org>
4614
4615         select tests: Avoid test failures on OSF/1 5.1 and mingw.
4616         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
4617         native Windows.
4618
4619 2011-09-21  Bruno Haible  <bruno@clisp.org>
4620
4621         New module 'fdopen'.
4622         * lib/stdio.in.h (fdopen): New declaration.
4623         * lib/fdopen.c: New file.
4624         * m4/fdopen.m4: New file.
4625         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
4626         REPLACE_FDOPEN.
4627         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
4628         REPLACE_FDOPEN.
4629         * modules/fdopen: New file.
4630         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
4631         * tests/test-stdio-c++.cc: Check signature of fdopen.
4632         * doc/posix-functions/fdopen.texi: Mention the new module.
4633
4634 2011-09-21  Bruno Haible  <bruno@clisp.org>
4635
4636         unlockpt tests: Avoid test failure on NetBSD 5.1.
4637         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
4638         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
4639
4640 2011-09-21  Bruno Haible  <bruno@clisp.org>
4641
4642         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
4643         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
4644         * tests/test-getlogin_r.c (main): Likewise.
4645
4646 2011-09-20  Bruno Haible  <bruno@clisp.org>
4647
4648         time tests: Don't require pid_t.
4649         * doc/posix-headers/time.texi: Revert last change.
4650         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
4651         * tests/test-time.c: Comment out the check for pid_t.
4652
4653 2011-09-20  Bruno Haible  <bruno@clisp.org>
4654
4655         fsync tests: Avoid a test failure on mingw.
4656         * tests/test-fsync.c (main): Allow a failure with EIO.
4657
4658 2011-09-20  Bruno Haible  <bruno@clisp.org>
4659
4660         euidaccess: Update comments.
4661         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
4662
4663 2011-09-20  Bruno Haible  <bruno@clisp.org>
4664
4665         Ensure EBADF returns for socket functions on mingw.
4666         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
4667         descriptor is invalid.
4668         * lib/bind.c (rpl_bind): Likewise.
4669         * lib/connect.c (rpl_connect): Likewise.
4670         * lib/getpeername.c (rpl_getpeername): Likewise.
4671         * lib/getsockname.c (rpl_getsockname): Likewise.
4672         * lib/getsockopt.c (rpl_getsockopt): Likewise.
4673         * lib/listen.c (rpl_listen): Likewise.
4674         * lib/recv.c (rpl_recv): Likewise.
4675         * lib/recvfrom.c (rpl_recvfrom): Likewise.
4676         * lib/send.c (rpl_send): Likewise.
4677         * lib/sendto.c (rpl_sendto): Likewise.
4678         * lib/setsockopt.c (rpl_setsockopt): Likewise.
4679         * lib/shutdown.c (rpl_shutdown): Likewise.
4680
4681 2011-09-20  Bruno Haible  <bruno@clisp.org>
4682
4683         select tests: EBADF tests.
4684         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
4685         test_bad_fd): New functions.
4686         (test_function): Invoke also test_bad_fd.
4687
4688 2011-09-20  Bruno Haible  <bruno@clisp.org>
4689
4690         Tests for module 'posix_spawn_file_actions_addopen.
4691         * modules/posix_spawn_file_actions_addopen-tests: New file.
4692         * tests/test-posix_spawn_file_actions_addopen.c: New file.
4693
4694         Tests for module 'posix_spawn_file_actions_adddup2'.
4695         * modules/posix_spawn_file_actions_adddup2-tests: New file.
4696         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
4697
4698         Tests for module 'posix_spawn_file_actions_addclose'.
4699         * modules/posix_spawn_file_actions_addclose-tests: New file.
4700         * tests/test-posix_spawn_file_actions_addclose.c: New file.
4701
4702 2011-09-20  Bruno Haible  <bruno@clisp.org>
4703
4704         Tests for module 'unlockpt'.
4705         * modules/unlockpt-tests: New file.
4706         * tests/test-unlockpt.c: New file.
4707         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
4708
4709         Tests for module 'grantpt'.
4710         * modules/grantpt-tests: New file.
4711         * tests/test-grantpt.c: New file.
4712         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
4713
4714 2011-09-20  Bruno Haible  <bruno@clisp.org>
4715
4716         freopen tests: EBADF tests.
4717         * tests/test-freopen.c: Include errno.h, unistd.h.
4718         (main): Add tests for EBADF, commented out for the moment.
4719
4720         fclose tests: EBADF tests.
4721         * tests/test-fclose.c (main): Add tests for EBADF.
4722
4723         fflush tests: EBADF tests.
4724         * tests/test-fflush.c: Include errno.h, macros.h.
4725         (main): Add tests for EBADF.
4726
4727         ftello tests: EBADF tests.
4728         * tests/test-ftello4.sh: New file.
4729         * tests/test-ftello4.c: New file.
4730         * modules/ftello-tests (Files): Add them.
4731         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
4732
4733         fseeko tests: EBADF tests.
4734         * tests/test-fseeko4.sh: New file.
4735         * tests/test-fseeko4.c: New file.
4736         * modules/fseeko-tests (Files): Add them.
4737         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
4738
4739         Tests for function fputc().
4740         * modules/fputc-tests: New file.
4741         * tests/test-fputc.c: New file.
4742         * modules/stdio-tests (Depends-on): Add fputc-tests.
4743
4744         Tests for function fgetc().
4745         * modules/fgetc-tests: New file.
4746         * tests/test-fgetc.c: New file.
4747         * modules/stdio-tests (Depends-on): Add fgetc-tests.
4748
4749         Tests for function fdopen().
4750         * modules/fdopen-tests: New file.
4751         * tests/test-fdopen.c: New file.
4752         * modules/stdio-tests (Depends-on): Add fdopen-tests.
4753
4754         Tests for module 'vdprintf'.
4755         * modules/vdprintf-tests: New file.
4756         * tests/test-vdprintf.c: New file.
4757
4758         Tests for module 'dprintf'.
4759         * modules/dprintf-tests: New file.
4760         * tests/test-dprintf.c: New file.
4761
4762 2011-09-20  Bruno Haible  <bruno@clisp.org>
4763
4764         Tests for module 'ioctl'.
4765         * modules/ioctl-tests: New file.
4766         * tests/test-ioctl.c: New file.
4767
4768 2011-09-20  Bruno Haible  <bruno@clisp.org>
4769
4770         fcntl tests: EBADF tests.
4771         * tests/test-fcntl.c (main): Add more tests for EBADF.
4772
4773 2011-09-20  Bruno Haible  <bruno@clisp.org>
4774
4775         utimensat tests: EBADF tests.
4776         * tests/test-utimensat.c (main): Add tests for EBADF.
4777
4778         renameat tests: EBADF tests.
4779         * tests/test-renameat.c (main): Add tests for EBADF.
4780
4781         mkfifoat tests: EBADF tests.
4782         * tests/test-mkfifoat.c (main): Add tests for EBADF.
4783
4784         readlinkat tests: EBADF tests.
4785         * tests/test-readlinkat.c (main): Add tests for EBADF.
4786
4787         symlinkat tests: EBADF tests.
4788         * tests/test-symlinkat.c (main): Add tests for EBADF.
4789
4790         linkat tests: EBADF tests.
4791         * tests/test-linkat.c (main): Add tests for EBADF.
4792
4793         Tests for module 'faccessat'.
4794         * modules/faccessat-tests: New file.
4795         * tests/test-faccessat.c: New file.
4796
4797         fdopendir tests: EBADF tests.
4798         * tests/test-fdopendir.c (main): Add more tests for EBADF.
4799
4800         openat tests: EBADF tests.
4801         * tests/test-fchownat.c (main): Add tests for EBADF.
4802         * tests/test-fstatat.c (main): Likewise.
4803         * tests/test-mkdirat.c (main): Likewise.
4804         * tests/test-openat.c (main): Likewise.
4805         * tests/test-unlinkat.c (main): Likewise.
4806         * tests/test-fchmodat.c: New file.
4807         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
4808         (Makefile.am): Also run 'test-fchmodat'.
4809
4810 2011-09-20  Bruno Haible  <bruno@clisp.org>
4811
4812         utimens, futimens, fdutimensat tests: EBADF tests.
4813         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
4814
4815         Tests for function fstat().
4816         * modules/fstat-tests: New file.
4817         * tests/test-fstat.c: New file.
4818         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
4819
4820 2011-09-20  Bruno Haible  <bruno@clisp.org>
4821
4822         test-ttyname_r tests: EBADF tests.
4823         * tests/test-ttyname_r.c (main): Add tests for EBADF.
4824
4825         Tests for module 'isatty'.
4826         * modules/isatty-tests: New file.
4827         * tests/test-isatty.c: New file.
4828
4829         Tests for module 'write'.
4830         * modules/write-tests: New file.
4831         * tests/test-write.c: New file.
4832
4833         Tests for module 'read'.
4834         * modules/read-tests: New file.
4835         * tests/test-read.c: New file.
4836
4837         pwrite tests: EBADF tests.
4838         * tests/test-pwrite.c (main): Add tests for EBADF.
4839
4840         pread tests: EBADF tests.
4841         * tests/test-pread.c (main): Add tests for EBADF.
4842
4843         lseek tests: EBADF tests.
4844         * tests/test-lseek.c (main): Add more tests for EBADF.
4845
4846         Tests for module 'ftruncate'.
4847         * modules/ftruncate-tests: New file.
4848         * tests/test-ftruncate.sh: New file.
4849         * tests/test-ftruncate.c: New file.
4850
4851         fsync tests: EBADF tests.
4852         * tests/test-fsync.c (main): Add more tests for EBADF.
4853
4854         fdatasync tests: EBADF tests.
4855         * tests/test-fdatasync.c (main): Add more tests for EBADF.
4856
4857         Tests for module 'fchown'.
4858         * modules/fchown-tests: New file.
4859         * tests/test-fchown.c: New file.
4860
4861         Tests for module 'fchmod'.
4862         * modules/fchmod-tests: New file.
4863         * tests/test-fchmod.c: New file.
4864
4865         fchdir tests: EBADF tests.
4866         * tests/test-fchdir.c (main): Add more tests for EBADF.
4867
4868         dup2 tests: EBADF tests.
4869         * tests/test-dup2.c (main): Add more tests for EBADF.
4870
4871         Tests for module 'dup'.
4872         * modules/dup-tests: New file.
4873         * tests/test-dup.c: New file.
4874
4875         Tests for module 'close'.
4876         * modules/close-tests: New file.
4877         * tests/test-close.c: New file.
4878
4879 2011-09-20  Bruno Haible  <bruno@clisp.org>
4880
4881         Tests for module 'shutdown'.
4882         * modules/shutdown-tests: New file.
4883         * tests/test-shutdown.c: New file.
4884
4885         Tests for module 'setsockopt'.
4886         * modules/setsockopt-tests: New file.
4887         * tests/test-setsockopt.c: New file.
4888
4889         Tests for module 'sendto'.
4890         * modules/sendto-tests: New file.
4891         * tests/test-sendto.c: New file.
4892
4893         Tests for module 'send'.
4894         * modules/send-tests: New file.
4895         * tests/test-send.c: New file.
4896
4897         Tests for module 'recvfrom'.
4898         * modules/recvfrom-tests: New file.
4899         * tests/test-recvfrom.c: New file.
4900
4901         Tests for module 'recv'.
4902         * modules/recv-tests: New file.
4903         * tests/test-recv.c: New file.
4904
4905         Tests for module 'listen'.
4906         * modules/listen-tests: New file.
4907         * tests/test-listen.c: New file.
4908
4909         Tests for module 'getsockopt'.
4910         * modules/getsockopt-tests: New file.
4911         * tests/test-getsockopt.c: New file.
4912
4913         Tests for module 'getsockname'.
4914         * modules/getsockname-tests: New file.
4915         * tests/test-getsockname.c: New file.
4916
4917         Tests for module 'getpeername'.
4918         * modules/getpeername-tests: New file.
4919         * tests/test-getpeername.c: New file.
4920
4921         Tests for module 'connect'.
4922         * modules/connect-tests: New file.
4923         * tests/test-connect.c: New file.
4924
4925         Tests for module 'bind'.
4926         * modules/bind-tests: New file.
4927         * tests/test-bind.c: New file.
4928
4929         accept4 tests: Fix for native Windows.
4930         * tests/test-accept4.c: Include sockets.h.
4931         (main): Invoke gl_sockets_startup.
4932         * modules/accept4-tests (Depends-on): Add sockets.
4933
4934         accept tests: Fix for native Windows.
4935         * tests/test-accept.c: Include sockets.h.
4936         (main): Invoke gl_sockets_startup.
4937         * modules/accept-tests (Depends-on): Add sockets.
4938
4939 2011-09-19  Bruno Haible  <bruno@clisp.org>
4940
4941         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
4942         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
4943         do...while(0).
4944         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
4945         Suggested by Paul Eggert.
4946
4947 2011-09-19  Bruno Haible  <bruno@clisp.org>
4948
4949         sched: Ensure pid_t is defined.
4950         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
4951         not define pid_t.
4952         * lib/sched.in.h: Include <sys/types.h>.
4953         * doc/posix-headers/sched.texi: Mention the pid_t problem.
4954         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4955
4956 2011-09-19  Bruno Haible  <bruno@clisp.org>
4957
4958         msvc-inval: Ensure the entire expansion is a single statement.
4959         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
4960         of braces.
4961
4962 2011-09-19  Jim Meyering  <meyering@redhat.com>
4963
4964         tests: use printf, not echo in init.sh's warn_ function
4965         * tests/init.sh (warn_): Use printf, not echo.  The latter would
4966         misbehave when given strings containing a backslash or starting
4967         with e.g., -n.  James Youngman suggested setting IFS.
4968
4969 2011-09-19  Eric Blake  <eblake@redhat.com>
4970
4971         futimens: enhance test
4972         * tests/test-futimens.h (test_futimens): Also check for EBADF on
4973         closed non-negative fd.
4974
4975         date: accept 'hence' as opposite of 'ago'
4976         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
4977         * tests/test-parse-datetime.c (main): Enhance test.
4978         Suggested by Jesse Wilson.
4979
4980 2011-09-19  Jim Meyering  <meyering@redhat.com>
4981
4982         getcwd: don't fail in a deep directory on a system without openat
4983         Before this change, getcwd would fail when called from a directory
4984         of depth PATH_MAX / 3 or greater.  That was due to the fact that
4985         the non-openat implementation used "..", "../..", "../../..", etc.
4986         to access ancestor directories.  With too many, that string would
4987         be longer than PATH_MAX.
4988         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
4989         using gnulib's openat replacement.
4990         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
4991         we're using the replacement function.
4992
4993 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
4994
4995         maint.mk: avoid warnings from perl about missing files
4996         * top/maint.mk (def_sym_regex): Ignore files listed in
4997         $(gl_other_headers_) that do not exist, say because a project
4998         does not use a corresponding module.
4999
5000 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
5001
5002         stat: use pathmax.h only if needed
5003         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
5004         This is better for Emacs, which does not have a mingw port and
5005         therefore can avoid the pathmax module.
5006
5007         utimens: remove dependency on dup2
5008         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
5009         to work around the Linux kernel bug.
5010         * modules/utimens (Depends-on): Remove dup2.
5011
5012 2011-09-18  Bruno Haible  <bruno@clisp.org>
5013
5014         inet_ntop, inet_pton: Look for it also in libresolv.
5015         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
5016         libnsl, search for it in libresolv.
5017         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5018         Needed on Solaris 7.
5019
5020 2011-09-18  Bruno Haible  <bruno@clisp.org>
5021
5022         accept, accept4 tests: Avoid link error on Solaris.
5023         * modules/accept-tests (Makefile.am): Link test-accept against
5024         $(LIBSOCKET).
5025         * modules/accept4-tests (Makefile.am): Link test-accept4 against
5026         $(LIBSOCKET).
5027
5028         accept4: Avoid link error on Solaris.
5029         * modules/accept4 (Link): New section.
5030
5031         socket functions: Avoid link errors on Solaris.
5032         * modules/accept (Depends-on): Add socketlib.
5033         (Link): New section.
5034         * modules/bind (Depends-on): Add socketlib.
5035         (Link): New section.
5036         * modules/connect (Depends-on): Add socketlib.
5037         (Link): New section.
5038         * modules/getpeername (Depends-on): Add socketlib.
5039         (Link): New section.
5040         * modules/getsockname (Depends-on): Add socketlib.
5041         (Link): New section.
5042         * modules/getsockopt (Depends-on): Add socketlib.
5043         (Link): New section.
5044         * modules/listen (Depends-on): Add socketlib.
5045         (Link): New section.
5046         * modules/recv (Depends-on): Add socketlib.
5047         (Link): New section.
5048         * modules/recvfrom (Depends-on): Add socketlib.
5049         (Link): New section.
5050         * modules/send (Depends-on): Add socketlib.
5051         (Link): New section.
5052         * modules/sendto (Depends-on): Add socketlib.
5053         (Link): New section.
5054         * modules/setsockopt (Depends-on): Add socketlib.
5055         (Link): New section.
5056         * modules/shutdown (Depends-on): Add socketlib.
5057         (Link): New section.
5058         * modules/socket (Depends-on): Add socketlib.
5059         (Link): New section.
5060
5061 2011-09-18  Bruno Haible  <bruno@clisp.org>
5062
5063         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
5064         * tests/test-ptsname.c (main): Terminate the test if it takes longer
5065         than 5 seconds.
5066         * modules/ptsname-tests (configure.ac): Test for alarm.
5067
5068 2011-09-18  Bruno Haible  <bruno@clisp.org>
5069
5070         posix_spawn_file_actions_add*: Fix module dependencies.
5071         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
5072         posix_spawn_file_actions_init.
5073         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
5074         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
5075
5076 2011-09-18  Bruno Haible  <bruno@clisp.org>
5077
5078         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
5079         * tests/test-rename.h (test_rename): Allow error code EEXIST.
5080         * tests/test-renameat.c (main): Likewise.
5081
5082 2011-09-18  Bruno Haible  <bruno@clisp.org>
5083
5084         Tests for module 'accept4'.
5085         * modules/accept4-tests: New file.
5086         * tests/test-accept4.c: New file.
5087
5088 2011-09-18  Bruno Haible  <bruno@clisp.org>
5089
5090         Tests for module 'accept'.
5091         * modules/accept-tests: New file.
5092         * tests/test-accept.c: New file.
5093
5094 2011-09-18  Bruno Haible  <bruno@clisp.org>
5095
5096         dup2: Support for MSVC.
5097         * lib/dup2.c: Include msvc-inval.h.
5098         (rpl_dup2): Handle invalid parameter notifications during dup2 and
5099         _get_osfhandle calls.
5100         * modules/dup2 (Depends-on): Add msvc-inval.
5101         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
5102
5103         New module 'msvc-inval'.
5104         * lib/msvc-inval.h: New file.
5105         * lib/msvc-inval.c: New file.
5106         * m4/msvc-inval.m4: New file.
5107         * modules/msvc-inval: New file.
5108
5109 2011-09-17  Bruno Haible  <bruno@clisp.org>
5110
5111         Tests for module 'pclose'.
5112         * modules/pclose-tests: New file.
5113
5114         New module 'pclose'.
5115         * lib/stdio.in.h (pclose): New declaration.
5116         * lib/pclose.c: New file.
5117         * m4/pclose.m4: New file.
5118         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
5119         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
5120         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
5121         * modules/pclose: New file.
5122         * modules/popen-tests (Depends-on): Add pclose.
5123         * modules/popen-safer-tests (Depends-on): Likewise.
5124         * doc/posix-functions/pclose.texi: Mention the new module.
5125
5126 2011-09-17  Bruno Haible  <bruno@clisp.org>
5127
5128         popen: Support for MSVC.
5129         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
5130         * lib/popen.c (popen): Provide alternate definition for native Windows.
5131         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
5132         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
5133         * modules/popen (Depends-on, configure.ac): Update condition.
5134         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
5135         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
5136         fixed.
5137
5138 2011-09-17  Bruno Haible  <bruno@clisp.org>
5139
5140         isnanl, isnand, isnanf: Work around MSVC bug.
5141         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
5142
5143 2011-09-17  Bruno Haible  <bruno@clisp.org>
5144
5145         sys_socket tests: Fix recent mistake.
5146         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
5147
5148 2011-09-17  Bruno Haible  <bruno@clisp.org>
5149
5150         putenv: Support for MSVC.
5151         * modules/putenv (Depends-on): Add environ.
5152         * lib/putenv.c (environ): Disable declaration.
5153         * lib/unistd.in.h: Update comment.
5154
5155 2011-09-17  Bruno Haible  <bruno@clisp.org>
5156
5157         math: Avoid macro redefinition warnings on MSVC.
5158         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
5159         Undefine before redefining.
5160
5161 2011-09-17  Bruno Haible  <bruno@clisp.org>
5162
5163         doc: Mention functions which are declared as macros.
5164         * doc/posix-functions/*[fl].texi: Mention that some functions are
5165         defined as macros with arguments only.
5166
5167 2011-09-17  Bruno Haible  <bruno@clisp.org>
5168
5169         Add dependencies to new dirent related modules.
5170         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
5171         * modules/fts (Depends-on): Likewise.
5172         * modules/glob (Depends-on): Likewise.
5173         * modules/savedir (Depends-on): Likewise.
5174         * modules/scandir (Depends-on): Likewise.
5175         * modules/dirent-safer (Depends-on): Add opendir, closedir.
5176         * modules/fdopendir (Depends-on): Add opendir.
5177
5178 2011-09-17  Bruno Haible  <bruno@clisp.org>
5179
5180         inet_pton: Support for MSVC on Windows Vista or newer.
5181         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
5182         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
5183         HAVE_DECL_INET_PTON is defined.
5184         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5185         On platforms with <winsock2.h>, test whether inet_pton is declared in
5186         <ws2tcpip.h>. If so, arrange to replace it.
5187         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5188         REPLACE_INET_PTON.
5189         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
5190         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
5191         (Depends-on, configure.ac): Update condition.
5192         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
5193
5194 2011-09-17  Bruno Haible  <bruno@clisp.org>
5195
5196         inet_ntop: Support for MSVC on Windows Vista or newer.
5197         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
5198         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
5199         HAVE_DECL_INET_NTOP is defined.
5200         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5201         On platforms with <winsock2.h>, test whether inet_ntop is declared in
5202         <ws2tcpip.h>. If so, arrange to replace it.
5203         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5204         REPLACE_INET_NTOP.
5205         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
5206         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
5207         (Depends-on, configure.ac): Update condition.
5208         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
5209
5210 2011-09-16  Eric Blake  <eblake@redhat.com>
5211
5212         test-fsync: yet another enhancement
5213         * tests/test-fsync.c (main): Also test behavior on read-only text
5214         file.
5215
5216 2011-09-16  Bruno Haible  <bruno@clisp.org>
5217
5218         Enhance fsync, fdatasync tests.
5219         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
5220         * tests/test-fdatasync.c (main): Likewise.
5221
5222 2011-09-16  Bruno Haible  <bruno@clisp.org>
5223
5224         Support for MSVC compiler: Ensure mode_t gets defined.
5225         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
5226         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5227         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
5228         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
5229         * tests/test-fcntl-h.c: Check that mode_t is defined.
5230         * tests/test-sys_stat.c: Likewise.
5231         * tests/test-sys_types.c: Likewise.
5232         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
5233         * doc/posix-headers/sys_stat.texi: Likewise.
5234         * doc/posix-headers/sys_types.texi: Likewise.
5235
5236 2011-09-16  Bruno Haible  <bruno@clisp.org>
5237
5238         sys_stat: Support for MSVC.
5239         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
5240         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
5241         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
5242         MSVC.
5243
5244 2011-09-16  Bruno Haible  <bruno@clisp.org>
5245
5246         Support for MSVC compiler: Ensure off_t gets defined.
5247         * lib/unistd.in.h: Include <sys/types.h>.
5248         * tests/test-fcntl-h.c: Check that off_t is defined.
5249         * tests/test-sys_stat.c: Likewise.
5250         * tests/test-sys_types.c: Likewise.
5251
5252 2011-09-16  Eric Blake  <eblake@redhat.com>
5253
5254         fdatasync: port to Solaris
5255         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
5256         * modules/fdatasync (Link): Document it.
5257         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
5258
5259         fdatasync: port to MacOS X 10.7
5260         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
5261         declared.
5262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
5263         * modules/unistd (Makefile.am): Substitute it.
5264         * lib/unistd.in.h (fdatasync): Declare on MacOS.
5265         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
5266
5267         fdatasync: minor improvements
5268         * modules/fdatasync (Depends-on): Add condition for fsync.
5269         * lib/fdatasync.c (fdatasync): Add comment.
5270         * tests/test-unistd-c++.cc: Test fdatasync.
5271
5272         unistd: update refs to newer POSIX
5273         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
5274         Suggested by Bruno Haible.
5275
5276         fdatasync: new module
5277         * modules/fsync (Description): Document difference to fdatasync.
5278         * modules/fdatasync: New module.
5279         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
5280         * lib/fdatasync.c (fdatasync): Likewise.
5281         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
5282         defaults.
5283         * modules/unistd (Makefile.am): Set witnesses.
5284         * lib/unistd.in.h (fdatasync): Declare.
5285         * MODULES.html.sh: Document it.
5286         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
5287         * modules/fdatasync-tests: New test.
5288         * tests/test-fdatasync.c: Likewise.
5289
5290 2011-09-16  Eric Blake  <eblake@redhat.com>
5291
5292         test-fsync: enhance tests
5293         * modules/fsync-tests (Depends-on): Add errno, for mingw.
5294         * tests/test-fsync.c (main): Enhance test.
5295
5296 2011-09-15  Bruno Haible  <bruno@clisp.org>
5297
5298         Support for MSVC compiler: Ensure ssize_t gets defined.
5299         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
5300         * doc/posix-headers/stdio.texi: Likewise.
5301         * modules/stdio (Depends-on): Add ssize_t.
5302         * modules/sys_socket (Depends-on): Likewise.
5303         * modules/sys_types (Depends-on): Likewise.
5304         * modules/sys_uio (Depends-on): Likewise.
5305         * modules/unistd (Depends-on): Likewise.
5306         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
5307         * tests/test-sys_types.c: Check that ssize_t is defined.
5308
5309 2011-09-14  Bruno Haible  <bruno@clisp.org>
5310
5311         Avoid using #, the m4 comment starter character, near brackets.
5312         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
5313         delimiter character in sed expressions.
5314         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5315         Suggested by Eric Blake.
5316
5317         Properly quote AC_CHECK_DECLS' 4th argument.
5318         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
5319         argument.
5320         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5321         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5322         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5323         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
5324         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5325         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
5326         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
5327         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
5328         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
5329         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
5330         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
5331         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5332         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
5333         * m4/isinf.m4 (gl_ISINF): Likewise.
5334         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5335         * m4/readutmp.m4 (gl_READUTMP): Likewise.
5336         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5337         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5338         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5339         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5340         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5341         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5342         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
5343         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5344         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5345         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5346         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
5347         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5348         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5349         Reported by Eric Blake.
5350
5351         Properly quote AC_CHECK_DECL's 4th argument.
5352         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
5353         argument.
5354         * m4/argp.m4 (gl_ARGP): Likewise.
5355         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5356         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5357         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5358         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5359         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
5360         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
5361         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5362         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5363         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
5364         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5365         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5366         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5367         Reported by Eric Blake.
5368
5369 2011-09-14  Eric Blake  <eblake@redhat.com>
5370
5371         opendir: avoid compile warning
5372         * lib/opendir.c (includes): Always include errno.h.
5373         Reported by Tatsuro MATSUOKA.
5374
5375 2011-09-14  Jim Meyering  <meyering@redhat.com>
5376
5377         maint.mk: sc_tight_scope: propagate failure from sub-make
5378         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
5379         Reported by Martin von Gagern.
5380
5381 2011-09-13  Bruno Haible  <bruno@clisp.org>
5382
5383         tempname: Support for MSVC.
5384         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
5385         MSVC.
5386         * modules/tempname (Depends-on): Add fcntl-h.
5387
5388 2011-09-13  Bruno Haible  <bruno@clisp.org>
5389
5390         sys_time: Support for MSVC.
5391         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
5392         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
5393         include <winsock2.h>.
5394         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
5395         function declarations that collide with POSIX.
5396         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
5397         (Makefile.am): Substitute HAVE_WINSOCK2_H.
5398
5399 2011-09-13  Bruno Haible  <bruno@clisp.org>
5400
5401         stat: Support for MSVC.
5402         * lib/stat.c: Include pathmax.h.
5403         * modules/stat (Depends-on): Add pathmax.
5404
5405         pathmax: Support for native Windows.
5406         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
5407
5408 2011-09-12  Bruno Haible  <bruno@clisp.org>
5409
5410         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
5411         * lib/dirent.in.h (struct dirent): New type.
5412         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
5413         DT_WHT): New macros.
5414         (DIR): New type.
5415         (opendir, closedir): Declare only if the module 'opendir' is enabled.
5416         (readdir, rewinddir): New declarations.
5417         * lib/dirent-private.h: New file.
5418         * lib/opendir.c: New file.
5419         * lib/readdir.c: New file.
5420         * lib/rewinddir.c: New file.
5421         * lib/closedir.c: New file.
5422         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
5423         * m4/opendir.m4: New file.
5424         * m4/readdir.m4: New file.
5425         * m4/rewinddir.m4: New file.
5426         * m4/closedir.m4: New file.
5427         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
5428         REPLACE_CLOSEDIR here.
5429         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
5430         readdir, rewinddir are declared.
5431         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
5432         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
5433         HAVE_REWINDDIR, HAVE_CLOSEDIR.
5434         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
5435         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
5436         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
5437         * modules/opendir: New file.
5438         * modules/readdir: New file.
5439         * modules/rewinddir: New file.
5440         * modules/closedir: New file.
5441         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
5442         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
5443         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
5444         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
5445         * NEWS: Mention the 'fchdir' change.
5446
5447 2011-09-11  Bruno Haible  <bruno@clisp.org>
5448
5449         asm-underscore.m4: Support for MSVC.
5450         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
5451         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
5452
5453 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
5454
5455         Doc about crypt functions.
5456         * doc/posix-functions/crypt.texi: Expand range of glibc versions
5457         needing for _GNU_SOURCE to get crypt.
5458         * doc/posix-functions/encrypt.texi: Likewise.
5459         * doc/posix-functions/setkey.texi: Likewise.
5460
5461 2011-09-11  Bruno Haible  <bruno@clisp.org>
5462
5463         doc: Update regarding MSVC 9.
5464         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
5465         tested".
5466         * doc/posix-functions/*.texi: Update with info about MSVC 9.
5467         * doc/posix-headers/*.texi: Likewise.
5468         * doc/pastposix-functions/*.texi: Likewise.
5469         * doc/glibc-functions/*.texi: Likewise.
5470         * doc/glibc-headers/*.texi: Likewise.
5471
5472 2011-09-11  Bruno Haible  <bruno@clisp.org>
5473
5474         unistd et al.: Don't assume <unistd.h> exists.
5475         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
5476         does not exist.
5477         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
5478         exist. But include <stdlib.h>.
5479         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
5480         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
5481         symlink() does not exist.
5482         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
5483         include <io.h> instead.
5484         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
5485         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
5486         include <direct.h> instead.
5487         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5488         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5489         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
5490         <io.h> instead.
5491         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
5492         correctly if the system does not have hard links.
5493         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
5494         <direct.h> instead.
5495         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
5496         it when looking for function declarations.
5497         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
5498         <direct.h> and <io.h> instead.
5499         * doc/posix-headers/unistd.texi: More details about MSVC problem.
5500
5501 2011-09-11  Bruno Haible  <bruno@clisp.org>
5502
5503         strcase: Support for MSVC.
5504         * modules/strcase (Status, Notice): Remove obsoletion mark.
5505         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
5506         * doc/posix-functions/strncasecmp.texi: Likewise.
5507
5508         strings: Don't assume <strings.h> exists.
5509         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
5510         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
5511         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
5512         * doc/posix-headers/strings.texi: Mention the MSVC problem.
5513
5514 2011-09-11  Bruno Haible  <bruno@clisp.org>
5515
5516         dirent: Don't assume <dirent.h> exists.
5517         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
5518         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
5519         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
5520         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
5521
5522 2011-09-11  Bruno Haible  <bruno@clisp.org>
5523
5524         Fix wint_t on MSVC.
5525         * lib/wchar.in.h (wint_t): On MSVC, override it.
5526         * lib/wctype.in.h (wint_t): Likewise.
5527         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
5528         MSVC.
5529         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
5530         * doc/posix-headers/wctype.texi: Likewise.
5531
5532 2011-09-11  Bruno Haible  <bruno@clisp.org>
5533
5534         sys_types: Fix typo.
5535         * lib/sys_types.in.h: Fix typo in comment.
5536         Reported by Paul Eggert.
5537
5538         Support for MSVC compiler: Ensure size_t gets defined.
5539         * modules/strings (Depends-on): Add 'sys_types'.
5540         * modules/sys_uio (Depends-on): Likewise.
5541         * lib/sys_uio.in.h: Update comment.
5542
5543         C++ tests for module 'sys_types'.
5544         * modules/sys_types-c++-tests: New file.
5545         * tests/test-sys_types-c++.cc: New file.
5546
5547         Tests for module 'sys_types'.
5548         * modules/sys_types-tests: New file.
5549         * tests/test-sys_types.c: New file.
5550
5551         New module 'sys_types'.
5552         * lib/sys_types.in.h: New file.
5553         * m4/sys_types_h.m4: New file.
5554         * modules/sys_types: New file.
5555         * doc/posix-headers/sys_types.texi: Mention the new module and the
5556         size_t problem on MSVC 9.
5557
5558 2011-09-11  Bruno Haible  <bruno@clisp.org>
5559
5560         Support for MSVC compiler: Avoid division by a literal 0.
5561         * lib/math.in.h (NAN): Define through a function call also on MSVC.
5562         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
5563         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
5564         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
5565         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
5566         * tests/infinity.h: New file.
5567         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
5568         on MSVC.
5569         * tests/test-ceilf1.c: Include infinity.h.
5570         (main): Use Infinityf.
5571         * tests/test-ceil1.c: Include infinity.h.
5572         (main): Use Infinityd.
5573         * tests/test-ceill.c: Include infinity.h.
5574         (main): Use Infinityl.
5575         * tests/test-dprintf-posix.c: Include infinity.h.
5576         (test_function): Use Infinityd.
5577         * tests/test-floorf1.c: Include infinity.h.
5578         (main): Use Infinityf.
5579         * tests/test-floor1.c: Include infinity.h.
5580         (main): Use Infinityd.
5581         * tests/test-floorl.c: Include infinity.h.
5582         (main): Use Infinityl.
5583         * tests/test-fprintf-posix.c: Include infinity.h.
5584         (test_function): Use Infinityd.
5585         * tests/test-frexp.c: Include infinity.h.
5586         (main): Use Infinityd.
5587         * tests/test-frexpl.c: Include infinity.h.
5588         (main): Use Infinityl.
5589         * tests/test-isfinite.c: Include infinity.h.
5590         (test_isfinitef): Use Infinityf.
5591         (test_isfinited): Use Infinityd.
5592         (test_isfinitel): Use Infinityl.
5593         * tests/test-isinf.c: Include infinity.h.
5594         (test_isinff): Use Infinityf.
5595         (test_isinfd): Use Infinityd.
5596         (test_isinfl): Use Infinityl.
5597         * tests/test-isnan.c: Include infinity.h.
5598         (test_float): Use Infinityf.
5599         (test_double): Use Infinityd.
5600         (test_long_double): Use Infinityl.
5601         * tests/test-isnanf.h: Include infinity.h.
5602         (main): Use Infinityf.
5603         * tests/test-isnand.h: Include infinity.h.
5604         (main): Use Infinityd.
5605         * tests/test-isnanl.h: Include infinity.h.
5606         (main): Use Infinityl.
5607         * tests/test-ldexpl.c: Include infinity.h.
5608         (main): Use Infinityl.
5609         * tests/test-printf-posix.h: Include infinity.h.
5610         (test_function): Use Infinityd.
5611         * tests/test-roundf1.c: Include infinity.h.
5612         (main): Use Infinityf.
5613         * tests/test-round1.c: Include infinity.h.
5614         (main): Use Infinityd.
5615         * tests/test-roundl.c: Include infinity.h.
5616         (main): Use Infinityl.
5617         * tests/test-signbit.c: Include infinity.h.
5618         (test_signbitf): Use Infinityf.
5619         (test_signbitd): Use Infinityd.
5620         (test_signbitl): Use Infinityl.
5621         * tests/test-snprintf-posix.h: Include infinity.h.
5622         (test_function): Use Infinityd, Infinityl.
5623         * tests/test-sprintf-posix.h: Include infinity.h.
5624         (test_function): Use Infinityd, Infinityl.
5625         * tests/test-truncf1.c: Include infinity.h.
5626         (main): Use Infinityf.
5627         * tests/test-trunc1.c: Include infinity.h.
5628         (main): Use Infinityd.
5629         * tests/test-truncl.c: Include infinity.h.
5630         (main): Use Infinityl.
5631         * tests/test-vasnprintf-posix.c: Include infinity.h.
5632         (test_function): Use Infinityd, Infinityl.
5633         * tests/test-vasprintf-posix.c: Include infinity.h.
5634         (test_function): Use Infinityd, Infinityl.
5635         * modules/ceilf-tests (Files): Add tests/infinity.h.
5636         * modules/ceil-tests (Files): Likewise.
5637         * modules/ceill-tests (Files): Likewise.
5638         * modules/dprintf-posix-tests (Files): Likewise.
5639         * modules/floorf-tests (Files): Likewise.
5640         * modules/floor-tests (Files): Likewise.
5641         * modules/floorl-tests (Files): Likewise.
5642         * modules/fprintf-posix-tests (Files): Likewise.
5643         * modules/frexp-tests (Files): Likewise.
5644         * modules/frexp-nolibm-tests (Files): Likewise.
5645         * modules/frexpl-tests (Files): Likewise.
5646         * modules/frexpl-nolibm-tests (Files): Likewise.
5647         * modules/isfinite-tests (Files): Likewise.
5648         * modules/isinf-tests (Files): Likewise.
5649         * modules/isnan-tests (Files): Likewise.
5650         * modules/isnanf-tests (Files): Likewise.
5651         * modules/isnanf-nolibm-tests (Files): Likewise.
5652         * modules/isnand-tests (Files): Likewise.
5653         * modules/isnand-nolibm-tests (Files): Likewise.
5654         * modules/isnanl-tests (Files): Likewise.
5655         * modules/isnanl-nolibm-tests (Files): Likewise.
5656         * modules/ldexpl-tests (Files): Likewise.
5657         * modules/printf-posix-tests (Files): Likewise.
5658         * modules/roundf-tests (Files): Likewise.
5659         * modules/round-tests (Files): Likewise.
5660         * modules/roundl-tests (Files): Likewise.
5661         * modules/signbit-tests (Files): Likewise.
5662         * modules/snprintf-posix-tests (Files): Likewise.
5663         * modules/sprintf-posix-tests (Files): Likewise.
5664         * modules/truncf-tests (Files): Likewise.
5665         * modules/trunc-tests (Files): Likewise.
5666         * modules/truncl-tests (Files): Likewise.
5667         * modules/vasnprintf-posix-tests (Files): Likewise.
5668         * modules/vasprintf-posix-tests (Files): Likewise.
5669         * modules/vdprintf-posix-tests (Files): Likewise.
5670         * modules/vfprintf-posix-tests (Files): Likewise.
5671         * modules/vprintf-posix-tests (Files): Likewise.
5672         * modules/vsnprintf-posix-tests (Files): Likewise.
5673         * modules/vsprintf-posix-tests (Files): Likewise.
5674         * modules/xprintf-posix-tests (Files): Likewise.
5675
5676 2011-09-11  Bruno Haible  <bruno@clisp.org>
5677
5678         Ensure pid_t gets defined.
5679         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
5680         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5681         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5682         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5683         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
5684         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5685         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
5686         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5687         * tests/test-fcntl-h.c: Check that pid_t is defined.
5688         * tests/test-sched.c: Likewise.
5689         * tests/test-termios.c: Likewise.
5690         * tests/test-time.c: Likewise.
5691         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
5692         * doc/posix-headers/signal.texi: Likewise.
5693         * doc/posix-headers/sys_types.texi: Likewise.
5694         * doc/posix-headers/time.texi: Likewise.
5695
5696 2011-09-11  Bruno Haible  <bruno@clisp.org>
5697
5698         acl: Fix compilation on Solaris 10 (older version).
5699         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
5700         of ACE_EVERYONE.
5701         * lib/set-mode-acl.c (qset_acl): Likewise.
5702         Reported by Christian Jullien <eligis@orange.fr>.
5703
5704 2011-09-10  Bruno Haible  <bruno@clisp.org>
5705
5706         iconv, unsetenv: Add support for MSVC compiler.
5707         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
5708         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
5709
5710 2011-09-10  Bruno Haible  <bruno@clisp.org>
5711
5712         *printf: Add support for MSVC compiler.
5713         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
5714         handles the exception caused by the %n directive. When cross-compiling,
5715         guess no on native Windows.
5716         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5717         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
5718         emulate it through vsnprintf.
5719         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
5720         * doc/posix-functions/dprintf.texi: Update documentation regarding
5721         MSVC 9.
5722         * doc/posix-functions/fprintf.texi: Likewise.
5723         * doc/posix-functions/printf.texi: Likewise.
5724         * doc/posix-functions/snprintf.texi: Likewise.
5725         * doc/posix-functions/sprintf.texi: Likewise.
5726         * doc/posix-functions/swprintf.texi: Likewise.
5727         * doc/posix-functions/vdprintf.texi: Likewise.
5728         * doc/posix-functions/vfprintf.texi: Likewise.
5729         * doc/posix-functions/vprintf.texi: Likewise.
5730         * doc/posix-functions/vsnprintf.texi: Likewise.
5731         * doc/posix-functions/vsprintf.texi: Likewise.
5732         * doc/glibc-functions/asprintf.texi: Likewise.
5733         * doc/glibc-functions/obstack_printf.texi: Likewise.
5734         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5735         * doc/glibc-functions/vasprintf.texi: Likewise.
5736
5737 2011-09-10  Bruno Haible  <bruno@clisp.org>
5738
5739         nocrash: Add support for native Windows.
5740         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
5741
5742 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
5743             Bruno Haible  <bruno@clisp.org>
5744
5745         absolute-header, include-next: Add support for MSVC compiler.
5746         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
5747         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
5748         directory separator in #line directives.
5749         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
5750         recognize also backslash as directory separator in #line directives.
5751
5752 2011-09-08  Jim Meyering  <meyering@redhat.com>
5753
5754         maint.mk: mark the post-release commit log with "maint: " prefix
5755         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
5756         one-line commit-log summary.
5757
5758 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
5759             Bruno Haible  <bruno@clisp.org>
5760
5761         Doc about crypt functions.
5762         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
5763         systems.
5764         * doc/posix-functions/encrypt.texi: Likewise.
5765         * doc/posix-functions/setkey.texi: Likewise.
5766
5767 2011-09-08  Simon Josefsson  <simon@josefsson.org>
5768
5769         * lib/gc.h: Fix copyright header.
5770
5771 2011-09-07  Bruno Haible  <bruno@clisp.org>
5772
5773         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
5774         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
5775         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
5776
5777 2011-09-07  Bruno Haible  <bruno@clisp.org>
5778
5779         openat: Work around compilation error with OSF/1 5.1 DTK cc.
5780         * lib/fopen.c: Use different syntax for include of <stdio.h>.
5781         * lib/freopen.c: Likewise.
5782         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
5783         * lib/lstat.c: Likewise.
5784         * lib/stat.c: Likewise.
5785         * lib/open.c: Use different syntax for include of <fcntl.h>.
5786         * lib/openat.c: Include fcntl.h again, explicitly.
5787
5788 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
5789
5790         parse-datetime: document the newly accepted format
5791         * doc/parse-datetime.texi (Combined date and time of day items):
5792         New section.
5793
5794 2011-09-06  Bruno Haible  <bruno@clisp.org>
5795
5796         acl: Fix a test failure on newer Solaris 10 with ZFS.
5797         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
5798         ENOSYS as no ACL.
5799         Reported by Jim Meyering.
5800
5801 2011-09-06  Bruno Haible  <bruno@clisp.org>
5802
5803         acl: Update for AIX >= 5.3 with NFS.
5804         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
5805         ENOSYS as no ACL.
5806
5807         acl: Fix a test failure on AIX >= 5.3 with NFS.
5808         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
5809         as no ACL.
5810
5811 2011-09-06  Bruno Haible  <bruno@clisp.org>
5812
5813         acl: Fix a test failure on IRIX 6.5 with NFS.
5814         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
5815         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
5816         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
5817         * lib/copy-acl.c (qcopy_acl): Likewise.
5818
5819 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5820
5821         openat: port to AIX 7.1 with large files
5822         AIX 7.1 does a "#define openat open64at" if large files are in use,
5823         so we can't simply #undef openat.  Use the orig_openat trick (similar
5824         to orig_open in lib/open.c) to work around the problem.  Problem
5825         reported by Kevin Brott for GNU tar, in the thread containing
5826         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
5827         * lib/openat.c (__need_system_fcntl_h): Define first.
5828         Include <fcntl.h> and <sys/types.h> before undefining.
5829         (orig_openat) [HAVE_OPENAT]: New inline function.
5830         (openat) [HAVE_OPENAT]: Do not undef.
5831         (rpl_openat): Use orig_openat, not openat.
5832
5833 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5834             Bruno Haible  <bruno@clisp.org>
5835
5836         acl: Avoid errors on NonStop Kernel.
5837         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
5838         ENOTSUP errors.
5839
5840 2011-09-05  Bruno Haible  <bruno@clisp.org>
5841
5842         acl: Clean up Solaris code.
5843         * lib/acl-internal.h: Remove no-op #if.
5844         * lib/file-has-acl.c: Likewise.
5845         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
5846         * lib/copy-acl.c (qcopy_acl): Likewise.
5847
5848 2011-09-05  Bruno Haible  <bruno@clisp.org>
5849
5850         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
5851         binaries built on the original Solaris 10.
5852         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
5853         trivial.
5854
5855 2011-09-05  Bruno Haible  <bruno@clisp.org>
5856
5857         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5858         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
5859         10.
5860         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
5861         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
5862         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
5863         instead of acl_get, facl_get, acl_set, facl_set.
5864
5865 2011-09-05  Bruno Haible  <bruno@clisp.org>
5866
5867         copy-file: Try unit tests on more file systems.
5868         * tests/test-copy-file-1.sh: New file.
5869         * tests/test-copy-file-2.sh: New file.
5870         * modules/copy-file-tests (Files): Add them.
5871         (Makefile.am): Add them to TESTS.
5872
5873         acl: Try unit tests on more file systems.
5874         * tests/test-file-has-acl-1.sh: New file.
5875         * tests/test-file-has-acl-2.sh: New file.
5876         * tests/test-set-mode-acl-1.sh: New file.
5877         * tests/test-set-mode-acl-2.sh: New file.
5878         * tests/test-copy-acl-1.sh: New file.
5879         * tests/test-copy-acl-2.sh: New file.
5880         * modules/acl-tests (Files): Add them.
5881         (Makefile.am): Add them to TESTS.
5882
5883 2011-09-04  Bruno Haible  <bruno@clisp.org>
5884
5885         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5886         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
5887         10.
5888         (OLD_ALLOW, OLD_DENY): New macros.
5889         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
5890         ACE_ACCESS_ALLOWED_ACE_TYPE.
5891         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
5892         ACE_ACCESS_DENIED_ACE_TYPE.
5893         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
5894         (NEW_ACE_EXECUTE): Fix value.
5895         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
5896         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
5897         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
5898         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
5899         NEW_ACE_SYNCHRONIZE): New macros.
5900         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
5901         instead of acl_fromtext, acl_set, facl_set.
5902         Fixes a coreutils/tests/cp/perm failure.
5903
5904 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
5905
5906         openat: test for fstatat (..., 0) bug
5907         Further testing with tar suggests that fstatat (..., 0)
5908         does not work in general, on AIX 7.1; see
5909         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
5910         So, give up entirely on AIX 7.1's fstatat, and fall back on our
5911         replacement fstatat (which is what older AIX releases were using
5912         anyway).
5913         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
5914         use is now changed to orig_fstatat.  This was probably the right
5915         thing to do anyway.
5916         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
5917         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
5918         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
5919         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
5920         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
5921         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
5922         if the bug is found.
5923
5924         openat: test for fstatat (AT_FDCWD, ..., 0) bug
5925         This tests for another fstatat bug on AIX 7.1:
5926         fstatat (AT_FDCWD, ..., 0) does not work.  See
5927         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
5928         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
5929         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
5930         (rpl_fstatat): Adjust so that it works around either (or both)
5931         bugs if present.
5932         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
5933
5934 2011-09-03  Karl Berry  <karl@gnu.org>
5935
5936         * doc/regex.texi (Character Class Operators): Avoid literal ":"
5937         in index entries.
5938
5939 2011-09-02  Bruno Haible  <bruno@clisp.org>
5940
5941         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
5942         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
5943         values of AR, ARFLAGS, RANLIB.
5944         Reported by John W. Eaton <jwe@gnu.org> for Octave.
5945
5946 2011-09-02  Bruno Haible  <bruno@clisp.org>
5947
5948         Find 'ar' program that fits with --host argument.
5949         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
5950
5951 2011-09-02  Bruno Haible  <bruno@clisp.org>
5952
5953         tests: init.sh: Support any non-GNU diff.
5954         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
5955         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
5956         Solaris 8.
5957
5958 2011-09-02  Bruno Haible  <bruno@clisp.org>
5959
5960         tests: init.sh: work also with any non-GNU diff that supports -u
5961         * tests/init.sh: Relax check for diff -u support.
5962         Rather than checking for GNU diff via --version, simply check
5963         for support for -u itself.  Useful at least on OpenBSD 4.9,
5964         AIX 7.1, IRIX 6.5, and Solaris 10.
5965
5966 2011-09-01  Bruno Haible  <bruno@clisp.org>
5967
5968         strtoimax, strtoumax: Document problem on HP-UX 11.
5969         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
5970         * doc/posix-functions/strtoumax.texi: Likewise.
5971
5972 2011-09-01  Bruno Haible  <bruno@clisp.org>
5973
5974         strtoumax: Avoid link error on OSF/1 with DTK cc.
5975         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
5976         defined as a function.
5977         * modules/strtoumax (Depends-on, configure.ac): Test only whether
5978         strtoumax is defined, not whether it is declared.
5979
5980 2011-09-01  Bruno Haible  <bruno@clisp.org>
5981
5982         strtoimax: Avoid link error on OSF/1 with DTK cc.
5983         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
5984         defined as a function.
5985         * modules/strtoimax (Depends-on, configure.ac): Test only whether
5986         strtoimax is defined, not whether it is declared.
5987
5988 2011-09-01  Bruno Haible  <bruno@clisp.org>
5989
5990         imaxdiv: Avoid link error on OSF/1 with DTK cc.
5991         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
5992         as a function.
5993         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
5994         whether it is declared.
5995
5996 2011-09-01  Bruno Haible  <bruno@clisp.org>
5997
5998         imaxabs: Avoid link error on OSF/1 with DTK cc.
5999         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
6000         as a function.
6001         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
6002         whether it is declared.
6003
6004 2011-09-01  Bruno Haible  <bruno@clisp.org>
6005
6006         Tests for module 'strtoumax'.
6007         * modules/strtoumax-tests: New file.
6008         * tests/test-strtoumax.c: New file.
6009
6010         Tests for module 'strtoimax'.
6011         * modules/strtoimax-tests: New file.
6012         * tests/test-strtoimax.c: New file.
6013
6014         Tests for module 'imaxdiv'.
6015         * modules/imaxdiv-tests: New file.
6016         * tests/test-imaxdiv.c: New file.
6017
6018         Tests for module 'imaxabs'.
6019         * modules/imaxabs-tests: New file.
6020         * tests/test-imaxabs.c: New file.
6021
6022 2011-09-01  Bruno Haible  <bruno@clisp.org>
6023
6024         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
6025         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
6026         pthread_create.
6027
6028 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6029
6030         openat: work around AIX 7.1 fstatat issue
6031         This should fix the problem that was not properly fixed
6032         in the previous change, dated 2011-08-30.
6033         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
6034         __need_system_stat_h defined.
6035         (orig_fstatat) [HAVE_FSTATAT]: New function.
6036         (rpl_fstatat): Go back to the old way of doing things,
6037         except call orig_fstatat instead of fstatat.
6038         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
6039         Remove unnecessary check whether fstatat fills in st_size etc.
6040
6041 2011-09-01  Bruno Haible  <bruno@clisp.org>
6042
6043         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
6044         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
6045         just include the system's header.
6046
6047 2011-08-31  Jim Meyering  <meyering@redhat.com>
6048
6049         tests: avoid spurious assertion failure in test-float.c on ppc64
6050         * tests/test-float.c (test_long_double): Comment out an assertion,
6051         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
6052         with gcc-4.4.4.
6053
6054         maint: indent with spaces, not TABs
6055         I need to get in the habit of running gnulib's "make check".
6056         Both of these would have been caught.
6057         * m4/largefile.m4: Indent with spaces, not TABs.
6058         * lib/parse-datetime.y (iso_8601_time): Likewise.
6059         Spotted by Pádraig Brady.
6060
6061         test-parse-datetime.c: accommodate a relatively strict gcc warning
6062         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
6063         to avoid a warning from gcc's -Werror=missing-declarations.
6064         Insert a few spaces-before-funcall-parenthesis.
6065
6066 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
6067
6068         parse-datetime: accept ISO 8601 date and time rep with "T" separator
6069         The parser now accepts ISO 8601 date-time strings with "T" as the
6070         separator.  It has long parsed dates like "2004-02-29 16:21:42"
6071         with a space between the date and time strings.  Now it also parses
6072         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
6073         variants like "2004-02-29T16:21:42.333-07:00"
6074         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
6075         of day representation using the 'T' separator character.
6076         * doc/parse-datetime.texi (General date syntax): replace use of
6077         deprecated --iso-8601 option with --rfc-3339 in example of date
6078         command output formats that can be parsed.
6079         * tests/test-parse-datetime.c (tm_diff): New function, taken from
6080         lib/parse-datetime.y.
6081         (gmt_offset): New function.
6082         (main): Add additional test cases to validate ISO8601 extended
6083         date and time of day parsing.
6084
6085 2011-08-31  Bruno Haible  <bruno@clisp.org>
6086
6087         freopen: Documentation.
6088         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
6089         name.
6090         Reported by Claudio Bley <claudio.bley@gmail.com>.
6091
6092 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
6093
6094         freopen: Don't crash if the filename argument is NULL.
6095         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
6096         NULL.
6097
6098 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
6099
6100         openat: work around AIX 7.1 fstatat bug
6101         Problem reported by Kevin Brott for GNU tar, in the thread containing
6102         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
6103         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
6104         FSTATAT_ST_SIZE_ETC_BROKEN.
6105         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
6106         rpl_fstatat.
6107         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
6108         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
6109         AC_CHECK_FUNCS_ONCE for fstatat.
6110         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
6111         fchmodat, mkdirat, openat and unlinkat.
6112
6113 2011-08-30  Bruno Haible  <bruno@clisp.org>
6114
6115         Avoid endless recursions if config.h includes some header files.
6116         * lib/fopen.c (__need_FILE): Define already before including config.h.
6117         * lib/freopen.c (__need_FILE): Likewise.
6118         * lib/open.c (__need_system_fcntl_h): Likewise.
6119         * lib/stat.c (__need_system_sys_stat_h): Likewise.
6120         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
6121         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6122
6123 2011-08-25  Karl Berry  <karl@gnu.org>
6124
6125         * config/srclist.txt (ylwrap): new try.
6126         * build-aux/ylwrap: new file.
6127
6128 2011-08-23  Bruno Haible  <bruno@clisp.org>
6129
6130         tmpdir: Use a good default directory on native Windows.
6131         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
6132         (P_tmpdir): Default to _P_tmpdir on native Windows.
6133         (path_search): On native Windows, try the value returned by GetTempPath
6134         before trying P_tmpdir.
6135         * modules/tmpdir (Depends-on): Add pathmax.
6136         Suggested by John Darrington <john@darrington.wattle.id.au>.
6137
6138 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
6139
6140         doc: fix typo in README-release
6141         * top/README-release: Capitalize first word of a sentence.
6142
6143 2011-08-19  Jim Meyering  <meyering@redhat.com>
6144
6145         fts: do not exhaust memory when processing million-entry directories
6146         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
6147         directory would require about 256*N bytes of memory.  Thus, it was
6148         easy to construct a directory too large to be processed by any of
6149         those tools.  With this change, fts' maximum memory utilization is
6150         now limited to around 30MB.
6151         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
6152         (fts_read): When we've processed the final entry (i.e., when
6153         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
6154         using the parent entry to read any remaining entries.  Dispatch
6155         depending on what fts_build returns:
6156         - NULL+stop, aka failure: stop
6157         - NULL otherwise: move up in the dir hierarchy
6158         - non-NULL: handle this new entry
6159         (fts_build): Declare and use new local, continue_readdir.
6160         Prepare to be called from fts_read, when the entries
6161         from a partially-read directory have just been exhausted.
6162         In that case, we'll skip the opendir and instead use the parent's
6163         fts_dirp and derive dir_fd from that.
6164         Finally, in the readdir loop, if we read max_entries entries,
6165         exit the loop ensuring *not* to call closedir.  This is required
6166         so that fts_dirp can be reused on a subsequent call.
6167         Prompted by Ben England's report of memory exhaustion in find
6168         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
6169
6170         maint: fts: move decl of `dp' down into while loop; split a long line
6171         * lib/fts.c (fts_build): No semantic change.
6172
6173         fts: add/use new struct member, fts_dirp
6174         We are about to use this to manage any directory with
6175         too many entries to read all of them into memory at once.
6176         To do that, we'll need to save the DIR* pointer in each
6177         affected FTSENT struct.
6178         * lib/fts_.h: Include <dirent.h>.
6179         (struct FTSENT) [fts_dirp]: New member.
6180         * lib/fts.c (closedir_and_clear): Define.
6181         Use it in place of closedir so that we are sure to
6182         clear the new fts_dirp member when done with it.
6183         (fts_alloc): Initialize the new member.
6184         (fts_lfree): Free, if needed.
6185
6186         maint: fts: give __opendir2 a new parameter and rename
6187         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
6188         than surreptitiously using sole caller's "dir_fd".
6189         (fts_opendir): Rename from __opendir2.
6190
6191         maint: fts.c: remove __opendir2's now-unused parameter, oflag
6192         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
6193
6194         maint: fts.c: correct off-by-one indentation
6195         * lib/fts.c (fts_build): Correct indentation, change style
6196         of a couple of block comments, and bracing style.
6197
6198         maint: fts.c: move __opendir2 #define "up" out of function body
6199         * lib/fts.c (__opendir2): Move "up".  No semantic change.
6200
6201         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
6202         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
6203         out for a long time and besides was useful only on BSD systems.
6204
6205 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
6206
6207         regex: port to Stratus OpenVOS
6208         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
6209         define to empty, rather than attempting nonportable optimizations.
6210         Problem reported by Paul Green in:
6211         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
6212         and fix suggested by Eric Blake in:
6213         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
6214
6215 2011-08-17  Eric Blake  <eblake@redhat.com>
6216
6217         getcwd: fix test failures on mingw
6218         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
6219         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
6220         test if long directory cannot be created, and allow mingw errno.
6221
6222         getcwd-lgpl: fix m4 to match relaxed test for BSD
6223         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
6224         (gl_FUNC_GETCWD_SIGNATURE): New macro.
6225         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
6226         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
6227         signature problem.
6228
6229         getcwd: fix compilation on mingw64
6230         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
6231         getcwd.
6232         Reported by Marc-André Lureau.
6233
6234         pipe2: silence compiler warning
6235         * lib/pipe2.c (pipe2): Hide label if it is not used.
6236
6237 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
6238
6239         relocatable-prog: fix link error
6240         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
6241         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
6242         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
6243         into modules/relocatable-lib without noticing that
6244         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
6245         also needs to build relocatable.c.
6246
6247 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6248
6249         getaddrinfo: fix sh typo in gai_strerrorA decl checking
6250         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
6251         shell code: it contained a 'break' that was not in a loop.
6252         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
6253         via a shell-language loop; this may have been true in old Autoconf
6254         versions, but it's not true in Autoconf 2.68.  I found this bug
6255         when testing coreutils git on Solaris 8, whose shell complains
6256         about the syntax error.
6257
6258 2011-08-12  Simon Josefsson  <simon@josefsson.org>
6259
6260         * lib/base64.c: Fix comment to reference RFC 4648.
6261         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
6262         <gvtulder@gmail.com>.
6263
6264 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
6265
6266         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
6267
6268         po/Makefile.in.in: fix make -q problem
6269         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
6270         rule, since there's no file named 'check-macro-version' and its
6271         use as a file breaks make -q.
6272         (all): Don't depend on check-macro-version.
6273         (CHECK_MACRO_VERSION): New macro.
6274         (stamp-po): Use it.
6275
6276         configmake: fix make -q problem
6277         * modules/configmake (configmake.h): Update configmake.h's time stamp
6278         even if the file does not change.  Otherwise, 'make -q' fails.
6279         Problem reported by Simon Josefsson in
6280         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
6281
6282 2011-08-11  Jim Meyering  <meyering@redhat.com>
6283
6284         git-version-gen: correct the advice in a comment
6285         * build-aux/git-version-gen: Correct comment.
6286         Don't recommend to list .tarball-version in .gitignore.
6287
6288 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6289
6290         base64: fix off-by-one buffer size bug
6291         Problem and (trivial) fix reported by Gijs van Tulder in
6292         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
6293         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
6294         * tests/test-base64.c (main): Catch the bug.
6295
6296 2011-08-10  Eric Blake  <eblake@redhat.com>
6297
6298         closein: correct comments
6299         * lib/closein.c (close_stdin): Improve comments.
6300
6301 2011-08-09  Bruno Haible  <bruno@clisp.org>
6302
6303         More tests for 'fseeko'.
6304         * tests/test-fseeko3.c: New file, from Eric Blake.
6305         * tests/test-fseeko3.sh: New file.
6306         * modules/fseeko-tests (Files): Add them.
6307         (TESTS): Add test-fseeko3.sh.
6308         (check_PROGRAMS): Add test-fseeko3.
6309
6310 2011-08-09  Eric Blake  <eblake@redhat.com>
6311
6312         fseeko: remove unneeded hack
6313         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
6314
6315         fseeko: fix bug on glibc
6316         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
6317         Reported by John W. Eaton.
6318
6319 2011-08-08  Bruno Haible  <bruno@clisp.org>
6320
6321         unictype/base: Fix interoperability with preinstalled libunistring.
6322         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
6323         Reported by Simon Josefsson.
6324
6325 2011-08-08  Bruno Haible  <bruno@clisp.org>
6326
6327         iswblank: Detect declaration correctly.
6328         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
6329         AC_CHECK_DECLS invocation.
6330
6331 2011-08-08  Bruno Haible  <bruno@clisp.org>
6332
6333         tcgetsid: Detect declaration correctly.
6334         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
6335         AC_CHECK_DECLS invocation.
6336         Reported by Simon Josefsson.
6337
6338 2011-08-08  Eric Blake  <eblake@redhat.com>
6339
6340         largefile: fix typo that regressed large file support
6341         * modules/largefile (configure.ac-early): Fix section name.
6342
6343 2011-08-06  Karl Berry  <karl@gnu.org>
6344
6345         * MODULES.html.sh (func_all_files): _Noreturn is no longer
6346         a separate module.
6347
6348 2011-08-05  Simon Josefsson  <simon@josefsson.org>
6349
6350         openat: Fix warnings and commens when building unlinkat.c on Hurd.
6351         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
6352         get prototype for free.
6353
6354 2011-08-04  Bruno Haible  <bruno@clisp.org>
6355
6356         Tests for module 'pathmax'.
6357         * modules/pathmax-tests: New file.
6358         * tests/test-pathmax.c: New file.
6359
6360         canonicalize-lgpl: Support larger filenames on the Hurd.
6361         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
6362         Reported by Paul Eggert.
6363
6364         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
6365         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
6366         * lib/chdir-long.h: Include pathmax.h.
6367         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
6368         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
6369         (PATH_MAX): Remove code that is done by pathmax.h.
6370         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
6371         * lib/tmpfile.c: Add a comment.
6372         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
6373         * modules/chdir-long (Depends-on): Add pathmax.
6374         * modules/getcwd (Depends-on): Add pathmax.
6375         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
6376         is not defined.
6377         * doc/posix-headers/limits.texi: Mention the pathmax module.
6378         * NEWS: Mention the change.
6379
6380 2011-08-02  Bruno Haible  <bruno@clisp.org>
6381
6382         pthread_sigmask: Actually use results of gl_THREADLIB.
6383         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
6384         gl_THREADLIB, not gl_[]THREADLIB.
6385         Reported by Eric Blake.
6386
6387 2011-08-02  Jim Meyering  <meyering@redhat.com>
6388
6389         maint.mk: relax the default _gl_TS_function_match regexp
6390         * top/maint.mk (_gl_TS_function_match): Don't require at least one
6391         space between function name and "(" in an "extern" declaration.
6392         That would fail to match a decl with no space there: extern void foo();
6393
6394 2011-07-31  Iain Nicol  <iain@thenicols.net>
6395
6396         git-version-gen: document that EXTRA_DIST must include .version
6397         * build-aux/git-version-gen: In the how-to-use comment, document
6398         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
6399         will fail when run from an unpacked distribution tarball.
6400
6401 2011-08-01  Bruno Haible  <bruno@clisp.org>
6402
6403         wctype-h: Fix last change.
6404         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
6405         REPLACE_TOWLOWER to 0.
6406         Reported by Sam Steingold <sds@gnu.org>.
6407
6408 2011-07-31  Bruno Haible  <bruno@clisp.org>
6409
6410         frexpl: Update autoconf test.
6411         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
6412         according to changes of 2011-06-20.
6413
6414 2011-07-31  Bruno Haible  <bruno@clisp.org>
6415
6416         sys_utsname: Add support for Minix.
6417         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
6418         <sys/utsname.h>.
6419         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6420         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
6421
6422 2011-07-31  Bruno Haible  <bruno@clisp.org>
6423
6424         strings: Add support for Minix.
6425         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
6426         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6427         * doc/posix-headers/strings.texi: Document the Minix problem.
6428
6429 2011-07-31  Bruno Haible  <bruno@clisp.org>
6430
6431         wctype-h: Add support for Minix.
6432         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
6433         REPLACE_TOWLOWER.
6434         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
6435         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
6436         REPLACE_ISWCNTRL.
6437
6438 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
6439
6440         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
6441         This is a performance improvement for 64-bit hosts: it causes the
6442         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
6443
6444 2011-07-31  Bruno Haible  <bruno@clisp.org>
6445
6446         stdioext: Add support for Minix.
6447         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
6448         * lib/fpurge.c (fpurge): Likewise.
6449         * lib/freadahead.c (freadahead): Likewise.
6450         * lib/freadable.c (freadable): Likewise.
6451         * lib/freading.c (freading): Likewise.
6452         * lib/freadptr.c (freadptr): Likewise.
6453         * lib/freadseek.c (freadptrinc): Likewise.
6454         * lib/fseeko.c (rpl_fseeko): Likewise.
6455         * lib/fseterr.c (fseterr): Likewise.
6456         * lib/fwritable.c (fwritable): Likewise.
6457         * lib/fwriting.c (fwriting): Likewise.
6458         * lib/fflush.c (clear_ungetc_buffer): Update comment.
6459         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
6460
6461 2011-07-31  Bruno Haible  <bruno@clisp.org>
6462
6463         errno: Port to Minix.
6464         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
6465         ECONNABORTED are defined.
6466         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
6467         GNULIB_defined_ECONNABORTED): New macros.
6468         * lib/strerror-override.h (strerror_override): Test also
6469         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
6470         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
6471         ECONNABORTED.
6472         * doc/posix-headers/errno.texi: Mention the Minix problem.
6473
6474 2011-07-31  Bruno Haible  <bruno@clisp.org>
6475
6476         Work around declaration collisions on Minix.
6477         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
6478         defined, set REPLACE_MBSINIT.
6479         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
6480         defined, set REPLACE_MBRTOWC.
6481         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
6482         set REPLACE_MBRLEN.
6483         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
6484         defined, set REPLACE_MBSRTOWCS.
6485         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
6486         defined, set REPLACE_WCRTOMB.
6487         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
6488         defined, set REPLACE_WCSRTOMBS.
6489
6490 2011-07-31  Bruno Haible  <bruno@clisp.org>
6491
6492         Add support for Minix with ACK compiler.
6493         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
6494         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
6495         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
6496
6497 2011-07-31  Bruno Haible  <bruno@clisp.org>
6498
6499         Documentation about Minix.
6500         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
6501         * doc/glibc-headers/*.texi: Likewise.
6502         * doc/posix-functions/*.texi: Likewise.
6503         * doc/glibc-functions/*.texi: Likewise.
6504
6505 2011-07-31  Bruno Haible  <bruno@clisp.org>
6506
6507         snippet/warn-on-use: Fix indentation.
6508         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
6509
6510 2011-07-25  Jim Meyering  <meyering@redhat.com>
6511
6512         tests: test-update-copyright.sh: remove unnecessary "rm" commands
6513         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
6514         commands.
6515
6516 2011-07-27  Jim Meyering  <meyering@redhat.com>
6517
6518         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
6519         * top/maint.mk (gl_extract_significant_defines_): Now that
6520         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
6521         gnulib/lib/signal.in.h, and now that we recommend to
6522         define-if-undefined those two symbols in application code,
6523         we must filter them out of the "significant" list.
6524         This avoids a "make syntax-check" failure in coreutils.
6525
6526 2011-07-26  Eric Blake  <eblake@redhat.com>
6527
6528         warnings: add comments about previous patch
6529         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
6530         * m4/include_next.m4: Likewise.
6531         * m4/warn-on-use.m4: Likewise.
6532         * m4/warnings.m4: Likewise, and simplify use.
6533         Suggested by Stefano Lattarini.
6534
6535         include-next, warnings: support older autoconf
6536         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
6537         AS_VAR_PUSHDEF in a way that works with older autoconf.
6538         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
6539         Reported by Daniel P. Berrange.
6540
6541 2011-07-25  Bruno Haible  <bruno@clisp.org>
6542
6543         fseek, ftell: Fix doc.
6544         * doc/posix-functions/fseek.texi: Reword statement about
6545         AC_SYS_LARGEFILE.
6546         * doc/posix-functions/ftell.texi: Likewise.
6547
6548 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6549             Bruno Haible  <bruno@clisp.org>
6550
6551         Add dependencies to the 'largefile' module.
6552         * modules/fopen (Depends-on): Add 'largefile'.
6553         * modules/freopen (Depends-on): Likewise.
6554         * modules/fseeko (Depends-on): Likewise.
6555         * modules/ftello (Depends-on): Likewise.
6556         * modules/glob (Depends-on): Likewise.
6557         * modules/lseek (Depends-on): Likewise.
6558         * modules/lstat (Depends-on): Likewise.
6559         * modules/mkostemp (Depends-on): Likewise.
6560         * modules/mkostemps (Depends-on): Likewise.
6561         * modules/mkstemp (Depends-on): Likewise.
6562         * modules/mkstemps (Depends-on): Likewise.
6563         * modules/open (Depends-on): Likewise.
6564         * modules/openat (Depends-on): Likewise.
6565         * modules/pread (Depends-on): Likewise.
6566         * modules/pwrite (Depends-on): Likewise.
6567         * modules/scandir (Depends-on): Likewise.
6568         * modules/stat (Depends-on): Likewise.
6569         * modules/tmpfile (Depends-on): Likewise.
6570         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
6571         since the containing module now depends on the largefile module.
6572         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
6573         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
6574         off_t is fixed by gnulib.
6575         * doc/posix-functions/freopen.texi: Likewise.
6576         * doc/posix-functions/fseeko.texi: Likewise.
6577         * doc/posix-functions/fstatat.texi: Likewise.
6578         * doc/posix-functions/ftello.texi: Likewise.
6579         * doc/posix-functions/glob.texi: Likewise.
6580         * doc/posix-functions/lseek.texi: Likewise.
6581         * doc/posix-functions/lstat.texi: Likewise.
6582         * doc/posix-functions/mkstemp.texi: Likewise.
6583         * doc/posix-functions/open.texi: Likewise.
6584         * doc/posix-functions/openat.texi: Likewise.
6585         * doc/posix-functions/pread.texi: Likewise.
6586         * doc/posix-functions/pwrite.texi: Likewise.
6587         * doc/posix-functions/scandir.texi: Likewise.
6588         * doc/posix-functions/stat.texi: Likewise.
6589         * doc/posix-functions/tmpfile.texi: Likewise.
6590         * doc/glibc-functions/mkostemp.texi: Likewise.
6591         * doc/glibc-functions/mkostemps.texi: Likewise.
6592         * doc/glibc-functions/mkstemps.texi: Likewise.
6593
6594 2011-07-25  Bruno Haible  <bruno@clisp.org>
6595
6596         fcntl: Move AC_LIBOBJ invocation to module description.
6597         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
6598         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
6599
6600         fcntl: Remove call-in from fchdir.m4.
6601         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
6602         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
6603
6604         dup3: Remove potential call-in from fchdir.m4.
6605         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
6606         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
6607
6608         dup2: Move AC_LIBOBJ invocation to module description.
6609         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
6610         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
6611         Don't invoke AC_LIBOBJ.
6612         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
6613
6614         dup2: Remove call-in from fchdir.m4.
6615         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
6616         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
6617
6618         fclose: Move AC_LIBOBJ invocation to module description.
6619         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
6620         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
6621         to 1.
6622         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
6623
6624         fclose: Remove call-in from close.m4.
6625         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
6626         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
6627
6628         close: Move AC_LIBOBJ invocation to module description.
6629         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
6630         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
6631         1.
6632         * modules/close (configure.ac): Invoke AC_LIBOBJ.
6633
6634         close: Remove call-in from fchdir.m4.
6635         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
6636         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
6637
6638         open: Move AC_LIBOBJ invocation to module description.
6639         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
6640         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
6641         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
6642
6643         open: Remove call-in from fchdir.m4.
6644         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
6645         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
6646
6647         fchdir: Start to remove gl_REPLACE_* idiom.
6648         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
6649         (gl_FUNC_FCHDIR): Invoke it.
6650
6651 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6652
6653         * lib/ftell.c (ftell): Comment out cast.
6654
6655         close: use gl_REPLACE_FCLOSE only if defined
6656         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
6657         is defined.  The close module doesn't depend on the fclose module
6658         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
6659         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
6660         I reproduced the problem with "./gnulib-tool --test close sys_socket".
6661
6662 2011-07-24  Jim Meyering  <meyering@redhat.com>
6663
6664         test-select.h: avoid warning when using gcc's -Wmissing-declarations
6665         * tests/test-select.h (test_function): Declare as "static".
6666
6667 2011-07-24  Bruno Haible  <bruno@clisp.org>
6668
6669         doc: Mention the effects of AC_SYS_LARGEFILE.
6670         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
6671         on this function.
6672         * doc/posix-functions/aio_error.texi: Likewise.
6673         * doc/posix-functions/aio_fsync.texi: Likewise.
6674         * doc/posix-functions/aio_read.texi: Likewise.
6675         * doc/posix-functions/aio_return.texi: Likewise.
6676         * doc/posix-functions/aio_suspend.texi: Likewise.
6677         * doc/posix-functions/aio_write.texi: Likewise.
6678         * doc/posix-functions/fgetpos.texi: Likewise.
6679         * doc/posix-functions/fopen.texi: Likewise.
6680         * doc/posix-functions/freopen.texi: Likewise.
6681         * doc/posix-functions/fsetpos.texi: Likewise.
6682         * doc/posix-functions/fstatvfs.texi: Likewise.
6683         * doc/posix-functions/ftruncate.texi: Likewise.
6684         * doc/posix-functions/ftw.texi: Likewise.
6685         * doc/posix-functions/getrlimit.texi: Likewise.
6686         * doc/posix-functions/glob.texi: Likewise.
6687         * doc/posix-functions/lio_listio.texi: Likewise.
6688         * doc/posix-functions/lockf.texi: Likewise.
6689         * doc/posix-functions/mkstemp.texi: Likewise.
6690         * doc/posix-functions/mmap.texi: Likewise.
6691         * doc/posix-functions/nftw.texi: Likewise.
6692         * doc/posix-functions/openat.texi: Likewise.
6693         * doc/posix-functions/opendir.texi: Likewise.
6694         * doc/posix-functions/posix_fadvise.texi: Likewise.
6695         * doc/posix-functions/posix_fallocate.texi: Likewise.
6696         * doc/posix-functions/pread.texi: Likewise.
6697         * doc/posix-functions/pwrite.texi: Likewise.
6698         * doc/posix-functions/readdir.texi: Likewise.
6699         * doc/posix-functions/readdir_r.texi: Likewise.
6700         * doc/posix-functions/rewinddir.texi: Likewise.
6701         * doc/posix-functions/scandir.texi: Likewise.
6702         * doc/posix-functions/seekdir.texi: Likewise.
6703         * doc/posix-functions/setrlimit.texi: Likewise.
6704         * doc/posix-functions/statvfs.texi: Likewise.
6705         * doc/posix-functions/telldir.texi: Likewise.
6706         * doc/posix-functions/tmpfile.texi: Likewise.
6707         * doc/posix-functions/truncate.texi: Likewise.
6708         * doc/glibc-functions/fallocate.texi: Likewise.
6709         * doc/glibc-functions/fstatfs.texi: Likewise.
6710         * doc/glibc-functions/fts_children.texi: Likewise.
6711         * doc/glibc-functions/fts_read.texi: Likewise.
6712         * doc/glibc-functions/getdirentries.texi: Likewise.
6713         * doc/glibc-functions/mkostemp.texi: Likewise.
6714         * doc/glibc-functions/mkostemps.texi: Likewise.
6715         * doc/glibc-functions/mkstemps.texi: Likewise.
6716         * doc/glibc-functions/preadv.texi: Likewise.
6717         * doc/glibc-functions/pwritev.texi: Likewise.
6718         * doc/glibc-functions/sendfile.texi: Likewise.
6719         * doc/glibc-functions/statfs.texi: Likewise.
6720
6721 2011-07-24  Bruno Haible  <bruno@clisp.org>
6722
6723         doc: Fix typo.
6724         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
6725
6726 2011-07-24  Bruno Haible  <bruno@clisp.org>
6727
6728         doc: Mention fsusage.
6729         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
6730
6731 2011-07-24  Bruno Haible  <bruno@clisp.org>
6732
6733         doc: Mention new glibc headers and functions.
6734         * doc/glibc-headers/gshadow.texi: New file.
6735         * doc/glibc-functions/endsgent.texi: New file.
6736         * doc/glibc-functions/fgetsgent.texi: New file.
6737         * doc/glibc-functions/fgetsgent_r.texi: New file.
6738         * doc/glibc-functions/getsgent.texi: New file.
6739         * doc/glibc-functions/getsgent_r.texi: New file.
6740         * doc/glibc-functions/getsgnam.texi: New file.
6741         * doc/glibc-functions/getsgnam_r.texi: New file.
6742         * doc/glibc-functions/putsgent.texi: New file.
6743         * doc/glibc-functions/setsgent.texi: New file.
6744         * doc/glibc-functions/sgetsgent.texi: New file.
6745         * doc/glibc-functions/sgetsgent_r.texi: New file.
6746         * doc/glibc-functions/malloc_info.texi: New file.
6747         * doc/glibc-functions/preadv.texi: New file.
6748         * doc/glibc-functions/pwritev.texi: New file.
6749         * doc/glibc-functions/register_printf_modifier.texi: New file.
6750         * doc/glibc-functions/register_printf_specifier.texi: New file.
6751         * doc/glibc-functions/register_printf_type.texi: New file.
6752         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
6753         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
6754         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
6755         * doc/glibc-functions/pthread_getname_np.texi: New file.
6756         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
6757         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
6758         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
6759         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
6760         * doc/glibc-functions/pthread_setname_np.texi: New file.
6761         * doc/glibc-functions/pthread_sigqueue.texi: New file.
6762         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
6763         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
6764         * doc/glibc-functions/qsort_r.texi: New file.
6765         * doc/glibc-functions/quick_exit.texi: New file.
6766         * doc/glibc-functions/syncfs.texi: New file.
6767         * doc/gnulib.texi: Include them.
6768         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
6769         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
6770         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
6771         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
6772         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
6773         * doc/glibc-functions/execvpe.texi: Likewise.
6774
6775 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6776
6777         ftell: don't include <unistd.h>
6778         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
6779         guaranteed to define off_t, and the ftell module depends on the
6780         stdio module.
6781
6782         ftell: do not assume wraparound signed arithmetic
6783         * lib/ftell.c: Include <limits.h>.
6784         (ftell): Don't assume wraparound signed arithmetic.
6785
6786 2011-07-24  Bruno Haible  <bruno@clisp.org>
6787
6788         close: No longer depend on module 'fclose'.
6789         * modules/close (Depends-on): Remove fclose.
6790         * NEWS: Mention the change.
6791         Suggested by Sam Steingold <sds@gnu.org>.
6792
6793 2011-07-24  Bruno Haible  <bruno@clisp.org>
6794
6795         fsusage: Enable large volume support on AIX >= 5.2.
6796         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
6797         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
6798         instead of STAT_STATVFS.
6799         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
6800
6801         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
6802         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
6803         f_blocks field only on MacOS X.
6804
6805         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
6806         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
6807         * modules/fsusage (Depends-on): Add largefile.
6808
6809 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6810
6811         * README: Modernize discussion of signed integers.
6812         Assuming overflow wraparound is no longer safe.
6813         Mention ones' complement and signed magnitude.
6814
6815 2011-07-22  Bruno Haible  <bruno@clisp.org>
6816
6817         select tests, pselect tests: Refactor.
6818         * tests/test-select.h: New file, extracted from tests/test-select.c.
6819         (select_fn): New type.
6820         (test, do_select, do_select_nowait, do_select_wait, test_tty,
6821         test_connect_first, test_accept_first, test_pair, test_socket_pair,
6822         test_pipe): Add my_select argument.
6823         (test_function): Renamed from main. Add my_select argument.
6824         * tests/test-select.c: Move most code to tests/test-select.h. Include
6825         test-select.h.
6826         * modules/select-tests (Files): Add tests/test-select.h.
6827         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
6828         (my_select, main): New functions.
6829         * modules/pselect-tests (Files): Add tests/test-select.h,
6830         tests/macros.h, tests/signature.h.
6831         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
6832         (configure.ac): Check for <sys/wait.h>.
6833
6834 2011-07-22  Bruno Haible  <bruno@clisp.org>
6835
6836         sys_select tests: Check the signature of FD_*.
6837         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
6838         signature tests from here...
6839         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
6840         here.
6841         * modules/sys_select-tests (Files): Add tests/signature.h.
6842
6843 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6844
6845         largefile: new module, replacing large-inode
6846         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
6847         * MODULES.html.sh: Add largefile, remove large-inode.
6848         * modules/largefile, m4/largefile.m4: New files.
6849         * modules/large-inode, m4/large-inode.m4: Remove.
6850
6851         fsusage: port to MacOS X 10.7 with 4 TiB file systems
6852         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
6853         implementations that use only 32 bits to count blocks.
6854         On typical hosts with 1024-byte blocks, this fails with file
6855         systems as small as 4 TiB.  Problem reported by Herb Wartens
6856         <http://debbugs.gnu.org/9140> and this should also fix a similar
6857         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
6858
6859         large-inode: New module
6860         * MODULES.html.sh: Add it.
6861         * modules/large-inode, m4/large-inode.m4: New files.
6862
6863         extensions: Enable extensions on MacOS X 10.5 and later.
6864         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
6865
6866 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
6867
6868         file-has-acl: use acl_extended_file_nofollow if available
6869         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
6870         (acl_extended_file): New macro.
6871         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
6872         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
6873
6874 2011-07-21  Bruno Haible  <bruno@clisp.org>
6875
6876         Declare system functions in a way that works with C++.
6877         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
6878         declare fdopendir as extern "C".
6879         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
6880         declare frexpl as extern "C".
6881         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
6882         declare gai_strerror as extern "C".
6883         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
6884         programs, declare gai_strerror as extern "C".
6885         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
6886         declare getlogin_r as extern "C".
6887         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
6888         as extern "C".
6889         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
6890         declare ldexpl as extern "C".
6891         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
6892         as extern "C".
6893         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
6894         program, declare getmntinfo as extern "C".
6895         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
6896         stpncpy as extern "C".
6897         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
6898         program, declare __xpg_strerror_r as extern "C".
6899         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
6900         strndup as extern "C".
6901         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
6902         declare memset and bzero as extern "C".
6903         Reported by Sam Steingold <sds@gnu.org>.
6904
6905 2011-07-12  Jim Meyering  <meyering@redhat.com>
6906
6907         maint.mk: prohibit inclusion of "verify.h" without use
6908         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
6909
6910 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6911
6912         timer-time: A new module to check for timer_settime()
6913         * m4/timer_time.m4: Check for the posix function.
6914         * modules/timer-time: Add the new module.
6915         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
6916         Mention it.
6917
6918 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
6919             Bruno Haible  <bruno@clisp.org>
6920
6921         pthread_sigmask: assume POSIX threads if --avoid=threadlib
6922         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
6923         not defined, assume POSIX threads and look for pthread_sigmask in
6924         $LIBS, without changing $CPPFLAGS.
6925
6926 2011-07-19  Bruno Haible  <bruno@clisp.org>
6927
6928         strstr: Update cross-compilation guess.
6929         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
6930         CPUs, guess no, in view of glibc
6931         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
6932         Suggested by Eric Blake. Reported by Reuben Thomas.
6933
6934 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6935
6936         getopt-gnu: suppress core dumps from detection code
6937         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
6938         to suppress core dumps that may well occur on glibc systems.
6939         * modules/getopt-gnu: Depend on nocrash.
6940
6941 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6942
6943         pthread_sigmask: ensure usleep is declared
6944         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
6945         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
6946
6947 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6948
6949         doc: Document NonStop portability issues.
6950         * doc/posix-functions/sigaction.texi (sigaction):
6951         * doc/posix-headers/signal.texi (signal.h):
6952         Document NonStop.  See Joachim Schmitz in
6953         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
6954
6955 2011-07-15  Bruno Haible  <bruno@clisp.org>
6956
6957         ffsl, ffsll: Avoid unportable behaviour.
6958         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
6959
6960 2011-07-15  Bruno Haible  <bruno@clisp.org>
6961
6962         ffs: More tests.
6963         * tests/test-ffs.c (NBITS): New macro.
6964         (main): Add more tests.
6965         * tests/test-ffsl.c (NBITS): New macro.
6966         (main): Add more tests.
6967         * tests/test-ffsll.c (NBITS): New macro.
6968         (main): Add more tests.
6969
6970 2011-07-15  Eric Blake  <eblake@redhat.com>
6971
6972         ffsl, ffsll: new modules
6973         * modules/ffsl: New file.
6974         * modules/ffsll: Likewise.
6975         * m4/ffsl.m4: Likewise.
6976         * m4/ffsll.m4: Likewise.
6977         * lib/ffsl.c: Likewise.
6978         * lib/ffsl.h: Likewise.
6979         * lib/ffsll.c: Likewise.
6980         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
6981         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
6982         * modules/string (Makefile.am): Substitute witnesses.
6983         * lib/strings.in.h (ffsl, ffsll): Declare.
6984         * modules/ffsl-tests: New test file.
6985         * modules/ffsll-tests: Likewise.
6986         * tests/test-ffsl.c: Likewise.
6987         * tests/test-ffsll.c: Likewise.
6988         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6989         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
6990         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
6991
6992         ffs: fix m4 prerequisite
6993         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
6994
6995         ffs: avoid undefined behavior
6996         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
6997         * tests/test-ffs.c (naive, main): Avoid signed shifts.
6998         Reported by Bruno Haible.
6999
7000 2011-07-12  Bruno Haible  <bruno@clisp.org>
7001
7002         pthread_sigmask: Rely on module 'threadlib'.
7003         * modules/pthread_sigmask (Depends-on): Add threadlib.
7004         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
7005         is defined.
7006
7007 2011-07-12  Bruno Haible  <bruno@clisp.org>
7008
7009         regex: Depend on module 'strcase'.
7010         * modules/regex (Depends-on): Add strcase, for strcasecmp().
7011
7012 2011-07-12  Jim Meyering  <meyering@redhat.com>
7013
7014         warn-on-use: fix typo in file name
7015         * modules/snippet/warn-on-use (Files): Correct file name:
7016         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
7017
7018 2011-07-12  Bruno Haible  <bruno@clisp.org>
7019
7020         strings: Document module.
7021         * doc/posix-headers/strings.texi: Mention module 'strings'.
7022
7023 2011-07-12  Bruno Haible  <bruno@clisp.org>
7024
7025         Rename module '_Noreturn' to 'snippet/_Noreturn'.
7026         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
7027         (Files, Makefile.am): Update.
7028         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
7029         * modules/stdlib (Depends-on): Update.
7030
7031 2011-07-12  Bruno Haible  <bruno@clisp.org>
7032
7033         * NEWS: Mention the changes.
7034
7035         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
7036         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
7037         (Files, Makefile.am): Update.
7038         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
7039         * modules/arpa_inet (Depends-on): Update.
7040         * modules/ctype (Depends-on): Update.
7041         * modules/dirent (Depends-on): Update.
7042         * modules/fcntl-h (Depends-on): Update.
7043         * modules/glob (Depends-on): Update.
7044         * modules/iconv-h (Depends-on): Update.
7045         * modules/inttypes-incomplete (Depends-on): Update.
7046         * modules/langinfo (Depends-on): Update.
7047         * modules/locale (Depends-on): Update.
7048         * modules/math (Depends-on): Update.
7049         * modules/netdb (Depends-on): Update.
7050         * modules/poll-h (Depends-on): Update.
7051         * modules/pty (Depends-on): Update.
7052         * modules/search (Depends-on): Update.
7053         * modules/signal (Depends-on): Update.
7054         * modules/spawn (Depends-on): Update.
7055         * modules/stdio (Depends-on): Update.
7056         * modules/stdlib (Depends-on): Update.
7057         * modules/string (Depends-on): Update.
7058         * modules/strings (Depends-on): Update.
7059         * modules/sys_file (Depends-on): Update.
7060         * modules/sys_ioctl (Depends-on): Update.
7061         * modules/sys_select (Depends-on): Update.
7062         * modules/sys_socket (Depends-on): Update.
7063         * modules/sys_stat (Depends-on): Update.
7064         * modules/sys_time (Depends-on): Update.
7065         * modules/sys_times (Depends-on): Update.
7066         * modules/sys_utsname (Depends-on): Update.
7067         * modules/sys_wait (Depends-on): Update.
7068         * modules/termios (Depends-on): Update.
7069         * modules/time (Depends-on): Update.
7070         * modules/unistd (Depends-on): Update.
7071         * modules/wchar (Depends-on): Update.
7072         * modules/wctype-h (Depends-on): Update.
7073         * MODULES.html.sh (Support for building libraries and executables):
7074         Update.
7075
7076         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
7077         * modules/snippet/unused-parameter: Renamed from
7078         modules/unused-parameter.
7079         (Files, Makefile.am): Update.
7080         * build-aux/snippet/unused-parameter.h: Renamed from
7081         build-aux/unused-parameter.h.
7082         * modules/selinux-h (Depends-on): Update.
7083         * modules/unistr/base (Depends-on): Update.
7084         * MODULES.html.sh (Core language properties): Update.
7085
7086         Rename module 'link-warning' to 'snippet/link-warning'.
7087         * modules/snippet/link-warning: Renamed from modules/link-warning.
7088         (Files, Makefile.am): Update.
7089         * build-aux/snippet/link-warning.h: Renamed from
7090         build-aux/link-warning.h.
7091         * MODULES.html.sh (Support for building libraries and executables):
7092         Update.
7093
7094         Rename module 'c++defs' to 'snippet/c++defs'.
7095         * modules/snippet/c++defs: Renamed from modules/c++defs.
7096         (Files, Makefile.am): Update.
7097         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
7098         * modules/arpa_inet (Depends-on): Update.
7099         * modules/ctype (Depends-on): Update.
7100         * modules/dirent (Depends-on): Update.
7101         * modules/fcntl-h (Depends-on): Update.
7102         * modules/glob (Depends-on): Update.
7103         * modules/iconv-h (Depends-on): Update.
7104         * modules/langinfo (Depends-on): Update.
7105         * modules/locale (Depends-on): Update.
7106         * modules/math (Depends-on): Update.
7107         * modules/netdb (Depends-on): Update.
7108         * modules/poll-h (Depends-on): Update.
7109         * modules/pty (Depends-on): Update.
7110         * modules/search (Depends-on): Update.
7111         * modules/signal (Depends-on): Update.
7112         * modules/spawn (Depends-on): Update.
7113         * modules/stdio (Depends-on): Update.
7114         * modules/stdlib (Depends-on): Update.
7115         * modules/string (Depends-on): Update.
7116         * modules/strings (Depends-on): Update.
7117         * modules/sys_ioctl (Depends-on): Update.
7118         * modules/sys_select (Depends-on): Update.
7119         * modules/sys_socket (Depends-on): Update.
7120         * modules/sys_stat (Depends-on): Update.
7121         * modules/sys_time (Depends-on): Update.
7122         * modules/sys_wait (Depends-on): Update.
7123         * modules/termios (Depends-on): Update.
7124         * modules/time (Depends-on): Update.
7125         * modules/unistd (Depends-on): Update.
7126         * modules/wchar (Depends-on): Update.
7127         * modules/wctype-h (Depends-on): Update.
7128
7129         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
7130         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
7131         (Files, Makefile.am): Update.
7132         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
7133         * modules/argv-iter (Depends-on): Update.
7134         * modules/arpa_inet (Depends-on): Update.
7135         * modules/dirent (Depends-on): Update.
7136         * modules/fcntl-h (Depends-on): Update.
7137         * modules/fnmatch (Depends-on): Update.
7138         * modules/getopt-posix (Depends-on): Update.
7139         * modules/glob (Depends-on): Update.
7140         * modules/iconv-h (Depends-on): Update.
7141         * modules/inttypes-incomplete (Depends-on): Update.
7142         * modules/locale (Depends-on): Update.
7143         * modules/math (Depends-on): Update.
7144         * modules/netdb (Depends-on): Update.
7145         * modules/search (Depends-on): Update.
7146         * modules/signal (Depends-on): Update.
7147         * modules/spawn (Depends-on): Update.
7148         * modules/stdio (Depends-on): Update.
7149         * modules/stdlib (Depends-on): Update.
7150         * modules/string (Depends-on): Update.
7151         * modules/strings (Depends-on): Update.
7152         * modules/sys_socket (Depends-on): Update.
7153         * modules/sys_stat (Depends-on): Update.
7154         * modules/sys_time (Depends-on): Update.
7155         * modules/sys_times (Depends-on): Update.
7156         * modules/sys_utsname (Depends-on): Update.
7157         * modules/time (Depends-on): Update.
7158         * modules/unistd (Depends-on): Update.
7159         * modules/wchar (Depends-on): Update.
7160         * MODULES.html.sh (Support for building libraries and executables):
7161         Update.
7162
7163 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7164
7165         Improvements on _Noreturn and related modules.
7166
7167         modules/_Exit-tests: test _Noreturn too
7168         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
7169         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
7170         (main): Use them.
7171
7172         stdnoreturn, stdnoreturn-tests: remove modules
7173         They're not needed here and a bit premature for use elsewhere.  See
7174         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
7175         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7176         * tests/test-stdnoreturn.c: Remove files.
7177         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
7178         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
7179         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
7180         and using noreturn.
7181         * modules/openat, modules/sigpipe-die, modules/xalloc:
7182         * modules/xmemdup0, modules/xstrtol:
7183         Remove dependency on stdnoreturn.
7184
7185         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
7186         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
7187         Reparenthesize to avoid GCC warning.
7188         Support Microsoft's syntax.
7189         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
7190
7191         _Noreturn-tests: remove module
7192         * modules/_Noreturn-tests: Remove.
7193         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
7194         * tests/test-_Noreturn.c: Remove.
7195         * tests/test-stdnoreturn.c: Merge from the old
7196         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
7197
7198 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7199
7200         _Noreturn, stdnoreturn, and related modules.
7201
7202         * top/maint.mk: Adjust to new noreturn support.
7203         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
7204         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
7205
7206         xalloc: use stdnoreturn.h
7207         * lib/xalloc.h: Include <stdnoreturn.h>.
7208         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7209         * modules/xalloc (Depends-on): Add stdnoreturn.
7210
7211         xstrtol: use stdnoreturn.h
7212         * lib/xstrtol.h: Include <stdnoreturn.h>.
7213         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7214         * modules/xstrtol (Depends-on): Add stdnoreturn.
7215
7216         xmemdup0: use stdnoreturn.h
7217         * lib/xmemdup0.h: Include <stdnoreturn.h>.
7218         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7219         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
7220
7221         sigpipe-die: use stdnoreturn.h
7222         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
7223         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7224         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
7225
7226         openat: use stdnoreturn.h
7227         * lib/openat.h: Include <stdnoreturn.h>.
7228         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7229         * modules/openat (Depends-on): Add stdnoreturn.
7230
7231         * lib/openat-die.c (openat_save_fail): Modernize comment.
7232
7233         * lib/xalloc-die.c (xalloc_die): Modernize comment.
7234
7235         * lib/glthread/thread.h: Modernize comment.
7236
7237         obstack: use _Noreturn
7238         * lib/obstack.c (__attribute__): Remove macro.
7239         (print_and_abort): Use _Noreturn.
7240
7241         c-stack: use _Noreturn
7242         * lib/c-stack.c (die, overflow_handler, segv_handler):
7243         Use _Noreturn rather than __attribute__((noreturn)).
7244
7245         argmatch-tests, exclude_tests: use _Noreturn
7246         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
7247         Remove.
7248         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
7249
7250         stdlib: use _Noreturn
7251         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
7252         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
7253         * modules/stdlib (Depends-on): Add _Noreturn.
7254         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
7255
7256         stdnoreturn-tests: new module
7257         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
7258
7259         stdnoreturn: new module
7260         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
7261         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
7262
7263         _Noreturn-tests: new module
7264         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
7265
7266         _Noreturn: new module
7267         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
7268         New section, mentioning it.
7269         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
7270
7271         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
7272
7273 2011-07-11  Eric Blake  <eblake@redhat.com>
7274
7275         ffs: new module
7276         * modules/ffs: New file.
7277         * m4/ffs.m4: Likewise.
7278         * lib/ffs.c: Likewise.
7279         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
7280         * modules/strings (Makefile.am): Substitute witness.
7281         (Depends-on): Add c++defs.
7282         * lib/strings.in.h (ffs): Declare.
7283         * modules/ffs-tests: New test file.
7284         * tests/test-ffs.c: Test new module.
7285         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7286         * doc/posix-functions/ffs.texi (ffs): Likewise.
7287
7288         regex: avoid compiler warning
7289         * lib/regex.c (includes): Include <strings.h>, for use of
7290         strcasecmp in regcomp.c.
7291         Reported by Joachim Schmitz.
7292
7293 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7294
7295         stdint: respect system's intmax_t if INTMAX_MAX
7296         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
7297         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
7298         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
7299         long but int64_t is long long, and where we will clash with the
7300         system intmax_t if we override it.  See
7301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
7302         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
7303         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
7304         similarly for UINTMAX_C.
7305
7306 2011-07-08  Bruno Haible  <bruno@clisp.org>
7307
7308         pthread_sigmask tests: Avoid a compiler warning.
7309         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
7310         non-zero.
7311
7312         sigprocmask tests: A better way to avoid a compiler warning.
7313         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
7314         (main): Complain if system() returns non-zero.
7315         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
7316
7317 2011-07-08  Bruno Haible  <bruno@clisp.org>
7318
7319         pthread_sigmask: Work around IRIX bug.
7320         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
7321         bug.
7322         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
7323         there may be unblocked pending signals.
7324         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
7325
7326 2011-07-08  Bruno Haible  <bruno@clisp.org>
7327
7328         pthread_sigmask: Work around Cygwin bug.
7329         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
7330         bug.
7331         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
7332         the system's pthread_sigmask function.
7333         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
7334
7335 2011-07-08  Bruno Haible  <bruno@clisp.org>
7336
7337         pthread_sigmask: Work around bug in single-threaded implementation.
7338         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
7339         FreeBSD, HP-UX, Solaris bug.
7340         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
7341         * lib/pthread_sigmask.c: Include <stddef.h>.
7342         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
7343         the system's pthread_sigmask function.
7344         * modules/pthread_sigmask (configure.ac): Invoke
7345         gl_PREREQ_PTHREAD_SIGMASK.
7346         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
7347         HP-UX, Solaris.
7348
7349 2011-07-08  Eric Blake  <eblake@redhat.com>
7350
7351         test-sigprocmask: avoid compiler warning
7352         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
7353         * tests/test-sigprocmask.c (main): Use it to silence warning.
7354         Reported by Jim Meyering.
7355
7356         test-snprintf: avoid compiler warning
7357         * tests/test-snprintf.c (main): Avoid shadowed declaration.
7358         * tests/test-vsnprintf.c (main): Likewise.
7359         Reported by Jim Meyering.
7360
7361 2011-07-08  Bruno Haible  <bruno@clisp.org>
7362
7363         Tests for module 'pthread_sigmask'.
7364         * modules/pthread_sigmask-tests: New file.
7365         * tests/test-pthread_sigmask1.c: New file, based on
7366         tests/test-sigprocmask.c.
7367         * tests/test-pthread_sigmask2.c: New file.
7368
7369 2011-07-08  Jim Meyering  <meyering@redhat.com>
7370
7371         test-getopt.h: avoid warning about an unused variable
7372         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
7373
7374 2011-07-07  Jim Meyering  <meyering@redhat.com>
7375
7376         maint: reduce list of files exempt from sc_prohibit_leading_TABs
7377         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
7378         now that it no longer contains leading TABs.
7379         Remove unused "url=FIXME" statement.
7380
7381 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7382
7383         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
7384         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7385         When gl_THREADLIB is not in use, assume that the POSIX sematics
7386         are desired.  This is better for Emacs, which uses POSIX semantics
7387         on GNUish and/or POSIXish platforms, and does not use threads at
7388         all otherwise.
7389
7390         pthread_sigmask: fix typo when testing for libraries
7391         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7392         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
7393
7394 2011-07-08  Eric Blake  <eblake@redhat.com>
7395
7396         fts: introduce FTS_NOATIME
7397         * lib/fts_.h (FTS_NOATIME): New bit flag.
7398         (FTS_OPTIONMASK): Adjust.
7399         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
7400         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
7401
7402 2011-07-08  Bruno Haible  <bruno@clisp.org>
7403
7404         Tests for module 'thread'.
7405         * modules/thread-tests: New file.
7406         * tests/test-thread_self.c: New file.
7407         * tests/test-thread_create.cc: New file.
7408
7409 2011-07-08  Bruno Haible  <bruno@clisp.org>
7410
7411         thread: Avoid gcc warnings when using gl_thread_self().
7412         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
7413         'void *'.
7414         (gl_thread_self_pointer): Update.
7415
7416 2011-07-07  Bruno Haible  <bruno@clisp.org>
7417
7418         signal-c++-tests: Check declaration of pthread_sigmask.
7419         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
7420         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
7421         $(LIB_PTHREAD_SIGMASK).
7422
7423 2011-07-07  Bruno Haible  <bruno@clisp.org>
7424
7425         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
7426         * lib/signal.in.h (pthread_sigmask): Override if
7427         REPLACE_PTHREAD_SIGMASK is 1.
7428         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7429         REPLACE_PTHREAD_SIGMASK.
7430         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
7431         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
7432         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
7433         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7434         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
7435
7436 2011-07-07  Bruno Haible  <bruno@clisp.org>
7437
7438         pthread_sigmask: Ensure declaration in <signal.h>.
7439         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
7440         include <pthread.h>.
7441         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
7442         problem.
7443
7444 2011-07-07  Bruno Haible  <bruno@clisp.org>
7445
7446         pthread_sigmask: Document the module.
7447         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
7448
7449 2011-07-07  Bruno Haible  <bruno@clisp.org>
7450
7451         pthread_sigmask: Follow gnulib conventions.
7452         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
7453         gl_PTHREAD_SIGMASK.
7454         * modules/pthread_sigmask (configure.ac): Update.
7455
7456 2011-07-07  Bruno Haible  <bruno@clisp.org>
7457
7458         pthread_sigmask: Make declaration C++ safe.
7459         * lib/signal.in.h: In two special conditions, just do an #include_next.
7460         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7461         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
7462         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7463         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7464         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
7465         not REPLACE_PTHREAD_MASK.
7466         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
7467         not REPLACE_PTHREAD_MASK.
7468         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7469
7470 2011-07-07  Bruno Haible  <bruno@clisp.org>
7471
7472         pthread_sigmask: Fix return value.
7473         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
7474         * lib/pthread_sigmask.c: New file.
7475         * modules/pthread_sigmask (Files): Add it.
7476         (configure.ac): Invoke AC_LIBOBJ.
7477
7478 2011-07-07  Eric Blake  <eblake@redhat.com>
7479
7480         getopt: more portable argv creation
7481         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
7482         const, use char arrays rather than strings.
7483         Suggested by Paul Eggert.
7484
7485 2011-07-07  Bruno Haible  <bruno@clisp.org>
7486
7487         Tests for module 'sigprocmask'.
7488         * modules/sigprocmask-tests: New file.
7489         * tests/test-sigprocmask.c: New file.
7490
7491 2011-07-07  Bruno Haible  <bruno@clisp.org>
7492
7493         float tests: Tweak.
7494         * tests/test-float.c (main): Tweak skip message.
7495
7496 2011-07-07  Eric Blake  <eblake@redhat.com>
7497
7498         getopt: avoid compiler warning during configure
7499         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
7500         assigning string literals to non-const pointer.
7501
7502         getopt-gnu: avoid crash in glibc getopt
7503         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
7504         * tests/test-getopt.h (test_getopt): Enhance test.
7505         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7506         * doc/posix-functions/getopt.texi (getopt): Document it.
7507         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7508         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7509         Likewise.
7510
7511 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
7512
7513         getopt: handle W; without long options in getopt [BZ #12922]
7514         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
7515         but no long options are defined, just return 'W'.
7516
7517 2011-07-07  Bruno Haible  <bruno@clisp.org>
7518
7519         Avoid literal tabs.
7520         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
7521         variable containing a tab instead of a literal tab.
7522         Reported by Jim Meyering.
7523
7524 2011-07-07  Bruno Haible  <bruno@clisp.org>
7525
7526         Comments.
7527         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
7528
7529 2011-07-06  Bruno Haible  <bruno@clisp.org>
7530
7531         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
7532         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
7533         <winsock2.h>.
7534         (rpl_fd_isset, FD_ISSET): New definitions, copied from
7535         lib/sys_socket.in.h.
7536         (close, gethostname): Hide declarations from <winsock2.h>.
7537         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7538         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
7539         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
7540         (select): Don't override if gnulib's <sys/select.h> was already
7541         included.
7542         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7543         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7544         setsockopt, shutdown, select): Tweak indentation.
7545
7546 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7547
7548         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
7549         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
7550         in an application that does not use the sys_select module.
7551
7552 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
7553
7554         poll: do not return 0 on timeout=-1
7555         * lib/poll.c: Loop with yield if no events occured
7556
7557 2011-07-06  Eric Blake  <eblake@redhat.com>
7558
7559         pthread_sigmask: always replace when not using pthread
7560         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
7561         replacement when using some threading other than pthread.  Fix
7562         logic bug.
7563
7564 2011-07-06  Bruno Haible  <bruno@clisp.org>
7565
7566         Comments.
7567         * m4/printf.m4: Update comments about mingw.
7568
7569 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7570
7571         sys_select: define sigset_t more portably
7572         * lib/sys_select.in.h: Always include <sys/types.h>, since
7573         we now need sigset_t and mingw defines it there.
7574         Include <signal.h> before split inclusion guard, to avoid
7575         mishaps on Solaris, whose <signal.h> eventually includes us.
7576         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
7577         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
7578         which come from ...
7579         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7580         gl_CHECK_TYPE_SIGSET_T.
7581         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
7582         does the real work.
7583         * modules/sys_select (Depends-on): Add 'signal'.
7584
7585         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
7586         Suggested by Bruno Haible.
7587
7588         pselect: Use pthread_sigmask, not sigprocmask.
7589         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
7590         multithreaded apps better than sigprocmask does.
7591         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
7592         sigprocmask directly.
7593
7594 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7595
7596         * lib/pselect.c (pselect): Use plain name, without "rpl_".
7597         Don't #undef,  since we don't need any underlying pselect.
7598         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
7599         (Depends-on): Add select.
7600         (Link): Add $(LIBSOCKET).
7601         These changes suggested by Bruno Haible.
7602
7603         pselect: document better
7604         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7605         * doc/posix-functions/pselect.texi (pselect): Document new module.
7606
7607         pthread_sigmask: new module
7608         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7609         * doc/posix-functions/pthread_sigmask.texi: Document new module.
7610         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
7611         This is done only as a macro; I don't know how well that'll
7612         work for C++.  Move <sys/types.h> include before the include_next,
7613         to avoid mishap on Solaris.
7614         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
7615         * modules/signal (Makefile.am): Substitute the check's results.
7616         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
7617
7618         test-pselect: new module
7619         * modules/pselect-tests, tests/test-pselect.c: New files.
7620         * tests/test-select.c, tests/test-sys_select-c++.cc:
7621         If TEST_PSELECT is defined, test pselect instead of testing select.
7622
7623         * tests/test-sys_select.c (sigset_t): Test for it, too.
7624         Suggested by Bruno Haible.
7625
7626 2011-07-05  Eric Blake  <eblake@redhat.com>
7627
7628         snprintf: guarantee %1$d, for libintl
7629         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
7630         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
7631         * doc/posix-functions/snprintf.texi (snprintf): Update.
7632         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7633         * tests/test-snprintf.c (main): Enhance test.
7634         * tests/test-vsnprintf.c (main): Likewise.
7635
7636 2011-07-05  Jim Meyering  <meyering@redhat.com>
7637
7638         maint: exempt stdio-read.c and stdio-write.c from the cppi check
7639         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
7640         per Bruno's request, to accommodate this idiom (no space after "#")
7641         even when the function is inside an #if block:
7642         char *
7643         gets (char *s)
7644         #undef gets
7645         {
7646           ...
7647         }
7648
7649 2011-07-04  Jim Meyering  <meyering@redhat.com>
7650
7651         maint: indent with spaces, not TABs, and add a rule to check this
7652         * tests/test-userspec.c: Indent with spaces, not TABs.
7653         * tests/test-argp.c: Likewise.
7654         * tests/test-c-stack2.sh: Likewise.
7655         * tests/test-parse-duration.sh: Likewise
7656         * m4/strtod.m4: Likewise.
7657         * m4/alloca.m4: Likewise.
7658         * m4/pselect.m4: Likewise.
7659         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
7660
7661 2011-07-03  Jim Meyering  <meyering@redhat.com>
7662
7663         maint.mk: correct omissions in prohibit_argmatch_without_use check
7664         This rule would mistakenly report that argmatch.h is included without
7665         use even when both the argmatch and invalid_arg macro were used.
7666         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
7667         of argmatch and invalid_arg.
7668
7669 2011-07-03  Bruno Haible  <bruno@clisp.org>
7670
7671         Comments about EINTR.
7672         * lib/safe-read.h: Explain the purpose of this module.
7673         * lib/safe-write.h: Likewise.
7674         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
7675         module.
7676         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
7677         module.
7678         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7679
7680 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7681
7682         xnanosleep: Rewrite to use new dtotimespec module.
7683         It has the conversion code that used to be in xnanosleep.
7684         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
7685         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
7686         (TIME_T_MAX): Remove.
7687         (xnanosleep): Rewrite in terms of dtotimespec.
7688         * modules/xnanosleep (Depends-on): Add dtotimespec.
7689         Remove intprops, stdbool.
7690
7691         timespec-add, timespec-sub: new modules
7692         * lib/timespec.h (timespec_add, timespec_sub): New decls.
7693         * lib/timespec-add.c, lib/timespec-sub.c:
7694         * modules/timespec-add, modules/timespec-sub: New files.
7695
7696         dtotimespec: new module
7697         * lib/timespec.h (dtotimespec): New decl.
7698         * lib/dtotimespec.c, modules/dtotimespec: New files.
7699
7700         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
7701
7702         pselect: new module
7703         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
7704         (pselect): New decls.
7705         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
7706         since the standard pselect decl uses 'restrict'.
7707         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
7708         HAVE_PSELECT, REPLACE_PSELECT.
7709         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
7710         HAVE_PSELECT, REPLACE_PSELECT.
7711         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
7712
7713         sys_select: don't depend on sys_socket
7714         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
7715         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
7716         This fix works on GNU and GNU-like platforms, but has not been tested
7717         on native Windows.
7718         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
7719         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
7720         gl_HEADER_SYS_SOCKET.
7721         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
7722         gl_PREREQ_SYS_H_WINSOCK2.
7723
7724 2011-06-29  Eric Blake  <eblake@redhat.com>
7725
7726         pipe2: fix C89 compile problem
7727         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
7728         Reported by Bruno Haible.
7729
7730         pipe, pipe2: don't corrupt fd on error
7731         * lib/pipe.c (pipe): Leave fd unchanged on error.
7732         * lib/pipe2.c (pipe2): Likewise.
7733         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
7734         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
7735
7736 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
7737
7738         mmap-anon: do not use regular expressions inadvertently
7739         * m4/mmap-anon.m4: Remove trailing period from strings sought
7740         in the output.
7741
7742 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
7743
7744         nanosleep: fix integer overflow problem
7745         * lib/nanosleep.c (my_usleep): Don't assume signed integer
7746         arithmetic wraps around on overflow.
7747
7748         nanosleep: simplify carrying
7749         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
7750         first call to the underyling nanosleep, not for the last one.
7751         This doesn't fix any bugs, but it simplifies the computation of
7752         the remaining delay.  Found while auditing integer overflow issues.
7753
7754         dup2: remove test for existence of fcntl
7755         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
7756         "#if HAVE_FCNTL", in the configure-time test program.
7757         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
7758         and therefore speeds up "configure" a bit.  Found while
7759         adding the dup2 module to Emacs.
7760
7761 2011-06-24  Eric Blake  <eblake@redhat.com>
7762
7763         maint.mk: enhance useless header checks
7764         * top/maint.mk (_sc_header_without_use): Check both include
7765         styles.
7766         (sc_prohibit_assert_without_use)
7767         (sc_prohibit_close_stream_without_use)
7768         (sc_prohibit_getopt_without_use)
7769         (sc_prohibit_quotearg_without_use)
7770         (sc_prohibit_quote_without_use)
7771         (sc_prohibit_long_options_without_use)
7772         (sc_prohibit_inttostr_without_use)
7773         (sc_prohibit_ignore_value_without_use)
7774         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
7775         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
7776         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
7777         (sc_prohibit_hash_pjw_without_use)
7778         (sc_prohibit_safe_read_without_use)
7779         (sc_prohibit_argmatch_without_use)
7780         (sc_prohibit_canonicalize_without_use)
7781         (sc_prohibit_root_dev_ino_without_use)
7782         (sc_prohibit_openat_without_use)
7783         (sc_prohibit_c_ctype_without_use)
7784         (sc_prohibit_signal_without_use)
7785         (sc_prohibit_stdio--_without_use)
7786         (sc_prohibit_stdio-safer_without_use)
7787         (sc_prohibit_strings_without_use)
7788         (sc_prohibit_intprops_without_use)
7789         (sc_prohibit_stddef_without_use)
7790         (sc_prohibit_xfreopen_without_use): Update clients.
7791
7792 2011-06-24  Jim Meyering  <meyering@redhat.com>
7793
7794         syntax-check: keep one maint.mk rule in sync with its header
7795         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
7796         of the bug Eric has just fixed, with today's commit 25e4c2ec.
7797         I prefer to avoid temporary files here, so use <(...), but that
7798         is not supported by /bin/sh, so...
7799         (SHELL): Define to /bin/bash.
7800
7801 2011-06-24  Eric Blake  <eblake@redhat.com>
7802
7803         maint.mk: update sc_prohibit_intprops_without_use
7804         * top/maint.mk (_intprops_names): Match recent changes.
7805
7806 2011-06-24  Bruno Haible  <bruno@clisp.org>
7807
7808         strerror-override: No-op tweak.
7809         * lib/strerror-override.h (strerror_override): Reorder conditions,
7810         for consistency with lib/strerror-override.c.
7811
7812 2011-06-23  Eric Blake  <eblake@redhat.com>
7813
7814         maint.mk: test further PATH_MAX issues
7815         * top/maint.mk (sc_prohibit_path_max_array): Rename...
7816         (sc_prohibit_path_max_allocation): ...and also test alloca.
7817         Suggested by Jim Meyering.
7818
7819 2011-06-22  Eric Blake  <eblake@redhat.com>
7820
7821         maint.mk: add syntax-check to avoid char[PATH_MAX]
7822         * top/maint.mk (sc_prohibit_path_max_array): New rule.
7823
7824         stat: be robust to PATH_MAX definition
7825         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
7826         * modules/stat (Depends-on): Add verify.
7827
7828         link: work around IRIX bug
7829         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
7830         * lib/link.c (rpl_link): Work around it.
7831         * tests/test-link.h (test_link): Enhance test.
7832         * doc/posix-functions/link.texi (link): Document the bug.
7833
7834         getopt: silence clang warning
7835         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
7836         dereference.
7837         Reported by Gustavo Martin Domato.
7838
7839 2011-06-22  Jim Meyering  <meyering@redhat.com>
7840
7841         bootstrap: do not insert a blank line into each .gitignore file
7842         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
7843
7844 2011-06-21  Eric Blake  <eblake@redhat.com>
7845
7846         perror: test for output mismatch
7847         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
7848         perror on IRIX.
7849
7850         strerror_r: fix OpenBSD behavior on out-of-range
7851         * lib/strerror_r.c (strerror_r): Always use maximal string.
7852         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7853
7854         strerror_r: fix OpenBSD behavior on 0
7855         * lib/strerror-override.c (strerror_override): Also override 0
7856         when needed.
7857         * lib/strerror-override.h (strerror_override): Likewise.
7858         * lib/strerror.c (strerror): Simplify, now that 0 override is done
7859         earlier.
7860         * lib/strerror_r.c (strerror_r): Likewise.
7861         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
7862         behavior...
7863         (gl_FUNC_STRERROR_0): ...into new macro.
7864         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
7865         is overridden.
7866         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
7867         * modules/strerror-override (Files): Add strerror.m4.
7868         (configure.ac): Also provide override for 0 when needed.
7869         * doc/posix-functions/strerror.texi (strerror): Document this.
7870         * doc/posix-functions/perror.texi (perror): Likewise.
7871
7872         perror: adjust array size
7873         * modules/perror (Depends-on): Add strerror-override.
7874         * lib/perror.c (perror): Use it to avoid magic number.
7875
7876         strerror-override: reduce size
7877         * lib/strerror-override.c (strerror_override): Use fewer lines.
7878
7879 2011-06-20  Bruno Haible  <bruno@clisp.org>
7880
7881         pathmax: Ensure correct value for PATH_MAX on HP-UX.
7882         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
7883
7884 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7885
7886         alloca: port to compilers that can optimize like GCC 4.6.0
7887         * lib/alloca.c (find_stack_direction): New signature, taken from
7888         Autoconf git.  This works with GCC 4.6.0.  This code should never
7889         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
7890         be used with other compilers that optimize as well as GCC 4.6.0 does.
7891         (alloca): Adjust to new signature.
7892         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
7893         New macro, which patches Autoconf in a similar way.
7894
7895         c-stack: stop worrying about stack direction
7896         * lib/c-stack.c (find_stack_direction): Remove.
7897         (segv_handler): Don't worry about stack direction growth, as it's
7898         too much of a pain to configure this correctly, given how compilers
7899         are optimizing-away our stack-growth detection code.  Instead, assume
7900         that any access to just before or just after the stack is OK.
7901         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
7902         Don't require AC_FUNC_ALLOCA; no longer needed.
7903
7904 2011-06-20  Eric Blake  <eblake@redhat.com>
7905
7906         test-stat: don't allocate PATH_MAX bytes
7907         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
7908         PATH_MAX-sized buffer.
7909         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
7910         * modules/stat-tests (Depends-on): Likewise.
7911         * tests/test-fstatat.c (includes): Drop pathmax.h.
7912         * tests/test-stat.c (includes): Likewise.
7913         Reported by Bruno Haible.
7914
7915 2011-06-20  Bruno Haible  <bruno@clisp.org>
7916
7917         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
7918         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
7919         * lib/float.c: New file.
7920         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
7921         REPLACE_FLOAT_LDBL.
7922         * modules/float (Files): Add lib/float.c.
7923         (configure.ac): Invoke AC_LIBOBJ.
7924         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
7925
7926 2011-06-20  Bruno Haible  <bruno@clisp.org>
7927
7928         Tests for module 'float'.
7929         * modules/float-tests: New file.
7930         * tests/test-float.c: New file.
7931
7932 2011-06-19  Bruno Haible  <bruno@clisp.org>
7933
7934         isinf: Coding style.
7935         * lib/isinf.c: Use GNU coding style.
7936
7937 2011-06-19  Bruno Haible  <bruno@clisp.org>
7938
7939         linkat test: Avoid test failure on AIX 7.1.
7940         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
7941         * tests/test-link.h (test_link): Likewise.
7942
7943 2011-06-19  Bruno Haible  <bruno@clisp.org>
7944
7945         pread test: Avoid test failure on OpenBSD 4.9.
7946         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
7947
7948 2011-06-19  Bruno Haible  <bruno@clisp.org>
7949
7950         sprintf-posix: Fix test failure on AIX 7.1.
7951         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
7952         * doc/posix-functions/dprintf.texi: Mention limited precision problem
7953         on AIX.
7954         * doc/posix-functions/fprintf.texi: Likewise.
7955         * doc/posix-functions/printf.texi: Likewise.
7956         * doc/posix-functions/snprintf.texi: Likewise.
7957         * doc/posix-functions/sprintf.texi: Likewise.
7958         * doc/posix-functions/vdprintf.texi: Likewise.
7959         * doc/posix-functions/vfprintf.texi: Likewise.
7960         * doc/posix-functions/vprintf.texi: Likewise.
7961         * doc/posix-functions/vsnprintf.texi: Likewise.
7962         * doc/posix-functions/vsprintf.texi: Likewise.
7963
7964 2011-06-19  Bruno Haible  <bruno@clisp.org>
7965
7966         roundl-ieee: Fix test failure on AIX 7.1.
7967         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
7968         * doc/posix-functions/roundl.texi: Mention problem with negative
7969         arguments.
7970
7971 2011-06-19  Bruno Haible  <bruno@clisp.org>
7972
7973         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7974         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
7975         * doc/posix-functions/round.texi: Mention problem with negative
7976         arguments.
7977         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
7978
7979 2011-06-19  Bruno Haible  <bruno@clisp.org>
7980
7981         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7982         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
7983         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
7984         * doc/posix-functions/roundf.texi: Mention problem with negative
7985         arguments.
7986         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
7987
7988 2011-06-19  Bruno Haible  <bruno@clisp.org>
7989
7990         ceilf-ieee: Work around bug on MacOS X 10.5.
7991         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
7992
7993         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
7994         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
7995         IEEE compliant, avoid compiler optimizations.
7996         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
7997         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7998         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
7999         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8000         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8001         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8002         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8003         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8004         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8005         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8006
8007 2011-06-19  Bruno Haible  <bruno@clisp.org>
8008
8009         ceilf-ieee: Work around bug on AIX 7.1.
8010         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
8011         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
8012
8013 2011-06-19  Bruno Haible  <bruno@clisp.org>
8014
8015         ceil-ieee: Work around bug on AIX 7.1.
8016         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
8017         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
8018
8019 2011-06-18  Bruno Haible  <bruno@clisp.org>
8020
8021         fsync test: Avoid test failure on MacOS X and AIX.
8022         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
8023         EINVAL.
8024
8025 2011-06-18  Bruno Haible  <bruno@clisp.org>
8026
8027         openat, fdopendir tests: Fix link errors.
8028         * modules/openat-tests (Depends-on): Add progname.
8029         * modules/fdopendir-tests (Depends-on): Likewise.
8030         * tests/test-fchownat.c: Include progname.h.
8031         (main): Call set_program_name.
8032         * tests/test-fstatat.c: Include progname.h.
8033         (main): Call set_program_name.
8034         * tests/test-mkdirat.c: Include progname.h.
8035         (main): Call set_program_name.
8036         * tests/test-openat.c: Include progname.h.
8037         (main): Call set_program_name.
8038         * tests/test-unlinkat.c: Include progname.h.
8039         (main): Call set_program_name.
8040         * tests/test-fdopendir.c: Include progname.h.
8041         (main): Call set_program_name.
8042
8043 2011-06-18  Bruno Haible  <bruno@clisp.org>
8044
8045         Doc update.
8046         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
8047         HP-UX.
8048         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
8049
8050 2011-06-18  Bruno Haible  <bruno@clisp.org>
8051
8052         getcwd tests: Avoid compilation error on HP-UX 11.31.
8053         * modules/getcwd-tests (Depends-on): Add pathmax.
8054         * tests/test-getcwd.c: Include pathmax.h.
8055
8056 2011-06-18  Bruno Haible  <bruno@clisp.org>
8057
8058         isfinite, isinf: Fix link error on AIX 6 and 7.
8059         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
8060         needed, also test the macro with a 'float' argument.
8061         * m4/isinf.m4 (gl_ISINF): Likewise.
8062
8063 2011-06-18  Bruno Haible  <bruno@clisp.org>
8064
8065         getloadavg: Don't clobber LIBS. Regression from previous commit.
8066         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
8067         AC_CHECK_LIB from here...
8068         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
8069         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
8070         gl_func_getloadavg_done.
8071         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8072
8073 2011-06-18  Bruno Haible  <bruno@clisp.org>
8074
8075         clean-temp: Improve documentation.
8076         * lib/clean-temp.h: Explain better how to use this module.
8077         Reported by John Darrington <john@darrington.wattle.id.au>.
8078
8079 2011-06-17  Bruno Haible  <bruno@clisp.org>
8080
8081         pread, pwrite: Avoid cc warning on AIX.
8082         * lib/unistd.in.h (pread): Undefine before defining as a macro.
8083         (pwrite): Likewise.
8084
8085 2011-06-17  Bruno Haible  <bruno@clisp.org>
8086
8087         spawn-pipe tests: Fix link error.
8088         * tests/test-spawn-pipe-child.c: Undefine fprintf.
8089         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8090
8091 2011-06-17  Bruno Haible  <bruno@clisp.org>
8092
8093         Tests: Remove unnecessary dependency.
8094         * modules/canonicalize-tests (Depends-on): Remove progname.
8095         * modules/chown-tests (Depends-on): Likewise.
8096         * modules/dirname-tests (Depends-on): Likewise.
8097         * modules/fdopendir-tests (Depends-on): Likewise.
8098         * modules/fdutimensat-tests (Depends-on): Likewise.
8099         * modules/hash-tests (Depends-on): Likewise.
8100         * modules/lchown-tests (Depends-on): Likewise.
8101         * modules/linkat-tests (Depends-on): Likewise.
8102         * modules/renameat-tests (Depends-on): Likewise.
8103         * modules/spawn-pipe-tests (Depends-on): Likewise.
8104         * modules/utimensat-tests (Depends-on): Likewise.
8105
8106 2011-06-17  Bruno Haible  <bruno@clisp.org>
8107
8108         spawn-pipe tests: Fix link error.
8109         * tests/test-spawn-pipe-child.c: Undefine fflush.
8110
8111 2011-06-17  Bruno Haible  <bruno@clisp.org>
8112
8113         Fix tests link errors.
8114         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
8115         * modules/chown-tests (Makefile.am): Don't link test-chown with
8116         LIBINTL.
8117         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
8118         LIBINTL.
8119         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
8120         LIBINTL.
8121         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
8122         LIBINTL.
8123
8124 2011-06-16  Bruno Haible  <bruno@clisp.org>
8125
8126         crypto/gc-sha1: Fix recent regression.
8127         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
8128         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
8129
8130         crypto/gc-md5: Fix recent regression.
8131         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
8132
8133         crypto/gc-md4: Fix recent regression.
8134         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
8135         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
8136
8137         crypto/gc-arctwo: Fix recent regression.
8138         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
8139         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
8140
8141         crypto/gc-rijndael: Fix recent regression.
8142         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
8143         (configure.ac): Invoke AC_LIBOBJ here.
8144         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
8145         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8146
8147         crypto/gc-hmac-sha1: Fix recent regression.
8148         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
8149         (configure.ac): Invoke AC_LIBOBJ here.
8150         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
8151         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8152
8153         crypto/gc-hmac-md5: Fix recent regression.
8154         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
8155         (configure.ac): Invoke AC_LIBOBJ here.
8156         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
8157         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8158
8159         crypto/gc-des: Fix recent regression.
8160         * modules/crypto/gc-des (Files): Remove m4/des.m4.
8161         (configure.ac): Invoke AC_LIBOBJ here.
8162         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
8163         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8164
8165         crypto/gc-arcfour: Fix recent regression.
8166         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
8167         (configure.ac): Invoke AC_LIBOBJ here.
8168         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
8169         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8170
8171 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
8172
8173         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
8174         After the 2011-05-21 change, this macro requires
8175         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
8176         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
8177
8178 2011-06-16  Bruno Haible  <bruno@clisp.org>
8179
8180         fprintftime: Move AC_LIBOBJ invocations to module description.
8181         * m4/fprintftime.m4: Remove file.
8182         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
8183         (configure.ac): Remove gl_FPRINTFTIME call.
8184         (Makefile.am): Augment lib_SOURCES.
8185         Reported by Jim Meyering.
8186
8187 2011-06-16  Bruno Haible  <bruno@clisp.org>
8188
8189         tmpfile-safer: Finish 2011-05-23 commit.
8190         * m4/stdio-safer.m4: Really remove file.
8191         Reported by Jim Meyering.
8192
8193 2011-06-16  Bruno Haible  <bruno@clisp.org>
8194
8195         syntax-check: Fix typo.
8196         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
8197         printf-posix.m4.
8198         Reported by Jim Meyering.
8199
8200 2011-06-13  Jim Meyering  <meyering@redhat.com>
8201
8202         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
8203         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
8204
8205 2011-05-23  Bruno Haible  <bruno@clisp.org>
8206
8207         yesno: Move AC_LIBOBJ invocations to module description.
8208         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
8209         * modules/yesno (Makefile.am): Augment lib_SOURCES.
8210
8211 2011-05-23  Bruno Haible  <bruno@clisp.org>
8212
8213         xstrtol: Move AC_LIBOBJ invocations to module description.
8214         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
8215         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
8216
8217 2011-05-23  Bruno Haible  <bruno@clisp.org>
8218
8219         xstrtold: Move AC_LIBOBJ invocations to module description.
8220         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
8221         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
8222
8223 2011-05-23  Bruno Haible  <bruno@clisp.org>
8224
8225         xstrtod: Move AC_LIBOBJ invocations to module description.
8226         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
8227         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
8228
8229 2011-05-23  Bruno Haible  <bruno@clisp.org>
8230
8231         xnanosleep: Move AC_LIBOBJ invocations to module description.
8232         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
8233         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
8234
8235 2011-05-23  Bruno Haible  <bruno@clisp.org>
8236
8237         xgetcwd: Move AC_LIBOBJ invocations to module description.
8238         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
8239         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
8240
8241 2011-05-23  Bruno Haible  <bruno@clisp.org>
8242
8243         xalloc: Move AC_LIBOBJ invocations to module description.
8244         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
8245         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
8246
8247 2011-05-23  Bruno Haible  <bruno@clisp.org>
8248
8249         write-any-file: Move AC_LIBOBJ invocations to module description.
8250         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
8251         invocation.
8252         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
8253
8254 2011-05-23  Bruno Haible  <bruno@clisp.org>
8255
8256         utimens: Move AC_LIBOBJ invocations to module description.
8257         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
8258         * modules/utimens (Makefile.am): Augment lib_SOURCES.
8259
8260 2011-05-23  Bruno Haible  <bruno@clisp.org>
8261
8262         utimecmp: Move AC_LIBOBJ invocations to module description.
8263         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
8264         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
8265
8266 2011-05-23  Bruno Haible  <bruno@clisp.org>
8267
8268         userspec: Move AC_LIBOBJ invocations to module description.
8269         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
8270         * modules/userspec (Makefile.am): Augment lib_SOURCES.
8271
8272 2011-05-23  Bruno Haible  <bruno@clisp.org>
8273
8274         unlinkdir: Move AC_LIBOBJ invocations to module description.
8275         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
8276         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
8277
8278 2011-05-23  Bruno Haible  <bruno@clisp.org>
8279
8280         unistd-safer: Move AC_LIBOBJ invocations to module description.
8281         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
8282         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
8283
8284 2011-05-23  Bruno Haible  <bruno@clisp.org>
8285
8286         tempname: Move AC_LIBOBJ invocations to module description.
8287         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
8288         * modules/tempname (Makefile.am): Augment lib_SOURCES.
8289
8290 2011-05-23  Bruno Haible  <bruno@clisp.org>
8291
8292         strftime: Move AC_LIBOBJ invocations to module description.
8293         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
8294         * modules/strftime (Makefile.am): Augment lib_SOURCES.
8295
8296 2011-05-23  Bruno Haible  <bruno@clisp.org>
8297
8298         stdlib-safer: Move AC_LIBOBJ invocations to module description.
8299         * m4/stdlib-safer.m4: Remove file.
8300         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
8301         (configure.ac): Remove gl_STDLIB_SAFER call.
8302         (Makefile.am): Augment lib_SOURCES.
8303
8304 2011-05-23  Bruno Haible  <bruno@clisp.org>
8305
8306         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
8307         * m4/stdio-safer.m4: Remove file.
8308         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
8309         (configure.ac): Remove gl_TMPFILE_SAFER call.
8310         (Makefile.am): Augment lib_SOURCES.
8311
8312 2011-05-23  Bruno Haible  <bruno@clisp.org>
8313
8314         popen-safer: Move AC_LIBOBJ invocations to module description.
8315         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
8316         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
8317         (configure.ac): Remove gl_POPEN_SAFER call.
8318         (Makefile.am): Augment lib_SOURCES.
8319
8320 2011-05-23  Bruno Haible  <bruno@clisp.org>
8321
8322         freopen-safer: Move AC_LIBOBJ invocations to module description.
8323         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
8324         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
8325         (configure.ac): Remove gl_FREOPEN_SAFER call.
8326         (Makefile.am): Augment lib_SOURCES.
8327
8328 2011-05-23  Bruno Haible  <bruno@clisp.org>
8329
8330         fopen-safer: Move AC_LIBOBJ invocations to module description.
8331         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
8332         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
8333         (configure.ac): Remove gl_FOPEN_SAFER call.
8334         (Makefile.am): Augment lib_SOURCES.
8335
8336 2011-05-23  Bruno Haible  <bruno@clisp.org>
8337
8338         crypto/sha512: Move AC_LIBOBJ invocations to module description.
8339         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
8340         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
8341
8342 2011-05-23  Bruno Haible  <bruno@clisp.org>
8343
8344         crypto/sha256: Move AC_LIBOBJ invocations to module description.
8345         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
8346         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
8347
8348 2011-05-23  Bruno Haible  <bruno@clisp.org>
8349
8350         crypto/sha1: Move AC_LIBOBJ invocations to module description.
8351         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
8352         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
8353
8354 2011-05-23  Bruno Haible  <bruno@clisp.org>
8355
8356         settime: Move AC_LIBOBJ invocations to module description.
8357         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
8358         * modules/settime (Makefile.am): Augment lib_SOURCES.
8359
8360 2011-05-23  Bruno Haible  <bruno@clisp.org>
8361
8362         savedir: Move AC_LIBOBJ invocations to module description.
8363         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
8364         * modules/savedir (Makefile.am): Augment lib_SOURCES.
8365
8366 2011-05-23  Bruno Haible  <bruno@clisp.org>
8367
8368         save-cwd: Move AC_LIBOBJ invocations to module description.
8369         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
8370         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
8371
8372 2011-05-23  Bruno Haible  <bruno@clisp.org>
8373
8374         same: Move AC_LIBOBJ invocations to module description.
8375         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
8376         * modules/same (Makefile.am): Augment lib_SOURCES.
8377
8378 2011-05-23  Bruno Haible  <bruno@clisp.org>
8379
8380         safe-write: Move AC_LIBOBJ invocations to module description.
8381         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
8382         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
8383         instead of gl_SAFE_WRITE.
8384         (Makefile.am): Augment lib_SOURCES.
8385
8386 2011-05-23  Bruno Haible  <bruno@clisp.org>
8387
8388         safe-read: Move AC_LIBOBJ invocations to module description.
8389         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
8390         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
8391         of gl_SAFE_READ.
8392         (Makefile.am): Augment lib_SOURCES.
8393
8394 2011-05-23  Bruno Haible  <bruno@clisp.org>
8395
8396         safe-alloc: Move AC_LIBOBJ invocations to module description.
8397         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
8398         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
8399
8400 2011-05-23  Bruno Haible  <bruno@clisp.org>
8401
8402         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
8403         * m4/rijndael.m4: Remove file.
8404         * modules/crypto/rijndael (Files): Remove it.
8405         (configure.ac): Remove gl_RIJNDAEL call.
8406         (Makefile.am): Augment lib_SOURCES.
8407
8408 2011-05-23  Bruno Haible  <bruno@clisp.org>
8409
8410         readtokens: Move AC_LIBOBJ invocations to module description.
8411         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
8412         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
8413
8414 2011-05-23  Bruno Haible  <bruno@clisp.org>
8415
8416         read-file: Move AC_LIBOBJ invocations to module description.
8417         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
8418         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
8419         of gl_FUNC_READ_FILE.
8420         (Makefile.am): Augment lib_SOURCES.
8421
8422 2011-05-23  Bruno Haible  <bruno@clisp.org>
8423
8424         quotearg: Move AC_LIBOBJ invocations to module description.
8425         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
8426         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
8427
8428 2011-05-23  Bruno Haible  <bruno@clisp.org>
8429
8430         quote: Move AC_LIBOBJ invocations to module description.
8431         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
8432         * modules/quote (Makefile.am): Augment lib_SOURCES.
8433
8434 2011-05-23  Bruno Haible  <bruno@clisp.org>
8435
8436         posixver: Move AC_LIBOBJ invocations to module description.
8437         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
8438         * modules/posixver (Makefile.am): Augment lib_SOURCES.
8439
8440 2011-05-23  Bruno Haible  <bruno@clisp.org>
8441
8442         posixtm: Move AC_LIBOBJ invocations to module description.
8443         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
8444         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
8445
8446 2011-05-23  Bruno Haible  <bruno@clisp.org>
8447
8448         physmem: Move AC_LIBOBJ invocations to module description.
8449         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
8450         * modules/physmem (Makefile.am): Augment lib_SOURCES.
8451
8452 2011-05-23  Bruno Haible  <bruno@clisp.org>
8453
8454         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
8455         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
8456         invocation.
8457         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
8458
8459 2011-05-23  Bruno Haible  <bruno@clisp.org>
8460
8461         mpsort: Move AC_LIBOBJ invocations to module description.
8462         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
8463         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
8464
8465 2011-05-23  Bruno Haible  <bruno@clisp.org>
8466
8467         modechange: Move AC_LIBOBJ invocations to module description.
8468         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
8469         * modules/modechange (Makefile.am): Augment lib_SOURCES.
8470
8471 2011-05-23  Bruno Haible  <bruno@clisp.org>
8472
8473         mkdir-p: Move AC_LIBOBJ invocations to module description.
8474         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
8475         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
8476
8477 2011-05-23  Bruno Haible  <bruno@clisp.org>
8478
8479         mkancesdirs: Move AC_LIBOBJ invocations to module description.
8480         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
8481         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
8482
8483 2011-05-23  Bruno Haible  <bruno@clisp.org>
8484
8485         mgetgroups: Move AC_LIBOBJ invocations to module description.
8486         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
8487         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
8488
8489 2011-05-23  Bruno Haible  <bruno@clisp.org>
8490
8491         memxor: Move AC_LIBOBJ invocations to module description.
8492         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
8493         * modules/memxor (Makefile.am): Augment lib_SOURCES.
8494
8495 2011-05-23  Bruno Haible  <bruno@clisp.org>
8496
8497         memcoll: Move AC_LIBOBJ invocations to module description.
8498         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
8499         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
8500
8501 2011-05-23  Bruno Haible  <bruno@clisp.org>
8502
8503         memcasecmp: Move AC_LIBOBJ invocations to module description.
8504         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
8505         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
8506
8507 2011-05-23  Bruno Haible  <bruno@clisp.org>
8508
8509         crypto/md5: Move AC_LIBOBJ invocations to module description.
8510         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
8511         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
8512
8513 2011-05-23  Bruno Haible  <bruno@clisp.org>
8514
8515         crypto/md4: Move AC_LIBOBJ invocations to module description.
8516         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
8517         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
8518
8519 2011-05-23  Bruno Haible  <bruno@clisp.org>
8520
8521         crypto/md2: Move AC_LIBOBJ invocations to module description.
8522         * m4/md2.m4: Remove file.
8523         * modules/crypto/md2 (Files): Remove it.
8524         (configure.ac): Remove gl_MD2 call.
8525         (Makefile.am): Augment lib_SOURCES.
8526
8527 2011-05-23  Bruno Haible  <bruno@clisp.org>
8528
8529         long-options: Move AC_LIBOBJ invocations to module description.
8530         * m4/long-options.m4: Remove file.
8531         * modules/long-options (Files): Remove it.
8532         (configure.ac): Remove gl_LONG_OPTIONS call.
8533         (Makefile.am): Augment lib_SOURCES.
8534
8535 2011-05-23  Bruno Haible  <bruno@clisp.org>
8536
8537         i-ring: Move AC_LIBOBJ invocations to module description.
8538         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
8539         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
8540
8541 2011-05-23  Bruno Haible  <bruno@clisp.org>
8542
8543         idcache: Move AC_LIBOBJ invocations to module description.
8544         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
8545         * modules/idcache (Makefile.am): Augment lib_SOURCES.
8546
8547 2011-05-23  Bruno Haible  <bruno@clisp.org>
8548
8549         human: Move AC_LIBOBJ invocations to module description.
8550         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
8551         * modules/human (Makefile.am): Augment lib_SOURCES.
8552
8553 2011-05-23  Bruno Haible  <bruno@clisp.org>
8554
8555         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
8556         * m4/hmac-sha1.m4: Remove file.
8557         * modules/crypto/hmac-sha1 (Files): Remove it.
8558         (configure.ac): Remove gl_HMAC_SHA1 call.
8559         (Makefile.am): Augment lib_SOURCES.
8560
8561 2011-05-23  Bruno Haible  <bruno@clisp.org>
8562
8563         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
8564         * m4/hmac-md5.m4: Remove file.
8565         * modules/crypto/hmac-md5 (Files): Remove it.
8566         (configure.ac): Remove gl_HMAC_MD5 call.
8567         (Makefile.am): Augment lib_SOURCES.
8568
8569 2011-05-23  Bruno Haible  <bruno@clisp.org>
8570
8571         hash: Move AC_LIBOBJ invocations to module description.
8572         * m4/hash.m4: Remove file.
8573         * modules/hash (Files): Remove it.
8574         (configure.ac): Remove gl_HASH call.
8575         (Makefile.am): Augment lib_SOURCES.
8576
8577 2011-05-23  Bruno Haible  <bruno@clisp.org>
8578
8579         hard-locale: Move AC_LIBOBJ invocations to module description.
8580         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
8581         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
8582
8583 2011-05-23  Bruno Haible  <bruno@clisp.org>
8584
8585         getugroups: Move AC_LIBOBJ invocations to module description.
8586         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
8587         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
8588
8589 2011-05-23  Bruno Haible  <bruno@clisp.org>
8590
8591         gettime: Move AC_LIBOBJ invocations to module description.
8592         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
8593         * modules/gettime (Makefile.am): Augment lib_SOURCES.
8594
8595 2011-05-23  Bruno Haible  <bruno@clisp.org>
8596
8597         getndelim2: Move AC_LIBOBJ invocations to module description.
8598         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
8599         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
8600
8601 2011-05-23  Bruno Haible  <bruno@clisp.org>
8602
8603         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
8604         * m4/gc-pbkdf2-sha1.m4: Remove file.
8605         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
8606         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
8607         (Makefile.am): Augment lib_SOURCES.
8608
8609 2011-05-23  Bruno Haible  <bruno@clisp.org>
8610
8611         fts: Move AC_LIBOBJ invocations to module description.
8612         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
8613         * modules/fts (configure.ac): ... to here.
8614
8615 2011-05-23  Bruno Haible  <bruno@clisp.org>
8616
8617         file-type: Move AC_LIBOBJ invocations to module description.
8618         * m4/file-type.m4: Remove file.
8619         * modules/file-type (Files): Remove it.
8620         (configure.ac): Remove gl_FILE_TYPE call.
8621         (Makefile.am): Augment lib_SOURCES.
8622
8623 2011-05-23  Bruno Haible  <bruno@clisp.org>
8624
8625         filenamecat*: Respect rules for use of AC_LIBOBJ.
8626         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
8627         Remove AC_LIBOBJ invocation.
8628         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
8629         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
8630
8631 2011-05-23  Bruno Haible  <bruno@clisp.org>
8632
8633         filemode: Move AC_LIBOBJ invocations to module description.
8634         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
8635         * modules/filemode (Makefile.am): Augment lib_SOURCES.
8636
8637 2011-05-23  Bruno Haible  <bruno@clisp.org>
8638
8639         openat-safer: Move AC_LIBOBJ invocations to module description.
8640         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
8641         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
8642
8643 2011-05-23  Bruno Haible  <bruno@clisp.org>
8644
8645         fcntl-safer: Move AC_LIBOBJ invocations to module description.
8646         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
8647         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
8648
8649 2011-05-23  Bruno Haible  <bruno@clisp.org>
8650
8651         exclude: Move AC_LIBOBJ invocations to module description.
8652         * m4/exclude.m4: Remove file.
8653         * modules/exclude (Files): Remove it.
8654         (configure.ac): Remove gl_EXCLUDE call.
8655         (Makefile.am): Augment lib_SOURCES.
8656
8657 2011-05-23  Bruno Haible  <bruno@clisp.org>
8658
8659         dirname*: Respect rules for use of AC_LIBOBJ.
8660         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
8661         invocations.
8662         * modules/dirname (Makefile.am): Augment lib_SOURCES.
8663         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
8664
8665 2011-05-23  Bruno Haible  <bruno@clisp.org>
8666
8667         dirent-safer: Move AC_LIBOBJ invocations to module description.
8668         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
8669         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
8670
8671 2011-05-23  Bruno Haible  <bruno@clisp.org>
8672
8673         crypto/des: Move AC_LIBOBJ invocations to module description.
8674         * m4/des.m4: Remove file.
8675         * modules/crypto/des (Files): Remove it.
8676         (configure.ac): Remove gl_DES call.
8677         (Makefile.am): Augment lib_SOURCES.
8678
8679 2011-05-23  Bruno Haible  <bruno@clisp.org>
8680
8681         cycle-check: Move AC_LIBOBJ invocations to module description.
8682         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
8683         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
8684
8685 2011-05-23  Bruno Haible  <bruno@clisp.org>
8686
8687         c-strtold: Move AC_LIBOBJ invocations to module description.
8688         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
8689         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
8690
8691 2011-05-23  Bruno Haible  <bruno@clisp.org>
8692
8693         c-strtod: Move AC_LIBOBJ invocations to module description.
8694         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
8695         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
8696
8697 2011-05-23  Bruno Haible  <bruno@clisp.org>
8698
8699         crc: Move AC_LIBOBJ invocations to module description.
8700         * m4/crc.m4: Remove file.
8701         * modules/crc (Files): Remove it.
8702         (configure.ac): Remove gl_CRC call.
8703         (Makefile.am): Augment lib_SOURCES.
8704
8705 2011-05-23  Bruno Haible  <bruno@clisp.org>
8706
8707         close-stream: Move AC_LIBOBJ invocations to module description.
8708         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
8709         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
8710
8711 2011-05-23  Bruno Haible  <bruno@clisp.org>
8712
8713         closeout: Move AC_LIBOBJ invocations to module description.
8714         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
8715         * modules/closeout (Makefile.am): Augment lib_SOURCES.
8716
8717 2011-05-23  Bruno Haible  <bruno@clisp.org>
8718
8719         closein: Move AC_LIBOBJ invocations to module description.
8720         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
8721         * modules/closein (Makefile.am): Augment lib_SOURCES.
8722
8723 2011-05-23  Bruno Haible  <bruno@clisp.org>
8724
8725         cloexec: Move AC_LIBOBJ invocations to module description.
8726         * m4/cloexec.m4: Remove file.
8727         * modules/cloexec (Files): Remove it.
8728         (configure.ac): Remove gl_CLOEXEC call.
8729         (Makefile.am): Augment lib_SOURCES.
8730
8731 2011-05-23  Bruno Haible  <bruno@clisp.org>
8732
8733         check-version: Move AC_LIBOBJ invocations to module description.
8734         * m4/check-version.m4: Remove file.
8735         * modules/check-version (Files): Remove it.
8736         (configure.ac): Remove gl_CHECK_VERSION call.
8737         (Makefile.am): Augment lib_SOURCES.
8738
8739 2011-05-23  Bruno Haible  <bruno@clisp.org>
8740
8741         chdir-safer: Move AC_LIBOBJ invocations to module description.
8742         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
8743         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
8744
8745 2011-05-23  Bruno Haible  <bruno@clisp.org>
8746
8747         canonicalize: Move AC_LIBOBJ invocations to module description.
8748         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
8749         AC_LIBOBJ invocation.
8750         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
8751
8752 2011-05-23  Bruno Haible  <bruno@clisp.org>
8753
8754         canon-host: Move AC_LIBOBJ invocations to module description.
8755         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
8756         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
8757         instead of gl_CANON_HOST.
8758         (Makefile.am): Augment lib_SOURCES.
8759
8760 2011-05-23  Bruno Haible  <bruno@clisp.org>
8761
8762         backupfile: Move AC_LIBOBJ invocations to module description.
8763         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
8764         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
8765
8766 2011-05-23  Bruno Haible  <bruno@clisp.org>
8767
8768         argmatch: Move AC_LIBOBJ invocations to module description.
8769         * m4/argmatch.m4: Remove file.
8770         * modules/argmatch (Files): Remove it.
8771         (configure.ac): Remove gl_ARGMATCH call.
8772         (Makefile.am): Augment lib_SOURCES.
8773
8774 2011-05-23  Bruno Haible  <bruno@clisp.org>
8775
8776         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
8777         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
8778         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
8779
8780 2011-05-23  Bruno Haible  <bruno@clisp.org>
8781
8782         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
8783         * m4/arcfour.m4: Remove file.
8784         * modules/crypto/arcfour (Files): Remove it.
8785         (configure.ac): Remove gl_ARCFOUR call.
8786         (Makefile.am): Augment lib_SOURCES.
8787
8788 2011-05-22  Bruno Haible  <bruno@clisp.org>
8789
8790         write: Move AC_LIBOBJ invocations to module description.
8791         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
8792         * modules/write (configure.ac): ... to here.
8793
8794 2011-05-22  Bruno Haible  <bruno@clisp.org>
8795
8796         wmemset: Move AC_LIBOBJ invocations to module description.
8797         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
8798         here...
8799         * modules/wmemset (configure.ac): ... to here.
8800
8801 2011-05-22  Bruno Haible  <bruno@clisp.org>
8802
8803         wmemmove: Move AC_LIBOBJ invocations to module description.
8804         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
8805         here...
8806         * modules/wmemmove (configure.ac): ... to here.
8807
8808 2011-05-22  Bruno Haible  <bruno@clisp.org>
8809
8810         wmemcpy: Move AC_LIBOBJ invocations to module description.
8811         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
8812         here...
8813         * modules/wmemcpy (configure.ac): ... to here.
8814
8815 2011-05-22  Bruno Haible  <bruno@clisp.org>
8816
8817         wmemcmp: Move AC_LIBOBJ invocations to module description.
8818         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
8819         here...
8820         * modules/wmemcmp (configure.ac): ... to here.
8821
8822 2011-05-22  Bruno Haible  <bruno@clisp.org>
8823
8824         wmemchr: Move AC_LIBOBJ invocations to module description.
8825         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
8826         here...
8827         * modules/wmemchr (configure.ac): ... to here.
8828
8829 2011-05-22  Bruno Haible  <bruno@clisp.org>
8830
8831         wcswidth: Move AC_LIBOBJ invocations to module description.
8832         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
8833         here...
8834         * modules/wcswidth (configure.ac): ... to here.
8835
8836 2011-05-22  Bruno Haible  <bruno@clisp.org>
8837
8838         wcwidth: Respect rules for use of AC_LIBOBJ.
8839         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
8840         invocation from here...
8841         * modules/wcwidth (configure.ac): ... to here.
8842         (Depends-on): Update conditions.
8843
8844 2011-05-22  Bruno Haible  <bruno@clisp.org>
8845
8846         wctype: Move AC_LIBOBJ invocations to module description.
8847         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
8848         invocation from here...
8849         * modules/wctype (configure.ac): ... to here.
8850         (Depends-on): Update conditions.
8851
8852 2011-05-22  Bruno Haible  <bruno@clisp.org>
8853
8854         wctrans: Move AC_LIBOBJ invocations to module description.
8855         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
8856         invocation from here...
8857         * modules/wctrans (configure.ac): ... to here.
8858
8859 2011-05-22  Bruno Haible  <bruno@clisp.org>
8860
8861         wctomb: Move AC_LIBOBJ invocations to module description.
8862         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
8863         invocations from here...
8864         * modules/wctomb (configure.ac): ... to here.
8865
8866 2011-05-22  Bruno Haible  <bruno@clisp.org>
8867
8868         wctob: Move AC_LIBOBJ invocations to module description.
8869         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
8870         gl_PREREQ_WCTOB invocations from here...
8871         * modules/wctob (configure.ac): ... to here.
8872         (Depends-on): Update conditions.
8873
8874 2011-05-22  Bruno Haible  <bruno@clisp.org>
8875
8876         wcsxfrm: Move AC_LIBOBJ invocations to module description.
8877         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
8878         here...
8879         * modules/wcsxfrm (configure.ac): ... to here.
8880
8881 2011-05-22  Bruno Haible  <bruno@clisp.org>
8882
8883         wcstok: Move AC_LIBOBJ invocations to module description.
8884         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
8885         * modules/wcstok (configure.ac): ... to here.
8886
8887 2011-05-22  Bruno Haible  <bruno@clisp.org>
8888
8889         wcsstr: Move AC_LIBOBJ invocations to module description.
8890         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
8891         * modules/wcsstr (configure.ac): ... to here.
8892
8893 2011-05-22  Bruno Haible  <bruno@clisp.org>
8894
8895         wcsspn: Move AC_LIBOBJ invocations to module description.
8896         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
8897         * modules/wcsspn (configure.ac): ... to here.
8898
8899 2011-05-22  Bruno Haible  <bruno@clisp.org>
8900
8901         wcsrtombs: Move AC_LIBOBJ invocations to module description.
8902         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
8903         gl_PREREQ_WCSRTOMBS invocations from here...
8904         * modules/wcsrtombs (configure.ac): ... to here.
8905
8906 2011-05-22  Bruno Haible  <bruno@clisp.org>
8907
8908         wcsrchr: Move AC_LIBOBJ invocations to module description.
8909         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
8910         here...
8911         * modules/wcsrchr (configure.ac): ... to here.
8912
8913 2011-05-22  Bruno Haible  <bruno@clisp.org>
8914
8915         wcspbrk: Move AC_LIBOBJ invocations to module description.
8916         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
8917         here...
8918         * modules/wcspbrk (configure.ac): ... to here.
8919
8920 2011-05-22  Bruno Haible  <bruno@clisp.org>
8921
8922         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
8923         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
8924         gl_PREREQ_WCSNRTOMBS invocations from here...
8925         * modules/wcsnrtombs (configure.ac): ... to here.
8926
8927 2011-05-22  Bruno Haible  <bruno@clisp.org>
8928
8929         wcsnlen: Move AC_LIBOBJ invocations to module description.
8930         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
8931         here...
8932         * modules/wcsnlen (configure.ac): ... to here.
8933
8934 2011-05-22  Bruno Haible  <bruno@clisp.org>
8935
8936         wcsncpy: Move AC_LIBOBJ invocations to module description.
8937         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
8938         here...
8939         * modules/wcsncpy (configure.ac): ... to here.
8940
8941 2011-05-22  Bruno Haible  <bruno@clisp.org>
8942
8943         wcsncmp: Move AC_LIBOBJ invocations to module description.
8944         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
8945         here...
8946         * modules/wcsncmp (configure.ac): ... to here.
8947
8948 2011-05-22  Bruno Haible  <bruno@clisp.org>
8949
8950         wcsncat: Move AC_LIBOBJ invocations to module description.
8951         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
8952         here...
8953         * modules/wcsncat (configure.ac): ... to here.
8954
8955 2011-05-22  Bruno Haible  <bruno@clisp.org>
8956
8957         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
8958         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
8959         from here...
8960         * modules/wcsncasecmp (configure.ac): ... to here.
8961
8962 2011-05-22  Bruno Haible  <bruno@clisp.org>
8963
8964         wcslen: Move AC_LIBOBJ invocations to module description.
8965         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
8966         * modules/wcslen (configure.ac): ... to here.
8967
8968 2011-05-22  Bruno Haible  <bruno@clisp.org>
8969
8970         wcsdup: Move AC_LIBOBJ invocations to module description.
8971         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
8972         * modules/wcsdup (configure.ac): ... to here.
8973
8974 2011-05-22  Bruno Haible  <bruno@clisp.org>
8975
8976         wcscspn: Move AC_LIBOBJ invocations to module description.
8977         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
8978         here...
8979         * modules/wcscspn (configure.ac): ... to here.
8980
8981 2011-05-22  Bruno Haible  <bruno@clisp.org>
8982
8983         wcscpy: Move AC_LIBOBJ invocations to module description.
8984         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
8985         * modules/wcscpy (configure.ac): ... to here.
8986
8987 2011-05-22  Bruno Haible  <bruno@clisp.org>
8988
8989         wcscoll: Move AC_LIBOBJ invocations to module description.
8990         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
8991         here...
8992         * modules/wcscoll (configure.ac): ... to here.
8993
8994 2011-05-22  Bruno Haible  <bruno@clisp.org>
8995
8996         wcscmp: Move AC_LIBOBJ invocations to module description.
8997         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
8998         * modules/wcscmp (configure.ac): ... to here.
8999
9000 2011-05-22  Bruno Haible  <bruno@clisp.org>
9001
9002         wcschr: Move AC_LIBOBJ invocations to module description.
9003         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
9004         * modules/wcschr (configure.ac): ... to here.
9005
9006 2011-05-22  Bruno Haible  <bruno@clisp.org>
9007
9008         wcscat: Move AC_LIBOBJ invocations to module description.
9009         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
9010         * modules/wcscat (configure.ac): ... to here.
9011
9012 2011-05-22  Bruno Haible  <bruno@clisp.org>
9013
9014         wcscasecmp: Move AC_LIBOBJ invocations to module description.
9015         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
9016         here...
9017         * modules/wcscasecmp (configure.ac): ... to here.
9018
9019 2011-05-22  Bruno Haible  <bruno@clisp.org>
9020
9021         wcrtomb: Move AC_LIBOBJ invocations to module description.
9022         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
9023         invocations from here...
9024         * modules/wcrtomb (configure.ac): ... to here.
9025
9026 2011-05-22  Bruno Haible  <bruno@clisp.org>
9027
9028         wcpncpy: Move AC_LIBOBJ invocations to module description.
9029         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
9030         here...
9031         * modules/wcpncpy (configure.ac): ... to here.
9032
9033 2011-05-22  Bruno Haible  <bruno@clisp.org>
9034
9035         wcpcpy: Move AC_LIBOBJ invocations to module description.
9036         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
9037         * modules/wcpcpy (configure.ac): ... to here.
9038
9039 2011-05-22  Bruno Haible  <bruno@clisp.org>
9040
9041         waitpid: Move AC_LIBOBJ invocations to module description.
9042         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
9043         invocation from here...
9044         * modules/waitpid (configure.ac): ... to here.
9045
9046 2011-05-22  Bruno Haible  <bruno@clisp.org>
9047
9048         utimensat: Move AC_LIBOBJ invocations to module description.
9049         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
9050         here...
9051         * modules/utimensat (configure.ac): ... to here.
9052
9053 2011-05-22  Bruno Haible  <bruno@clisp.org>
9054
9055         usleep: Move AC_LIBOBJ invocations to module description.
9056         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
9057         here...
9058         * modules/usleep (configure.ac): ... to here.
9059
9060 2011-05-22  Bruno Haible  <bruno@clisp.org>
9061
9062         unlockpt: Move AC_LIBOBJ invocations to module description.
9063         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
9064         gl_PREREQ_UNLOCKPT invocations from here...
9065         * modules/unlockpt (configure.ac): ... to here.
9066
9067 2011-05-22  Bruno Haible  <bruno@clisp.org>
9068
9069         unlink: Respect rules for use of AC_LIBOBJ.
9070         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
9071         * modules/unlink (configure.ac): ... to here.
9072
9073 2011-05-22  Bruno Haible  <bruno@clisp.org>
9074
9075         uname: Move AC_LIBOBJ invocations to module description.
9076         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
9077         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
9078         here...
9079         * modules/uname (configure.ac): ... to here.
9080
9081 2011-05-22  Bruno Haible  <bruno@clisp.org>
9082
9083         ttyname_r: Move AC_LIBOBJ invocations to module description.
9084         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
9085         gl_PREREQ_TTYNAME_R invocations from here...
9086         * modules/ttyname_r (configure.ac): ... to here.
9087
9088 2011-05-22  Bruno Haible  <bruno@clisp.org>
9089
9090         tsearch: Move AC_LIBOBJ invocations to module description.
9091         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
9092         invocations from here...
9093         * modules/tsearch (configure.ac): ... to here.
9094
9095 2011-05-22  Bruno Haible  <bruno@clisp.org>
9096
9097         towctrans: Move AC_LIBOBJ invocations to module description.
9098         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
9099         AC_LIBOBJ invocation from here...
9100         * modules/towctrans (configure.ac): ... to here.
9101
9102 2011-05-22  Bruno Haible  <bruno@clisp.org>
9103
9104         tmpfile: Move AC_LIBOBJ invocations to module description.
9105         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
9106         invocations from here...
9107         * modules/tmpfile (configure.ac): ... to here.
9108
9109 2011-05-22  Bruno Haible  <bruno@clisp.org>
9110
9111         times: Move AC_LIBOBJ invocations to module description.
9112         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
9113         * modules/times (configure.ac): ... to here.
9114
9115 2011-05-22  Bruno Haible  <bruno@clisp.org>
9116
9117         time_r: Move AC_LIBOBJ invocations to module description.
9118         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
9119         invocations from here...
9120         * modules/time_r (configure.ac): ... to here.
9121
9122 2011-05-22  Bruno Haible  <bruno@clisp.org>
9123
9124         timegm: Move AC_LIBOBJ invocations to module description.
9125         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
9126         invocations from here...
9127         * modules/timegm (configure.ac): ... to here.
9128
9129 2011-05-22  Bruno Haible  <bruno@clisp.org>
9130
9131         tcgetsid: Move AC_LIBOBJ invocations to module description.
9132         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
9133         and gl_PREREQ_TCGETSID invocations from here...
9134         * modules/tcgetsid (configure.ac): ... to here.
9135         (Depends-on): Update conditions.
9136
9137 2011-05-22  Bruno Haible  <bruno@clisp.org>
9138
9139         symlinkat: Move AC_LIBOBJ invocations to module description.
9140         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
9141         here...
9142         * modules/symlinkat (configure.ac): ... to here.
9143
9144 2011-05-22  Bruno Haible  <bruno@clisp.org>
9145
9146         symlink: Move AC_LIBOBJ invocations to module description.
9147         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
9148         here...
9149         * modules/symlink (configure.ac): ... to here.
9150
9151 2011-05-22  Bruno Haible  <bruno@clisp.org>
9152
9153         strverscmp: Move AC_LIBOBJ invocations to module description.
9154         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
9155         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
9156         from here...
9157         * modules/strverscmp (configure.ac): ... to here.
9158
9159 2011-05-22  Bruno Haible  <bruno@clisp.org>
9160
9161         strtok_r: Move AC_LIBOBJ invocations to module description.
9162         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
9163         and gl_PREREQ_STRTOK_R invocations from here...
9164         * modules/strtok_r (configure.ac): ... to here.
9165         (Depends-on): Update conditions.
9166
9167 2011-05-22  Bruno Haible  <bruno@clisp.org>
9168
9169         strtoumax: Move AC_LIBOBJ invocations to module description.
9170         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
9171         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
9172         from here...
9173         * modules/strtoumax (configure.ac): ... to here.
9174
9175 2011-05-22  Bruno Haible  <bruno@clisp.org>
9176
9177         strtoimax: Move AC_LIBOBJ invocations to module description.
9178         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
9179         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
9180         from here...
9181         * modules/strtoimax (configure.ac): ... to here.
9182
9183 2011-05-22  Bruno Haible  <bruno@clisp.org>
9184
9185         strtoull: Move AC_LIBOBJ invocations to module description.
9186         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
9187         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
9188         from here...
9189         * modules/strtoull (configure.ac): ... to here.
9190
9191 2011-05-22  Bruno Haible  <bruno@clisp.org>
9192
9193         strtoll: Move AC_LIBOBJ invocations to module description.
9194         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
9195         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
9196         here...
9197         * modules/strtoll (configure.ac): ... to here.
9198
9199 2011-05-22  Bruno Haible  <bruno@clisp.org>
9200
9201         strtoul: Move AC_LIBOBJ invocations to module description.
9202         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
9203         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9204         * modules/strtoul (configure.ac): ... to here.
9205
9206 2011-05-22  Bruno Haible  <bruno@clisp.org>
9207
9208         strtol: Move AC_LIBOBJ invocations to module description.
9209         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
9210         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9211         * modules/strtol (configure.ac): ... to here.
9212
9213 2011-05-22  Bruno Haible  <bruno@clisp.org>
9214
9215         strtod: Move AC_LIBOBJ invocations to module description.
9216         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
9217         invocations from here...
9218         * modules/strtod (configure.ac): ... to here.
9219
9220 2011-05-22  Bruno Haible  <bruno@clisp.org>
9221
9222         strstr*: Move AC_LIBOBJ invocations to module description.
9223         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
9224         invocations from here...
9225         * modules/strstr-simple (configure.ac): ... to here.
9226         * modules/strstr (configure.ac): ... and here.
9227
9228 2011-05-22  Bruno Haible  <bruno@clisp.org>
9229
9230         strsignal: Move AC_LIBOBJ invocations to module description.
9231         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
9232         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
9233         * modules/strsignal (configure.ac): ... to here.
9234         (Depends-on): Update conditions.
9235
9236 2011-05-22  Bruno Haible  <bruno@clisp.org>
9237
9238         strsep: Move AC_LIBOBJ invocations to module description.
9239         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
9240         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
9241         here...
9242         * modules/strsep (configure.ac): ... to here.
9243
9244 2011-05-22  Bruno Haible  <bruno@clisp.org>
9245
9246         strptime: Move AC_LIBOBJ invocations to module description.
9247         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
9248         gl_PREREQ_STRPTIME invocations from here...
9249         * modules/strptime (configure.ac): ... to here.
9250
9251 2011-05-22  Bruno Haible  <bruno@clisp.org>
9252
9253         strpbrk: Move AC_LIBOBJ invocations to module description.
9254         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
9255         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
9256         here...
9257         * modules/strpbrk (configure.ac): ... to here.
9258
9259 2011-05-22  Bruno Haible  <bruno@clisp.org>
9260
9261         strnlen: Move AC_LIBOBJ invocations to module description.
9262         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
9263         invocations from here...
9264         * modules/strnlen (configure.ac): ... to here.
9265
9266 2011-05-22  Bruno Haible  <bruno@clisp.org>
9267
9268         strndup: Move AC_LIBOBJ invocations to module description.
9269         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
9270         invocations from here...
9271         * modules/strndup (configure.ac): ... to here.
9272         (Depends-on): Update conditions.
9273
9274 2011-05-22  Bruno Haible  <bruno@clisp.org>
9275
9276         strncat: Move AC_LIBOBJ invocations to module description.
9277         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
9278         invocations from here...
9279         * modules/strncat (configure.ac): ... to here.
9280
9281 2011-05-22  Bruno Haible  <bruno@clisp.org>
9282
9283         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
9284         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
9285         invocations from here...
9286         * modules/strdup (configure.ac): ... to here.
9287         * modules/strdup-posix (configure.ac): ... and here.
9288
9289 2011-05-22  Bruno Haible  <bruno@clisp.org>
9290
9291         strcspn: Move AC_LIBOBJ invocations to module description.
9292         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
9293         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
9294         here...
9295         * modules/strcspn (configure.ac): ... to here.
9296
9297 2011-05-22  Bruno Haible  <bruno@clisp.org>
9298
9299         strchrnul: Move AC_LIBOBJ invocations to module description.
9300         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
9301         gl_PREREQ_STRCHRNUL invocations from here...
9302         * modules/strchrnul (configure.ac): ... to here.
9303
9304 2011-05-22  Bruno Haible  <bruno@clisp.org>
9305
9306         strcasestr*: Move AC_LIBOBJ invocations to module description.
9307         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9308         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
9309         * modules/strcasestr-simple (configure.ac): ... to here.
9310         * modules/strcasestr (configure.ac): ... and here.
9311
9312 2011-05-22  Bruno Haible  <bruno@clisp.org>
9313
9314         strcase: Move AC_LIBOBJ invocations to module description.
9315         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
9316         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
9317         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
9318         gl_PREREQ_STRNCASECMP invocations from here...
9319         * modules/strcase (configure.ac): ... to here.
9320
9321 2011-05-22  Bruno Haible  <bruno@clisp.org>
9322
9323         stpncpy: Move AC_LIBOBJ invocations to module description.
9324         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
9325         here...
9326         * modules/stpncpy (configure.ac): ... to here.
9327
9328 2011-05-22  Bruno Haible  <bruno@clisp.org>
9329
9330         stpcpy: Move AC_LIBOBJ invocations to module description.
9331         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
9332         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
9333         here...
9334         * modules/stpcpy (configure.ac): ... to here.
9335
9336 2011-05-21  Bruno Haible  <bruno@clisp.org>
9337
9338         stat: Move AC_LIBOBJ invocations to module description.
9339         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
9340         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
9341         here...
9342         * modules/stat (configure.ac): ... to here.
9343
9344 2011-05-21  Bruno Haible  <bruno@clisp.org>
9345
9346         sleep: Move AC_LIBOBJ invocations to module description.
9347         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
9348         * modules/sleep (configure.ac): ... to here.
9349
9350 2011-05-21  Bruno Haible  <bruno@clisp.org>
9351
9352         signbit: Move AC_LIBOBJ invocations to module description.
9353         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
9354         * modules/signbit (configure.ac): ... to here.
9355
9356 2011-05-21  Bruno Haible  <bruno@clisp.org>
9357
9358         sigprocmask: Move AC_LIBOBJ invocations to module description.
9359         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
9360         gl_PREREQ_SIGPROMASK invocations from here...
9361         * modules/sigprocmask (configure.ac): ... to here.
9362
9363 2011-05-21  Bruno Haible  <bruno@clisp.org>
9364
9365         sigaction: Move AC_LIBOBJ invocations to module description.
9366         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
9367         gl_PREREQ_SIGACTION invocations from here...
9368         * modules/sigaction (configure.ac): ... to here.
9369
9370 2011-05-21  Bruno Haible  <bruno@clisp.org>
9371
9372         sig2str: Move AC_LIBOBJ invocations to module description.
9373         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
9374         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
9375         here...
9376         * modules/sig2str (configure.ac): ... to here.
9377
9378 2011-05-21  Bruno Haible  <bruno@clisp.org>
9379
9380         setlocale: Move AC_LIBOBJ invocations to module description.
9381         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
9382         gl_PREREQ_SETLOCALE invocations from here...
9383         * modules/setlocale (configure.ac): ... to here.
9384
9385 2011-05-21  Bruno Haible  <bruno@clisp.org>
9386
9387         unsetenv: Move AC_LIBOBJ invocations to module description.
9388         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
9389         and gl_PREREQ_UNSETENV invocations from here...
9390         * modules/unsetenv (configure.ac): ... to here.
9391         (Depends-on): Update.
9392
9393 2011-05-21  Bruno Haible  <bruno@clisp.org>
9394
9395         setenv: Move AC_LIBOBJ invocations to module description.
9396         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
9397         here...
9398         * modules/setenv (configure.ac): ... to here.
9399
9400 2011-05-21  Bruno Haible  <bruno@clisp.org>
9401
9402         selinux-h: Move AC_LIBOBJ invocations to module description.
9403         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
9404         AC_LIBOBJ invocation from here...
9405         * modules/selinux-h (configure.ac): ... to here.
9406
9407 2011-05-21  Bruno Haible  <bruno@clisp.org>
9408
9409         select: Respect rules for use of AC_LIBOBJ.
9410         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
9411         here...
9412         * modules/select (configure.ac): ... to here.
9413
9414 2011-05-21  Bruno Haible  <bruno@clisp.org>
9415
9416         scandir: Move AC_LIBOBJ invocations to module description.
9417         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
9418         invocations from here...
9419         * modules/scandir (configure.ac): ... to here.
9420
9421 2011-05-21  Bruno Haible  <bruno@clisp.org>
9422
9423         rpmatch: Move AC_LIBOBJ invocations to module description.
9424         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
9425         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
9426         here...
9427         * modules/rpmatch (configure.ac): ... to here.
9428
9429 2011-05-21  Bruno Haible  <bruno@clisp.org>
9430
9431         rmdir: Respect rules for use of AC_LIBOBJ.
9432         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
9433         * modules/rmdir (configure.ac): ... to here.
9434
9435 2011-05-21  Bruno Haible  <bruno@clisp.org>
9436
9437         renameat: Move AC_LIBOBJ invocations to module description.
9438         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
9439         here...
9440         * modules/renameat (configure.ac): ... to here.
9441
9442 2011-05-21  Bruno Haible  <bruno@clisp.org>
9443
9444         rename: Respect rules for use of AC_LIBOBJ.
9445         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
9446         here...
9447         * modules/rename (configure.ac): ... to here.
9448
9449 2011-05-21  Bruno Haible  <bruno@clisp.org>
9450
9451         remove: Move AC_LIBOBJ invocations to module description.
9452         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
9453         here...
9454         * modules/remove (configure.ac): ... to here.
9455
9456 2011-05-21  Bruno Haible  <bruno@clisp.org>
9457
9458         relocatable-lib: Move AC_LIBOBJ invocations to module description.
9459         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
9460         macro.
9461         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
9462         * modules/relocatable-lib (configure.ac): ... to here.
9463         * modules/relocatable-prog-wrapper (configure.ac): Invoke
9464         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
9465
9466 2011-05-21  Bruno Haible  <bruno@clisp.org>
9467
9468         relocatable-prog: Move AC_LIBOBJ invocations to module description.
9469         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
9470         here...
9471         * modules/relocatable-prog (configure.ac): ... to here.
9472
9473 2011-05-21  Bruno Haible  <bruno@clisp.org>
9474
9475         regex: Move AC_LIBOBJ invocations to module description.
9476         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
9477         invocations from here...
9478         * modules/regex (configure.ac): ... to here.
9479
9480 2011-05-21  Bruno Haible  <bruno@clisp.org>
9481
9482         realloc-*: Move AC_LIBOBJ invocations to module description.
9483         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
9484         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
9485         AC_LIBOBJ invocations from here...
9486         * modules/realloc-gnu (configure.ac): ... to here.
9487         * modules/realloc-posix (configure.ac): ... and here.
9488
9489 2011-05-21  Bruno Haible  <bruno@clisp.org>
9490
9491         readutmp: Move AC_LIBOBJ invocations to module description.
9492         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
9493         * modules/readutmp (configure.ac): ... to here.
9494
9495 2011-05-21  Bruno Haible  <bruno@clisp.org>
9496
9497         readlinkat: Move AC_LIBOBJ invocations to module description.
9498         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
9499         here...
9500         * modules/readlinkat (configure.ac): ... to here.
9501
9502 2011-05-21  Bruno Haible  <bruno@clisp.org>
9503
9504         readlink: Move AC_LIBOBJ invocations to module description.
9505         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
9506         gl_PREREQ_READLINK invocations from here...
9507         * modules/readlink (configure.ac): ... to here.
9508
9509 2011-05-21  Bruno Haible  <bruno@clisp.org>
9510
9511         readline: Move AC_LIBOBJ invocations to module description.
9512         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
9513         gl_PREREQ_READLINE invocations from here...
9514         * modules/readline (configure.ac): ... to here.
9515
9516 2011-05-21  Bruno Haible  <bruno@clisp.org>
9517
9518         read: Move AC_LIBOBJ invocations to module description.
9519         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
9520         * modules/read (configure.ac): ... to here.
9521
9522 2011-05-21  Bruno Haible  <bruno@clisp.org>
9523
9524         rawmemchr: Move AC_LIBOBJ invocations to module description.
9525         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
9526         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
9527         from here...
9528         * modules/rawmemchr (configure.ac): ... to here.
9529
9530 2011-05-21  Bruno Haible  <bruno@clisp.org>
9531
9532         random_r: Move AC_LIBOBJ invocations to module description.
9533         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
9534         gl_PREREQ_RANDOM_R invocations from here...
9535         * modules/random_r (configure.ac): ... to here.
9536
9537 2011-05-21  Bruno Haible  <bruno@clisp.org>
9538
9539         pwrite: Move AC_LIBOBJ invocations to module description.
9540         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
9541         * modules/pwrite (configure.ac): ... to here.
9542
9543 2011-05-21  Bruno Haible  <bruno@clisp.org>
9544
9545         putenv: Move AC_LIBOBJ invocations to module description.
9546         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
9547         * modules/putenv (configure.ac): ... to here.
9548
9549 2011-05-21  Bruno Haible  <bruno@clisp.org>
9550
9551         login_tty: Move AC_LIBOBJ invocations to module description.
9552         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
9553         * modules/login_tty (configure.ac): ... to here.
9554
9555 2011-05-21  Bruno Haible  <bruno@clisp.org>
9556
9557         openpty: Move AC_LIBOBJ invocations to module description.
9558         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
9559         * modules/openpty (configure.ac): ... to here.
9560
9561 2011-05-21  Bruno Haible  <bruno@clisp.org>
9562
9563         forkpty: Move AC_LIBOBJ invocations to module description.
9564         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
9565         * modules/forkpty (configure.ac): ... to here.
9566
9567 2011-05-21  Bruno Haible  <bruno@clisp.org>
9568
9569         ptsname: Move AC_LIBOBJ invocations to module description.
9570         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
9571         invocations from here...
9572         * modules/ptsname (configure.ac): ... to here.
9573
9574 2011-05-21  Bruno Haible  <bruno@clisp.org>
9575
9576         pread: Move AC_LIBOBJ invocations to module description.
9577         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
9578         * modules/pread (configure.ac): ... to here.
9579
9580 2011-05-21  Bruno Haible  <bruno@clisp.org>
9581
9582         posix_spawn*: Move AC_LIBOBJ invocations to module description.
9583         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
9584         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
9585         * modules/posix_spawn (configure.ac): ... to here.
9586         * modules/posix_spawnp (configure.ac): ... and here.
9587
9588 2011-05-21  Bruno Haible  <bruno@clisp.org>
9589
9590         popen: Move AC_LIBOBJ invocations to module description.
9591         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
9592         invocations from here...
9593         * modules/popen (configure.ac): ... to here.
9594
9595 2011-05-21  Bruno Haible  <bruno@clisp.org>
9596
9597         poll: Move AC_LIBOBJ invocations to module description.
9598         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
9599         invocations from here...
9600         * modules/poll (configure.ac): ... to here.
9601
9602 2011-05-21  Bruno Haible  <bruno@clisp.org>
9603
9604         pipe-posix: Move AC_LIBOBJ invocations to module description.
9605         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
9606         * modules/pipe-posix (configure.ac): ... to here.
9607
9608 2011-05-21  Bruno Haible  <bruno@clisp.org>
9609
9610         openat: Respect rules for use of AC_LIBOBJ.
9611         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
9612         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9613         * modules/openat (configure.ac): ... to here.
9614
9615 2011-05-21  Bruno Haible  <bruno@clisp.org>
9616
9617         obstack-printf*: Move AC_LIBOBJ invocations to module description.
9618         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
9619         invocation from here...
9620         * modules/obstack-printf (configure.ac): ... to here.
9621         * modules/obstack-printf-posix (configure.ac): ... and here.
9622
9623 2011-05-21  Bruno Haible  <bruno@clisp.org>
9624
9625         nl_langinfo: Move AC_LIBOBJ invocations to module description.
9626         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
9627         from here...
9628         * modules/nl_langinfo (configure.ac): ... to here.
9629
9630 2011-05-21  Bruno Haible  <bruno@clisp.org>
9631
9632         nanosleep: Move AC_LIBOBJ invocations to module description.
9633         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
9634         gl_PREREQ_NANOSLEEP invocations from here...
9635         * modules/nanosleep (configure.ac): ... to here.
9636
9637 2011-05-21  Bruno Haible  <bruno@clisp.org>
9638
9639         mountlist: Move AC_LIBOBJ invocations to module description.
9640         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
9641         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
9642         * modules/mountlist (configure.ac): ... to here.
9643
9644 2011-05-21  Bruno Haible  <bruno@clisp.org>
9645
9646         mktime: Respect rules for use of AC_LIBOBJ.
9647         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
9648         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
9649         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
9650         (gl_FUNC_MKTIME_INTERNAL): ... and here...
9651         * modules/mktime (configure.ac): ... to here.
9652         * modules/mktime-internal (configure.ac): ... and here.
9653         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
9654
9655 2011-05-21  Bruno Haible  <bruno@clisp.org>
9656
9657         mkstemps: Move AC_LIBOBJ invocations to module description.
9658         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
9659         here...
9660         * modules/mkstemps (configure.ac): ... to here.
9661
9662 2011-05-21  Bruno Haible  <bruno@clisp.org>
9663
9664         mkstemp: Move AC_LIBOBJ invocations to module description.
9665         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
9666         gl_PREREQ_MKSTEMP invocations from here...
9667         * modules/mkstemp (configure.ac): ... to here.
9668
9669 2011-05-21  Bruno Haible  <bruno@clisp.org>
9670
9671         mkostemps: Move AC_LIBOBJ invocations to module description.
9672         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
9673         here...
9674         * modules/mkostemps (configure.ac): ... to here.
9675
9676 2011-05-21  Bruno Haible  <bruno@clisp.org>
9677
9678         mkostemp: Move AC_LIBOBJ invocations to module description.
9679         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
9680         gl_PREREQ_MKOSTEMP invocations from here...
9681         * modules/mkostemp (configure.ac): ... to here.
9682
9683 2011-05-21  Bruno Haible  <bruno@clisp.org>
9684
9685         mknod: Move AC_LIBOBJ invocations to module description.
9686         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
9687         * modules/mknod (configure.ac): ... to here.
9688
9689 2011-05-21  Bruno Haible  <bruno@clisp.org>
9690
9691         mkfifoat: Move AC_LIBOBJ invocations to module description.
9692         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
9693         here...
9694         * modules/mkfifoat (configure.ac): ... to here.
9695
9696 2011-05-21  Bruno Haible  <bruno@clisp.org>
9697
9698         mkfifo: Respect rules for use of AC_LIBOBJ.
9699         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
9700         here...
9701         * modules/mkfifo (configure.ac): ... to here.
9702
9703 2011-05-21  Bruno Haible  <bruno@clisp.org>
9704
9705         mkdtemp: Move AC_LIBOBJ invocations to module description.
9706         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
9707         invocations from here...
9708         * modules/mkdtemp (configure.ac): ... to here.
9709
9710 2011-05-21  Bruno Haible  <bruno@clisp.org>
9711
9712         mkdir: Move AC_LIBOBJ invocations to module description.
9713         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
9714         * modules/mkdir (configure.ac): ... to here.
9715
9716 2011-05-21  Bruno Haible  <bruno@clisp.org>
9717
9718         memset: Move AC_LIBOBJ invocations to module description.
9719         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
9720         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
9721         here...
9722         * modules/memset (configure.ac): ... to here.
9723
9724 2011-05-21  Bruno Haible  <bruno@clisp.org>
9725
9726         memrchr: Move AC_LIBOBJ invocations to module description.
9727         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
9728         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
9729         here...
9730         * modules/memrchr (configure.ac): ... to here.
9731
9732 2011-05-21  Bruno Haible  <bruno@clisp.org>
9733
9734         mempcpy: Move AC_LIBOBJ invocations to module description.
9735         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
9736         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
9737         here...
9738         * modules/mempcpy (configure.ac): ... to here.
9739
9740 2011-05-21  Bruno Haible  <bruno@clisp.org>
9741
9742         memmove: Move AC_LIBOBJ invocations to module description.
9743         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
9744         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
9745         here...
9746         * modules/memmove (configure.ac): ... to here.
9747
9748 2011-05-21  Bruno Haible  <bruno@clisp.org>
9749
9750         memmem*: Move AC_LIBOBJ invocations to module description.
9751         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
9752         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
9753         here...
9754         (gl_FUNC_MEMMEM): ... and here...
9755         * modules/memmem-simple (configure.ac): ... to here.
9756         * modules/memmem (configure.ac): ... and here.
9757
9758 2011-05-21  Bruno Haible  <bruno@clisp.org>
9759
9760         memcpy: Move AC_LIBOBJ invocations to module description.
9761         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
9762         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
9763         here...
9764         * modules/memcpy (configure.ac): ... to here.
9765
9766 2011-05-21  Bruno Haible  <bruno@clisp.org>
9767
9768         memcmp: Simplify autoconf macro.
9769         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
9770         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
9771         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
9772
9773 2011-05-21  Bruno Haible  <bruno@clisp.org>
9774
9775         memcmp: Move AC_LIBOBJ invocations to module description.
9776         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
9777         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
9778         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
9779         * modules/memcmp (configure.ac): ... to here.
9780         (Depends-on): Update conditions.
9781
9782 2011-05-21  Bruno Haible  <bruno@clisp.org>
9783
9784         memchr: Respect rules for use of AC_LIBOBJ.
9785         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
9786         invocations from here...
9787         * modules/memchr (configure.ac): ... to here.
9788
9789 2011-05-21  Bruno Haible  <bruno@clisp.org>
9790
9791         mbtowc: Move AC_LIBOBJ invocations to module description.
9792         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
9793         invocations from here...
9794         * modules/mbtowc (configure.ac): ... to here.
9795
9796 2011-05-21  Bruno Haible  <bruno@clisp.org>
9797
9798         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
9799         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
9800         gl_PREREQ_MBSRTOWCS invocations from here...
9801         * modules/mbsrtowcs (configure.ac): ... to here.
9802
9803 2011-05-21  Bruno Haible  <bruno@clisp.org>
9804
9805         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
9806         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
9807         gl_PREREQ_MBSNRTOWCS invocations from here...
9808         * modules/mbsnrtowcs (configure.ac): ... to here.
9809
9810 2011-05-21  Bruno Haible  <bruno@clisp.org>
9811
9812         mbsinit: Move AC_LIBOBJ invocations to module description.
9813         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
9814         invocations from here...
9815         * modules/mbsinit (configure.ac): ... to here.
9816
9817 2011-05-21  Bruno Haible  <bruno@clisp.org>
9818
9819         mbrlen: Move AC_LIBOBJ invocations to module description.
9820         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
9821         invocations from here...
9822         * modules/mbrlen (configure.ac): ... to here.
9823
9824 2011-05-21  Bruno Haible  <bruno@clisp.org>
9825
9826         mbrtowc: Respect rules for use of AC_LIBOBJ.
9827         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
9828         invocations from here...
9829         * modules/mbrtowc (configure.ac): ... to here.
9830
9831 2011-05-21  Bruno Haible  <bruno@clisp.org>
9832
9833         malloc-*: Move AC_LIBOBJ invocations to module description.
9834         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
9835         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
9836         AC_LIBOBJ invocations from here...
9837         * modules/malloc-gnu (configure.ac): ... to here.
9838         * modules/malloc-posix (configure.ac): ... and here.
9839
9840 2011-05-21  Bruno Haible  <bruno@clisp.org>
9841
9842         lstat, openat: Respect rules for use of AC_LIBOBJ.
9843         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
9844         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
9845         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
9846         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
9847         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
9848         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
9849         here.
9850         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
9851
9852 2011-05-21  Bruno Haible  <bruno@clisp.org>
9853
9854         lseek: Move AC_LIBOBJ invocations to module description.
9855         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
9856         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9857         * modules/lseek (configure.ac): ... to here.
9858
9859 2011-05-21  Bruno Haible  <bruno@clisp.org>
9860
9861         linkat: Move AC_LIBOBJ invocations to module description.
9862         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
9863         here...
9864         * modules/linkat (configure.ac): ... to here.
9865
9866 2011-05-21  Bruno Haible  <bruno@clisp.org>
9867
9868         link: Respect rules for use of AC_LIBOBJ.
9869         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
9870         * modules/link (configure.ac): ... to here.
9871
9872 2011-05-21  Bruno Haible  <bruno@clisp.org>
9873
9874         lchown: Move AC_LIBOBJ invocations to module description.
9875         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9876         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9877         * modules/lchown (configure.ac): ... to here.
9878
9879 2011-05-21  Bruno Haible  <bruno@clisp.org>
9880
9881         iswctype: Move AC_LIBOBJ invocations to module description.
9882         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
9883         here...
9884         * modules/iswctype (configure.ac): ... to here.
9885
9886 2011-05-21  Bruno Haible  <bruno@clisp.org>
9887
9888         iswblank: Move AC_LIBOBJ invocations to module description.
9889         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
9890         here...
9891         * modules/iswblank (configure.ac): ... to here.
9892
9893 2011-05-21  Bruno Haible  <bruno@clisp.org>
9894
9895         atanl: Move AC_LIBOBJ invocations to module description.
9896         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
9897         * modules/atanl (configure.ac): ... to here.
9898
9899 2011-05-21  Bruno Haible  <bruno@clisp.org>
9900
9901         acosl: Move AC_LIBOBJ invocations to module description.
9902         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
9903         * modules/acosl (configure.ac): ... to here.
9904
9905 2011-05-21  Bruno Haible  <bruno@clisp.org>
9906
9907         asinl: Respect rules for use of AC_LIBOBJ.
9908         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
9909         * modules/asinl (configure.ac): ... to here.
9910
9911 2011-05-21  Bruno Haible  <bruno@clisp.org>
9912
9913         tanl: Move AC_LIBOBJ invocations to module description.
9914         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
9915         * modules/tanl (configure.ac): ... to here.
9916
9917 2011-05-21  Bruno Haible  <bruno@clisp.org>
9918
9919         cosl: Move AC_LIBOBJ invocations to module description.
9920         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
9921         * modules/cosl (configure.ac): ... to here.
9922
9923 2011-05-21  Bruno Haible  <bruno@clisp.org>
9924
9925         sinl: Move AC_LIBOBJ invocations to module description.
9926         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
9927         * modules/sinl (configure.ac): ... to here.
9928
9929 2011-05-21  Bruno Haible  <bruno@clisp.org>
9930
9931         logl: Move AC_LIBOBJ invocations to module description.
9932         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
9933         * modules/logl (configure.ac): ... to here.
9934
9935 2011-05-21  Bruno Haible  <bruno@clisp.org>
9936
9937         expl: Move AC_LIBOBJ invocations to module description.
9938         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
9939         * modules/expl (configure.ac): ... to here.
9940
9941 2011-05-21  Bruno Haible  <bruno@clisp.org>
9942
9943         roundl: Move AC_LIBOBJ invocations to module description.
9944         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
9945         * modules/roundl (configure.ac): ... to here.
9946
9947 2011-05-21  Bruno Haible  <bruno@clisp.org>
9948
9949         round: Move AC_LIBOBJ invocations to module description.
9950         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
9951         * modules/round (configure.ac): ... to here.
9952
9953 2011-05-21  Bruno Haible  <bruno@clisp.org>
9954
9955         roundf: Move AC_LIBOBJ invocations to module description.
9956         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
9957         * modules/roundf (configure.ac): ... to here.
9958
9959 2011-05-21  Bruno Haible  <bruno@clisp.org>
9960
9961         truncl: Move AC_LIBOBJ invocations to module description.
9962         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
9963         * modules/truncl (configure.ac): ... to here.
9964
9965 2011-05-21  Bruno Haible  <bruno@clisp.org>
9966
9967         trunc: Move AC_LIBOBJ invocations to module description.
9968         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
9969         * modules/trunc (configure.ac): ... to here.
9970
9971 2011-05-21  Bruno Haible  <bruno@clisp.org>
9972
9973         truncf: Move AC_LIBOBJ invocations to module description.
9974         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
9975         * modules/truncf (configure.ac): ... to here.
9976
9977 2011-05-21  Bruno Haible  <bruno@clisp.org>
9978
9979         ceill: Move AC_LIBOBJ invocations to module description.
9980         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
9981         * modules/ceill (configure.ac): ... to here.
9982
9983 2011-05-21  Bruno Haible  <bruno@clisp.org>
9984
9985         ceil: Move AC_LIBOBJ invocations to module description.
9986         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
9987         * modules/ceil (configure.ac): ... to here.
9988
9989 2011-05-21  Bruno Haible  <bruno@clisp.org>
9990
9991         ceilf: Move AC_LIBOBJ invocations to module description.
9992         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
9993         * modules/ceilf (configure.ac): ... to here.
9994
9995 2011-05-21  Bruno Haible  <bruno@clisp.org>
9996
9997         floorl: Respect rules for use of AC_LIBOBJ.
9998         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
9999         * modules/floorl (configure.ac): ... to here.
10000
10001 2011-05-21  Bruno Haible  <bruno@clisp.org>
10002
10003         floor: Respect rules for use of AC_LIBOBJ.
10004         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
10005         * modules/floor (configure.ac): ... to here.
10006
10007 2011-05-21  Bruno Haible  <bruno@clisp.org>
10008
10009         floorf: Move AC_LIBOBJ invocations to module description.
10010         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
10011         * modules/floorf (configure.ac): ... to here.
10012
10013 2011-05-20  Bruno Haible  <bruno@clisp.org>
10014
10015         sqrtl: Respect rules for use of AC_LIBOBJ.
10016         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
10017         * modules/sqrtl (configure.ac): ... to here.
10018
10019 2011-05-20  Bruno Haible  <bruno@clisp.org>
10020
10021         ldexpl: Respect rules for use of AC_LIBOBJ.
10022         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
10023         * modules/ldexpl (configure.ac): ... to here.
10024
10025 2011-05-20  Bruno Haible  <bruno@clisp.org>
10026
10027         frexpl*: Respect rules for use of AC_LIBOBJ.
10028         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
10029         invocation from here...
10030         * modules/frexpl (configure.ac): ... to here.
10031         * modules/frexpl-nolibm (configure.ac): ... and here.
10032
10033 2011-05-20  Bruno Haible  <bruno@clisp.org>
10034
10035         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
10036         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
10037         invocation from here...
10038         * modules/frexp (configure.ac): ... to here.
10039         * modules/frexp-nolibm (configure.ac): ... and here.
10040
10041 2011-05-20  Bruno Haible  <bruno@clisp.org>
10042
10043         isnan: Respect rules for use of AC_LIBOBJ.
10044         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
10045         invocations here.
10046         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
10047         REPLACE_ISNAN.
10048         * modules/isnand (configure.ac): Likewise.
10049         * modules/isnanl (configure.ac): Likewise.
10050
10051 2011-05-20  Bruno Haible  <bruno@clisp.org>
10052
10053         isnanl*: Respect rules for use of AC_LIBOBJ.
10054         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
10055         invocation from here...
10056         * modules/isnanl (configure.ac): ... to here.
10057         * modules/isnanl-nolibm (configure.ac): ... and here.
10058
10059 2011-05-20  Bruno Haible  <bruno@clisp.org>
10060
10061         isnand*: Move AC_LIBOBJ invocations to module description.
10062         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
10063         invocation from here...
10064         * modules/isnand (configure.ac): ... to here.
10065         * modules/isnand-nolibm (configure.ac): ... and here.
10066
10067 2011-05-20  Bruno Haible  <bruno@clisp.org>
10068
10069         isnanf*: Move AC_LIBOBJ invocations to module description.
10070         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
10071         invocation from here...
10072         * modules/isnanf (configure.ac): ... to here.
10073         * modules/isnanf-nolibm (configure.ac): ... and here.
10074
10075 2011-05-20  Bruno Haible  <bruno@clisp.org>
10076
10077         isnan*: Separate the AC_LIBOBJ invocations.
10078         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
10079         AC_LIBOBJ invocation.
10080         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
10081         here.
10082         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
10083         AC_LIBOBJ invocation.
10084         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
10085         here.
10086         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
10087         AC_LIBOBJ invocation.
10088         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
10089         here.
10090         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
10091
10092 2011-05-08  Bruno Haible  <bruno@clisp.org>
10093
10094         isinf: Move AC_LIBOBJ invocations to module description.
10095         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
10096         * modules/isinf (configure.ac): ... to here.
10097
10098 2011-05-08  Bruno Haible  <bruno@clisp.org>
10099
10100         isfinite: Move AC_LIBOBJ invocations to module description.
10101         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
10102         * modules/isfinite (configure.ac): ... to here.
10103
10104 2011-05-08  Bruno Haible  <bruno@clisp.org>
10105
10106         isblank: Move AC_LIBOBJ invocations to module description.
10107         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
10108         here...
10109         * modules/isblank (configure.ac): ... to here.
10110
10111 2011-05-08  Bruno Haible  <bruno@clisp.org>
10112
10113         isapipe: Move AC_LIBOBJ invocations to module description.
10114         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
10115         gl_PREREQ_ISAPIPE invocations from here...
10116         * modules/isapipe (configure.ac): ... to here.
10117         (Depends-on): Update condition.
10118
10119 2011-05-08  Bruno Haible  <bruno@clisp.org>
10120
10121         ioctl: Move AC_LIBOBJ invocations to module description.
10122         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
10123         invocations from here...
10124         * modules/ioctl (configure.ac): ... to here.
10125         (Depends-on): Update condition.
10126
10127 2011-05-08  Bruno Haible  <bruno@clisp.org>
10128
10129         imaxdiv: Move AC_LIBOBJ invocations to module description.
10130         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
10131         invocations from here...
10132         * modules/imaxdiv (configure.ac): ... to here.
10133
10134 2011-05-08  Bruno Haible  <bruno@clisp.org>
10135
10136         imaxabs: Move AC_LIBOBJ invocations to module description.
10137         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
10138         invocations from here...
10139         * modules/imaxabs (configure.ac): ... to here.
10140
10141 2011-05-08  Bruno Haible  <bruno@clisp.org>
10142
10143         getaddrinfo: Move AC_LIBOBJ invocations to module description.
10144         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
10145         AC_LIBOBJ invocations from here...
10146         * modules/getaddrinfo (configure.ac): ... to here.
10147         (Depends-on): Add conditions.
10148
10149 2011-05-08  Bruno Haible  <bruno@clisp.org>
10150
10151         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10152         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
10153         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10154         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
10155         (gl_PREREQ_INET_PTON): ... from here.
10156         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
10157         gl_PREREQ_INET_PTON here.
10158         (Depends-on): Update condition.
10159
10160 2011-05-08  Bruno Haible  <bruno@clisp.org>
10161
10162         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10163         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
10164         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10165         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
10166         (gl_PREREQ_INET_NTOP): ... from here.
10167         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
10168         gl_PREREQ_INET_NTOP here.
10169         (Depends-on): Update condition.
10170
10171 2011-05-08  Bruno Haible  <bruno@clisp.org>
10172
10173         iconv_open: Move AC_LIBOBJ invocations to module description.
10174         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
10175         AC_LIBOBJ invocations from here...
10176         * modules/iconv_open (configure.ac): ... to here.
10177
10178 2011-05-08  Bruno Haible  <bruno@clisp.org>
10179
10180         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
10181         If module 'iconv_open' is among the main modules and module
10182         'iconv_open-utf' is among the tests dependencies, then
10183         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
10184         return the special iconv_t values. Therefore iconv() and iconv_close()
10185         must support these special iconv_t values, already in lib, not only in
10186         tests.
10187         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
10188         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
10189         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
10190         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
10191         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
10192         (Depends-on): Add the dependencies of iconv_open-utf.
10193         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
10194         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
10195         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
10196
10197 2011-05-08  Bruno Haible  <bruno@clisp.org>
10198
10199         group-member: Move AC_LIBOBJ invocations to module description.
10200         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
10201         gl_PREREQ_GROUP_MEMBER invocations from here...
10202         * modules/group-member (configure.ac): ... to here.
10203
10204 2011-05-08  Bruno Haible  <bruno@clisp.org>
10205
10206         grantpt: Move AC_LIBOBJ invocations to module description.
10207         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
10208         invocations from here...
10209         * modules/grantpt (configure.ac): ... to here.
10210
10211 2011-05-08  Bruno Haible  <bruno@clisp.org>
10212
10213         glob: Move AC_LIBOBJ invocations to module description.
10214         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
10215         from here...
10216         * modules/glob (configure.ac): ... to here.
10217
10218 2011-05-08  Bruno Haible  <bruno@clisp.org>
10219
10220         getusershell: Move AC_LIBOBJ invocations to module description.
10221         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
10222         Move AC_LIBOBJ invocation from here...
10223         * modules/getusershell (configure.ac): ... to here.
10224         (Depends-on): Update condition.
10225
10226 2011-05-08  Bruno Haible  <bruno@clisp.org>
10227
10228         gettimeofday: Move AC_LIBOBJ invocations to module description.
10229         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
10230         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
10231         gl_PREREQ_GETTIMEOFDAY invocations from here...
10232         * modules/gettimeofday (configure.ac): ... to here.
10233
10234 2011-05-08  Bruno Haible  <bruno@clisp.org>
10235
10236         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
10237         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
10238         just gl_FUNC_TZSET.
10239         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
10240         (gl_FUNC_TZSET_CLOBBER): Remove actions.
10241         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
10242         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
10243
10244 2011-05-08  Bruno Haible  <bruno@clisp.org>
10245
10246         getsubopt: Move AC_LIBOBJ invocations to module description.
10247         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
10248         gl_PREREQ_GETSUBOPT invocations from here...
10249         * modules/getsubopt (configure.ac): ... to here.
10250
10251 2011-05-08  Bruno Haible  <bruno@clisp.org>
10252
10253         getpass-gnu: Move AC_LIBOBJ invocations to module description.
10254         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
10255         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
10256         * modules/getpass-gnu (configure.ac): ... to here.
10257
10258 2011-05-08  Bruno Haible  <bruno@clisp.org>
10259
10260         getpass: Move AC_LIBOBJ invocations to module description.
10261         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
10262         gl_PREREQ_GETPASS invocations from here...
10263         * modules/getpass (configure.ac): ... to here.
10264
10265 2011-05-08  Bruno Haible  <bruno@clisp.org>
10266
10267         getpagesize: Move AC_LIBOBJ invocations to module description.
10268         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
10269         from here...
10270         * modules/getpagesize (configure.ac): ... to here.
10271
10272 2011-05-08  Bruno Haible  <bruno@clisp.org>
10273
10274         getopt: Move AC_LIBOBJ invocations to module description.
10275         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
10276         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
10277         invocations from here...
10278         * modules/getopt-gnu (configure.ac): ... to here.
10279         * modules/getopt-posix (configure.ac): ... and here.
10280         (Depends-on): Update condition.
10281
10282 2011-05-08  Bruno Haible  <bruno@clisp.org>
10283
10284         getopt, argp: Respect rules for use of AC_LIBOBJ.
10285         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
10286         (gl_REPLACE_GETOPT_ALWAYS): New macro.
10287         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
10288         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
10289
10290 2011-05-08  Bruno Haible  <bruno@clisp.org>
10291
10292         getlogin_r: Move AC_LIBOBJ invocations to module description.
10293         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
10294         gl_PREREQ_GETLOGIN_R invocations from here...
10295         * modules/getlogin_r (configure.ac): ... to here.
10296
10297 2011-05-08  Bruno Haible  <bruno@clisp.org>
10298
10299         getlogin: Move AC_LIBOBJ invocations to module description.
10300         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
10301         here...
10302         * modules/getlogin (configure.ac): ... to here.
10303
10304 2011-05-08  Bruno Haible  <bruno@clisp.org>
10305
10306         getloadavg: Move AC_LIBOBJ invocations to module description.
10307         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
10308         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
10309         * modules/getloadavg (configure.ac): ... to here.
10310
10311 2011-05-08  Bruno Haible  <bruno@clisp.org>
10312
10313         gethrxtime: Move AC_LIBOBJ invocations to module description.
10314         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
10315         LIB_GETHRXTIME from here...
10316         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
10317         invocations from here...
10318         * modules/gethrxtime (configure.ac): ... to here.
10319
10320 2011-05-08  Bruno Haible  <bruno@clisp.org>
10321
10322         gethostname: Move AC_LIBOBJ invocations to module description.
10323         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
10324         gl_PREREQ_GETHOSTNAME invocations from here...
10325         * modules/gethostname (configure.ac): ... to here.
10326
10327 2011-05-08  Bruno Haible  <bruno@clisp.org>
10328
10329         getgroups: Move AC_LIBOBJ invocations to module description.
10330         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
10331         here...
10332         * modules/getgroups (configure.ac): ... to here.
10333
10334 2011-05-08  Bruno Haible  <bruno@clisp.org>
10335
10336         getdtablesize: Move AC_LIBOBJ invocations to module description.
10337         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
10338         invocation from here...
10339         * modules/getdtablesize (configure.ac): ... to here.
10340
10341 2011-05-08  Bruno Haible  <bruno@clisp.org>
10342
10343         getdomainname: Move AC_LIBOBJ invocations to module description.
10344         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
10345         gl_PREREQ_GETDOMAINNAME invocations from here...
10346         * modules/getdomainname (configure.ac): ... to here.
10347
10348 2011-05-08  Bruno Haible  <bruno@clisp.org>
10349
10350         getline: Move AC_LIBOBJ invocations to module description.
10351         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
10352         invocations from here...
10353         * modules/getline (configure.ac): ... to here.
10354
10355 2011-05-08  Bruno Haible  <bruno@clisp.org>
10356
10357         getline: Simplify.
10358         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
10359         It's already handled through the module dependency.
10360
10361 2011-05-08  Bruno Haible  <bruno@clisp.org>
10362
10363         getdelim: Move AC_LIBOBJ invocations to module description.
10364         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
10365         and gl_PREREQ_GETDELIM invocations from here...
10366         * modules/getdelim (configure.ac): ... to here.
10367         (Depends-on): Fix condition.
10368
10369 2011-05-08  Bruno Haible  <bruno@clisp.org>
10370
10371         getcwd: Move AC_LIBOBJ invocations to module description.
10372         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
10373         invocations from here...
10374         * modules/getcwd (configure.ac): ... to here.
10375
10376 2011-05-08  Bruno Haible  <bruno@clisp.org>
10377
10378         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
10379         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
10380         here...
10381         * modules/getcwd-lgpl (configure.ac): ... to here.
10382
10383 2011-05-07  Bruno Haible  <bruno@clisp.org>
10384
10385         crypto/gc: Move AC_LIBOBJ invocations to module description.
10386         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
10387         * modules/crypto/gc (configure.ac): ... to here.
10388
10389 2011-05-07  Bruno Haible  <bruno@clisp.org>
10390
10391         fwriting: Move AC_LIBOBJ invocations to module description.
10392         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
10393         here...
10394         * modules/fwriting (configure.ac): ... to here.
10395
10396 2011-05-07  Bruno Haible  <bruno@clisp.org>
10397
10398         fwritable: Move AC_LIBOBJ invocations to module description.
10399         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
10400         here...
10401         * modules/fwritable (configure.ac): ... to here.
10402
10403 2011-05-07  Bruno Haible  <bruno@clisp.org>
10404
10405         futimens: Move AC_LIBOBJ invocations to module description.
10406         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
10407         here...
10408         * modules/futimens (configure.ac): ... to here.
10409
10410 2011-05-07  Bruno Haible  <bruno@clisp.org>
10411
10412         ftruncate: Move AC_LIBOBJ invocations to module description.
10413         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
10414         gl_PREREQ_FTRUNCATE invocations from here...
10415         * modules/ftruncate (configure.ac): ... to here.
10416
10417 2011-05-07  Bruno Haible  <bruno@clisp.org>
10418
10419         fsync: Move AC_LIBOBJ invocations to module description.
10420         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
10421         invocations from here...
10422         * modules/fsync (configure.ac): ... to here.
10423
10424 2011-05-07  Bruno Haible  <bruno@clisp.org>
10425
10426         fsusage: Move AC_LIBOBJ invocations to module description.
10427         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
10428         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
10429         * modules/fsusage (configure.ac): ... to here.
10430
10431 2011-05-07  Bruno Haible  <bruno@clisp.org>
10432
10433         freopen: Move AC_LIBOBJ invocations to module description.
10434         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
10435         invocations from here...
10436         * modules/freopen (configure.ac): ... to here.
10437
10438 2011-05-07  Bruno Haible  <bruno@clisp.org>
10439
10440         free: Move AC_LIBOBJ invocations to module description.
10441         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
10442         invocations from here...
10443         * modules/free (configure.ac): ... to here.
10444
10445 2011-05-07  Bruno Haible  <bruno@clisp.org>
10446
10447         freadable: Move AC_LIBOBJ invocations to module description.
10448         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
10449         here...
10450         * modules/freadable (configure.ac): ... to here.
10451
10452 2011-05-07  Bruno Haible  <bruno@clisp.org>
10453
10454         fpurge: Move AC_LIBOBJ invocations to module description.
10455         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
10456         invocations from here...
10457         * modules/fpurge (configure.ac): ... to here.
10458
10459 2011-05-07  Bruno Haible  <bruno@clisp.org>
10460
10461         fpending: Move AC_LIBOBJ invocations to module description.
10462         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
10463         gl_FUNC_FPENDING.
10464         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
10465         invocations from here...
10466         * modules/fpending (configure.ac): ... to here.
10467
10468 2011-05-07  Bruno Haible  <bruno@clisp.org>
10469
10470         fopen: Move AC_LIBOBJ invocations to module description.
10471         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
10472         invocations from here...
10473         * modules/fopen (configure.ac): ... to here.
10474
10475 2011-05-07  Bruno Haible  <bruno@clisp.org>
10476
10477         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
10478         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
10479         gl_FUNC_FNMATCH_POSIX.
10480         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
10481         invocations from here...
10482         * modules/fnmatch (configure.ac): ... to here.
10483         * modules/fnmatch-gnu (configure.ac): ... and here.
10484
10485 2011-05-07  Bruno Haible  <bruno@clisp.org>
10486
10487         flock: Move AC_LIBOBJ invocations to module description.
10488         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
10489         invocations from here...
10490         * modules/flock (configure.ac): ... to here.
10491
10492 2011-05-07  Bruno Haible  <bruno@clisp.org>
10493
10494         fileblocks: Move AC_LIBOBJ invocations to module description.
10495         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
10496         gl_PREREQ_FILEBLOCKS invocations from here...
10497         * modules/fileblocks (configure.ac): ... to here.
10498
10499 2011-05-06  Bruno Haible  <bruno@clisp.org>
10500
10501         fflush: Move AC_LIBOBJ invocations to module description.
10502         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
10503         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
10504         invocations from here...
10505         * modules/fflush (configure.ac): ... to here.
10506
10507 2011-05-06  Bruno Haible  <bruno@clisp.org>
10508
10509         fdopendir: Move AC_LIBOBJ invocations to module description.
10510         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
10511         here...
10512         * modules/fdopendir (configure.ac): ... to here.
10513         (Depends-on): Improve conditions.
10514
10515 2011-05-06  Bruno Haible  <bruno@clisp.org>
10516
10517         _Exit: Move AC_LIBOBJ invocations to module description.
10518         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
10519         invocations from here...
10520         * modules/_Exit (configure.ac): ... to here.
10521
10522 2011-05-21  Bruno Haible  <bruno@clisp.org>
10523
10524         euidaccess: Respect rules for use of AC_LIBOBJ.
10525         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10526         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
10527         from here...
10528         * modules/euidaccess (configure.ac): ... to here.
10529
10530 2011-05-06  Bruno Haible  <bruno@clisp.org>
10531
10532         error: Move AC_LIBOBJ invocations to module description.
10533         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
10534         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
10535         invocations from here...
10536         * modules/error (configure.ac): ... to here.
10537
10538 2011-05-06  Bruno Haible  <bruno@clisp.org>
10539
10540         duplocale: Move AC_LIBOBJ invocations to module description.
10541         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
10542         gl_PREREQ_DUPLOCALE invocations from here...
10543         * modules/duplocale (configure.ac): ... to here.
10544
10545 2011-05-05  Bruno Haible  <bruno@clisp.org>
10546
10547         dirfd: Move AC_LIBOBJ invocations to module description.
10548         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
10549         gl_FUNC_DIRFD.
10550         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
10551         here...
10552         * modules/dirfd (configure.ac): ... to here.
10553         (Depends-on): Fix condition.
10554
10555 2011-05-05  Bruno Haible  <bruno@clisp.org>
10556
10557         chown: Respect rules for use of AC_LIBOBJ.
10558         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
10559         * modules/chown (configure.ac): ... to here.
10560
10561 2011-05-05  Bruno Haible  <bruno@clisp.org>
10562
10563         chdir-long: Move AC_LIBOBJ invocations to module description.
10564         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
10565         gl_PREREQ_CHDIR_LONG invocations from here...
10566         * modules/chdir-long (configure.ac): ... to here.
10567
10568 2011-05-05  Bruno Haible  <bruno@clisp.org>
10569
10570         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
10571         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
10572         from here...
10573         * modules/canonicalize-lgpl (configure.ac): ... to here.
10574
10575 2011-05-05  Bruno Haible  <bruno@clisp.org>
10576
10577         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
10578         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
10579         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
10580         REPLACE_CALLOC.
10581         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
10582         * modules/calloc-gnu (configure.ac): Likewise.
10583
10584 2011-05-05  Bruno Haible  <bruno@clisp.org>
10585
10586         btowc: Move AC_LIBOBJ invocations to module description.
10587         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
10588         invocations from here...
10589         * modules/btowc (configure.ac): ... to here.
10590
10591 2011-05-21  Bruno Haible  <bruno@clisp.org>
10592
10593         atexit: Move AC_LIBOBJ invocations to module description.
10594         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
10595         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
10596         here...
10597         * modules/atexit (configure.ac): ... to here.
10598
10599 2011-05-05  Bruno Haible  <bruno@clisp.org>
10600
10601         atoll: Move AC_LIBOBJ invocations to module description.
10602         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
10603         invocations from here...
10604         * modules/atoll (configure.ac): ... to here.
10605
10606 2011-05-05  Bruno Haible  <bruno@clisp.org>
10607
10608         argz: Move AC_LIBOBJ invocations to module description.
10609         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
10610         * modules/argz (configure.ac): ... to here.
10611
10612 2011-05-05  Bruno Haible  <bruno@clisp.org>
10613
10614         alphasort: Move AC_LIBOBJ invocations to module description.
10615         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
10616         gl_PREREQ_ALPHASORT invocations from here...
10617         * modules/alphasort (configure.ac): ... to here.
10618
10619 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10620
10621         verify: new macro verify_expr; verify_true deprecated
10622         * NEWS: Mention this.
10623         * doc/verify.texi (Compile-time Assertions): Document this.
10624         * lib/verify.h (verify_true): Deprecate.
10625         (verify_expr): New macro.
10626         * tests/test-verify.c (function): Test verify_expr.
10627
10628 2011-06-14  Jim Meyering  <meyering@redhat.com>
10629
10630         init.sh: give more portable redirection-related advice in a comment
10631         * tests/init.sh (stderr_fileno_): Update the advice in comments.
10632         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
10633         for lots of discussion.  Stefano Lattarini suggested the solution
10634         of putting "9>&2" after the command.  Reported by Bruno Haible.
10635
10636 2011-06-13  Bruno Haible  <bruno@clisp.org>
10637
10638         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
10639         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
10640         'none'.
10641
10642 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10643
10644         ftoastr: use strtof only if HAVE_STRTOF
10645         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
10646         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
10647         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
10648         * modules/ftoastr (configure.ac): Check for strtof.
10649
10650 2011-06-13  Bruno Haible  <bruno@clisp.org>
10651
10652         gnulib-tool: Addendum to 2011-06-08 commit.
10653         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
10654         and --witness-c-macro have been given, augment AM_CPPFLAGS.
10655
10656 2011-06-13  Bruno Haible  <bruno@clisp.org>
10657
10658         fseeko: Provide a non-inline replacement of fseek().
10659         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
10660         * modules/fseeko (Depends-on): Add fseek.
10661         * modules/fseek (License): Change to LGPLv2+.
10662
10663 2011-06-13  Bruno Haible  <bruno@clisp.org>
10664
10665         ftello: Provide a non-inline replacement of ftell().
10666         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
10667         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
10668         not have ftello() (such as on mingw).
10669         * modules/ftello (Depends-on): Add ftell.
10670         * modules/ftell (License): Change to LGPLv2+.
10671
10672 2011-05-07  Bruno Haible  <bruno@clisp.org>
10673
10674         ftell: Move AC_LIBOBJ invocations to module description.
10675         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
10676         * modules/ftell (configure.ac): ... to here.
10677
10678 2011-05-07  Bruno Haible  <bruno@clisp.org>
10679
10680         ftello: Respect rules for use of AC_LIBOBJ.
10681         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
10682         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
10683         here...
10684         * modules/ftello (configure.ac): ... to here.
10685
10686 2011-05-07  Bruno Haible  <bruno@clisp.org>
10687
10688         fseeko: Simplify.
10689         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
10690         (gl_FUNC_FSEEKO): Inline it here.
10691
10692 2011-05-07  Bruno Haible  <bruno@clisp.org>
10693
10694         fseek: Move AC_LIBOBJ invocations to module description.
10695         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
10696         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10697         * modules/fseek (configure.ac): ... to here.
10698
10699 2011-05-07  Bruno Haible  <bruno@clisp.org>
10700
10701         fseek: Respect rules for use of AC_LIBOBJ.
10702         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
10703         here...
10704         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
10705
10706 2011-05-07  Bruno Haible  <bruno@clisp.org>
10707
10708         fseeko: Respect rules for use of AC_LIBOBJ.
10709         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
10710         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
10711         here...
10712         * modules/fseeko (configure.ac): ... to here.
10713
10714 2011-06-13  Bruno Haible  <bruno@clisp.org>
10715
10716         gnulib-tool: Allow comments in the 'Depends-on' section.
10717         * doc/gnulib.texi (Module description): Mention comment syntax in the
10718         Depends-on section.
10719         * gnulib-tool (func_get_dependencies): Filter out comment lines.
10720
10721 2011-06-13  Bruno Haible  <bruno@clisp.org>
10722
10723         file-set.h: guard __attibute__ use, now that it's not always defined
10724         * lib/file-set.h (record_file): Use __attribute__ only with compiler
10725         versions that support it.  This fixes a coreutils build failure with
10726         the vendor cc on HP-UX 11.31.
10727
10728 2011-06-12  Bruno Haible  <bruno@clisp.org>
10729
10730         acl: Add support for HP-UX >= 11.11 JFS ACLs.
10731         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
10732         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
10733         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
10734         (acl, aclsort): New declarations.
10735         (aclv_nontrivial): New declaration.
10736         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
10737         (file_has_acl): Read also the second kind of HP-UX ACLs.
10738         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
10739         kind of HP-UX ACLs if the first kind fails.
10740         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
10741         second kind of HP-UX ACLs.
10742         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
10743         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
10744         agree.
10745         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10746         hpuxjfs.
10747         Handle hpuxjfs.
10748         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10749         hpuxjfs.
10750         Handle hpuxjfs.
10751         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10752         (func_test_same_acls): Use both lsacl and getacl.
10753         Handle hpuxjfs.
10754         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10755         (func_test_same_acls): Use both lsacl and getacl.
10756         Handle hpuxjfs.
10757
10758 2011-06-12  Bruno Haible  <bruno@clisp.org>
10759
10760         acl: Complete the 2010-08-10 fix.
10761         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
10762         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
10763         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
10764         explicitly.
10765         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
10766         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
10767
10768 2011-06-12  Bruno Haible  <bruno@clisp.org>
10769
10770         spawn-pipe tests: Comments.
10771         * tests/test-spawn-pipe-child.c (main): Update comment.
10772         Reported by James Youngman <jay@gnu.org>.
10773
10774 2011-06-11  James Youngman  <jay@gnu.org>
10775
10776         New module 'stat-size'.
10777         * modules/stat-size: New module.  Provides macros for accessing
10778         file size information in instances of struct stat.  Depends on the
10779         fileblocks module because it calls st_blocks.
10780         * lib/stat-size.h: New file, adapted from coreutils' system.h.
10781         * doc/gnulib.texi: Include stat-size.texi.
10782         * doc/stat-size.texi: Documentation for this module.
10783         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
10784         * m4/fileblocks.m4: Mention that stat-size depends on the call to
10785         AC_STRUCT_ST_BLOCKS.
10786
10787 2011-06-09  Bruno Haible  <bruno@clisp.org>
10788
10789         thread: Support pthreads-win32.
10790         * lib/glthread/thread.h (gl_thread_self): Define differently on
10791         pthreads-win32.
10792         (gl_null_thread): New declaration.
10793         (gl_thread_self_pointer): New macro.
10794         * lib/glthread/thread.c (gl_null_thread): New constant.
10795         * tests/test-lock.c: Use gl_thread_self_pointer instead of
10796         gl_thread_self.
10797         * tests/test-tls.c: Likewise.
10798         Suggested by Paul Eggert. Reported by Eric Blake.
10799
10800 2011-06-09  Bruno Haible  <bruno@clisp.org>
10801
10802         thread: Fix confusion between NULL and 0.
10803         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
10804         Reported by Paul Eggert.
10805
10806 2011-06-09  Bruno Haible  <bruno@clisp.org>
10807
10808         spawn-pipe tests: Avoid test failure on HP-UX 11.
10809         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
10810         is closed.
10811
10812 2011-06-09  Bruno Haible  <bruno@clisp.org>
10813
10814         acl tests: Fix compilation error on HP-UX 11.
10815         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
10816
10817 2011-06-09  Bruno Haible  <bruno@clisp.org>
10818
10819         rmdir: Avoid test failure on HP-UX 10.20.
10820         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
10821         EEXIST.
10822
10823 2011-06-08  Eric Blake  <eblake@redhat.com>
10824
10825         perror: fix test on mingw
10826         * modules/perror-tests (Depends-on): Add dup2.
10827
10828         strerror_r-posix: fix on MacOS
10829         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
10830         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
10831         logic bug.
10832         * lib/strerror_r.c (strerror_r): Fix the bug.
10833         * lib/strerror.c (strerror): Likewise.
10834         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10835         problem.
10836         * doc/posix-functions/strerror.texi (strerror): Likewise.
10837         * doc/posix-functions/perror.texi (perror): Likewise.
10838         * tests/test-strerror.c (main): Enhance test.
10839         * tests/test-strerror_r.c (main): Likewise.
10840
10841 2011-06-08  Bruno Haible  <bruno@clisp.org>
10842
10843         gnulib-tool: Better isolation between different gnulib-tool invocations.
10844         * gnulib-tool: New option --witness-c-macro.
10845         (witness_c_macro): New variable.
10846         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
10847         AM_CPPFLAGS define it as a C macro.
10848         (func_emit_tests_Makefile_am): Likewise.
10849         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
10850         read it from there.
10851         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
10852         m4_define, not AC_DEFUN.
10853         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
10854         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
10855         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
10856         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
10857         s|...|...|, to substitute the values of the GNULIB_* module indicator
10858         variables.
10859         * modules/dirent (Makefile.am): Likewise.
10860         * modules/fcntl-h (Makefile.am): Likewise.
10861         * modules/iconv-h (Makefile.am): Likewise.
10862         * modules/langinfo (Makefile.am): Likewise.
10863         * modules/locale (Makefile.am): Likewise.
10864         * modules/math (Makefile.am): Likewise.
10865         * modules/netdb (Makefile.am): Likewise.
10866         * modules/poll-h (Makefile.am): Likewise.
10867         * modules/pty (Makefile.am): Likewise.
10868         * modules/search (Makefile.am): Likewise.
10869         * modules/signal (Makefile.am): Likewise.
10870         * modules/spawn (Makefile.am): Likewise.
10871         * modules/stdio (Makefile.am): Likewise.
10872         * modules/stdlib (Makefile.am): Likewise.
10873         * modules/string (Makefile.am): Likewise.
10874         * modules/sys_ioctl (Makefile.am): Likewise.
10875         * modules/sys_select (Makefile.am): Likewise.
10876         * modules/sys_socket (Makefile.am): Likewise.
10877         * modules/sys_stat (Makefile.am): Likewise.
10878         * modules/sys_times (Makefile.am): Likewise.
10879         * modules/sys_utsname (Makefile.am): Likewise.
10880         * modules/sys_wait (Makefile.am): Likewise.
10881         * modules/termios (Makefile.am): Likewise.
10882         * modules/time (Makefile.am): Likewise.
10883         * modules/unistd (Makefile.am): Likewise.
10884         * modules/wchar (Makefile.am): Likewise.
10885
10886 2011-06-08  Eric Blake  <eblake@redhat.com>
10887
10888         strerror: simplify replacement
10889         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
10890         * modules/strerror (configure.ac): No prereqs needed here...
10891         * modules/strerror-override (configure.ac): ...but this needs it.
10892         (Files): Add file for needed prereq macro.
10893
10894 2011-06-08  Bruno Haible  <bruno@clisp.org>
10895
10896         strerror_r-posix: Tweaks.
10897         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
10898         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
10899         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
10900         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
10901         (gl_FUNC_STRERROR_R): ... to here.
10902         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
10903
10904 2011-06-07  Eric Blake  <eblake@redhat.com>
10905
10906         perror: document fixed bugs
10907         * doc/posix-functions/perror.texi (perror): Document recent
10908         patches.
10909
10910 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10911
10912         stat-time: get_stat_birthtime failure is better-defined
10913         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
10914         return a timestamp whose tv_sec and tv_nsec values are both -1.
10915         Previously, the spec said only that the tv_nsec value was negative.
10916         This upward-compatible change simplifies GNU tar a bit.
10917
10918 2011-06-07  Eric Blake  <eblake@redhat.com>
10919
10920         strerror_r-posix: work around cygwin 1.7.9
10921         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
10922         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
10923         bug without replacing strerror_r.
10924         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
10925         strerror_r is buggy, but without requiring strerror_r compilation.
10926         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
10927
10928         test-perror: relax test to ignore cygwin bug
10929         * tests/test-perror2.c (main): Relax test on requiring detection
10930         of stream errors, and use unbuffered stream.
10931         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
10932         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
10933         * doc/posix-functions/fputc.texi (fputc): Likewise.
10934         * doc/posix-functions/fputs.texi (fputs): Likewise.
10935         * doc/posix-functions/fputws.texi (fputws): Likewise.
10936         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
10937         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
10938         * doc/posix-functions/getopt.texi (getopt): Likewise.
10939         * doc/posix-functions/perror.texi (perror): Likewise.
10940         * doc/posix-functions/printf.texi (printf): Likewise.
10941         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
10942         * doc/posix-functions/psignal.texi (psignal): Likewise.
10943         * doc/posix-functions/putc.texi (putc): Likewise.
10944         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
10945         Likewise.
10946         * doc/posix-functions/putchar.texi (putchar): Likewise.
10947         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
10948         Likewise.
10949         * doc/posix-functions/puts.texi (puts): Likewise.
10950         * doc/posix-functions/putwc.texi (putwc): Likewise.
10951         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
10952         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
10953         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10954         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
10955         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10956         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
10957         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10958         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
10959
10960 2011-05-22  Bruno Haible  <bruno@clisp.org>
10961
10962         strerror: Move AC_LIBOBJ invocations to module description.
10963         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
10964         gl_PREREQ_STRERROR invocations from here...
10965         * modules/strerror (configure.ac): ... to here.
10966
10967 2011-05-21  Bruno Haible  <bruno@clisp.org>
10968
10969         perror: Use common idiom.
10970         * modules/perror (configure.ac): Reorder statements.
10971
10972 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10973
10974         tests: fix usage message in 'mktempd_'
10975         * tests/init.sh (mktempd_): In the usage message, use literal
10976         'mktempd_', not '$ME' (which is even undefined), as the name of
10977         the subroutine.
10978
10979 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10980
10981         tests init: new function 'fatal_', for hard errors
10982         Before this patch, the only way offered by tests/init.sh to
10983         properly signal a hard error was the `framework_failure_'
10984         function.  But the error message issued by that function,
10985         as its name would suggest, refers to a set-up failure in the
10986         testsuite, while hard errors can obviously also be due to
10987         other reasons.  The best way to fix this inconsistency is to
10988         introduce a new function with a more general error message.
10989         * tests/init.sh (fatal_): New function.
10990
10991 2011-06-06  Eric Blake  <eblake@redhat.com>
10992
10993         canonicalize-lgpl: use common idiom
10994         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
10995         over newer POSIX -Rf.
10996         Reported by Bruno Haible.
10997
10998         canonicalize-lgpl: work around AIX realpath bug
10999         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
11000         * doc/posix-functions/realpath.texi (realpath): Document it.
11001         Reported by Bruno Haible.
11002
11003         strerror: work around FreeBSD bug
11004         * lib/strerror.c (strerror): Special case 0.
11005         Reported by Bruno Haible.
11006
11007         strerror-override: avoid bloating errno module
11008         * modules/errno (Files, configure.ac): Move replacement strings...
11009         * modules/strerror-override: ...to new module.
11010         * modules/strerror (Depends-on): Add strerror-override.
11011         * modules/strerror_r-posix (Depends-on): Likewise.
11012         * MODULES.html.sh: Document new module.
11013         Reported by Bruno Haible.
11014
11015 2011-06-06  Bruno Haible  <bruno@clisp.org>
11016
11017         spawn-pipe tests: Rename program.
11018         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
11019         * tests/test-spawn-pipe-child.c: Update comment.
11020         * tests/test-spawn-pipe.sh: Update.
11021         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
11022
11023         spawn-pipe tests: Link the child program only against libc.
11024         * tests/test-spawn-pipe-child.c: New file, extracted from
11025         tests/test-spawn-pipe.c.
11026         (main): Expect only one argument.
11027         (is_open): New function, copied from tests/test-pipe.c.
11028         * tests/test-spawn-pipe.c: Don't include <errno.h>.
11029         (child_main): Remove function.
11030         (test_pipe): Pass only one argument to the child program.
11031         (main): Remove child process code. Expect the child program's name as
11032         first argument.
11033         * tests/test-spawn-pipe.sh: Pass the child program's name as first
11034         argument.
11035         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
11036         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
11037         test-spawn-pipe-child against no libraries.
11038
11039 2011-06-06  Bruno Haible  <bruno@clisp.org>
11040
11041         careadlinkat: Avoid mismatch between ssize_t and int.
11042         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
11043         * lib/careadlinkat.c (careadlinkatcwd): Define always.
11044
11045 2011-06-06  Jim Meyering  <meyering@redhat.com>
11046
11047         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
11048         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
11049         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
11050
11051 2011-06-05  Bruno Haible  <bruno@clisp.org>
11052
11053         ansi-c++-opt: Interoperability with libtool.
11054         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
11055         set the variable to "no", not to ":".
11056         * NEWS: Mention the change.
11057
11058 2011-06-05  Bruno Haible  <bruno@clisp.org>
11059
11060         acl: Fix test failure on AIX 7.
11061         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
11062         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
11063
11064 2011-06-05  Bruno Haible  <bruno@clisp.org>
11065
11066         pipe-filter-ii: Fix test failure on AIX and IRIX.
11067         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
11068         with EAGAIN, retry with a smaller buffer size.
11069
11070 2011-06-05  Bruno Haible  <bruno@clisp.org>
11071
11072         localename: Fix link dependencies.
11073         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
11074         * modules/localename-tests (Makefile.am): Link test-localename with
11075         $(LIBTHREAD).
11076
11077 2011-06-05  Bruno Haible  <bruno@clisp.org>
11078
11079         error: Avoid gcc warning.
11080         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
11081
11082 2011-06-05  Bruno Haible  <bruno@clisp.org>
11083
11084         unsetenv: Avoid gcc warning.
11085         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
11086
11087 2011-06-05  Bruno Haible  <bruno@clisp.org>
11088
11089         setenv: Avoid gcc warning.
11090         * lib/setenv.c (setenv): Provide declaration if system lacks it.
11091
11092 2011-06-05  Bruno Haible  <bruno@clisp.org>
11093
11094         sys_select: Ensure memset is declared also on AIX 7.
11095         * lib/sys_select.in.h: Include <string.h> also on AIX.
11096         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
11097         self-contained also on AIX 7.1.
11098
11099 2011-06-04  Jim Meyering  <meyering@redhat.com>
11100
11101         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
11102         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
11103         function name, "error".
11104         (_gl_translatable_diag_func_re): New configurable variable.
11105
11106 2011-06-04  Bruno Haible  <bruno@clisp.org>
11107
11108         getopt: Avoid gcc warning.
11109         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
11110
11111 2011-06-04  Bruno Haible  <bruno@clisp.org>
11112
11113         strerror_r: Fix comments.
11114         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
11115         commit.
11116
11117 2011-06-04  Bruno Haible  <bruno@clisp.org>
11118
11119         perror: Fix compilation error.
11120         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
11121         Undefine fprintf, not sprintf.
11122         * modules/perror (Depends-on): Remove intprops, verify.
11123
11124 2011-06-04  Bruno Haible  <bruno@clisp.org>
11125
11126         setlocale: Enable replacement on Cygwin 1.5.
11127         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
11128         Cygwin 1.5.x.
11129         * doc/posix-functions/setlocale.texi: Mention that the problem with the
11130         LC_CTYPE category also exists on Cygwin 1.5.x.
11131
11132 2011-06-04  Bruno Haible  <bruno@clisp.org>
11133
11134         strerror-override: Don't disable symbol renamings.
11135         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
11136         * lib/strerror-override.c: Include config.h.
11137         (strerror_override): Don't undefine.
11138
11139 2011-06-03  Bruno Haible  <bruno@clisp.org>
11140
11141         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
11142         * lib/localename.h: Update copyright header.
11143         * lib/localename.c: Likewise.
11144         * lib/relocatable.h: Likewise.
11145         * lib/relocatable.c: Likewise.
11146
11147 2011-06-02  Bruno Haible  <bruno@clisp.org>
11148
11149         doc: Fix a module name.
11150         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
11151
11152 2011-06-02  Bruno Haible  <bruno@clisp.org>
11153
11154         pipe2: Remove dependency on 'nonblocking' module.
11155         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
11156         O_NONBLOCK is defined by gnulib.
11157         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
11158         is zero.
11159         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
11160         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
11161         defined by gnulib.
11162         (get_nonblocking_flag): New function.
11163         (main): Test O_NONBLOCK flag only if it is nonzero.
11164         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
11165
11166 2011-06-03  Jim Meyering  <meyering@redhat.com>
11167
11168         maint: three new prohibit-header-without-use rules
11169         Prohibit use of cloexec.h, posixver.h, same.h without use.
11170         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
11171         (sc_prohibit_posixver_without_use): Likewise.
11172         (sc_prohibit_same_without_use): Likewise.
11173
11174 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11175
11176         allocator: 'die' routine is now given requested size
11177         * lib/allocator.h (struct allocator.die): New size arg.
11178         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
11179         If the actual problem is an ssize_t limitation, not a size_t or
11180         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
11181
11182 2011-06-01  Eric Blake  <eblake@redhat.com>
11183
11184         strerror: drop strerror_r dependency
11185         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
11186         * lib/strerror-override.c (strerror_override): ...to new file.
11187         * lib/strerror-override.h: Add prototype.
11188         * lib/strerror-impl.h: Delete.
11189         * lib/strerror.c (strerror): New implementation.
11190         * modules/errno (Files): Add new files.
11191         (configure.ac): Compile new file as appropriate.
11192         * modules/strerror (Files): Drop unused file.
11193         (Depends-on): Drop strerror_r-posix.
11194         * MODULES.html.sh: Document strerror_r-posix.
11195         Requested by Sam Steingold.
11196
11197         perror: call strerror_r directly
11198         * modules/perror (Files): Drop strerror-impl.h.
11199         * lib/perror.c (perror): Use our own stack buffer, rather than
11200         calling a wrapper that uses static storage.
11201         * doc/posix-functions/perror.texi (perror): Document a limitation
11202         of our replacement.
11203
11204         strerror_r: fix includes for FreeBSD
11205         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
11206         since we use abort on some platforms.
11207         Reported by Matthias Bolte.
11208
11209 2011-05-31  Bruno Haible  <bruno@clisp.org>
11210
11211         Fix link errors in tests: openat-die uses gettext-h.
11212         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
11213         against $(LIBINTL).
11214         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
11215         against $(LIBINTL).
11216         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
11217         $(LIBINTL).
11218         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
11219         against $(LIBINTL).
11220         * modules/linkat-tests (Makefile.am): Link test-linkat against
11221         $(LIBINTL).
11222         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
11223         $(LIBINTL).
11224         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
11225         against $(LIBINTL).
11226         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
11227         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
11228         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
11229         $(LIBINTL).
11230         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
11231         $(LIBINTL).
11232         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
11233         $(LIBINTL).
11234         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11235
11236 2011-05-31  Bruno Haible  <bruno@clisp.org>
11237
11238         Fix link errors in tests: wait-process uses gettext-h.
11239         * modules/nonblocking-pipe-tests (Makefile.am): Set
11240         test_nonblocking_pipe_main_LDADD.
11241         * modules/nonblocking-socket-tests (Makefile.am): Link
11242         test-nonblocking-socket-main against $(LIBINTL).
11243         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11244
11245 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
11246
11247         assert-h: work around 'verify' incompatibility
11248         * lib/verify.h: Use @...@ directives, not ifdef.
11249         * modules/assert-h (assert.h): Implement the directives.
11250         (assert.h): Substitute the symbol-prefix more consistently.
11251
11252 2011-05-29  Jim Meyering  <meyering@redhat.com>
11253
11254         trim: remove three superfluous assignments
11255         * lib/trim.c (trim2): Remove three superfluous assignments
11256         and correct brace positioning.
11257
11258 2011-05-29  Bruno Haible  <bruno@clisp.org>
11259
11260         wctype-h: Avoid namespace pollution on Solaris 2.6.
11261         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
11262         identifiers.
11263         * doc/posix-headers/wctype.texi: Mention the problem.
11264         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11265
11266 2011-05-28  Jim Meyering  <meyering@redhat.com>
11267
11268         parse-datetime.y: accommodate -Wstrict-overflow
11269         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
11270         placate -Wstrict-overflow.
11271
11272         trim: avoid a warning from -O2 -Wstrict-overflow
11273         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
11274
11275 2011-05-29  Bruno Haible  <bruno@clisp.org>
11276
11277         gnulib-tool: Fix bug in yesterday's commit.
11278         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
11279         twice.
11280
11281 2011-05-29  Bruno Haible  <bruno@clisp.org>
11282
11283         Allow multiple gnulib generated include files to be combined.
11284         * gnulib-tool (func_compute_include_guard_prefix): New function.
11285         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
11286         ${gl_include_guard_prefix} references.
11287         (func_import, func_create_testdir): Invoke
11288         func_compute_include_guard_prefix.
11289         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
11290         * lib/ctype.in.h: Likewise.
11291         * lib/dirent.in.h: Likewise.
11292         * lib/errno.in.h: Likewise.
11293         * lib/fcntl.in.h: Likewise.
11294         * lib/float.in.h: Likewise.
11295         * lib/getopt.in.h: Likewise.
11296         * lib/iconv.in.h: Likewise.
11297         * lib/langinfo.in.h: Likewise.
11298         * lib/locale.in.h: Likewise.
11299         * lib/math.in.h: Likewise.
11300         * lib/netdb.in.h: Likewise.
11301         * lib/netinet_in.in.h: Likewise.
11302         * lib/poll.in.h: Likewise.
11303         * lib/pthread.in.h: Likewise.
11304         * lib/pty.in.h: Likewise.
11305         * lib/sched.in.h: Likewise.
11306         * lib/se-selinux.in.h: Likewise.
11307         * lib/search.in.h: Likewise.
11308         * lib/signal.in.h: Likewise.
11309         * lib/spawn.in.h: Likewise.
11310         * lib/stdarg.in.h: Likewise.
11311         * lib/stddef.in.h: Likewise.
11312         * lib/stdint.in.h: Likewise.
11313         * lib/stdio.in.h: Likewise.
11314         * lib/stdlib.in.h: Likewise.
11315         * lib/string.in.h: Likewise.
11316         * lib/strings.in.h: Likewise.
11317         * lib/sys_file.in.h: Likewise.
11318         * lib/sys_ioctl.in.h: Likewise.
11319         * lib/sys_select.in.h: Likewise.
11320         * lib/sys_socket.in.h: Likewise.
11321         * lib/sys_stat.in.h: Likewise.
11322         * lib/sys_time.in.h: Likewise.
11323         * lib/sys_times.in.h: Likewise.
11324         * lib/sys_uio.in.h: Likewise.
11325         * lib/sys_utsname.in.h: Likewise.
11326         * lib/sys_wait.in.h: Likewise.
11327         * lib/sysexits.in.h: Likewise.
11328         * lib/termios.in.h: Likewise.
11329         * lib/time.in.h: Likewise.
11330         * lib/unistd.in.h: Likewise.
11331         * lib/wchar.in.h: Likewise.
11332         * lib/wctype.in.h: Likewise.
11333         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
11334         * modules/ctype (Makefile.am): Likewise.
11335         * modules/dirent (Makefile.am): Likewise.
11336         * modules/errno (Makefile.am): Likewise.
11337         * modules/fcntl-h (Makefile.am): Likewise.
11338         * modules/float (Makefile.am): Likewise.
11339         * modules/getopt-posix (Makefile.am): Likewise.
11340         * modules/iconv-h (Makefile.am): Likewise.
11341         * modules/langinfo (Makefile.am): Likewise.
11342         * modules/locale (Makefile.am): Likewise.
11343         * modules/math (Makefile.am): Likewise.
11344         * modules/netdb (Makefile.am): Likewise.
11345         * modules/netinet_in (Makefile.am): Likewise.
11346         * modules/poll-h (Makefile.am): Likewise.
11347         * modules/pthread (Makefile.am): Likewise.
11348         * modules/pty (Makefile.am): Likewise.
11349         * modules/sched (Makefile.am): Likewise.
11350         * modules/search (Makefile.am): Likewise.
11351         * modules/selinux-h (Makefile.am): Likewise.
11352         * modules/signal (Makefile.am): Likewise.
11353         * modules/spawn (Makefile.am): Likewise.
11354         * modules/stdarg (Makefile.am): Likewise.
11355         * modules/stddef (Makefile.am): Likewise.
11356         * modules/stdint (Makefile.am): Likewise.
11357         * modules/stdio (Makefile.am): Likewise.
11358         * modules/stdlib (Makefile.am): Likewise.
11359         * modules/string (Makefile.am): Likewise.
11360         * modules/strings (Makefile.am): Likewise.
11361         * modules/sys_file (Makefile.am): Likewise.
11362         * modules/sys_ioctl (Makefile.am): Likewise.
11363         * modules/sys_select (Makefile.am): Likewise.
11364         * modules/sys_socket (Makefile.am): Likewise.
11365         * modules/sys_stat (Makefile.am): Likewise.
11366         * modules/sys_time (Makefile.am): Likewise.
11367         * modules/sys_times (Makefile.am): Likewise.
11368         * modules/sys_uio (Makefile.am): Likewise.
11369         * modules/sys_utsname (Makefile.am): Likewise.
11370         * modules/sys_wait (Makefile.am): Likewise.
11371         * modules/sysexits (Makefile.am): Likewise.
11372         * modules/termios (Makefile.am): Likewise.
11373         * modules/time (Makefile.am): Likewise.
11374         * modules/unistd (Makefile.am): Likewise.
11375         * modules/wchar (Makefile.am): Likewise.
11376         * modules/wctype-h (Makefile.am): Likewise.
11377         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
11378
11379 2011-05-29  Bruno Haible  <bruno@clisp.org>
11380
11381         assert-h: Allow multiple gnulib generated replacements to coexist.
11382         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
11383
11384 2011-05-29  Bruno Haible  <bruno@clisp.org>
11385
11386         argp: Allow coexistence with strerror_r-posix module.
11387         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
11388         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
11389         by gnulib's <string.h> replacement), assume it has the POSIX signature,
11390         not the glibc signature.
11391
11392 2011-05-28  Bruno Haible  <bruno@clisp.org>
11393
11394         gnulib-tool: Alternative structure of testdirs, similar to --import.
11395         * gnulib-tool: New option --single-configure.
11396         (func_usage): Document it.
11397         (single_configure): New variable.
11398         (func_modules_transitive_closure_separately,
11399         func_modules_transitive_closure_separately,
11400         func_determine_use_libtests, func_modules_add_dummy_separately,
11401         func_modules_to_filelist_separately): New functions, extracted from
11402         func_import.
11403         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
11404         (func_import): Use the new functions.
11405         (func_create_testdir): Set final_modules. Handle $single_configure =
11406         true case.
11407
11408 2011-05-28  Bruno Haible  <bruno@clisp.org>
11409
11410         getloadavg: Remove an unreliable safety check.
11411         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
11412         getloadavg.c is in place.
11413         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
11414         Reported by Sam Steingold <sds@gnu.org>.
11415
11416 2011-05-28  Bruno Haible  <bruno@clisp.org>
11417
11418         doc: Cleanup yet another file produced by texinfo.tex.
11419         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
11420
11421 2011-05-28  Bruno Haible  <bruno@clisp.org>
11422
11423         Finish the conditional dependencies mechanism.
11424         * gnulib-tool: New option --no-conditional-dependencies.
11425         (func_usage): Document it. Don't mark --conditional-dependencies as
11426         experimental.
11427         (cond_dependencies): The possible values can now be true, false, empty.
11428         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
11429         (func_import): Store setting in gnulib-cache.m4 and read it from there.
11430         * doc/gnulib-tool.texi (Conditional dependencies): New section.
11431
11432 2011-05-28  Bruno Haible  <bruno@clisp.org>
11433
11434         doc: Use a recent texinfo.tex.
11435         * doc/Makefile (tex_opts): New variable.
11436         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
11437
11438 2011-05-28  Jim Meyering  <meyering@redhat.com>
11439
11440         intprops.h: adjust comment to match code change
11441         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
11442         only once, it *may* have side effects.  Also fix an unrelated typo.
11443         (_GL_INT_SIGNED): Likewise.
11444
11445 2011-05-26  Simon Josefsson  <simon@josefsson.org>
11446
11447         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
11448
11449 2011-05-26  Bruno Haible  <bruno@clisp.org>
11450
11451         mbsrchr: Avoid collision with system function on Interix.
11452         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
11453         Reported by Markus Duft <mduft@gentoo.org>.
11454
11455 2011-05-15  James Youngman  <jay@gnu.org>
11456
11457         getopt: for ambiguous options, enumerate the possibilities.
11458         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
11459         the ambiguous options when an ambiguous prefix is given. This was
11460         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
11461         glibc change was
11462         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
11463
11464 2011-05-25  Eric Blake  <eblake@redhat.com>
11465
11466         getcwd: work around mingw bug
11467         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
11468         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11469         Reported by Matthias Bolte.
11470
11471 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11472
11473         test-intprops: disable -Wtype-limits diagnostics
11474         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
11475         diagnostics.  Otherwise, the integer overflow macros generate many
11476         diagnostics.  Reported by Jim Meyering in
11477         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11478
11479         intprops: shorten, to pacify gcc -Woverlength-strings
11480         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
11481         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
11482         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
11483         likely to run afoul of C compiler limits for string constant lengths.
11484         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11485
11486 2011-05-24  Eric Blake  <eblake@redhat.com>
11487
11488         docs: document recently fixed glibc printf bug
11489         * doc/posix-functions/fprintf.texi (fprintf): Document it.
11490         * doc/posix-functions/printf.texi (printf): Likewise.
11491         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11492         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11493
11494         closein-tests: convert to init.sh
11495         * modules/closein-tests (Files): Add init.sh
11496         * tests/test-closein.sh Use it.
11497
11498         yesno-tests: convert to init.sh
11499         * modules/yesno-tests (Files): Add init.sh.
11500         * tests/test-yesno.sh: Use it.
11501
11502         atexit-tests: ensure reliable exit status
11503         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
11504         Reported by Bruno Haible.
11505
11506 2011-05-24  Bruno Haible  <bruno@clisp.org>
11507
11508         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
11509         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
11510         gl_PREREQ_STRERROR_R invocations from here...
11511         * modules/strerror_r-posix (configure.ac): ... to here.
11512
11513 2011-05-24  Eric Blake  <eblake@redhat.com>
11514
11515         strerror_r: fix missing header
11516         * lib/strerror_r.c: Avoid compiler warning about snprintf.
11517
11518         strerror_r: fix AIX test failures
11519         * lib/strerror_r.c (strerror_r): Convert silent truncation to
11520         ERANGE failure.
11521
11522         strerror_r: fix Solaris test failures
11523         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
11524         failures.
11525         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11526
11527         strerror_r: enforce POSIX recommendations
11528         * lib/strerror_r.c (safe_copy): New helper method.
11529         (strerror_r): Guarantee a non-empty string.
11530         * tests/test-strerror_r.c (main): Enhance tests to incorporate
11531         recent POSIX rulings and to match our strerror guarantees.
11532         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11533
11534 2011-05-24  Jim Meyering  <meyering@redhat.com>
11535
11536         test-perror2.c: avoid warning about unused variable
11537         * tests/test-perror2.c (main): Remove declaration of unused "fp".
11538
11539 2011-05-24  Eric Blake  <eblake@redhat.com>
11540
11541         perror: avoid spurious test failure on HP-UX
11542         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
11543
11544         tests: fix logic bug in init.sh
11545         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
11546         shell.
11547
11548 2011-05-24  Jim Meyering  <meyering@redhat.com>
11549
11550         utimensat: do not reference an out-of-scope buffer
11551         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
11552         declared in an inner scope, yet "times" would be dereferenced outside
11553         the scope in which "ts" was valid.
11554         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
11555         of ts[2] "out/up", so that the use of aliased "times" (via
11556         "times = ts;") does not end up referencing an out-of-scope "ts"
11557
11558         opendir-safer.c: don't clobber errno; don't close negative FD
11559         * lib/opendir-safer.c (opendir_safer):
11560         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
11561         file descriptor, and more importantly, don't clobber the
11562         offending errno value with EINVAL.  Before, upon failure
11563         of dup_safer, we would pass the negative file descriptor to
11564         fdopendir, which would clobber errno.
11565
11566 2011-05-23  Bruno Haible  <bruno@clisp.org>
11567
11568         idcache: Fix module description.
11569         * modules/idcache (Include): Set to "idcache.h".
11570
11571 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11572
11573         gnulib-tool: fix portability problem with MacOS sed
11574         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
11575         before the "}".  Problem reported by Leo in
11576         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
11577         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
11578         sed_extract_condition1, sed_extract_condition2.
11579
11580 2011-05-23  Bruno Haible  <bruno@clisp.org>
11581
11582         hash: Simplify autoconf macro.
11583         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
11584
11585 2011-05-23  Bruno Haible  <bruno@clisp.org>
11586
11587         getugroups: Fix module description.
11588         * modules/getugroups (Include): Set to "getugroups.h".
11589
11590 2011-05-23  Bruno Haible  <bruno@clisp.org>
11591
11592         linkat: Simplify autoconf macro.
11593         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
11594
11595 2011-05-23  Bruno Haible  <bruno@clisp.org>
11596             Eric Blake  <eblake@redhat.com>
11597
11598         linkat, renameat: Update dependencies.
11599         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
11600         * modules/linkat (Depends-on): Likewise. Remove also readlink,
11601         symlinkat.
11602
11603 2011-05-23  Jim Meyering  <meyering@redhat.com>
11604
11605         maint.mk: more tight_scope improvements
11606         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
11607         (_gl_TS_headers): Define only in if-0'd block.
11608         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
11609         sometimes we must *not* use it.  Adjust uses accordingly.
11610         (sc_tight_scope): Use much simpler grep-based test to determine
11611         whether we skip this rule.
11612
11613         maint.mk: generalize/improve the tight-scope rule
11614         * top/maint.mk: Emit a warning when the test is skipped.
11615         (_gl_TS_dir): Add $(srcdir)/ prefix.
11616         (_gl_TS_function_match): Simplify, rather than trying
11617         to enumerate common types.  Otherwise, it would fail to match an
11618         "extern unsigned char const *" declaration in idutils.
11619         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
11620         a way to support use of that type of macro.
11621         (_gl_TS_var_match): Simplify regexp.
11622         (_gl_TS_obj_files): New configurable variable.
11623         (_gl_TS_headers): Likewise.
11624
11625 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11626
11627         verify: fix bug when gnulib <assert.h> is also included
11628         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
11629         is defined, not if _GL_STATIC_ASSERT_H is not defined.
11630         Perhaps there's a better way, but this fixes the immediate problem.
11631         Problem reported by Bruno Haible in
11632         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
11633
11634 2011-05-22  Bruno Haible  <bruno@clisp.org>
11635
11636         xgetcwd: Simplify autoconf macro.
11637         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
11638
11639 2011-05-22  Bruno Haible  <bruno@clisp.org>
11640
11641         New module 'mktime-internal'.
11642         * modules/mktime-internal: New file.
11643         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
11644         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
11645         mktime_internal as a C macro if libc has __mktime_internal.
11646         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
11647         conditions.
11648         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
11649
11650 2011-05-22  Bruno Haible  <bruno@clisp.org>
11651
11652         timegm: Correct mktime replacement statements.
11653         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
11654         defining mktime as a C macro. This completes a 2009-07-28 commit.
11655
11656 2011-05-22  Bruno Haible  <bruno@clisp.org>
11657
11658         timegm: Simplify autoconf macro.
11659         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
11660
11661 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11662
11663         clock-time: change to LGPLv2+.
11664         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
11665         BSD-like but we have no mark for that; this is good enough for now.
11666
11667 2011-05-21  Bruno Haible  <bruno@clisp.org>
11668
11669         strerror_r: Fix comments.
11670         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
11671
11672 2011-05-21  Bruno Haible  <bruno@clisp.org>
11673
11674         relocatable-prog-wrapper: Fix possible link error.
11675         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
11676         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
11677         (gl_FUNC_SETENV): ... to here.
11678         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
11679         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
11680
11681 2011-05-21  Bruno Haible  <bruno@clisp.org>
11682
11683         relocatable-prog-wrapper: Assume strerror() exists.
11684         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
11685         m4/strerror.m4.
11686         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
11687         * lib/relocwrapper.c: Remove mention of strerror module.
11688         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
11689         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
11690         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
11691         C macro.
11692
11693 2011-05-21  Bruno Haible  <bruno@clisp.org>
11694
11695         select: Simplify replacement idiom.
11696         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
11697         Win32 platforms.
11698         * lib/sys_select.in.h (select): Simplify accordingly.
11699         * modules/select (Depends-on): Likewise.
11700
11701 2011-05-21  Bruno Haible  <bruno@clisp.org>
11702
11703         mkdir-p: Simplify autoconf macro.
11704         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
11705         gl_FUNC_LCHOWN.
11706
11707 2011-05-21  Eric Blake  <eblake@redhat.com>
11708
11709         strerror_r: avoid clobbering strerror on cygwin
11710         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
11711         fall back instead to sys_errlist.
11712         * modules/strerror (configure.ac): Add witness.
11713         * tests/test-strerror_r.c (main): Enhance test.
11714         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11715         * tests/test-perror2.c (main): Free memory before exit.
11716
11717 2011-05-21  Bruno Haible  <bruno@clisp.org>
11718
11719         mkdtemp: Use gnulib naming conventions.
11720         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
11721         * modules/mkdtemp (configure.ac): Update.
11722
11723 2011-05-20  Eric Blake  <eblake@redhat.com>
11724
11725         strerror_r: avoid corrupting errno on Solaris
11726         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
11727         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11728
11729         strerror_r: avoid compiler warning
11730         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
11731
11732         strerror_r: simplify AIX code
11733         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
11734
11735         test-perror: avoid spurious failure on FreeBSD
11736         * modules/perror-tests (Depends-on): Add strerror, now that
11737         strerror_r no longer pulls it in.
11738
11739 2011-05-20  Bruno Haible  <bruno@clisp.org>
11740
11741         strerror_r-posix: Remove unused dependencies.
11742         * modules/strerror_r-posix (Depends-on): Remove strerror.
11743         Reported by Eric Blake.
11744
11745 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11746
11747         intprops: remove assumption about A|B representation
11748         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
11749         is a valid integer if both A and B are.  Although this is true for
11750         all known practical hosts, the C standard doesn't guarantee it,
11751         and the code need not assume it.  Also, this change may work around
11752         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
11753         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
11754
11755 2011-05-20  Eric Blake  <eblake@redhat.com>
11756
11757         perror: work around FreeBSD bug
11758         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
11759         is broken.  Move AC_LIBOBJ...
11760         * modules/perror (configure.ac): Here.
11761         * doc/posix-functions/perror.texi (perror): Document this.
11762         * tests/test-perror2.c (main): Enhance test.
11763
11764         test-perror: check for strerror interactions
11765         * tests/macros.h (STREQ): Add macro.
11766         * modules/perror-tests (Files): Add second test.
11767         * tests/test-perror2.c (main): New file.
11768         * doc/posix-functions/perror.texi (perror): Document glibc bug.
11769
11770         test-perror: rewrite to use init script
11771         * modules/perror-tests (Files): Add init.sh.
11772         * tests/test-perror.sh: Use temporary directory.
11773
11774 2011-05-20  Jim Meyering  <meyering@redhat.com>
11775
11776         maint: replace misused "a" with "an"
11777         * doc/intprops.texi: "a integer"
11778         * doc/regex.texi: "a explanation"
11779         * lib/alignof.h: "a object"
11780         * lib/argmatch.h: "a explanation"
11781         * lib/argp-help.c: "a option" and "a OPTION_DOC"
11782         * lib/stdint.in.h: "a integer"
11783         * lib/userspec.c: "a owner"
11784         * doc/gnulib.texi: Fix "a idea", and reword.
11785
11786 2011-05-19  Jim Meyering  <meyering@redhat.com>
11787
11788         maint: correct misuse of "a" and "an"
11789         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
11790         * lib/argp-help.c: "an docum...": s/an/a/
11791         * lib/argp-parse.c: "An vector": s/An/A/
11792         * lib/execute.c: "an native": s/an/a/
11793         * lib/spawn-pipe.c: Likewise.
11794         * lib/gc.h: "an Gc_rc": s/an/a/
11795         * lib/unigbrk.in.h: "an grapheme": s/an/a/
11796         * lib/fts.c: "an stat.st_dev": s/an/a/
11797
11798 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11799
11800         intprops-tests: work around HP-UX 11.23 cc bug with constants
11801         * tests/test-intprops.c (VERIFY): New macro.
11802         (main): Use it, instead of verify, to work around the compiler bug; see
11803         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11804
11805         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
11806         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
11807         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
11808         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
11809         (_GL_REMAINDER_OVERFLOW): Use it.
11810
11811         intprops-tests: revert unsigned part of previous change
11812         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
11813         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
11814         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
11815         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
11816
11817 2011-05-19  Bruno Haible  <bruno@clisp.org>
11818
11819         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
11820         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
11821         strerror_r() returned without filling the buffer.
11822         Reported by Eric Blake.
11823
11824 2011-05-19  Eric Blake  <eblake@redhat.com>
11825
11826         strerror_r: guarantee unchanged errno
11827         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
11828         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
11829         failure.
11830         * tests/test-strerror_r.c (main): Enhance test.
11831
11832 2011-05-19  Bruno Haible  <bruno@clisp.org>
11833
11834         strerror_r: Reorder #if blocks.
11835         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
11836         for consistency with the previous commit.
11837
11838 2011-05-19  Bruno Haible  <bruno@clisp.org>
11839
11840         perror: Avoid clobbering the strerror buffer when possible.
11841         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
11842         * lib/strerror.c: Include it.
11843         * modules/strerror (Files): Add lib/strerror-impl.h.
11844         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
11845         (my_strerror): New function, defined through lib/strerror-impl.h.
11846         (perror): Use it instead of strerror.
11847         * modules/perror (Files): Add lib/strerror-impl.h.
11848         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
11849
11850 2011-05-19  Eric Blake  <eblake@redhat.com>
11851
11852         strerror_r: fix on newer cygwin
11853         * lib/strerror_r.c (strerror_r): Cygwin now has
11854         __xpg_strerror_r, use it.
11855
11856 2011-05-19  Bruno Haible  <bruno@clisp.org>
11857
11858         strerror_r: Avoid clobbering the strerror buffer when possible.
11859         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
11860         (sys_nerr, sys_errlist): New declarations.
11861         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
11862         HP-UX, native Win32, IRIX, and 32-bit Solaris.
11863         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
11864
11865 2011-05-19  Bruno Haible  <bruno@clisp.org>
11866
11867         strerror_r: Fix test failure on mingw.
11868         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
11869         EXTEND_STRERROR_R.
11870         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
11871         macros from errno.in.h instead.
11872
11873 2011-05-19  Eric Blake  <eblake@redhat.com>
11874
11875         strerror: relax test for Solaris
11876         * tests/test-strerror.c (main): Permit Solaris behavior.
11877         * tests/test-strerror_r.c (main): Likewise.
11878
11879         strerror: enforce POSIX ruling on strerror(0)
11880         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
11881         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11882         * lib/strerror_r.c (rpl_strerror_r): Work around it.
11883         * doc/posix-functions/strerror.texi (strerror): Document it.
11884         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
11885         * tests/test-strerror.c (main): Strengthen test.
11886         * tests/test-strerror_r.c (main): Likewise.
11887
11888 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11889
11890         intprop-tests: port to older and more-pedantic compilers
11891         * modules/intprops-tests (Files): Add tests/macros.h.
11892         * tests/test-intprops.c: Include macros.h.
11893         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
11894         it's no longer documented to expand to an integer constant expression.
11895         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
11896         argument is floating point, as it's no longer documented to expand
11897         to an integer constant expression in that case.
11898         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
11899         compiler bugs reported by Bruno Haible.  See
11900         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11901         (U0, U1): New constants, to work around the same bugs.  Also,
11902         in tests, use e.g., "(unsigned int) 39" rather than "39u".
11903
11904         intprops: work around C compiler bugs
11905         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
11906         bug in Sun C 5.11 2010/08/13 and other compilers; see
11907         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11908
11909         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
11910         * doc/intprops.texi (Integer Type Determination): Fix
11911         documentation for TYPE_IS_INTEGER: it returns an constant
11912         expression, not an integer constant expression.  Fix doc for
11913         TYPE_SIGNED: it returns an integer constant expression only if its
11914         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
11915         hardly worth documented that way....)
11916
11917 2011-05-18  Bruno Haible  <bruno@clisp.org>
11918
11919         strerror_r: Avoid clobbering the strerror buffer when possible.
11920         * lib/strerror_r.c (strerror_r): Merge the three implementations.
11921         Handle gnulib defined errno values here. When strerror() returns NULL
11922         or an empty string, return EINVAL.
11923         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
11924         gnulib defined errno values here.
11925         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
11926
11927 2011-05-18  Eric Blake  <eblake@redhat.com>
11928
11929         fnmatch: avoid compiler warning
11930         * lib/fnmatch_loop.c (FCT): Use correct type.
11931         Reported by Matthias Bolte.
11932
11933 2011-05-13  Jim Meyering  <meyering@redhat.com>
11934
11935         maint.mk: three new prohibit_<HDR>_without_use rules
11936         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
11937         (sc_prohibit_stdio-safer_without_use): Likewise.
11938         (sc_prohibit_xfreopen_without_use): Likewise.
11939
11940 2011-05-17  Jim Meyering  <meyering@redhat.com>
11941
11942         announce-gen: fail if the NEWS delta is empty
11943         If there's nothing noteworthy in NEWS, then either you forgot
11944         or you shouldn't be releasing.
11945         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
11946
11947 2011-05-17  Pádraig Brady <P@draigBrady.com>
11948
11949         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
11950         reserved symbols starting with double underscore from the check.
11951
11952 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
11953
11954         intprops: add doc
11955         * doc/intprops.texi: New file, documenting intprops.
11956         * doc/gnulib.texi (Particular Modules): Include it.
11957
11958         verify: add doc to gnulib manual and fix example
11959         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
11960         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
11961         (Compile-time Assertions): Fix example so it can't overflow.
11962
11963 2011-05-17  Jim Meyering  <meyering@redhat.com>
11964
11965         warnings.m4: don't usurp save_CPPFLAGS variable name
11966         * m4/warnings.m4: Prefix local temporary variable name with gl_.
11967
11968         doc: fix typo
11969         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
11970
11971 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11972             Bruno Haible  <bruno@clisp.org>
11973
11974         doc: Tweak recent change.
11975         * README (Portability guidelines): Tweak new text.
11976         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
11977         Interix 6.1.
11978
11979 2011-05-16  Eric Blake  <eblake@redhat.com>
11980
11981         inttypes: avoid autoconf warning
11982         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
11983         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11984
11985 2011-05-16  Sam Steingold <sds@gnu.org>
11986         and Eric Blake  <eblake@redhat.com>
11987
11988         vc-list-files: accept multiple directory operands
11989         * build-aux/vc-list-files: Iterate over all remaining operands.
11990
11991 2011-05-16  Bruno Haible  <bruno@clisp.org>
11992
11993         Fix confusion regarding deprecated modules.
11994         * modules/calloc (Status, Notice): Mark module as deprecated, not
11995         obsolete.
11996         * modules/fnmatch-posix (Status, Notice): Likewise.
11997         * modules/getdate (Status, Notice): Likewise.
11998         * modules/getopt (Status, Notice): Likewise.
11999         * modules/malloc (Status, Notice): Likewise.
12000         * modules/pipe (Status, Notice): Likewise.
12001         * modules/realloc (Status, Notice): Likewise.
12002         * modules/rename-dest-slash (Status, Notice): Likewise.
12003         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
12004         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
12005         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
12006         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
12007         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
12008
12009 2011-05-16  Bruno Haible  <bruno@clisp.org>
12010
12011         doc: List the target platforms.
12012         * doc/gnulib-intro.texi (Target Platforms): New section.
12013         * doc/gnulib.texi (Introduction): Update menu.
12014         * README (Portability guidelines): Refer to the new section. Update
12015         statement about oldest supported environment. Remove rationale why
12016         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
12017         unportable C89 function.
12018         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
12019         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
12020
12021 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12022
12023         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
12024
12025 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
12026
12027         intprops-tests: new module
12028         * modules/intprops-tests, tests/test-intprops.c: New files.
12029
12030         intprops: add safe, portable integer overflow checking
12031         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
12032         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
12033         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
12034         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
12035         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
12036         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
12037         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
12038         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
12039         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
12040         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
12041         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
12042
12043 2011-05-12  James Youngman  <jay@gnu.org>
12044
12045         Add a test for glibc's Bugzilla bug #12378.
12046         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
12047         doesn't allow the literal matching of a lone "[" (which is
12048         required by POSIX).
12049         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
12050
12051 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
12052
12053         Sync glibc change fixing Bugzilla bug #12378.
12054         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
12055         beginning and fall back to matching as normal character if the
12056         string ends before the matching ']' is found.  This is what POSIX
12057         requires.
12058
12059 2011-05-13  Eric Blake  <eblake@redhat.com>
12060
12061         getcwd-lgpl: relax test for FreeBSD
12062         * doc/posix-functions/getcwd.texi (getcwd): Document portability
12063         issue.
12064         * tests/test-getcwd-lgpl.c (main): Relax test.
12065         Reported by Matthias Bolte.
12066
12067 2011-05-11  Eric Blake  <eblake@redhat.com>
12068
12069         test-fflush: silence compiler warning
12070         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
12071
12072 2011-05-11  Bruno Haible  <bruno@clisp.org>
12073
12074         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
12075         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
12076         * modules/canonicalize (Depends-on): Add 'nocrash'.
12077         * modules/canonicalize-lgpl (Depends-on): Likewise.
12078         * doc/posix-functions/realpath.texi: Update platforms list.
12079         Reported by Ryan Schmidt <ryandesign@macports.org>.
12080
12081 2011-05-11  Bruno Haible  <bruno@clisp.org>
12082
12083         group-member: Declare function in <unistd.h>.
12084         * lib/unistd.in.h (group_member): New declaration.
12085         * lib/group-member.h: Remove file.
12086         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
12087         * tests/test-unistd-c++.cc: Check signature of group_member.
12088         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
12089         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
12090         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
12091         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
12092         HAVE_GROUP_MEMBER.
12093         * modules/group-member (Files): Remove lib/group-member.h.
12094         (Depends-on): Add unistd. Specify conditions.
12095         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12096         (Include): Change to <unistd.h>.
12097         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
12098         HAVE_GROUP_MEMBER.
12099         * NEWS: Mention the change.
12100         * lib/euidaccess.c: Don't include group-member.h.
12101
12102 2011-05-11  Bruno Haible  <bruno@clisp.org>
12103
12104         group-member: Document module.
12105         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
12106         module.
12107
12108 2011-05-11  Bruno Haible  <bruno@clisp.org>
12109
12110         fclose: Fix mistake earlier today.
12111         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
12112
12113 2011-05-11  Eric Blake  <eblake@redhat.com>
12114
12115         fclose: preserve fflush errors
12116         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
12117         Reported by Jim Meyering.
12118
12119         bootstrap: support a prereq of 'rpcgen -' on RHEL5
12120         * build-aux/bootstrap (check_versions): When no specific version
12121         is required, merely check that the app produces an exit status
12122         that indicates its existence.
12123
12124         maint.mk: drop redundant check
12125         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
12126         the same but better.
12127
12128 2011-05-11  Bruno Haible  <bruno@clisp.org>
12129
12130         fclose: Fix possible link error.
12131         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
12132         unregister_shadow_fd. Improve comments.
12133         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
12134         Eric Blake.
12135
12136 2011-05-11  Jim Meyering  <meyering@redhat.com>
12137
12138         maint.mk: improve "can not" detection and generalize rule name
12139         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
12140         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
12141         Use the same technique as in sc_prohibit_doubled_word, so that
12142         we recognize "can not" also when the words are separated by a newline.
12143         Suggested by Eric Blake.
12144         (perl_filename_lineno_text_): Define.  Factored out of...
12145         (prohibit_doubled_word_): ...here.  Use the new definition.
12146         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
12147         (prohibit_undesirable_word_seq_RE_): New overridable variable.
12148         (ignore_undesirable_word_sequence_RE_): New overridable variable.
12149
12150 2011-05-10  Eric Blake  <eblake@redhat.com>
12151
12152         fclose: avoid double close race when possible
12153         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
12154         all but WINDOWS_SOCKETS.
12155
12156 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
12157
12158         openat: correct new comment
12159         * lib/openat-proc.c (openat_proc_name): Correct the comment.
12160
12161 2011-05-10  Jim Meyering  <meyering@redhat.com>
12162
12163         openat: add comments
12164         * lib/openat-proc.c (openat_proc_name): Add comments,
12165         mostly from Eric Blake.
12166
12167 2011-05-09  Eric Blake  <eblake@redhat.com>
12168
12169         openat: reduce syscalls in first probe of /proc
12170         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
12171         be a directory.  Simplify the probe for .. bugs.
12172         * modules/openat (Depends-on): Drop same-inode.
12173         Reported by Bastien ROUCARIES.
12174
12175 2011-05-09  Jim Meyering  <meyering@redhat.com>
12176
12177         maint.mk: change semantics/name of tight_scope variables
12178         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
12179         Rename variables to align with semantics that make them more useful.
12180
12181         maint.mk: tweak new rule's name not to impinge
12182         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
12183         (sc_tight_scope): Use new rule name rather than $@-0.
12184
12185         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
12186         * top/maint.mk (sc_tight_scope): New rule.
12187         (sc_tight_scope-0): New rule, ifdef'd out.
12188         (_gl_TS_dir): Default.
12189         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
12190         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
12191
12192 2011-05-09  Simon Josefsson  <simon@josefsson.org>
12193
12194         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
12195         Haible <bruno@clisp.org>.
12196
12197 2011-05-08  Bruno Haible  <bruno@clisp.org>
12198
12199         Comments.
12200         * m4/isnanf.m4: Add comment.
12201         * m4/isnanl.m4: Likewise.
12202
12203 2011-05-08  Bruno Haible  <bruno@clisp.org>
12204
12205         glob: Remove obsolete macro.
12206         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
12207
12208 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12209
12210         intprops: Sun C 5.11 supports __typeof__
12211         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
12212         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
12213         which is new.
12214         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
12215
12216         intprops: switch to usual gnulib indenting and naming
12217         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
12218         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
12219
12220         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
12221
12222 2011-05-08  Jim Meyering  <meyering@redhat.com>
12223
12224         maint.mk: suppress "Entering/Leaving directory" diag in announcement
12225         * top/maint.mk (release-prep): Use make's --no-print-directory
12226         option when generating the announcement.  This eliminates the
12227         pesky "make[2]: Entering/Leaving directory" diagnostics in the
12228         generated announcement template.
12229
12230 2011-05-08  Bruno Haible  <bruno@clisp.org>
12231
12232         tzset: Fix gettimeofday wrapper on Solaris 2.6.
12233         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
12234         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
12235
12236 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
12237
12238         ignore-value, verify: Omit include files from lib_SOURCES.
12239         * modules/ignore-value, modules/verify (Makefile.am):
12240         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
12241         that leads Automake to duplicate use of am__objects_... variables
12242         in Makefile.in.  See
12243         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
12244
12245 2011-05-07  Bruno Haible  <bruno@clisp.org>
12246
12247         fclose: Simplify autoconf macro.
12248         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
12249         defined.
12250
12251 2011-05-07  Bruno Haible  <bruno@clisp.org>
12252
12253         canonicalize-lgpl: Fix autoconf macro ordering bug.
12254         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
12255         gl_STDLIB_H_DEFAULTS.
12256
12257 2011-05-06  Eric Blake  <eblake@redhat.com>
12258
12259         maintainer-makefile: make sc_po_check easier to tune
12260         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
12261         to probe for strings, such as an alternate location for gnulib.
12262
12263         fclose: guarantee behavior on seekable stdin
12264         * modules/fclose (Depends-on): Add fflush.
12265         * doc/posix-functions/fclose.texi (fclose): Document this.
12266         * tests/test-fclose.c (main): Make test for this unconditional.
12267
12268 2011-05-06  Bruno Haible  <bruno@clisp.org>
12269
12270         fflush, fpurge: Relicense under LGPLv2+.
12271         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
12272         * modules/fpurge (License): Likewise.
12273         With permission from Eric Blake and Jim Meyering.
12274         Suggested by Eric Blake.
12275
12276 2011-05-06  Karl Berry  <karl@gnu.org>
12277
12278         * MODULES.html.sh (func_all_modules): remove exit.
12279
12280 2011-05-06  Jim Meyering  <meyering@redhat.com>
12281
12282         maint.mk: use info-gnu@ as the default only for a stable release
12283         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
12284         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
12285         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
12286         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
12287
12288 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12289
12290         assert-h: new module, which supports C1X-style static_assert
12291         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
12292         * lib/verify.h: Revamp so that this can be copied into assert.h,
12293         while retaining the ability to use it standalone as before.
12294         Rename private identifiers so as not to encroach on the
12295         standard C namespace, since this is now used by assert.h.
12296         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
12297         the old verify_true.
12298         (_GL_VERIFY_TRUE): New macro, with much of the contents of
12299         the old verify_true.  Use _GL_VERIFY_TYPE.
12300         (_GL_VERIFY): New macro, with much of the contents of the old verify.
12301         (static_assert): New macro, if _GL_STATIC_ASSERT_H
12302         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
12303         defined when this file is copied into the replacement assert.h.
12304         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
12305         and _Static_assert is not built in.
12306         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
12307         defined, and use the new macros mentioned above.
12308         * doc/posix-headers/assert.texi: Document this.
12309
12310 2011-05-05  Bruno Haible  <bruno@clisp.org>
12311
12312         fclose, fflush: Respect rules for use of AC_LIBOBJ.
12313         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
12314         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
12315         gl_REPLACE_FCLOSE here.
12316         * modules/fflush (Depends-on): Remove fclose.
12317         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
12318         combination with module 'fclose'.
12319
12320 2011-05-05  Bruno Haible  <bruno@clisp.org>
12321
12322         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
12323         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
12324         gl_FUNC_FFLUSH.
12325         (gl_FUNC_FFLUSH): Use it.
12326         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
12327         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
12328         gl_REPLACE_FSEEKO here.
12329
12330 2011-05-05  Bruno Haible  <bruno@clisp.org>
12331
12332         tzset: Relicense under LGPL.
12333         * modules/tzset (License): Change to LGPL.
12334         No agreement needed; it's a no-op.
12335
12336         strtoimax, strtoumax: Relicense under LGPL.
12337         * modules/strtoimax (License): Change to LGPL.
12338         * modules/strtoumax (License): Likewise.
12339         With permission from Jim Meyering, Paul Eggert:
12340         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
12341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
12342
12343         getgroups: Relicense under LGPL.
12344         * modules/getgroups (License): Change to LGPL.
12345         With permission from Jim Meyering, Paul Eggert, Eric Blake:
12346         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12347         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12348         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12349
12350         nanosleep: Relicense under LGPL.
12351         * modules/nanosleep (License): Change to LGPL.
12352         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
12353         Haible:
12354         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12355         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12356         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12358
12359         futimens: Relicense under LGPL.
12360         * modules/futimens (License): Change to LGPL.
12361         With permission from Eric Blake:
12362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12363
12364         fflush: Relicense under LGPL.
12365         * modules/fflush (License): Change to LGPL.
12366         With permission from Eric Blake, Bruno Haible, Jim Meyering:
12367         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12368         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12369         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
12370
12371         tmpfile: Relicense under LGPL.
12372         * modules/tmpfile (License): Change to LGPL.
12373         With permission from Ben Pfaff:
12374         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12375
12376         isfinite: Relicense under LGPL.
12377         * modules/isfinite (License): Change to LGPL.
12378         With permission from Ben Pfaff, Bruno Haible:
12379         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12380         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
12381
12382         acosl..tanl: Relicense under LGPL.
12383         * modules/acosl (License): Change to LGPL.
12384         * modules/asinl (License): Likewise.
12385         * modules/atanl (License): Likewise.
12386         * modules/cosl (License): Likewise.
12387         * modules/expl (License): Likewise.
12388         * modules/logl (License): Likewise.
12389         * modules/sinl (License): Likewise.
12390         * modules/sqrtl (License): Likewise.
12391         * modules/tanl (License): Likewise.
12392         Source code originally from glibc and Paolo Bonzini. Agreements:
12393         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
12394         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
12395
12396 2011-05-05  Bruno Haible  <bruno@clisp.org>
12397
12398         signal: Define sighandler_t.
12399         * lib/signal.in.h (sighandler_t): New type.
12400         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
12401         whether sighandler_t is defined.
12402         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
12403         * modules/signal (Depends-on): Add extensions.
12404         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
12405         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
12406         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
12407
12408 2011-05-05  Eric Blake  <eblake@redhat.com>
12409
12410         maint: remove useless REPLACE_*_H macros
12411         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
12412         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12413         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12414         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
12415         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12416         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12417         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
12418         * m4/btowc.m4: Update callers.
12419         * m4/dirfd.m4: Likewise.
12420         * m4/duplocale.m4: Likewise.
12421         * m4/fchdir.m4: Likewise.
12422         * m4/fdopendir.m4: Likewise.
12423         * m4/inet_ntop.m4: Likewise.
12424         * m4/inet_pton.m4: Likewise.
12425         * m4/ioctl.m4: Likewise.
12426         * m4/mbrlen.m4: Likewise.
12427         * m4/mbrtowc.m4: Likewise.
12428         * m4/mbsinit.m4: Likewise.
12429         * m4/mbsnrtowcs.m4: Likewise.
12430         * m4/mbsrtowcs.m4: Likewise.
12431         * m4/poll.m4: Likewise.
12432         * m4/setlocale.m4: Likewise.
12433         * m4/wcrtomb.m4: Likewise.
12434         * m4/wcsnrtombs.m4: Likewise.
12435         * m4/wcsrtombs.m4: Likewise.
12436         * m4/wctob.m4: Likewise.
12437         * m4/wcwidth.m4: Likewise.
12438         * modules/posix_spawn: Likewise.
12439         * modules/posix_spawn_file_actions_addclose: Likewise.
12440         * modules/posix_spawn_file_actions_adddup2: Likewise.
12441         * modules/posix_spawn_file_actions_addopen: Likewise.
12442         * modules/posix_spawn_file_actions_destroy: Likewise.
12443         * modules/posix_spawn_file_actions_init: Likewise.
12444         * modules/posix_spawnattr_destroy: Likewise.
12445         * modules/posix_spawnattr_getflags: Likewise.
12446         * modules/posix_spawnattr_getpgroup: Likewise.
12447         * modules/posix_spawnattr_getschedparam: Likewise.
12448         * modules/posix_spawnattr_getschedpolicy: Likewise.
12449         * modules/posix_spawnattr_getsigdefault: Likewise.
12450         * modules/posix_spawnattr_getsigmask: Likewise.
12451         * modules/posix_spawnattr_init: Likewise.
12452         * modules/posix_spawnattr_setflags: Likewise.
12453         * modules/posix_spawnattr_setpgroup: Likewise.
12454         * modules/posix_spawnattr_setschedparam: Likewise.
12455         * modules/posix_spawnattr_setschedpolicy: Likewise.
12456         * modules/posix_spawnattr_setsigdefault: Likewise.
12457         * modules/posix_spawnattr_setsigmask: Likewise.
12458         * modules/posix_spawnp: Likewise.
12459
12460 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
12461
12462         Add option to do-release-commit-and-tag to specify branch.
12463         * build-aux/do-release-commit-and-tag: Add --branch.
12464
12465 2011-05-03  Bruno Haible  <bruno@clisp.org>
12466
12467         Avoid unnecessary compilation units, through conditional dependencies.
12468         * modules/accept (Depends-on): Add conditions to the dependencies.
12469         * modules/acosl (Depends-on): Likewise.
12470         * modules/argz (Depends-on): Likewise.
12471         * modules/asinl (Depends-on): Likewise.
12472         * modules/atanl (Depends-on): Likewise.
12473         * modules/atoll (Depends-on): Likewise.
12474         * modules/bind (Depends-on): Likewise.
12475         * modules/btowc (Depends-on): Likewise.
12476         * modules/canonicalize-lgpl (Depends-on): Likewise.
12477         * modules/ceil (Depends-on): Likewise.
12478         * modules/ceilf (Depends-on): Likewise.
12479         * modules/ceill (Depends-on): Likewise.
12480         * modules/chdir-long (Depends-on): Likewise.
12481         * modules/chown (Depends-on): Likewise.
12482         * modules/close (Depends-on): Likewise.
12483         * modules/connect (Depends-on): Likewise.
12484         * modules/cosl (Depends-on): Likewise.
12485         * modules/dirfd (Depends-on): Likewise.
12486         * modules/dprintf (Depends-on): Likewise.
12487         * modules/dprintf-posix (Depends-on): Likewise.
12488         * modules/error (Depends-on): Likewise.
12489         * modules/euidaccess (Depends-on): Likewise.
12490         * modules/expl (Depends-on): Likewise.
12491         * modules/faccessat (Depends-on): Likewise.
12492         * modules/fchdir (Depends-on): Likewise.
12493         * modules/fclose (Depends-on): Likewise.
12494         * modules/fcntl (Depends-on): Likewise.
12495         * modules/fdopendir (Depends-on): Likewise.
12496         * modules/fflush (Depends-on): Likewise.
12497         * modules/floor (Depends-on): Likewise.
12498         * modules/floorf (Depends-on): Likewise.
12499         * modules/floorl (Depends-on): Likewise.
12500         * modules/fnmatch (Depends-on): Likewise.
12501         * modules/fopen (Depends-on): Likewise.
12502         * modules/fprintf-posix (Depends-on): Likewise.
12503         * modules/frexp (Depends-on): Likewise.
12504         * modules/frexp-nolibm (Depends-on): Likewise.
12505         * modules/frexpl (Depends-on): Likewise.
12506         * modules/frexpl-nolibm (Depends-on): Likewise.
12507         * modules/fseek (Depends-on): Likewise.
12508         * modules/fsusage (Depends-on): Likewise.
12509         * modules/ftell (Depends-on): Likewise.
12510         * modules/ftello (Depends-on): Likewise.
12511         * modules/futimens (Depends-on): Likewise.
12512         * modules/getcwd (Depends-on): Likewise.
12513         * modules/getcwd-lgpl (Depends-on): Likewise.
12514         * modules/getdelim (Depends-on): Likewise.
12515         * modules/getdomainname (Depends-on): Likewise.
12516         * modules/getgroups (Depends-on): Likewise.
12517         * modules/gethostname (Depends-on): Likewise.
12518         * modules/getline (Depends-on): Likewise.
12519         * modules/getlogin_r (Depends-on): Likewise.
12520         * modules/getopt-posix (Depends-on): Likewise.
12521         * modules/getpeername (Depends-on): Likewise.
12522         * modules/getsockname (Depends-on): Likewise.
12523         * modules/getsockopt (Depends-on): Likewise.
12524         * modules/getsubopt (Depends-on): Likewise.
12525         * modules/getusershell (Depends-on): Likewise.
12526         * modules/glob (Depends-on): Likewise.
12527         * modules/grantpt (Depends-on): Likewise.
12528         * modules/iconv_open (Depends-on): Likewise.
12529         * modules/iconv_open-utf (Depends-on): Likewise.
12530         * modules/inet_ntop (Depends-on): Likewise.
12531         * modules/inet_pton (Depends-on): Likewise.
12532         * modules/ioctl (Depends-on): Likewise.
12533         * modules/isapipe (Depends-on): Likewise.
12534         * modules/isfinite (Depends-on): Likewise.
12535         * modules/isinf (Depends-on): Likewise.
12536         * modules/lchown (Depends-on): Likewise.
12537         * modules/ldexpl (Depends-on): Likewise.
12538         * modules/link (Depends-on): Likewise.
12539         * modules/linkat (Depends-on): Likewise.
12540         * modules/listen (Depends-on): Likewise.
12541         * modules/logl (Depends-on): Likewise.
12542         * modules/lstat (Depends-on): Likewise.
12543         * modules/mbrlen (Depends-on): Likewise.
12544         * modules/mbrtowc (Depends-on): Likewise.
12545         * modules/mbsinit (Depends-on): Likewise.
12546         * modules/mbsnrtowcs (Depends-on): Likewise.
12547         * modules/mbsrtowcs (Depends-on): Likewise.
12548         * modules/mbtowc (Depends-on): Likewise.
12549         * modules/memcmp (Depends-on): Likewise.
12550         * modules/mkdir (Depends-on): Likewise.
12551         * modules/mkdtemp (Depends-on): Likewise.
12552         * modules/mkfifo (Depends-on): Likewise.
12553         * modules/mkfifoat (Depends-on): Likewise.
12554         * modules/mknod (Depends-on): Likewise.
12555         * modules/mkostemp (Depends-on): Likewise.
12556         * modules/mkostemps (Depends-on): Likewise.
12557         * modules/mkstemp (Depends-on): Likewise.
12558         * modules/mkstemps (Depends-on): Likewise.
12559         * modules/mktime (Depends-on): Likewise.
12560         * modules/nanosleep (Depends-on): Likewise.
12561         * modules/open (Depends-on): Likewise.
12562         * modules/openat (Depends-on): Likewise.
12563         * modules/perror (Depends-on): Likewise.
12564         * modules/poll (Depends-on): Likewise.
12565         * modules/popen (Depends-on): Likewise.
12566         * modules/posix_spawn (Depends-on): Likewise.
12567         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
12568         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
12569         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
12570         * modules/posix_spawnp (Depends-on): Likewise.
12571         * modules/pread (Depends-on): Likewise.
12572         * modules/printf-posix (Depends-on): Likewise.
12573         * modules/ptsname (Depends-on): Likewise.
12574         * modules/putenv (Depends-on): Likewise.
12575         * modules/pwrite (Depends-on): Likewise.
12576         * modules/readline (Depends-on): Likewise.
12577         * modules/readlink (Depends-on): Likewise.
12578         * modules/readlinkat (Depends-on): Likewise.
12579         * modules/recv (Depends-on): Likewise.
12580         * modules/recvfrom (Depends-on): Likewise.
12581         * modules/regex (Depends-on): Likewise.
12582         * modules/remove (Depends-on): Likewise.
12583         * modules/rename (Depends-on): Likewise.
12584         * modules/renameat (Depends-on): Likewise.
12585         * modules/rmdir (Depends-on): Likewise.
12586         * modules/round (Depends-on): Likewise.
12587         * modules/roundf (Depends-on): Likewise.
12588         * modules/roundl (Depends-on): Likewise.
12589         * modules/rpmatch (Depends-on): Likewise.
12590         * modules/select (Depends-on): Likewise.
12591         * modules/send (Depends-on): Likewise.
12592         * modules/sendto (Depends-on): Likewise.
12593         * modules/setenv (Depends-on): Likewise.
12594         * modules/setlocale (Depends-on): Likewise.
12595         * modules/setsockopt (Depends-on): Likewise.
12596         * modules/shutdown (Depends-on): Likewise.
12597         * modules/sigaction (Depends-on): Likewise.
12598         * modules/signbit (Depends-on): Likewise.
12599         * modules/sigprocmask (Depends-on): Likewise.
12600         * modules/sinl (Depends-on): Likewise.
12601         * modules/sleep (Depends-on): Likewise.
12602         * modules/snprintf (Depends-on): Likewise.
12603         * modules/snprintf-posix (Depends-on): Likewise.
12604         * modules/socket (Depends-on): Likewise.
12605         * modules/sprintf-posix (Depends-on): Likewise.
12606         * modules/sqrtl (Depends-on): Likewise.
12607         * modules/stat (Depends-on): Likewise.
12608         * modules/strchrnul (Depends-on): Likewise.
12609         * modules/strdup-posix (Depends-on): Likewise.
12610         * modules/strerror (Depends-on): Likewise.
12611         * modules/strerror_r-posix (Depends-on): Likewise.
12612         * modules/strndup (Depends-on): Likewise.
12613         * modules/strnlen (Depends-on): Likewise.
12614         * modules/strptime (Depends-on): Likewise.
12615         * modules/strsep (Depends-on): Likewise.
12616         * modules/strsignal (Depends-on): Likewise.
12617         * modules/strstr-simple (Depends-on): Likewise.
12618         * modules/strtod (Depends-on): Likewise.
12619         * modules/strtoimax (Depends-on): Likewise.
12620         * modules/strtok_r (Depends-on): Likewise.
12621         * modules/strtoumax (Depends-on): Likewise.
12622         * modules/symlink (Depends-on): Likewise.
12623         * modules/symlinkat (Depends-on): Likewise.
12624         * modules/tanl (Depends-on): Likewise.
12625         * modules/tcgetsid (Depends-on): Likewise.
12626         * modules/tmpfile (Depends-on): Likewise.
12627         * modules/trunc (Depends-on): Likewise.
12628         * modules/truncf (Depends-on): Likewise.
12629         * modules/truncl (Depends-on): Likewise.
12630         * modules/uname (Depends-on): Likewise.
12631         * modules/unlink (Depends-on): Likewise.
12632         * modules/unlockpt (Depends-on): Likewise.
12633         * modules/unsetenv (Depends-on): Likewise.
12634         * modules/usleep (Depends-on): Likewise.
12635         * modules/utimensat (Depends-on): Likewise.
12636         * modules/vasprintf (Depends-on): Likewise.
12637         * modules/vdprintf (Depends-on): Likewise.
12638         * modules/vdprintf-posix (Depends-on): Likewise.
12639         * modules/vfprintf-posix (Depends-on): Likewise.
12640         * modules/vprintf-posix (Depends-on): Likewise.
12641         * modules/vsnprintf (Depends-on): Likewise.
12642         * modules/vsnprintf-posix (Depends-on): Likewise.
12643         * modules/vsprintf-posix (Depends-on): Likewise.
12644         * modules/wcrtomb (Depends-on): Likewise.
12645         * modules/wcscasecmp (Depends-on): Likewise.
12646         * modules/wcscspn (Depends-on): Likewise.
12647         * modules/wcsdup (Depends-on): Likewise.
12648         * modules/wcsncasecmp (Depends-on): Likewise.
12649         * modules/wcsnrtombs (Depends-on): Likewise.
12650         * modules/wcspbrk (Depends-on): Likewise.
12651         * modules/wcsrtombs (Depends-on): Likewise.
12652         * modules/wcsspn (Depends-on): Likewise.
12653         * modules/wcsstr (Depends-on): Likewise.
12654         * modules/wcstok (Depends-on): Likewise.
12655         * modules/wcswidth (Depends-on): Likewise.
12656         * modules/wctob (Depends-on): Likewise.
12657         * modules/wctomb (Depends-on): Likewise.
12658         * modules/wctype (Depends-on): Likewise.
12659         * modules/wcwidth (Depends-on): Likewise.
12660         * modules/write (Depends-on): Likewise.
12661
12662 2011-05-03  Bruno Haible  <bruno@clisp.org>
12663
12664         Support for conditional dependencies.
12665         * doc/gnulib.texi (Module description): Document the syntax of
12666         conditional dependencies.
12667         * gnulib-tool: New option --conditional-dependencies.
12668         (func_usage): Document it.
12669         (cond_dependencies): New variable.
12670         (func_get_automake_snippet_conditional,
12671         func_get_automake_snippet_unconditional): New functions, extracted from
12672         func_get_automake_snippet.
12673         (func_get_automake_snippet): Use them.
12674         (sed_first_32_chars): New variable.
12675         (func_module_shellfunc_name): New function.
12676         (func_module_shellvar_name): New function.
12677         (func_module_conditional_name): New function.
12678         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
12679         func_cond_module_condition): New functions.
12680         (func_modules_transitive_closure): Add support for conditional
12681         dependencies.
12682         (func_emit_lib_Makefile_am): For a conditional module, enclose the
12683         conditional automake snippet in an automake conditional.
12684         (func_emit_autoconf_snippets): Emit shell functions that contain the
12685         code for conditional modules.
12686         (func_import, func_create_testdir): Update specification.
12687
12688 2011-05-03  Eric Blake  <eblake@redhat.com>
12689
12690         test-getaddrinfo: report error information
12691         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
12692
12693 2011-05-03  Jim Meyering  <meyering@redhat.com>
12694
12695         bootstrap: avoid build failure when $GZIP is set
12696         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
12697         program name.  If defined at all, it is supposed to list gzip options.
12698         Reported by Alan Curry in http://debbugs.gnu.org/8609
12699
12700 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
12701
12702         readme-release: new module with release instructions
12703         * modules/readme-release: New module.
12704         * top/README-release: New file, from coreutils, grep, diffutils.
12705         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12706
12707 2011-05-02  Eric Blake  <eblake@redhat.com>
12708
12709         fflush: also replace fclose when fixing fflush
12710         * modules/fflush (Depends-on): Add fclose.
12711         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
12712         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
12713         memstreams with no backing fd.
12714         * doc/posix-functions/fclose.texi (fclose): Document the use of
12715         fflush module to fix the bug.
12716         * tests/test-fclose.c (main): Relax test when fclose is used in
12717         isolation.
12718
12719         fclose: add some tests
12720         * modules/fclose-tests: New test module.
12721         * tests/test-fclose.c: New file.
12722         * doc/posix-functions/fclose.texi (fclose): Document the bug.
12723
12724         fclose: reduced dependencies
12725         * modules/fclose (Depends-on): Switch from fflush/fseeko to
12726         simpler lseek.
12727         * lib/fclose.c (rpl_fclose): Likewise.
12728         Reported by Simon Josefsson.
12729
12730         exit: drop remaining clients
12731         * modules/argmatch (Depends-on): Replace exit with stdlib.
12732         * modules/copy-file (Depends-on): Likewise.
12733         * modules/execute (Depends-on): Likewise.
12734         * modules/exitfail (Depends-on): Likewise.
12735         * modules/obstack (Depends-on): Likewise.
12736         * modules/pagealign_alloc (Depends-on): Likewise.
12737         * modules/pipe-filter-gi (Depends-on): Likewise.
12738         * modules/pipe-filter-ii (Depends-on): Likewise.
12739         * modules/savewd (Depends-on): Likewise.
12740         * modules/spawn-pipe (Depends-on): Likewise.
12741         * modules/wait-process (Depends-on): Likewise.
12742         * modules/xsetenv (Depends-on): Likewise.
12743         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
12744         * modules/git-merge-changelog (Depends-on): Likewise.
12745         * modules/long-options (Depends-on): Likewise.
12746         * modules/pt_chown (Depends-on): Likewise.
12747         * modules/sysexits (Depends-on): Likewise.
12748
12749         freading: relax license from LGPLv3+ to LGPLv2+
12750         * modules/freading (License): Relax LGPL version.
12751
12752 2011-05-02  Bruno Haible  <bruno@clisp.org>
12753
12754         fchdir: Remove unused dependencies.
12755         * modules/fchdir (Depends-on): Remove include_next.
12756
12757 2011-05-02  Bruno Haible  <bruno@clisp.org>
12758
12759         gnulib-tool: Refactor.
12760         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
12761         from func_emit_autoconf_snippets.
12762         (func_emit_autoconf_snippets): Use it.
12763
12764 2011-05-02  Simon Josefsson  <simon@josefsson.org>
12765
12766         * NEWS: Document removal of 'exit'.
12767         * modules/exit: Remove file.
12768
12769 2011-05-01  Bruno Haible  <bruno@clisp.org>
12770
12771         Update DEPENDENCIES.
12772         * DEPENDENCIES (gettext): Recommend the newest release.
12773         Reported by Simon Josefsson.
12774
12775 2011-05-01  Bruno Haible  <bruno@clisp.org>
12776
12777         gnulib-tool: Reduce code duplication.
12778         * gnulib-tool (func_emit_autoconf_snippets): New function.
12779         (func_import, func_create_testdir): Use it.
12780
12781 2011-04-30  Eric Blake  <eblake@redhat.com>
12782
12783         fclose: don't fail on non-seekable input stream
12784         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
12785         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
12786         since fflush is allowed to fail in that case.
12787
12788 2011-04-30  Bruno Haible  <bruno@clisp.org>
12789
12790         dup3: cleanup
12791         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
12792
12793 2011-04-30  Bruno Haible  <bruno@clisp.org>
12794
12795         netdb: Make it work in C++ mode.
12796         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
12797         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
12798         module.
12799         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
12800         gl_MODULE_INDICATOR_FOR_TESTS.
12801         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
12802         * modules/netdb-c++-tests: New file.
12803         * tests/test-netdb-c++.cc: New file.
12804
12805 2011-04-30  Bruno Haible  <bruno@clisp.org>
12806
12807         New modules 'vfscanf', 'vscanf'.
12808         * modules/vfscanf: New file.
12809         * modules/vscanf: New file.
12810         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
12811         here.
12812         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
12813         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
12814
12815 2011-04-30  Bruno Haible  <bruno@clisp.org>
12816
12817         passfd: Add comments.
12818         * lib/passfd.c: Add comments about platforms.
12819
12820 2011-04-30  Bruno Haible  <bruno@clisp.org>
12821
12822         sys_uio: Make <sys/uio.h> self-contained.
12823         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
12824         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
12825
12826 2011-04-30  Bruno Haible  <bruno@clisp.org>
12827
12828         sys_socket: Ensure 'struct iovec' definition.
12829         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
12830         <sys/socket.h>.
12831         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
12832
12833 2011-04-30  Bruno Haible  <bruno@clisp.org>
12834
12835         sys_uio: Protect definition of 'struct iovec'.
12836         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
12837         it as a C struct.
12838
12839 2011-04-30  Bruno Haible  <bruno@clisp.org>
12840
12841         manywarnings: fix indentation
12842         * m4/manywarnings.m4: Indent by 2 spaces consistently.
12843
12844 2011-04-30  Pádraig Brady <P@draigBrady.com>
12845
12846         manywarnings: add -Wno-missing-field-initializers if needed.
12847         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
12848         option if it's needed to allow initialization with { 0, }
12849
12850 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
12851
12852         announce-gen: cosmetic improvement
12853         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
12854
12855 2011-04-29  Jim Meyering  <meyering@redhat.com>
12856
12857         vc-list-files: indent with spaces, not TABs
12858         * build-aux/vc-list-files: Convert leading TABs to spaces,
12859         to match the style of most other files in gnulib.
12860
12861         announce-gen: indent with spaces, not TABs
12862         * build-aux/announce-gen: Convert all TABs to spaces, to match
12863         the style of most other files in gnulib.
12864
12865 2011-04-29  Eric Blake  <eblake@redhat.com>
12866
12867         quotearg: avoid uninitialized variable use
12868         * lib/quotearg.c (quoting_options_from_style): Initialize
12869         remaining fields, and ensure that custom styles are only used via
12870         quoting_options rather than quoting_style.
12871
12872 2011-04-29  Jim Meyering  <meyering@redhat.com>
12873
12874         maint.mk: remove unused VC-tag variable
12875         * top/maint.mk (VC-tag): Remove unused variable.
12876
12877 2011-04-29  Bruno Haible  <bruno@clisp.org>
12878
12879         netdb: fix gai_strerror replacements
12880         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
12881         * modules/netdb: Substitute it.
12882
12883 2011-04-29  Jim Meyering  <meyering@redhat.com>
12884
12885         test-getcwd.c: avoid new set-but-not-used warning
12886         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
12887         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
12888         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
12889         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
12890
12891         test-hash.c: avoid a new shadowing warning
12892         * tests/test-hash.c (main): Don't shadow "dup".
12893
12894 2011-04-28  Eric Blake  <eblake@redhat.com>
12895
12896         getaddrinfo: fix gai_strerror signature
12897         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
12898         and work around mingw with UNICODE defined.
12899         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
12900         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
12901         * modules/netdb (Makefile.am): Substitute it.
12902         * lib/netdb.in.h (gai_strerror): Declare replacement.
12903         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
12904         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
12905         the fix.
12906
12907         getsockopt: avoid compiler warning
12908         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
12909         Reported by Matthias Bolte.
12910
12911         tests: drop unused link dependency
12912         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
12913         * modules/dirent-safer-tests (Makefile.am): Likewise.
12914         * modules/fdopendir-tests (Makefile.am): Likewise.
12915         * modules/mkfifoat-tests (Makefile.am): Likewise.
12916         * modules/openat-safer-tests (Makefile.am): Likewise.
12917         * modules/openat-tests (Makefile.am): Likewise.
12918         * modules/readlinkat-tests (Makefile.am): Likewise.
12919         * modules/symlinkat-tests (Makefile.am): Likewise.
12920         * modules/linkat-tests (Makefile.am): Likewise.
12921         (Depends-on): Switch to filenamecat-lgpl.
12922         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
12923         LIBINTL.
12924         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
12925         * tests/test-linkat.c (main): Don't require xalloc.
12926
12927         hash, mgetgroups: drop xalloc dependency
12928         * lib/hash.c (includes): Adjust includes.
12929         * lib/mgetgroups.c (includes): Likewise.
12930         (xgetgroups): Move...
12931         * lib/xgetgroups.c: ...to new file.
12932         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
12933         * modules/xgetgroups: New file, split from...
12934         * modules/mgetgroups: ...here.
12935         (Depends-on): Add xalloc-oversized.
12936         * modules/hash (Depends-on): Likewise.
12937         * modules/hash-tests (Depends-on): Drop xalloc.
12938         (test_hash_LDADD): Drop unused library.
12939         * tests/test-hash.c (main): Break xalloc dependency.
12940         (includes): Drop unused include.
12941
12942         xalloc-oversized: new module
12943         * modules/xalloc-oversized: New module.
12944         * modules/xalloc (Depends-on): Add it.
12945         * lib/xalloc.h (xalloc_oversized): Move...
12946         * lib/xalloc-oversized.h: ...into new file.
12947
12948         utimecmp: drop dependency on xmalloc
12949         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
12950         due to memory pressure.
12951         * modules/utimecmp (Depends-on): Drop xalloc.
12952
12953 2011-04-27  Eric Blake  <eblake@redhat.com>
12954
12955         getcwd: fix mingw bugs
12956         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
12957         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
12958         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
12959
12960 2011-04-27  Bruno Haible  <bruno@clisp.org>
12961
12962         mkstemps: Ensure declaration on MacOS X 10.5.
12963         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
12964         * doc/glibc-functions/mkstemps.texi: Document header file problem on
12965         MacOS X.
12966
12967 2011-04-27  Bruno Haible  <bruno@clisp.org>
12968
12969         mkstemp: More documentation.
12970         * doc/posix-functions/mkstemp.texi: Document header file problem on
12971         MacOS X.
12972
12973 2011-04-27  Bruno Haible  <bruno@clisp.org>
12974
12975         mkstemp: Tweak configure message when cross-compiling.
12976         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
12977         result as a guess.
12978
12979 2011-04-27  Bruno Haible  <bruno@clisp.org>
12980
12981         clean-temp: Clarify what it does.
12982         * lib/clean-temp.h: Add more comments.
12983         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
12984         module.
12985         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
12986         * doc/glibc-functions/mkstemps.texi: Likewise.
12987         * doc/glibc-functions/mkostemps.texi: Likewise.
12988
12989 2011-04-27  Eric Blake  <eblake@redhat.com>
12990
12991         fchdir: avoid extra chdir and fix test
12992         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
12993         getcwd-lgpl.
12994         * lib/fchdir.c (get_name): Any absolute name will do; it does not
12995         have to be canonical.
12996         (canonicalize_file_name): Drop unused macro.
12997         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
12998
12999         filenamecat-lgpl: fix licence
13000         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
13001         when it was first created.
13002
13003         linkat, renameat: add missing dependency
13004         * modules/linkat (Depends-on): Require getcwd-lgpl.
13005         * modules/renameat (Depends-on): Likewise.
13006
13007         tests: reduce dependencies
13008         * tests/test-linkat.c (main): Use lighter-weight getcwd.
13009         * tests/test-renameat.c (main): Likewise.
13010         * modules/linkat-tests (Depends-on): Relax dependency.
13011         * modules/renameat-tests (Depends-on): Likewise.
13012         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
13013         dependency explicit.
13014
13015         save-cwd: reduce default dependency
13016         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
13017         * lib/save-cwd.c: Update comments.
13018         * NEWS: Document the semantic change.
13019
13020         getcwd: enhance tests
13021         * tests/test-getcwd-lgpl.c: New file, taken from...
13022         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
13023         repeat long path stress tests from m4 probe.
13024         * modules/getcwd-lgpl-tests: New module.
13025         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
13026         * m4/getcwd-abort-bug.m4: Update comment.
13027         * m4/getcwd-path-max.m4: Likewise.
13028
13029         getcwd-lgpl: new module
13030         * modules/getcwd-lgpl: New module.
13031         * lib/getcwd-lgpl.c: New file.
13032         * doc/posix-functions/getcwd.texi (getcwd): Document it.
13033         * MODULES.html.sh (lacking POSIX:2008): Likewise.
13034         * modules/getcwd (configure.ac): Set C witness.
13035         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
13036
13037         getcwd: tweak comments
13038         * m4/getcwd-abort-bug.m4: Fix comments.
13039         * m4/getcwd-path-max.m4: Likewise.
13040         * m4/getcwd.m4: Likewise.
13041
13042 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13043         and Eric Blake  <eblake@redhat.com>
13044
13045         mkstemp: replace if system version uses wrong permissions
13046         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
13047         read/write mode bits set in file created by mkstemp.
13048         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
13049
13050 2011-04-27  Eric Blake  <eblake@redhat.com>
13051
13052         passfd: avoid compiler warning
13053         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
13054         Reported by Laine Stump.
13055
13056 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
13057
13058         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
13059         required by the NetBSD (and perhaps other 4.4BSD derived) join.
13060
13061 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13062         and Eric Blake  <eblake@redhat.com>
13063
13064         mkstemp: mention clean-temp module
13065         * lib/mkstemp.c: Add comment.
13066         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
13067
13068 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
13069
13070         inttypes: also provide default values for 32-bit tests
13071         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
13072         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
13073
13074 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
13075
13076         strtoumax: remove dependency on strtoimax
13077         This is like the strtoull change of yesterday.
13078         * modules/strtoumax (Files): Add lib/strtoimax.c.
13079         (Depends-on): Remove strtoimax and add verify.
13080
13081         inttypes-incomplete: new module
13082         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
13083         all but the PRI* and SCN* parts of gl_INTTYPES_H.
13084         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
13085         of gl_INTTYPES_H.
13086         (gl_INTTYPES_H): Rewrite in terms of these new macros.
13087         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
13088         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
13089         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
13090         * modules/strtoumax, modules/xstrtol (Depends-on):
13091         Depend on inttypes-incomplete, not inttypes.
13092         * modules/inttypes-incomplete: New module, containing the contents
13093         of the old modules/inttypes module, except that the Files: section
13094         omits m4/inttypes-pri.m4, and the configure.ac section invokes
13095         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
13096         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
13097         (Depends-on): Depend only on inttypes-incomplete.
13098         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
13099
13100         inttypes: omit now-redundant strtoimax and strtoumax work
13101         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
13102         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
13103
13104         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
13105         This supports apps that need pointers to strtoimax and strtoumax,
13106         and ports to HP-UX 11.00 64.bit, which has macros that expand to
13107         nonexistent functions.  See
13108         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
13109         et seq.
13110         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
13111         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
13112         a macro.
13113         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
13114
13115 2011-04-25  Simon Josefsson  <simon@josefsson.org>
13116
13117         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
13118
13119 2011-04-25  Bruno Haible  <bruno@clisp.org>
13120
13121         strtol, strtoul: Mark modules as obsolete.
13122         * modules/strtol (Status, Notice): New sections.
13123         * modules/strtoul (Status, Notice): New sections.
13124
13125 2011-04-25  Bruno Haible  <bruno@clisp.org>
13126
13127         strtod: Remove check for strtod, unless supporting old platforms.
13128         * modules/strtod-obsolete: New file.
13129         * m4/strtod-obsolete.m4: New file.
13130         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
13131         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
13132         * modules/strtod (Depends-on): Add strtod-obsolete.
13133         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
13134
13135 2011-04-25  Bruno Haible  <bruno@clisp.org>
13136
13137         strcase: Make module obsolete.
13138         * modules/strcase (Status, Notice): New sections.
13139
13140 2011-04-25  Bruno Haible  <bruno@clisp.org>
13141
13142         dup2: Remove check for dup2, unless supporting old obsolete platforms.
13143         * modules/dup2-obsolete: New file.
13144         * m4/dup2-obsolete.m4: New file.
13145         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
13146         gl_FUNC_DUP2_OBSOLETE is not also defined.
13147         * modules/dup2 (Depends-on): Add dup2-obsolete.
13148         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
13149
13150 2011-04-25  Bruno Haible  <bruno@clisp.org>
13151
13152         strnlen: Avoid memchr related link error on old obsolete platforms.
13153         * modules/memchr-obsolete: New file.
13154         * m4/memchr-obsolete.m4: New file.
13155         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
13156         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
13157         * modules/memchr (Depends-on): Add memchr-obsolete.
13158         * modules/strnlen (Depends-on): Likewise.
13159         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
13160
13161 2011-04-25  Jim Meyering  <meyering@redhat.com>
13162
13163         maint.mk: makefile_at_at_check extend and clean up
13164         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
13165         in addition to */Makefile.am.
13166         Exempt legitimate uses of @VAR@ notation, e.g.,
13167         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
13168         Remove obsolete coreutils-specific comment.
13169         Prompted by discussion here:
13170         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
13171
13172 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
13173
13174         strtoul: remove dependency on strtol
13175         This is so that 'configure' need not check for strtol merely because
13176         the application needs strtoul.
13177         * modules/strtoul (Files): Add lib/strtol.c.
13178         (Depends-on): Remove strtol.
13179
13180         strtoull: remove dependency on strtoul
13181         This is like the strtoll change.
13182         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
13183         (Depends-on): Remove strtoul.
13184
13185         strtoll: remove dependency on strtol
13186         This is so that 'configure' need not check for strtol merely because
13187         the application needs strtoll.
13188         * modules/strtoll (Files): Add lib/strtol.c.
13189         (Depends-on): Remove strtol.
13190
13191 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13192
13193         inttypes: Move some configure check to module 'imaxdiv'.
13194         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
13195         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
13196         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
13197
13198 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13199
13200         inttypes: Move some configure check to module 'imaxabs'.
13201         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
13202         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
13203         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
13204
13205 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13206
13207         inttypes: Remove configure tests that are not needed since 2009-12-31.
13208         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
13209         gl_cv_header_working_inttypes_h.
13210
13211 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13212
13213         * modules/strnlen (Depends-on): Remove memchr.
13214         The strnlen implementation doesn't need the memchr module's fixes; see
13215         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
13216
13217         strtol: remove dependency on wchar
13218         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
13219         * modules/strtol (Depends-on): Remove wchar.
13220
13221 2011-04-21  Eric Blake  <eblake@redhat.com>
13222
13223         passfd: fix test regression on Linux
13224         * modules/passfd-tests (configure.ac): Correct socketpair check.
13225
13226         passfd: speed up configure and drop unused code
13227         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
13228         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
13229         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
13230         Instead of probing at configure for unix_scm_rights_bsd44_way,
13231         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
13232         check to a struct member probe.
13233         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
13234         (sendfd, recvfd): Update preprocessor checks.
13235         * modules/passfd (Files): Reflect rename, and drop unused file.
13236         (Depends-on): Drop unused dependency.
13237
13238         passfd: allow compilation on mingw
13239         * modules/sys_socket (Depends-on): Add sys_uio.
13240         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
13241         iovec and a minimal struct msghdr.
13242         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
13243         * tests/test-sys_socket.c (main): Enhance test.
13244         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
13245         guaranteed to provide what we need.
13246         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
13247         * modules/passfd-tests (Depends-on): Add sys_wait.
13248         * tests/test-passfd.c (main): Skip test on mingw, for now.
13249         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
13250         partial 'struct msghdr' implementation.
13251
13252         sys_uio: new module
13253         * modules/sys_uio: New module.
13254         * modules/sys_uio-tests: Likewise.
13255         * lib/sys_uio.in.h: New file.
13256         * m4/sys_uio_h.m4: Likewise.
13257         * tests/test-sys_uio.c: Likewise.
13258         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
13259         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
13260
13261 2011-04-20  Jim Meyering  <meyering@redhat.com>
13262
13263         useless-if-before-free: avoid false-positive
13264         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
13265         disjunct so that it too requires a terminating ";".  Without that,
13266         this script would identify as useless one statement from gcc that
13267         was not:
13268           if (aligned_ptr)
13269             free (((void **) aligned_ptr) [-1]);
13270
13271 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
13272
13273         doc: update users.txt.
13274         * users.txt: Add barcode.
13275
13276 2011-04-19  Bruno Haible  <bruno@clisp.org>
13277
13278         ioctl: Remove link dependency on native Windows.
13279         * lib/fd-hook.h: Renamed from lib/close-hook.h.
13280         (gl_close_fn, gl_ioctl_fn): New types.
13281         (struct fd_hook): Renamed from struct close_hook. Change type of
13282         private_close_fn field. Add private_ioctl_fn field.
13283         (close_hook_fn): Add parameter for primary close method.
13284         (execute_close_hooks, execute_all_close_hooks): Likewise.
13285         (ioctl_hook_fn): New type.
13286         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
13287         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13288         argument.
13289         (unregister_fd_hook): Renamed from unregister_close_hook.
13290         * lib/fd-hook.c: Renamed from lib/close-hook.c.
13291         Don't include <unistd.h>.
13292         (close): Remove undef.
13293         (anchor): Update.
13294         (execute_close_hooks): Add argument for primary close method.
13295         (execute_all_close_hooks): Likewise.
13296         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
13297         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13298         argument. Allow each argument to be NULL.
13299         (unregister_fd_hook): Renamed from unregister_close_hook.
13300         * lib/close.c (rpl_close): Pass 'close' function pointer to
13301         execute_all_close_hooks.
13302         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
13303         (primary_ioctl): New function.
13304         (ioctl): Don't call ioctlsocket here. Instead, call
13305         execute_all_ioctl_hooks.
13306         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
13307         close method.
13308         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
13309         (fd_sockets_hook): Renamed from close_sockets_hook.
13310         (gl_sockets_startup, gl_sockets_cleanup): Update.
13311         * modules/fd-hook: Renamed from modules/close-hook. Update.
13312         * modules/close (Depends-on): Add fd-hook, remove close-hook.
13313         * modules/sockets (Depends-on): Likewise.
13314         * modules/ioctl (Depends-on): Add fd-hook.
13315         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
13316         GNULIB_SOCKET.
13317
13318 2011-04-19  Bruno Haible  <bruno@clisp.org>
13319
13320         Move the support of O_NONBLOCK in open() to the 'open' module.
13321         * modules/nonblocking (Depends-on): Remove 'open'.
13322         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
13323         gl_cv_have_open_O_NONBLOCK.
13324         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
13325         O_NONBLOCK support.
13326         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
13327
13328 2011-04-17  Bruno Haible  <bruno@clisp.org>
13329
13330         pipe2: Simplify code.
13331         * lib/pipe2.c (pipe2): Reduce code duplication.
13332
13333 2011-04-17  Bruno Haible  <bruno@clisp.org>
13334
13335         nonblocking: Add comment.
13336         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
13337
13338 2011-04-17  Bruno Haible  <bruno@clisp.org>
13339
13340         nonblocking: Add tests for sockets.
13341         * tests/test-nonblocking-socket.sh: New file.
13342         * tests/test-nonblocking-socket-main.c: New file.
13343         * tests/test-nonblocking-socket-child.c: New file.
13344         * tests/test-nonblocking-socket.h: New file.
13345         * tests/socket-server.h: New file.
13346         * tests/socket-client.h: New file.
13347         * modules/nonblocking-socket-tests: New file.
13348         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
13349
13350 2011-04-17  Bruno Haible  <bruno@clisp.org>
13351
13352         nonblocking: Add tests for pipes.
13353         * tests/test-nonblocking-pipe.sh: New file.
13354         * tests/test-nonblocking-pipe-main.c: New file.
13355         * tests/test-nonblocking-pipe-child.c: New file.
13356         * tests/test-nonblocking-pipe.h: New file.
13357         * tests/test-nonblocking-writer.h: New file.
13358         * tests/test-nonblocking-reader.h: New file.
13359         * tests/test-nonblocking-misc.h: New file.
13360         * modules/nonblocking-pipe-tests: New file.
13361         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
13362
13363 2011-04-16  Bruno Haible  <bruno@clisp.org>
13364
13365         gettext: Clarify the needed programmer actions.
13366         * modules/gettext (Notice): New field.
13367         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13368
13369 2011-04-16  Bruno Haible  <bruno@clisp.org>
13370
13371         strchrnul: Tweak last commit.
13372         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
13373         bug.
13374         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
13375         as in _GL_FUNCDECL_SYS.
13376         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
13377         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
13378
13379 2011-04-15  Eric Blake  <eblake@redhat.com>
13380
13381         strchrnul: work around cygwin bug
13382         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
13383         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
13384         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
13385         * modules/string (Makefile.am): Substitute it.
13386         * lib/string.in.h (strchrnul): Use it.
13387
13388 2011-04-15  Bruno Haible  <bruno@clisp.org>
13389
13390         Don't require lib/stdio-write.c when only module 'stdio' is used.
13391         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
13392         invocation.
13393         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
13394
13395 2011-04-14  Bruno Haible  <bruno@clisp.org>
13396
13397         Support non-blocking pipe I/O in read() on native Windows.
13398         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
13399         (read): New declaration.
13400         * lib/read.c: New file.
13401         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
13402         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
13403         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
13404         vscanf): New declarations.
13405         * lib/stdio-read.c: New file.
13406         * m4/read.m4: New file.
13407         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
13408         REPLACE_READ.
13409         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
13410         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13411         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
13412         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
13413         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
13414         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13415         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13416         * modules/read: New file.
13417         * modules/nonblocking (Files): Add lib/stdio-read.c.
13418         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
13419         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
13420         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13421         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13422         * modules/pread (Depends-on): Add read.
13423         * modules/safe-read (Depends-on): Likewise.
13424         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
13425         gets, scanf, vfscanf, vscanf): Verify signatures.
13426         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
13427         problem with non-blocking pipes.
13428         * doc/posix-functions/fgetc.texi: Likewise.
13429         * doc/posix-functions/fgets.texi: Likewise.
13430         * doc/posix-functions/fread.texi: Likewise.
13431         * doc/posix-functions/fscanf.texi: Likewise.
13432         * doc/posix-functions/getc.texi: Likewise.
13433         * doc/posix-functions/getchar.texi: Likewise.
13434         * doc/posix-functions/gets.texi: Likewise.
13435         * doc/posix-functions/scanf.texi: Likewise.
13436         * doc/posix-functions/vfscanf.texi: Likewise.
13437         * doc/posix-functions/vscanf.texi: Likewise.
13438
13439 2011-04-14  Bruno Haible  <bruno@clisp.org>
13440
13441         Support non-blocking pipe I/O in write() on native Windows.
13442         * lib/write.c (rpl_write): Split a write request that failed merely
13443         because the byte count was larger than the pipe buffer's size.
13444         * doc/posix-functions/write.texi: Mention the problem with large byte
13445         counts.
13446
13447 2011-04-14  Bruno Haible  <bruno@clisp.org>
13448
13449         wchar: Ensure that wchar_t gets defined on uClibc.
13450         * lib/wchar.in.h: On uClibc, include <stddef.h>.
13451         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
13452
13453 2011-04-13  Bruno Haible  <bruno@clisp.org>
13454
13455         safe-write, full-read: Avoid unnecessary compilation units.
13456         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
13457         (Depends-on): Remove safe-read. Add ssize_t.
13458         * modules/full-read (Files): Add lib/full-write.c.
13459         (Depends-on): Add full-write.
13460
13461 2011-04-13  Bruno Haible  <bruno@clisp.org>
13462
13463         Support non-blocking pipe I/O and SIGPIPE in pwrite().
13464         * modules/pwrite (Depends-on): Add 'write'.
13465
13466 2011-04-13  Bruno Haible  <bruno@clisp.org>
13467
13468         Support non-blocking pipe I/O in write() on native Windows.
13469         * lib/unistd.in.h (write): Enable replacement also if
13470         GNULIB_UNISTD_H_NONBLOCKING is 1.
13471         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
13472         (rpl_write): When failing to write on a non-blocking pipe, change
13473         errno from ENOSPC to EAGAIN.
13474         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
13475         putchar, puts, vfprintf, vprintf): Enable replacement also if
13476         GNULIB_STDIO_H_NONBLOCKING is 1.
13477         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
13478         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
13479         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
13480         CALL_WITH_SIGPIPE_EMULATION.
13481         (CALL_WITH_SIGPIPE_EMULATION): Use them.
13482         * m4/nonblocking.m4: New file.
13483         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
13484         for non-blocking I/O support.
13485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13486         GNULIB_UNISTD_H_NONBLOCKING.
13487         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
13488         required for non-blocking I/O support.
13489         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
13490         * modules/nonblocking (Files): Add m4/nonblocking.m4,
13491         lib/stdio-write.c, m4/asm-underscore.m4.
13492         (Depends-on): Add stdio, unistd.
13493         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
13494         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
13495         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
13496         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
13497         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
13498         problem with non-blocking pipes.
13499         * doc/posix-functions/fputc.texi: Likewise.
13500         * doc/posix-functions/fputs.texi: Likewise.
13501         * doc/posix-functions/fwrite.texi: Likewise.
13502         * doc/posix-functions/printf.texi: Likewise.
13503         * doc/posix-functions/putc.texi: Likewise.
13504         * doc/posix-functions/putchar.texi: Likewise.
13505         * doc/posix-functions/puts.texi: Likewise.
13506         * doc/posix-functions/vfprintf.texi: Likewise.
13507         * doc/posix-functions/vprintf.texi: Likewise.
13508         * doc/posix-functions/write.texi: Likewise.
13509
13510 2011-04-10  Jim Meyering  <meyering@redhat.com>
13511
13512         maint.mk: prohibit doubled words
13513         Detect them also when they're separated by a newline.
13514         There are 3 ways to customize it:
13515           - disable the test on a per file basis, as usual with rules using
13516             $(VC_LIST_EXCEPT)
13517           - replace the default doubled-word-selecting regexp (affects all files)
13518           - ignore a particular file-vs-doubled-word match
13519         I nearly used that last one to ignore the "is is" match in
13520         coreutils' NEWS file, since the text was "ls -is is ..."
13521         To do that, I would have added this line to cfg.mk:
13522           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
13523         but it would have ignored any "is is" match in NEWS.
13524         Low probability, but still...
13525         Instead, I changed the text, slightly:
13526           -  ls -is is now consistent with ls -lis in ignoring values returned
13527           +  "ls -is" is now consistent with ls -lis in ignoring values returned
13528         * top/maint.mk (prohibit_double_word_RE_): Provide default.
13529         (prohibit_doubled_word_): Define.
13530         (sc_prohibit_doubled_word): New rule.
13531         (sc_prohibit_the_the): Remove.  Subsumed by the above.
13532
13533 2011-04-10  Jim Meyering  <meyering@redhat.com>
13534
13535         maint: fix doubled-word typo in comment
13536         * m4/gethostname.m4: s/is is/it is/
13537         * m4/getdomainname.m4: Likewise.
13538
13539 2011-04-10  Jim Meyering  <meyering@redhat.com>
13540
13541         maint: remove doubled word: s/it it/it/
13542         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
13543
13544 2011-04-10  Jim Meyering  <meyering@redhat.com>
13545
13546         maint.mk: remove useless semicolon and backslash
13547         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
13548         semicolon and backslash.
13549
13550 2011-04-10  Bruno Haible  <bruno@clisp.org>
13551
13552         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
13553         * modules/stdint-tests (Depends-on): Add wchar.
13554
13555 2011-04-10  Jim Meyering  <meyering@redhat.com>
13556
13557         maint: remove doubled words in comments, e.g., s/a a/a/
13558         * lib/strptime.c (day_of_the_week): s/the the/the/
13559         * tests/test-chown.h (test_chown): s/a a/a/
13560
13561         test-chown.h: correct a cast
13562         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
13563         when the destination is a stat.st_gid.
13564
13565 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
13566
13567         getaddrinfo: Fix test for sa_len member.
13568         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
13569         include <sys/types.h> before <sys/socket.h>.
13570
13571 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13572
13573         maint: change "can not" to "cannot"
13574         * doc/posix-functions/iconv.texi (iconv): This one crossed line
13575         boundaries.
13576
13577 2011-04-09  Jim Meyering  <meyering@redhat.com>
13578
13579         maint: change "a a" to "a"
13580         * tests/test-lchown.h (test_lchown): s/a a/a/
13581
13582         maint.mk: prohibit \<the the\>
13583         * top/maint.mk (sc_prohibit_the_the): New rule.
13584
13585         maint: fix "the the" in comment
13586         * lib/count-one-bits.h: s/the the/the/
13587
13588         maint: change "can not" to "cannot"
13589         But do not change the occurrences in maintain.texi or in
13590         build-aux/po/Makefile.in.in, which I presume comes from gettext.
13591         * doc/gnulib-tool.texi: s/can not/cannot/
13592         * doc/posix-functions/accept.texi (accept): Likewise.
13593         * doc/posix-functions/socket.texi (socket): Likewise.
13594         * lib/mbrtowc.c: Likewise.
13595
13596         maint.mk: prohibit use of "can not"
13597         * top/maint.mk (sc_prohibit_can_not): New rule.
13598         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
13599
13600 2011-04-09  Bruno Haible  <bruno@clisp.org>
13601
13602         careadlinkat: Guard against misuse of careadlinkatcwd.
13603         * lib/careadlinkat.c: Include <stdlib.h>.
13604         (careadlinkatcwd): Check that the fd argument is as expected.
13605
13606 2011-04-09  Bruno Haible  <bruno@clisp.org>
13607
13608         careadlinkat: Use common coding style.
13609         * lib/careadlinkat.c: Move gnulib includes after system includes.
13610
13611 2011-04-09  Bruno Haible  <bruno@clisp.org>
13612
13613         careadlinkat: Clarify specification.
13614         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
13615         (careadlinkatcwd): Add comment.
13616         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
13617
13618 2011-04-09  Bruno Haible  <bruno@clisp.org>
13619
13620         areadlinkat: Avoid link error on many platforms.
13621         * modules/areadlinkat (Depends-on): Add areadlink.
13622
13623 2011-04-09  Bruno Haible  <bruno@clisp.org>
13624
13625         allocator, careadlinkat: Fix double-inclusion guard.
13626         * lib/allocator.h: Fix double-inclusion guard.
13627         * lib/careadlinkat.h: Likewise.
13628
13629 2011-04-09  Bruno Haible  <bruno@clisp.org>
13630
13631         relocatable-prog-wrapper: Update after module 'areadlink' changed.
13632         * lib/relocwrapper.c: Update dependencies hierarchy.
13633         * build-aux/install-reloc: Update list of files to be compiled.
13634         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
13635         lib/allocator.[hc].
13636
13637 2011-04-08  Eric Blake  <eblake@redhat.com>
13638
13639         strftime: silence gnulib-tool warning
13640         * modules/strftime-tests (Depends-on): Drop automatic dependency.
13641
13642 2011-04-08  Bruno Haible  <bruno@clisp.org>
13643
13644         verify: Fix syntax error with GCC 4.6 in C++ mode.
13645         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
13646         (HAVE_STATIC_ASSERT): New macro.
13647         (verify_true, verify): Use 'static_assert' if it is supported and
13648         '_Static_assert' is not supported.
13649
13650 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
13651
13652         allocator: New module.
13653         * modules/allocator, lib/allocator.c: New files.
13654         * lib/allocator.h (stdlib_allocator): New decl.
13655         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
13656         Remove.  Do not include <stdlib.h>.
13657         (careadlinkat): Use stdlib_allocator instead of rolling our own.
13658         * modules/careadlinkat (Files): Remove lib/allocator.h.
13659         (Depends-on): Add allocator.
13660
13661         stdlib: let modules use system malloc, realloc
13662         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
13663         if !_GL_USE_STDLIB_ALLOC.
13664         (malloc, realloc): Limit this change to a smaller scope.
13665
13666         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
13667         (malloc, realloc): Don't #undef; no longer needed.
13668         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13669         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13670         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13671         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13672         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13673         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13674         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13675         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13676
13677         careadlinkat: rename members to avoid problem
13678         * lib/allocator.h (struct allocator): Rename members from
13679         malloc/realloc to allocate/reallocate, to avoid problems if malloc
13680         and realloc are #define'd.  Reported by Eric Blake in
13681         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
13682         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
13683
13684 2011-04-08  Eric Blake  <eblake@redhat.com>
13685
13686         nonblocking: reduce dependency
13687         * tests/test-nonblocking.c: Only test sockets when in use.
13688         * modules/nonblocking-tests (Depends-on): Drop socket.
13689         (Makefile.am): Link even if sockets are not present.
13690         * modules/pipe2-tests (Makefile.am): Likewise.
13691         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
13692
13693         pipe2: fix O_NONBLOCK support on mingw
13694         * modules/pipe2 (Depends-on): Add nonblocking.
13695         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
13696         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
13697         * tests/test-nonblocking.c (main): Likewise.
13698         * modules/pipe2-tests (Makefile.am): Avoid link failure.
13699
13700         fcntl-h: fix O_ACCMODE on cygwin
13701         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
13702         * lib/fcntl.in.h (O_ACCMODE): Fix it.
13703
13704         pipe-filter: drop O_NONBLOCK workarounds
13705         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
13706         * modules/pipe-filter-ii (Depends-on): Likewise.
13707         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
13708
13709         nonblocking: provide O_NONBLOCK for mingw
13710         * modules/nonblocking (Depends-on): Add open.
13711         (configure.ac): Set new witness macro.
13712         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
13713         * modules/fcntl-h (Makefile.am): Substitute it.
13714         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
13715         nonblocking module is in use.
13716         * lib/nonblocking.c: Adjust portability test.
13717         * lib/open.c (open): Don't let native open see gnulib flag.
13718         * tests/test-fcntl-h.c (main): Enhance test.
13719         * tests/test-open.h (test_open): Likewise.
13720         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
13721
13722         careadlinkat: fix compilation error on mingw
13723         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
13724         within struct allocator.
13725
13726 2011-04-06  Eric Blake  <eblake@redhat.com>
13727
13728         binary-io: relicense under LGPLv2+
13729         * modules/binary-io (License): Relax to LGPLv2+.
13730         Requested for libvirt, and required by pipe2.
13731
13732 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
13733
13734         verify: use _Static_assert if available
13735         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
13736         (verify_true, verify): Use it if available.  This generates better
13737         diagnostics with GCC 4.6.0 and later.
13738
13739 2011-04-05  Bruno Haible  <bruno@clisp.org>
13740
13741         Remove leftover generated .h files after config.status changed.
13742
13743         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
13744         GL_GENERATE_ALLOCA_H.
13745         * modules/alloca-opt (Makefile.am): Remove alloca.h if
13746         GL_GENERATE_ALLOCA_H evaluates to false.
13747
13748         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
13749         GL_GENERATE_ARGZ_H.
13750         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
13751         evaluates to false.
13752
13753         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
13754         GL_GENERATE_BYTESWAP_H.
13755         * modules/byteswap (Makefile.am): Remove byteswap.h if
13756         GL_GENERATE_BYTESWAP_H evaluates to false.
13757
13758         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
13759         GL_GENERATE_ERRNO_H.
13760         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
13761         evaluates to false.
13762
13763         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
13764         GL_GENERATE_FLOAT_H.
13765         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
13766         evaluates to false.
13767
13768         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
13769         GL_GENERATE_FNMATCH_H.
13770         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
13771         GL_GENERATE_FNMATCH_H evaluates to false.
13772
13773         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
13774         GL_GENERATE_GLOB_H.
13775         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
13776         evaluates to false.
13777
13778         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
13779         automake conditional GL_GENERATE_ICONV_H.
13780         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
13781         evaluates to false.
13782
13783         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
13784         GL_GENERATE_NETINET_IN_H.
13785         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
13786         GL_GENERATE_NETINET_IN_H evaluates to false.
13787
13788         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
13789         conditional GL_GENERATE_PTHREAD_H.
13790         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
13791         * modules/pthread (Makefile.am): Remove pthread.h if
13792         GL_GENERATE_PTHREAD_H evaluates to false.
13793
13794         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
13795         GL_GENERATE_SCHED_H.
13796         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
13797         evaluates to false.
13798
13799         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
13800         conditional GL_GENERATE_SELINUX_CONTEXT_H.
13801         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
13802         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
13803
13804         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
13805         GL_GENERATE_STDARG_H.
13806         * modules/stdarg (Makefile.am): Remove stdarg.h if
13807         GL_GENERATE_STDARG_H evaluates to false.
13808
13809         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
13810         GL_GENERATE_STDBOOL_H.
13811         * modules/stdbool (Makefile.am): Remove stdbool.h if
13812         GL_GENERATE_STDBOOL_H evaluates to false.
13813
13814         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
13815         conditional GL_GENERATE_STDDEF_H.
13816         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
13817         * modules/stddef (Makefile.am): Remove stddef.h if
13818         GL_GENERATE_STDDEF_H evaluates to false.
13819
13820         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
13821         GL_GENERATE_STDINT_H.
13822         * modules/stdint (Makefile.am): Remove stdint.h if
13823         GL_GENERATE_STDINT_H evaluates to false.
13824
13825         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
13826         GL_GENERATE_SYSEXITS_H.
13827         * modules/sysexits (Makefile.am): Remove sysexits.h if
13828         GL_GENERATE_SYSEXITS_H evaluates to false.
13829
13830         Reported by Karl Berry and Ralf Wildenhues.
13831
13832 2011-04-05  Bruno Haible  <bruno@clisp.org>
13833
13834         Ensure to rebuild generated .h files when config.status has changed.
13835         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
13836         config.status.
13837         * modules/ctype (Makefile.am): Likewise.
13838         * modules/dirent (Makefile.am): Likewise.
13839         * modules/errno (Makefile.am): Likewise.
13840         * modules/fcntl-h (Makefile.am): Likewise.
13841         * modules/float (Makefile.am): Likewise.
13842         * modules/getopt-posix (Makefile.am): Likewise.
13843         * modules/glob (Makefile.am): Likewise.
13844         * modules/iconv-h (Makefile.am): Likewise.
13845         * modules/inttypes (Makefile.am): Likewise.
13846         * modules/langinfo (Makefile.am): Likewise.
13847         * modules/locale (Makefile.am): Likewise.
13848         * modules/math (Makefile.am): Likewise.
13849         * modules/netdb (Makefile.am): Likewise.
13850         * modules/netinet_in (Makefile.am): Likewise.
13851         * modules/poll-h (Makefile.am): Likewise.
13852         * modules/pthread (Makefile.am): Likewise.
13853         * modules/pty (Makefile.am): Likewise.
13854         * modules/sched (Makefile.am): Likewise.
13855         * modules/search (Makefile.am): Likewise.
13856         * modules/selinux-h (Makefile.am): Likewise.
13857         * modules/signal (Makefile.am): Likewise.
13858         * modules/spawn (Makefile.am): Likewise.
13859         * modules/stdarg (Makefile.am): Likewise.
13860         * modules/stdbool (Makefile.am): Likewise.
13861         * modules/stddef (Makefile.am): Likewise.
13862         * modules/stdint (Makefile.am): Likewise.
13863         * modules/stdio (Makefile.am): Likewise.
13864         * modules/stdlib (Makefile.am): Likewise.
13865         * modules/string (Makefile.am): Likewise.
13866         * modules/strings (Makefile.am): Likewise.
13867         * modules/sys_file (Makefile.am): Likewise.
13868         * modules/sys_ioctl (Makefile.am): Likewise.
13869         * modules/sys_select (Makefile.am): Likewise.
13870         * modules/sys_socket (Makefile.am): Likewise.
13871         * modules/sys_stat (Makefile.am): Likewise.
13872         * modules/sys_time (Makefile.am): Likewise.
13873         * modules/sys_times (Makefile.am): Likewise.
13874         * modules/sys_utsname (Makefile.am): Likewise.
13875         * modules/sys_wait (Makefile.am): Likewise.
13876         * modules/sysexits (Makefile.am): Likewise.
13877         * modules/termios (Makefile.am): Likewise.
13878         * modules/time (Makefile.am): Likewise.
13879         * modules/unistd (Makefile.am): Likewise.
13880         * modules/wchar (Makefile.am): Likewise.
13881         * modules/wctype-h (Makefile.am): Likewise.
13882         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
13883
13884 2011-04-05  Bruno Haible  <bruno@clisp.org>
13885
13886         pipe2: Relicense under LGPLv2+.
13887         * modules/pipe2 (License): Change to LGPLv2+.
13888         Requested by Eric Blake, for libvirt.
13889
13890 2011-04-05  Bruce Korb  <bkorb@gnu.org>
13891
13892         bootstrap: compute gnulib_extra_files after updating build_aux
13893         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
13894         change build_aux or also supply gnulib_extra_files.  Handle correctly.
13895
13896 2011-04-05  Eric Blake  <eblake@redhat.com>
13897
13898         bootstrap: preserve git whitelist item sorting
13899         * build-aux/bootstrap (sort_patterns): New function.
13900         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
13901
13902 2011-04-05  Simon Josefsson  <simon@josefsson.org>
13903
13904         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
13905         sc_space_tab check.
13906
13907 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
13908
13909         areadlink, areadlinkat: rewrite in terms of careadlinkat
13910         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
13911         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
13912         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
13913         (malloc, realloc): Remove #undefs.
13914         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
13915         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
13916         readlink, ssize_t, stdint, unistd.
13917         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
13918         areadlink, stdint.
13919
13920         careadlinkat: new module
13921         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
13922         * modules/careadlinkat: New files, written by me with
13923         a review and feedback from Ben Pfaff in
13924         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
13925
13926 2011-04-01  Bruno Haible  <bruno@clisp.org>
13927
13928         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
13929         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
13930         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
13931         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
13932         Reported by Bruce Korb <bruce.korb@gmail.com>.
13933
13934 2011-04-01  Bruno Haible  <bruno@clisp.org>
13935
13936         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
13937         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
13938         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
13939         * modules/wcpcpy (Depends-on): Add extensions.
13940         * modules/wcpncpy (Depends-on): Likewise.
13941         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
13942         systems.
13943         * doc/posix-functions/wcpncpy.texi: Likewise.
13944         * doc/posix-functions/wcwidth.texi: Likewise.
13945
13946 2011-03-31  Eric Blake  <eblake@redhat.com>
13947
13948         nonblocking: fix mingw test failures
13949         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
13950         non-blocking flag on regular file.
13951         (get_nonblocking_flag): Set errno on invalid fd.
13952         * tests/test-nonblocking.c (main): Avoid test failure on
13953         directories if fchdir is not active.
13954         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
13955
13956 2011-03-31  Bruno Haible  <bruno@clisp.org>
13957
13958         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
13959         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
13960         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
13961         Reported by Simon Josefsson <simon@josefsson.org>.
13962
13963 2011-03-31  Bruno Haible  <bruno@clisp.org>
13964         and Eric Blake  <eblake@redhat.com>
13965
13966         nonblocking: new module
13967         * modules/nonblocking: New module.
13968         * modules/nonblocking-tests: Likewise.
13969         * lib/nonblocking.h: New file.
13970         * lib/nonblocking.c: Likewise.
13971         * tests/test-nonblocking.c: New test.
13972         * lib/ioctl.c (ioctl) [mingw]: Update comment.
13973
13974 2011-03-30  Bruno Haible  <bruno@clisp.org>
13975
13976         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
13977         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
13978         instead of 'printf' format for GCC >= 4.4.
13979         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
13980         (fprintf, printf, vfprintf, vprintf): Declare with
13981         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
13982         the system's vfprintf() function.
13983         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
13984
13985 2011-03-30  Eric Blake  <eblake@redhat.com>
13986
13987         passfd: fix scoping bug
13988         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
13989         before sendmsg/recvmsg.
13990
13991         passfd: standardize coding conventions
13992         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
13993         can be learned at compile time.
13994         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
13995         ifdefs.
13996         (sendfd, recvfd): Follow gnulib code conventions.
13997
13998         passfd: fix incorrect sendmsg arguments
13999         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
14000         incorrect msg_controllen value.
14001         * modules/passfd-tests (Depends-on): Check for alarm.
14002         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
14003         Reported by Bastien ROUCARIES.
14004
14005 2011-03-30  Bruno Haible  <bruno@clisp.org>
14006
14007         c-strcasestr: Relicense under LGPLv2+.
14008         * modules/c-strcasestr (License): Change to LGPLv2+.
14009         Requested by Eric Blake, for libvirt.
14010
14011 2011-03-30  Simon Josefsson  <simon@josefsson.org>
14012
14013         * users.txt: Add libidn2.  Fix libtasn1 link.
14014
14015 2011-03-30  Jim Meyering  <meyering@redhat.com>
14016
14017         tests: readlink* ("",... fails with EINVAL on newer kernels
14018         readlink and readlinkat have typically failed with ENOENT for
14019         the invalid, empty file name,  "".  However, with the advent
14020         of linux-2.6.39, they fail with EINVAL.
14021         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
14022         when operating on the empty file name.
14023         * tests/test-readlink.h (test_readlink): Likewise.
14024
14025 2011-03-29  Bruno Haible  <bruno@clisp.org>
14026
14027         Relicense some modules under LGPLv2+, for libidn2.
14028         * modules/array-mergesort (License): Change to LGPLv2+.
14029         * modules/c-strcaseeq (License): Likewise.
14030         * modules/striconveh (License): Likewise.
14031         * modules/striconveha (License): Likewise.
14032         * modules/uniconv/base (License): Likewise.
14033         * modules/uniconv/u8-conv-from-enc (License): Likewise.
14034         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
14035         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
14036         * modules/unictype/base (License): Likewise.
14037         * modules/unictype/bidiclass-of (License): Likewise.
14038         * modules/unictype/category-M (License): Likewise.
14039         * modules/unictype/category-none (License): Likewise.
14040         * modules/unictype/category-of (License): Likewise.
14041         * modules/unictype/category-test (License): Likewise.
14042         * modules/unictype/category-test-withtable (License): Likewise.
14043         * modules/unictype/combining-class (License): Likewise.
14044         * modules/unictype/joiningtype-of (License): Likewise.
14045         * modules/unictype/scripts (License): Likewise.
14046         * modules/uninorm/base (License): Likewise.
14047         * modules/uninorm/canonical-decomposition (License): Likewise.
14048         * modules/uninorm/composition (License): Likewise.
14049         * modules/uninorm/decompose-internal (License): Likewise.
14050         * modules/uninorm/decomposition-table (License): Likewise.
14051         * modules/uninorm/nfc (License): Likewise.
14052         * modules/uninorm/nfd (License): Likewise.
14053         * modules/uninorm/u32-normalize (License): Likewise.
14054         * modules/unistr/base (License): Likewise.
14055         * modules/unistr/u32-cpy (License): Likewise.
14056         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
14057         * modules/unistr/u32-to-u8 (License): Likewise.
14058         * modules/unistr/u32-uctomb (License): Likewise.
14059         * modules/unistr/u8-check (License): Likewise.
14060         * modules/unistr/u8-mblen (License): Likewise.
14061         * modules/unistr/u8-mbtouc (License): Likewise.
14062         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
14063         * modules/unistr/u8-mbtoucr (License): Likewise.
14064         * modules/unistr/u8-prev (License): Likewise.
14065         * modules/unistr/u8-strlen (License): Likewise.
14066         * modules/unistr/u8-to-u32 (License): Likewise.
14067         * modules/unistr/u8-uctomb (License): Likewise.
14068         * modules/unitypes (License): Likewise.
14069         Requested by Simon Josefsson.
14070
14071 2011-03-29  Simon Josefsson  <simon@josefsson.org>
14072
14073         lib-symbol-visibility: Add a notice.
14074         * modules/lib-symbol-visibility (Notice): New field.
14075
14076 2011-03-29  Bruno Haible  <bruno@clisp.org>
14077
14078         getaddrinfo: Doc fix.
14079         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
14080         section "fixed in Gnulib".
14081
14082 2011-03-28  Simon Josefsson  <simon@josefsson.org>
14083
14084         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
14085         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
14086
14087 2011-03-26  Bruno Haible  <bruno@clisp.org>
14088
14089         unictype/property-byname: Reduce the number of load-time relocations.
14090         * lib/unictype/pr_byname.c: Include <stdlib.h>.
14091         (UC_PROPERTY_INDEX_*): New enumeration values.
14092         (uc_property_byname): Convert an index from the lookup table to an
14093         uc_property_t.
14094         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
14095         values.
14096
14097 2011-03-26  Bruno Haible  <bruno@clisp.org>
14098
14099         unictype/property-byname: Allow omitted word separators and aliases.
14100         * lib/unictype/pr_byname.gperf: Add property names without word
14101         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
14102         for 'space'.
14103
14104 2011-03-26  Bruno Haible  <bruno@clisp.org>
14105
14106         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
14107         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
14108         also hyphens to space.
14109         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
14110         without spaces.
14111         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
14112
14113 2011-03-26  Bruno Haible  <bruno@clisp.org>
14114
14115         unictype/joiningtype-byname: Recognize long names as well.
14116         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
14117         a long name.
14118         * lib/unictype/joiningtype_byname.c: Include <string.h>,
14119         unictype/joiningtype_byname.h.
14120         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
14121         * lib/unictype/joiningtype_byname.gperf: New file.
14122         * modules/unictype/joiningtype-byname (Files): Add
14123         lib/unictype/joiningtype_byname.gperf.
14124         (Depends-on): Add gperf.
14125         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
14126         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
14127         long names.
14128
14129         Tests for module 'unictype/joiningtype-longname'.
14130         * modules/unictype/joiningtype-longname-tests: New file.
14131         * tests/unictype/test-joiningtype_longname.c: New file.
14132
14133         New module 'unictype/joiningtype-longname'.
14134         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
14135         * lib/unictype/joiningtype_longname.c: New file.
14136         * modules/unictype/joiningtype-longname: New file.
14137         * modules/unictype/joiningtype-all (Depends-on): Add
14138         unictype/joiningtype-longname.
14139
14140 2011-03-26  Bruno Haible  <bruno@clisp.org>
14141
14142         unictype/bidiclass-byname: Recognize long names as well.
14143         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
14144         name.
14145         * lib/unictype/bidi_byname.c: Include <string.h>,
14146         unictype/bidi_byname.h.
14147         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
14148         * lib/unictype/bidi_byname.gperf: New file.
14149         * modules/unictype/bidiclass-byname (Files): Add
14150         lib/unictype/bidi_byname.gperf.
14151         (Depends-on): Add gperf.
14152         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
14153         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
14154         long names.
14155
14156         Tests for module 'unictype/bidiclass-longname'.
14157         * modules/unictype/bidiclass-longname-tests: New file.
14158         * tests/unictype/test-bidi_longname.c: New file.
14159
14160         New module 'unictype/bidiclass-longname'.
14161         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
14162         * lib/unictype/bidi_longname.c: New file.
14163         * modules/unictype/bidiclass-longname: New file.
14164         * modules/unictype/bidiclass-all (Depends-on): Add
14165         unictype/bidiclass-longname.
14166
14167 2011-03-26  Bruno Haible  <bruno@clisp.org>
14168
14169         unictype/bidi*: Rename modules.
14170         * modules/unictype/bidiclass-all: Renamed from
14171         modules/unictype/bidicategory-all.
14172         * modules/unictype/bidiclass-name: Renamed from
14173         modules/unictype/bidiclass-name.
14174         (Description): Update.
14175         * modules/unictype/bidiclass-name-tests: Renamed from
14176         modules/unictype/bidicategory-name-tests.
14177         * modules/unictype/bidiclass-byname: Renamed from
14178         modules/unictype/bidicategory-byname.
14179         (Description): Update.
14180         * modules/unictype/bidiclass-byname-tests: Renamed from
14181         modules/unictype/bidicategory-byname-tests.
14182         * modules/unictype/bidiclass-of: Renamed from
14183         modules/unictype/bidicategory-of.
14184         (Description): Update.
14185         * modules/unictype/bidiclass-of-tests: Renamed from
14186         modules/unictype/bidicategory-of-tests.
14187         * modules/unictype/bidiclass-test: Renamed from
14188         modules/unictype/bidicategory-test.
14189         (Description): Update.
14190         * modules/unictype/bidiclass-test-tests: Renamed from
14191         modules/unictype/bidicategory-test-tests.
14192         * modules/unictype/bidicategory-all: New file, a simple redirection.
14193         * modules/unictype/bidicategory-name: Likewise.
14194         * modules/unictype/bidicategory-byname: Likewise.
14195         * modules/unictype/bidicategory-of: Likewise.
14196         * modules/unictype/bidicategory-test: Likewise.
14197         * modules/unictype/property-bidi-* (Dependencies): Update.
14198         * lib/unictype/bidi_*.c: Update comment.
14199
14200 2011-03-26  Bruno Haible  <bruno@clisp.org>
14201
14202         unictype/bidi*: Rename functions, part 2.
14203         * modules/unictype/bidicategory-name (configure.ac): Update required
14204         libunistring version.
14205         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
14206
14207 2011-03-25  Bruno Haible  <bruno@clisp.org>
14208
14209         New module 'unictype/combining-class-all'.
14210         * modules/unictype/combining-class-all: New file.
14211
14212         Tests for module 'unictype/combining-class-byname'.
14213         * modules/unictype/combining-class-byname-tests: New file.
14214         * tests/unictype/test-combiningclass_byname.c: New file.
14215
14216         New module 'unictype/combining-class-byname'.
14217         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
14218         * lib/unictype/combiningclass_byname.c: New file.
14219         * lib/unictype/combiningclass_byname.gperf: New file.
14220         * modules/unictype/combining-class-byname: New file.
14221
14222         Tests for module 'unictype/combining-class-longname'.
14223         * modules/unictype/combining-class-longname-tests: New file.
14224         * tests/unictype/test-combiningclass_longname.c: New file.
14225
14226         New module 'unictype/combining-class-longname'.
14227         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
14228         * lib/unictype/combiningclass_longname.c: New file.
14229         * modules/unictype/combining-class-longname: New file.
14230
14231         Tests for module 'unictype/combining-class-name'.
14232         * modules/unictype/combining-class-name-tests: New file.
14233         * tests/unictype/test-combiningclass_name.c: New file.
14234
14235         New module 'unictype/combining-class-name'.
14236         * lib/unictype.in.h (uc_combining_class_name): New declaration.
14237         * lib/unictype/combiningclass_name.c: New file.
14238         * modules/unictype/combining-class-name: New file.
14239
14240 2011-03-25  Bruno Haible  <bruno@clisp.org>
14241
14242         unictype/combining-class: Rename source files.
14243         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
14244         of unictype/combining.h.
14245         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
14246         Update.
14247         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
14248         * modules/unictype/combining-class (Description): Fix.
14249         (Files, Makefile.am): Update.
14250         * tests/unictype/test-combiningclass.c: Renamed from
14251         tests/unictype/test-combining.c.
14252         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
14253
14254 2011-03-25  Bruno Haible  <bruno@clisp.org>
14255
14256         unictype: Update list of canonical combining classes.
14257         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
14258
14259 2011-03-25  Bruno Haible  <bruno@clisp.org>
14260
14261         unictype/category-byname: Recognize long names as well.
14262         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
14263         a long name.
14264         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
14265         unictype/categ_byname.h.
14266         (UC_CATEGORY_INDEX_*): New enumeration values.
14267         (uc_general_category_byname): Use uc_general_category_lookup and
14268         convert from index to value.
14269         * lib/unictype/categ_byname.gperf: New file.
14270         * modules/unictype/category-byname (Files): Add
14271         lib/unictype/categ_byname.gperf.
14272         (Depends-on): Add gperf.
14273         (Makefile.am): Add rule for generating unictype/categ_byname.h.
14274         * tests/unictype/test-categ_byname.c (main): Test the recognition of
14275         long names.
14276
14277         Tests for module 'unictype/category-longname'.
14278         * modules/unictype/category-longname-tests: New file.
14279         * tests/unictype/test-categ_longname.c: New file.
14280
14281         New module 'unictype/category-longname'.
14282         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
14283         * lib/unictype/categ_longname.c: New file.
14284         * modules/unictype/category-longname: New file.
14285         * modules/unictype/category-all (Depends-on): Add it.
14286
14287 2011-03-25  Bruno Haible  <bruno@clisp.org>
14288
14289         Tests for module 'unictype/category-LC'.
14290         * modules/unictype/category-LC-tests: New file.
14291         * tests/unictype/test-categ_LC.c: New file, automatically generated.
14292
14293         New module 'unictype/category-LC'.
14294         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
14295         (UC_CATEGORY_LC): New declaration.
14296         (UC_CASED_LETTER): New macro.
14297         * lib/gen-uni-tables.c (is_category_LC): New function.
14298         (output_categories): Also handle category LC.
14299         (UC_CATEGORY_MASK_LC): New enumeration value.
14300         (general_category_byname): Also handle category LC.
14301         * lib/unictype/categ_LC.c: New file.
14302         * lib/unictype/categ_LC.h: New file, automatically generated.
14303         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
14304         category LC.
14305         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
14306         * modules/unictype/category-LC: New file.
14307         * modules/unictype/category-byname (Depends-on): Add
14308         unictype/category-LC.
14309         * modules/unictype/category-all (Depends-on): Likewise.
14310
14311 2011-03-25  Eric Blake  <eblake@redhat.com>
14312
14313         xmalloc: revert yesterday's regression
14314         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
14315         realloc's underlying behavior (allowing allocation of zero-size
14316         objects, especially if malloc-gnu is also in use).
14317
14318 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
14319
14320         maint.mk: add missing version to VC-tag
14321         * top/maint.mk: git tag was missing actual tag name; add it.
14322
14323         valgrind: do leak checking, and exit with code 1 on error (not 0)
14324         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
14325         to VALGRIND.
14326
14327 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
14328
14329         posix-modules: say what it does.
14330         * posix-modules: Add a line to the --help output saying what it does.
14331
14332 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
14333
14334         xmalloc: Do not leak if underlying realloc is C99 compatible.
14335         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
14336         This avoids a leak on C99-based systems.  See
14337         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
14338
14339 2011-03-24  Eric Blake  <eblake@redhat.com>
14340
14341         realloc: document portability problem
14342         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
14343         passing 0 size to realloc.
14344
14345 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
14346
14347         doc: update users.txt
14348         * users.txt: Add cvsps, tmpwatch
14349
14350 2011-03-23  Matt Rice  <ratmice@gmail.com>
14351
14352         doc: update users.txt
14353         * users.txt: Add gdb.
14354
14355 2011-03-23  Jim Meyering  <meyering@redhat.com>
14356
14357         doc: update users.txt
14358         Looking through matches up to the following URL (there are still
14359         several more pages), I found several projects that use gnulib:
14360         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
14361         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
14362         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
14363
14364 2011-03-22  Bruno Haible  <bruno@clisp.org>
14365
14366         unictype/bidi*: Rename functions.
14367         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
14368         uc_bidi_class, uc_is_bidi_class): New declarations.
14369         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
14370         uc_bidi_category_byname.
14371         (uc_bidi_category_byname): New function.
14372         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
14373         u_bidi_category_name.
14374         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
14375         (uc_bidi_category_name): New function.
14376         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
14377         uc_bidi_category.
14378         (uc_bidi_category): New function.
14379         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
14380         uc_is_bidi_category. Invoke uc_bidi_class.
14381         (uc_is_bidi_category): New function.
14382         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
14383         instead of uc_bidi_category_byname.
14384         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
14385         instead of uc_bidi_category_name.
14386         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
14387         uc_bidi_category.
14388         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
14389         instead of uc_is_bidi_category.
14390
14391 2011-03-21  Bruno Haible  <bruno@clisp.org>
14392
14393         New module 'unictype/joininggroup-all'.
14394         * modules/unictype/joininggroup-all: New file.
14395
14396         Tests for module 'unictype/joininggroup-of'.
14397         * modules/unictype/joininggroup-of-tests: New file.
14398         * tests/unictype/test-joininggroup_of.c: New file.
14399         * tests/unictype/test-joininggroup_of.h: New file, automatically
14400         generated by gen-uni-tables.
14401
14402         New module 'unictype/joininggroup-of'.
14403         * modules/unictype/joininggroup-of: New file.
14404         * lib/unictype/joininggroup_of.c: New file.
14405         * lib/unictype/joininggroup_of.h: New file, automatically generated by
14406         gen-uni-tables.
14407
14408         Tests for module 'unictype/joininggroup-byname'.
14409         * modules/unictype/joininggroup-byname-tests: New file.
14410         * tests/unictype/test-joininggroup_byname.c: New file.
14411
14412         New module 'unictype/joininggroup-byname'.
14413         * modules/unictype/joininggroup-byname: New file.
14414         * lib/unictype/joininggroup_byname.c: New file.
14415         * lib/unictype/joininggroup_byname.gperf: New file.
14416
14417         Tests for module 'unictype/joininggroup-name'.
14418         * modules/unictype/joininggroup-name-tests: New file.
14419         * tests/unictype/test-joininggroup_name.c: New file.
14420
14421         New module 'unictype/joininggroup-name'.
14422         * modules/unictype/joininggroup-name: New file.
14423         * lib/unictype/joininggroup_name.c: New file.
14424         * lib/unictype/joininggroup_name.h: New file.
14425
14426         New module 'unictype/joiningtype-all'.
14427         * modules/unictype/joiningtype-all: New file.
14428
14429         Tests for module 'unictype/joiningtype-of'.
14430         * modules/unictype/joiningtype-of-tests: New file.
14431         * tests/unictype/test-joiningtype_of.c: New file.
14432         * tests/unictype/test-joiningtype_of.h: New file, automatically
14433         generated by gen-uni-tables.
14434
14435         New module 'unictype/joiningtype-of'.
14436         * modules/unictype/joiningtype-of: New file.
14437         * lib/unictype/joiningtype_of.c: New file.
14438         * lib/unictype/joiningtype_of.h: New file, automatically generated by
14439         gen-uni-tables.
14440
14441         Tests for module 'unictype/joiningtype-byname'.
14442         * modules/unictype/joiningtype-byname-tests: New file.
14443         * tests/unictype/test-joiningtype_byname.c: New file.
14444
14445         New module 'unictype/joiningtype-byname'.
14446         * modules/unictype/joiningtype-byname: New file.
14447         * lib/unictype/joiningtype_byname.c: New file.
14448
14449         Tests for module 'unictype/joiningtype-name'.
14450         * modules/unictype/joiningtype-name-tests: New file.
14451         * tests/unictype/test-joiningtype_name.c: New file.
14452
14453         New module 'unictype/joiningtype-name'.
14454         * modules/unictype/joiningtype-name: New file.
14455         * lib/unictype/joiningtype_name.c: New file.
14456
14457         unictype: Add support for Arabic shaping properties.
14458         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
14459         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
14460         declarations.
14461         (UC_JOINING_GROUP_*): New enumeration values.
14462         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
14463         declarations.
14464         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
14465         (unicode_joining_type): New variable.
14466         (UC_JOINING_GROUP_*): New enumeration values.
14467         (unicode_joining_group): New variable.
14468         (fill_arabicshaping, joining_type_as_c_identifier,
14469         output_joining_type_test, output_joining_type,
14470         joining_group_as_c_identifier, output_joining_group_test,
14471         output_joining_group): New functions.
14472         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
14473         fill_arabicshaping and output_joining_type_test, output_joining_type,
14474         output_joining_group_test, output_joining_group.
14475         Reported by Simon Josefsson.
14476
14477 2011-03-21  Jim Meyering  <meyering@redhat.com>
14478
14479         strftime: fix a bug in yesterday's change
14480         * lib/strftime.c (add): Accommodate width's initial value of -1.
14481         Otherwise, nstrftime would copy uninitialized data into
14482         the result buffer.
14483
14484 2011-03-21  Jim Meyering  <meyering@redhat.com>
14485
14486         tests: add strftime-tests module
14487         * tests/test-strftime.c: New file.
14488         * modules/strftime-tests: New module.
14489
14490 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14491
14492         strftime: don't assume a byte count fits in 'int'
14493         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
14494         found this problem by static analysis, using gcc -Wstrict-overflow
14495         (GCC 4.5.2, x86-64).  This reported an optimization that depended
14496         on an integer overflow having undefined behavior, but it turns out
14497         that the argument is a size, which might not fit in 'int' anyway,
14498
14499 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14500
14501         stdio: don't require ignore_value around fwrite
14502
14503         This patch works around libc bug 11959
14504         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
14505         Without this patch, applications must often write
14506         ignore_value (fwrite (...)) even though the ignore_value is
14507         not helpful here.  It's common to write many objects, using
14508         fwrite/printf/etc., and then use ferror to detect output error.
14509
14510         I considered making this patch optional, but decided against it,
14511         because libc is obviously being inconsistent here: there is no
14512         reason libc should insist that user code must inspect fwrite
14513         return's value without also insisting that it inspect printf's,
14514         putchar's, etc.  If user code wants to have a strict style where
14515         all these functions' values are checked (so that ferror need not
14516         be checked), we could add support for that style in a new gnulib
14517         module, but in the meantime it's better to be consistent and to
14518         support common usage.
14519
14520         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
14521         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
14522         that we are compiling in checking mode, and if not C++, and
14523         if not already wrapping fwrite for some other reason.
14524         (fwrite): #define to rpl_fwrite if the latter is defined.
14525
14526 2011-03-20  Bruno Haible  <bruno@clisp.org>
14527
14528         verror: Fix compilation error introduced on 2011-02-13.
14529         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
14530         instead of __attribute__.
14531         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14532
14533 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14534             Bruno Haible  <bruno@clisp.org>
14535
14536         socklen: do not depend on sys_socket
14537         While trying to modify Emacs to use gnulib's socklen module,
14538         I discovered a circular dependency: socklen depends on sys_socket
14539         and vice versa.  Emacs can use socklen, but it does not need
14540         sys_socket because it has its own substitute for sys/socket.h.
14541         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
14542         gl_TYPE_SOCKLEN_T.
14543         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
14544         gl_PREREQ_SYS_H_SOCKET.
14545         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
14546         gl_PREREQ_SYS_H_SOCKET.
14547         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
14548         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
14549         * modules/socklen (Depends-on): Do not depend on sys_socket.
14550         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
14551
14552 2011-03-20  Jim Meyering  <meyering@redhat.com>
14553
14554         maint.mk: sort file names *after* new transformation
14555         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
14556         prefix would have led to an unwarranted failure in GNU parted.
14557         Sort after that transformation.
14558
14559 2011-03-19  Jim Meyering  <meyering@redhat.com>
14560
14561         maint.mk: fix po-file syntax-check rule
14562         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
14563         Patch by Bruno Haible.
14564
14565 2011-03-19  Bruno Haible  <bruno@clisp.org>
14566
14567         socklen: Update comment.
14568         * m4/socklen.m4: Update comment about platforms.
14569
14570 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14571             Bruno Haible  <bruno@clisp.org>
14572
14573         inet_ntop, inet_pton: Simplify.
14574         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
14575         documented to provide socklen_t and we already depend on sys_socket.
14576         * modules/inet_pton (Depends-on): Likewise.
14577         * lib/arpa_inet.in.h: Adjust comment.
14578
14579 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14580             Bruno Haible  <bruno@clisp.org>
14581
14582         netdb: Simplify.
14583         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
14584         documented to provide socklen_t and we already depend on sys_socket.
14585         * lib/netdb.in.h: Adjust comment.
14586
14587 2011-03-19  Bruno Haible  <bruno@clisp.org>
14588
14589         sys_socket, netdb: Document problem with socklen_t.
14590         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
14591         platforms.
14592         * doc/posix-headers/netdb.texi: Likewise.
14593
14594 2011-03-18  Eric Blake  <eblake@redhat.com>
14595
14596         maint.mk: let po check work in VPATH build
14597         * top/maint.mk (po_file): Allow cfg.mk override.
14598         (sc_po_check): Allow VPATH use.
14599         Reported by Jiri Denemark.
14600
14601 2011-03-16  Jim Meyering  <meyering@redhat.com>
14602
14603         maint.mk: allow fine-grained syntax-check exclusion via Make variables
14604         Before, you would have had to create one .x-sc_ file per rule in order
14605         to exempt offending files.  Now, you may instead use a Make variable --
14606         usually defined in cfg.mk -- whose name identifies the affected rule.
14607         * top/maint.mk (_sc_excl): Define.
14608         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
14609         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
14610
14611 2011-03-13  Bruno Haible  <bruno@clisp.org>
14612
14613         ignore-value tests: Avoid warnings.
14614         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
14615         empty for gcc < 3.4.
14616
14617 2011-03-13  Bruno Haible  <bruno@clisp.org>
14618
14619         passfd: Fix link error on Solaris.
14620         * modules/passfd (Description): Correct.
14621         (Depends-on): Add socketlib.
14622         (Link): New section.
14623         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
14624
14625 2011-03-13  Bruno Haible  <bruno@clisp.org>
14626
14627         passfd: Fix link error on AIX 5.2.
14628         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
14629
14630 2011-03-13  Bruno Haible  <bruno@clisp.org>
14631
14632         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
14633         * lib/sys_socket.in.h: Include <stddef.h>.
14634         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
14635         CMSG_FIRSTHDR. Remove unused variable.
14636
14637 2011-03-13  Bruno Haible  <bruno@clisp.org>
14638
14639         passfd: Fix compilation error on OpenBSD.
14640         * lib/passfd.c: Include <sys/uio.h>.
14641
14642 2011-03-13  Bruno Haible  <bruno@clisp.org>
14643
14644         passfd test: Fix warnings.
14645         * tests/test-passfd.c: Include <sys/wait.h>.
14646         (main): Fix typo.
14647
14648 2011-03-13  Bruno Haible  <bruno@clisp.org>
14649
14650         passfd module, part 4, tweaks.
14651         * tests/test-passfd.c: Reorder includes.
14652         (main): Fix perror and printf calls.
14653
14654 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14655
14656         passfd module, part 4.
14657         * modules/passfd-tests: New file.
14658         * tests/test-passfd.c: New file.
14659
14660 2011-03-13  Jim Meyering  <meyering@redhat.com>
14661
14662         Makefile: rely on GNU make; derive syntax-check rule names
14663         Rather than requiring that each sc_ rule be listed as a dependent
14664         of "check", use features of GNU make to derive the list.
14665         * Makefile (syntax-check-rules): Define.
14666         (check): Depend on the new variable, not the hard-coded list.
14667
14668 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
14669             Bruno Haible  <bruno@clisp.org>
14670
14671         passfd module, part 3.
14672         * lib/passfd.h (recvfd): Add a flags argument.
14673         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
14674         (recvfd): Add a flags argument.
14675         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
14676         exists.
14677         * modules/passfd (Depends-on): Add cloexec.
14678         Suggested by Eric Blake.
14679
14680 2011-03-13  Bruno Haible  <bruno@clisp.org>
14681
14682         passfd module, part 2, tweaks.
14683         * modules/passfd (Files): Reorder.
14684         (Depends-on): Remove errno.
14685         (Include): Remove <sys/socket.h>, <sys/un.h>.
14686         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
14687         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
14688         specification header. Include <sys/socket.h> always. Don't include
14689         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
14690         (sendfd): Clarify that it sets errno when it fails.
14691         (recvfd): Fix specification.
14692
14693 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14694
14695         passfd module, part 2.
14696         * modules/passfd: New file.
14697         * lib/passfd.h: New file.
14698         * lib/passfd.c: New file.
14699
14700 2011-03-12  Bruno Haible  <bruno@clisp.org>
14701
14702         wcswidth, mbswidth: Avoid integer overflow.
14703         * lib/wcswidth.c: Include <limits.h>.
14704         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
14705         * lib/mbswidth.c: Include <limits.h>.
14706         (mbsnwidth): Avoid 'int' overflow.
14707         Reported by Jim Meyering.
14708
14709 2011-03-12  Bruno Haible  <bruno@clisp.org>
14710
14711         futimens, utimensat: Avoid endless recursion on Solaris 10.
14712         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
14713         Solaris.
14714         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
14715         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
14716
14717 2011-03-11  Jim Meyering  <meyering@redhat.com>
14718
14719         maint.mk: relax a regexp to accommodate other formatting styles
14720         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
14721         between "ngettext" and the following "(".
14722
14723 2011-03-11  Pádraig Brady <P@draigBrady.com>
14724
14725         maint.mk: suppress a false positive warning
14726         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
14727         diagnostics are marked with ngettext.
14728
14729 2011-03-10  Eric Blake  <eblake@redhat.com>
14730
14731         wchar: add explicit dependencies, for Tru64
14732         * modules/mbmemcasecoll (Depends-on): Add wchar.
14733         * modules/mbtowc (Depends-on): Likewise.
14734         * modules/vasnprintf (Depends-on): Likewise.
14735         * modules/unistdio/u-printf-args (Depends-on): Likewise.
14736         * modules/wctomb (Depends-on): Likewise.
14737         Reported by Peter O'Gorman.
14738
14739 2011-03-08  Bruno Haible  <bruno@clisp.org>
14740
14741         passfd module, part 1, tweaks.
14742         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
14743         Improve indentation. Improve AC_MSG_CHECKING messages.
14744         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
14745         gl_SOCKET_FAMILIES.
14746
14747 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14748
14749         passfd module, part 1.
14750         * m4/afunix.m4: New file.
14751         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
14752         sockets.
14753
14754 2011-03-08  Bruno Haible  <bruno@clisp.org>
14755
14756         regex-quote: New API.
14757         * lib/regex-quote.h: Include <stdbool.h>.
14758         (struct regex_quote_spec): New type.
14759         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14760         New declarations.
14761         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14762         'const struct regex_quote_spec *' argument.
14763         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
14764         (pcre_special): New constant.
14765         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14766         New functions.
14767         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14768         'const struct regex_quote_spec *' argument.
14769         * modules/regex-quote (Depends-on): Add stdbool.
14770         * tests/test-regex-quote.c (check): Update for new API. Add test for
14771         anchored results.
14772         * NEWS: Mention the API change.
14773         Reported by Reuben Thomas and Eric Blake.
14774
14775 2011-03-06  Bruno Haible  <bruno@clisp.org>
14776
14777         regex-quote: Fix creation of POSIX extended regular expressions.
14778         * lib/regex-quote.c (ere_special): Add grouping and alternation
14779         operators.
14780
14781 2011-03-05  Bruno Haible  <bruno@clisp.org>
14782
14783         doc: Improve doc regarding autopoint vs. gnulib.
14784         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
14785         disable autopoint while running autoreconf.
14786         Suggested by Ralf Wildenhues.
14787
14788 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14789
14790         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
14791         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
14792
14793 2011-03-03  Bruce Korb  <bkorb@gnu.org>
14794
14795         parse-duration: remove xalloc.h dependency
14796         * lib/parse-duration.c (parse_period): handle NULL return from
14797         strdup instead of calling xstrdup().
14798         * modules/parse-duration: remove "xalloc" dependency
14799
14800 2011-03-03  Matthew Booth  <mbooth@redhat.com>
14801
14802         bootstrap: honor m4_base when running aclocal
14803         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
14804
14805 2011-03-02  Jim Meyering  <meyering@redhat.com>
14806
14807         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
14808         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
14809         on request from Matt Booth.
14810
14811 2011-03-01  Eric Blake  <eblake@redhat.com>
14812
14813         test-link: work on Hurd
14814         * tests/test-link.h (test_link): Hurd rejects linking directories
14815         with EISDIR instead of the POSIX-mandated EPERM.
14816
14817 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
14818
14819         stdio: simplify by moving files to printf-posix, sigpipe
14820         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
14821         since this symbol is needed only if printf is replaced.
14822         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
14823         Require gl_ASM_SYMBOL_PREFIX.
14824         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
14825         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
14826         (Depends-on): Add 'raise'.
14827         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
14828         * modules/stdio (Files): Remove lib/stdio-write.c,
14829         m4/asm-underscore.m4.
14830         (Depends-on): Remove 'raise'.
14831
14832         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
14833         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
14834         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
14835         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
14836
14837 2011-02-28  Bruno Haible  <bruno@clisp.org>
14838
14839         localcharset: Assume ANSI C behaviour of free().
14840         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
14841         calling free().
14842         Suggested by Simon Josefsson <simon@josefsson.org>.
14843
14844 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
14845             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
14846             Bruno Haible  <bruno@clisp.org>  (tiny change)
14847
14848         On Cygwin, use /proc file system instead of win32 API.
14849         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
14850         Win32 file names.
14851         (DllMain): Simplify by removing Cygwin specific code.
14852         (find_shared_library_fullname): Use Linux specific implementation also
14853         for Cygwin.
14854         (get_shared_library_fullname): Update accordingly.
14855         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
14856         Win32 file names.
14857         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
14858         Cygwin specific code.
14859
14860 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
14861             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
14862
14863         Fix OpenMP flag detection for various Fortran compilers.
14864         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
14865         OpenMP-conditional compilation construct, to force compile
14866         failure with missing OpenMP flag.
14867         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
14868
14869 2011-02-25  Eric Blake  <eblake@redhat.com>
14870
14871         strstr: expand test coverage
14872         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
14873         compilation.
14874         * tests/test-memmem.c (main): Duplicate tests.
14875         * tests/test-strcasestr.c (main): Likewise.
14876         * tests/test-c-strcasestr.c (main): Likewise.
14877
14878 2011-02-25  Jim Meyering  <meyering@redhat.com>
14879
14880         maint.mk: detect missing-NL-at-EOF, too
14881         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
14882         it also detects when a file lacks a newline at EOF.
14883         (require_exactly_one_NL_at_EOF_): Renamed from
14884         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
14885         since people may well have .x-sc_... file names tied to the
14886         existing name.  Suggested by Eric Blake.
14887
14888 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14889
14890         dirname: move m4/dos.m4 functionality into lib/dosname.h
14891
14892         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
14893         extracts symbols from it, puts them into config.h; but it's much
14894         easier to use the symbols directly.  filename.h already does this,
14895         but it disagrees with dos.m4 in some respects.  This patch
14896         introduces a different include file dosname.h that packages up
14897         dos.m4, and then later we can work on merging filename.h and
14898         dosname.h.  Applications that need only the easy-to-configure
14899         symbols should consider including dosname.h rather than dirname.h.
14900         * NEWS: Mention incompatible changes.
14901         * m4/dos.m4: Remove.
14902         * lib/dosname.h, modules/dosname: New files.
14903         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
14904         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
14905         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
14906         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
14907         Include dosname.h, not dirname.h.
14908         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
14909         Include dosname.h, for definitions of symbols like ISSLASH
14910         that used to be in config.h.
14911         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
14912         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14913         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14914         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14915         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
14916         * modules/rmdir (Files): Likewise.
14917         * modules/stat (Files): Likewise.
14918         * modules/unlink (Files): Likewise.
14919         * modules/dirname-lgpl (Depends-on): Add dosname.
14920         * modules/lstat (Depends-on): Likewise.
14921         * modules/openat (Depends-on): Likewise.
14922         * modules/rmdir (Depends-on): Likewise.
14923         * modules/savewd (Depends-on): Likewise.
14924         * modules/stat (Depends-on): Likewise.
14925         * modules/unlink (Depends-on): Likewise.
14926         * modules/openat (Depends-on): Remove dirname-lgpl.
14927         * modules/savewd (Depends-on): Likewise.
14928         * tests/test-dirname.c: Do not use removed symbols like
14929         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
14930         the remaining symbols, e.g., ISSLASH ('\\').
14931
14932 2011-02-25  Eric Blake  <eblake@redhat.com>
14933
14934         strstr: revert patches that introduced bug and pessimization
14935         * lib/str-two-way.h: Add another reference.
14936         (two_way_short_needle, two_way_long_needle): Revert changes from
14937         2011-02-24; they pessimize search speed.
14938         (critical_factorization): Partially revert changes from
14939         2010-06-22; they violate the requirement that the left half of the
14940         needle be smaller than the period of the needle.
14941
14942 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14943
14944         filenamecat: remove unnecessary dependency on dirname-lgpl
14945         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
14946         is no direct dependency, just an indirect one via filenamecat-lgpl.
14947
14948         remove: remove unnecessary use of m4/dos.m4
14949         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
14950         * modules/remove (FILES): Remove m4/dos.m4.
14951
14952         * lib/openat-proc.c: Don't include dirname.h; not needed.
14953
14954         backupfile: remove unnecessary use of m4/dos.m4
14955         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
14956         of its symbols are used by the backupfile code.  backupfile.c does
14957         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
14958         for the rare case of programs that want all their backup file
14959         names to live within 8+3 limits, and dos.m4 doesn't address that.
14960         * modules/backupfile (Files): Remove m4/dos.m4.
14961
14962 2011-02-24  Jim Meyering  <meyering@redhat.com>
14963
14964         strstr: fix a bug whereby strstr would mistakenly return NULL
14965         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
14966         in period calculation.
14967         (two_way_long_needle): Likewise.
14968         The original problem was reported by Mike Stump in
14969         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
14970         Ralf Wildenhues provided the short needle and haystack.
14971         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
14972         Add a more involved test to trigger the bug in two_way_long_needle.
14973
14974 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14975
14976         gnulib-tool: remove use of bold display in help screen
14977         * gnulib-tool (func_usage): Do not use bold display anymore in the
14978         help screen.  That was just meant to be a temporary emphasis for a
14979         backward-incompatible change.
14980
14981 2011-02-23  Bruno Haible  <bruno@clisp.org>
14982
14983         Fix misindentation of preprocessor directives.
14984         * lib/argp-namefrob.h: Reindent preprocessor directives.
14985         * lib/getopt_int.h (struct _getopt_data): Likewise.
14986         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
14987         * lib/vasnprintf.c (decode_long_double): Likewise.
14988         * tests/test-argmatch.c: Insert blank lines, for clarity.
14989         * tests/test-exclude.c: Likewise.
14990
14991 2011-02-22  Bruno Haible  <bruno@clisp.org>
14992
14993         ioctl: Fix for MacOS X in 64-bit mode.
14994         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
14995         value.
14996         Suggested by Eric Blake.
14997         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
14998
14999 2011-02-22  Jim Meyering  <meyering@redhat.com>
15000
15001         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
15002         * Makefile (sc_cpp_indent_check): Don't limit the check to files
15003         in lib/.
15004
15005 2011-02-22  Eric Blake  <eblake@redhat.com>
15006
15007         maint: avoid any CDPATH issue
15008         * Makefile (sc_cpp_indent_check): Anchor cd argument.
15009
15010         maint: adjust cpp indentation for my modules, as well
15011         * Makefile (sc_cpp_indent_check): Add my name.
15012         * lib/fbufmode.c: Filter through cppi.
15013         * lib/fpurge.c: Likewise.
15014         * lib/freadable.c: Likewise.
15015         * lib/freading.c: Likewise.
15016         * lib/fwritable.c: Likewise.
15017         * lib/fwriting.c: Likewise.
15018         * lib/sigaction.c: Likewise.
15019
15020 2011-02-22  Jim Meyering  <meyering@redhat.com>
15021
15022         maint: adjust cpp indentation to reflect nesting depth
15023         I.e., in a block of code that begins with an unnested "#if",
15024         put one space between the "#" in column 1 and following token.
15025         For example,
15026         -#include <sys/vfs.h>
15027         +# include <sys/vfs.h>
15028         Do this only in .c files that are part of a module I maintain.
15029         * lib/linkat.c: Filter through cppi.
15030         * lib/nanosleep.c: Likewise.
15031         * lib/openat.c: Likewise.
15032         * lib/openat-die.c: Likewise.
15033         * lib/dup3.c: Likewise.
15034         * lib/fchownat.c: Likewise.
15035         * lib/flock.c: Likewise.
15036         * lib/fsync.c: Likewise.
15037         * lib/fts.c: Likewise.
15038         * lib/getpass.c: Likewise.
15039         * lib/gettimeofday.c: Likewise.
15040         * lib/userspec.c: Likewise.
15041         * Makefile (sc_cpp_indent_check): New rule, to check this.
15042
15043 2011-02-22  Bruno Haible  <bruno@clisp.org>
15044
15045         New module 'wctomb'.
15046         * lib/stdlib.in.h (wctomb): New declaration.
15047         * lib/wctomb.c: New file.
15048         * lib/wctomb-impl.h: New file.
15049         * m4/wctomb.m4: New file.
15050         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
15051         REPLACE_WCTOMB.
15052         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
15053         REPLACE_WCTOMB.
15054         * modules/wctomb: New file.
15055         * tests/test-stdlib-c++.cc: Test signature of wctomb.
15056         * doc/posix-functions/wctomb.texi: Mention the new module.
15057         * modules/wctob (Depends-on): Add wctomb.
15058
15059 2011-02-22  Bruno Haible  <bruno@clisp.org>
15060
15061         New module 'mbtowc'.
15062         * lib/stdlib.in.h (mbtowc): New declaration.
15063         * lib/mbtowc.c: New file.
15064         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
15065         * m4/mbtowc.m4: New file.
15066         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
15067         REPLACE_MBTOWC.
15068         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
15069         REPLACE_MBTOWC.
15070         * modules/mbtowc: New file.
15071         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
15072         * doc/posix-functions/mbtowc.texi: Mention the new module.
15073         * modules/btowc (Depends-on): Add mbtowc.
15074
15075 2011-02-22  Bruno Haible  <bruno@clisp.org>
15076
15077         wcrtomb: Add more tests for native Windows platforms.
15078         * tests/test-wcrtomb-w32-1.sh: New file.
15079         * tests/test-wcrtomb-w32-2.sh: New file.
15080         * tests/test-wcrtomb-w32-3.sh: New file.
15081         * tests/test-wcrtomb-w32-4.sh: New file.
15082         * tests/test-wcrtomb-w32-5.sh: New file.
15083         * tests/test-wcrtomb-w32.c: New file.
15084         * modules/wcrtomb-tests (Files): Add them.
15085         (Makefile.am): Arrange to run these tests.
15086         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
15087         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
15088
15089 2011-02-20  Bruno Haible  <bruno@clisp.org>
15090
15091         wcrtomb: Enhance test.
15092         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
15093
15094 2011-02-20  Bruno Haible  <bruno@clisp.org>
15095
15096         mbrtowc: Tiny optimization.
15097         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
15098
15099 2011-02-20  Jim Meyering  <meyering@redhat.com>
15100
15101         test-exclude.c: remove unmatched #endif
15102         * tests/test-exclude.c: Remove stray #endif, left over from
15103         the change of a week ago.
15104
15105 2011-02-19  Jim Meyering  <meyering@redhat.com>
15106
15107         git-version-gen: skip "-dirty" check when appropriate
15108         * build-aux/git-version-gen: Don't run any git commands when the
15109         version string comes from .tarball-version.  Prior to this, we
15110         would run git update-index --refresh even from a just-unpacked
15111         tarball directory, and that could affect a .git/ directory in a
15112         parent of the build directory.  Reported by Mike Frysinger.
15113
15114 2011-02-19  Bruno Haible  <bruno@clisp.org>
15115
15116         unictype/property-byname: Reduce the size of the 'data' segment.
15117         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
15118
15119 2011-02-19  Bruno Haible  <bruno@clisp.org>
15120
15121         unictype/scripts: Reduce the size of the 'data' segment.
15122         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
15123         '%pic'.
15124         * lib/unictype/scripts_byname.gperf: Regenerated.
15125
15126 2011-02-19  Bruno Haible  <bruno@clisp.org>
15127
15128         stdint: Update documentation.
15129         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
15130
15131 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
15132
15133         stdint: omit redundant check for wchar.h
15134         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
15135         always tests whether wchar.h exists, so remove the now-redundant test.
15136
15137 2011-02-18  Bruno Haible  <bruno@clisp.org>
15138
15139         stdint: Cut dependency to module 'wchar'.
15140         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
15141         include the necessary prerequisites.
15142         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
15143         * modules/stdint (Depends-on): Remove wchar.
15144         (Makefile.am): Substitute HAVE_WCHAR_H.
15145         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
15146
15147 2011-02-18  Eric Blake  <eblake@redhat.com>
15148
15149         longlong: skip, rather than fail, on cross-compilation
15150         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
15151         when cross-compiling; regression from 2011-02-16.
15152
15153 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15154
15155         * NEWS: Mention 2011-02-08 change to stdlib.
15156
15157 2011-02-17  Bruno Haible  <bruno@clisp.org>
15158
15159         getloadavg: Add comments about platforms.
15160         * m4/getloadavg.m4: Add comment.
15161         * lib/getloadavg.c: Likewise.
15162
15163 2011-02-17  Bruno Haible  <bruno@clisp.org>
15164
15165         getloadavg: Fix link error on Solaris 2.6.
15166         * modules/getloadavg (Link): New section.
15167         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
15168         linking test-getloadavg.
15169         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
15170         getloadavg.
15171
15172 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15173
15174         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
15175         It was 'int', but this doesn't match the IRIX 6.5 manual.
15176         Suggested by Bruno Haible in
15177         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
15178
15179 2011-02-17  Bruno Haible  <bruno@clisp.org>
15180
15181         havelib: Fix comments.
15182         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
15183         change.
15184
15185 2011-02-17  Bruno Haible  <bruno@clisp.org>
15186
15187         havelib: Update config.rpath.
15188         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
15189
15190 2011-02-17  Bruno Haible  <bruno@clisp.org>
15191
15192         getloadavg test: Add some plausibility checks.
15193         * tests/test-getloadavg.c (check_avg): Print a warning when the value
15194         is improbable.
15195
15196 2011-02-16  Eric Blake  <eblake@redhat.com>
15197
15198         maintainer-makefile: make syntax-check a no-op from tarballs
15199         * top/maint.mk (no-vc-detected): New rule.
15200         (local-checks-available): Use it to avoid hanging if someone tries
15201         'make syntax-check' from a tarball.  Also append to any non-syntax
15202         checks already defined in cfg.mk.
15203
15204 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
15205
15206         longlong: tune, particularly for common case of c99
15207
15208         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
15209         or running anything if c99, or if unsigned long long int does not
15210         work.  In either case, we know the answer without further tests.
15211         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
15212         it at most once, and use its results for both long long int and
15213         unsigned long long int.  This is more likely to be efficient in
15214         the common case where the program wants to check for both long
15215         long int and unsigned long long int.
15216         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
15217         since the answer is already known.
15218
15219 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
15220
15221         getloadavg: set errno
15222         * lib/getloadavg.c: Set errno when returning -1.  If no other
15223         error number looks appropriate, set it to ENOSYS if the getloadavg
15224         looks like it can't possibly ever work, ENOTSUP otherwise.
15225         Suggested by Bruno Haible in
15226         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
15227
15228         getloadavg: trim unused parts and speed up 'configure'
15229         * NEWS: Document this.
15230         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
15231         always compiled if getloadavg is absent.
15232         Move test code to ...
15233         * tests/test-getloadavg.c: New file, containing previous
15234         contents of test from lib/getloadavg.c.  It also contains
15235         suggestions by Bruno Haible in
15236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
15237         * modules/getloadavg-tests: New file.
15238         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
15239         Do tests in the same order as they're needed for getloadavg.c.
15240         Omit setgid-related tests that generate symbols KMEM_GROUP,
15241         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
15242         Do only the tests that are needed to see whether the system has
15243         getloadavg, moving the other tests into ...
15244         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
15245         NLIST_NAME_UNION; nobody should be using it.  Do not define
15246         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
15247         relevant, as the user of this module shouldn't care how getloadavg
15248         is implemented.
15249
15250         getloadavg: omit unused var
15251         * lib/getloadavg.c (getloadavg): Omit unused local variable.
15252
15253 2011-02-15  Jim Meyering  <meyering@redhat.com>
15254
15255         doc: update users.txt
15256         * users.txt: Update iwhd's URL.
15257
15258 2011-02-13  Bruno Haible  <bruno@clisp.org>
15259
15260         Consistent macro naming for macros that use GCC __attribute__.
15261         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
15262         _ATTRIBUTE_NONNULL_.
15263         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
15264         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
15265         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
15266         ATTRIBUTE_DEPRECATED.
15267         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
15268         ATTRIBUTE_NORETURN.
15269         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15270         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15271         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15272         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15273         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
15274         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
15275         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
15276         ATTRIBUTE_SENTINEL.
15277         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
15278         ATTRIBUTE_RETURN_CHECK.
15279         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
15280         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
15281         ATTRIBUTE_NORETURN.
15282         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
15283         Reported by Paul Eggert.
15284
15285 2011-02-13  Bruno Haible  <bruno@clisp.org>
15286
15287         Don't interfere with a program's definition of __attribute__.
15288         * lib/argp.h (__attribute__): Remove definition.
15289         (_GL_ATTRIBUTE_FORMAT): New macro.
15290         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
15291         * lib/argp-fmtstream.h (__attribute__): Remove definition.
15292         (_GL_ATTRIBUTE_FORMAT): New macro.
15293         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
15294         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
15295         GCC 3 or newer.
15296         * lib/error.h (__attribute__): Remove definition.
15297         (_GL_ATTRIBUTE_FORMAT): New macro.
15298         (error, error_at_line): Use it.
15299         * lib/hash.h (__attribute__): Remove definition.
15300         (ATTRIBUTE_WUR): Update definition. Define always.
15301         * lib/openat.h (__attribute__): Remove definition.
15302         (ATTRIBUTE_NORETURN): Update definition. Define always.
15303         * lib/sigpipe-die.h (__attribute__): Remove definition.
15304         (ATTRIBUTE_NORETURN): Update definition. Define always.
15305         * lib/vasnprintf.h (__attribute__): Remove definition.
15306         (_GL_ATTRIBUTE_FORMAT): New macro.
15307         (asnprintf, vasnprintf): Use it.
15308         * lib/xalloc.h (__attribute__): Remove definition.
15309         (ATTRIBUTE_NORETURN): Update definition. Define always.
15310         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
15311         * lib/xmemdup0.h (__attribute__): Remove definition.
15312         (ATTRIBUTE_NORETURN): Update definition. Define always.
15313         * lib/xprintf.h (__attribute__): Remove definition.
15314         (_GL_ATTRIBUTE_FORMAT): New macro.
15315         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
15316         * lib/xstrtol.h (__attribute__): Remove definition.
15317         (ATTRIBUTE_NORETURN): Update definition. Define always.
15318         * lib/xvasprintf.h (__attribute__): Remove definition.
15319         (_GL_ATTRIBUTE_FORMAT): New macro.
15320         (xasprintf, xvasprintf): Use it.
15321         * tests/test-argmatch.c (__attribute__): Remove definition.
15322         (ATTRIBUTE_NORETURN): Update definition. Define always.
15323         * tests/test-exclude.c (__attribute__): Remove definition.
15324         (ATTRIBUTE_NORETURN): Update definition. Define always.
15325         Reported by Paul Eggert.
15326
15327 2011-02-13  Bruno Haible  <bruno@clisp.org>
15328
15329         mbrtowc: Add more tests for native Windows platforms.
15330         * tests/test-mbrtowc-w32-1.sh: New file.
15331         * tests/test-mbrtowc-w32-2.sh: New file.
15332         * tests/test-mbrtowc-w32-3.sh: New file.
15333         * tests/test-mbrtowc-w32-4.sh: New file.
15334         * tests/test-mbrtowc-w32-5.sh: New file.
15335         * tests/test-mbrtowc-w32.c: New file.
15336         * modules/mbrtowc-tests (Files): Add them.
15337         (Makefile.am): Arrange to run these tests.
15338         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
15339         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
15340
15341 2011-02-13  Bruno Haible  <bruno@clisp.org>
15342
15343         mbrtowc: Work around native Windows bug.
15344         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
15345         guess when no suitable locale for testing was found.
15346         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
15347
15348 2011-02-13  Bruno Haible  <bruno@clisp.org>
15349
15350         mbsinit: Work around mingw bug.
15351         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
15352         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
15353         Windows.
15354         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
15355
15356 2011-02-13  Bruno Haible  <bruno@clisp.org>
15357
15358         mbsinit: Don't crash for a NULL argument.
15359         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
15360         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
15361
15362 2011-02-13  Bruno Haible  <bruno@clisp.org>
15363
15364         Don't interfere with a program's definition of __attribute__.
15365         * lib/stdio.in.h (__attribute__): Remove definition.
15366         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
15367         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
15368         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
15369         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
15370         * lib/string.in.h (__attribute__): Remove definition.
15371         Reported by Paul Eggert.
15372
15373 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15374
15375         stdlib: don't get in the way of non-GCC __attribute__
15376         See thread starting at
15377         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
15378         Revert previous stdlib change, installing the following instead:
15379         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
15380         to get in the way of a non-GCC compiler that supports __attribute__.
15381         (_GL_ATTRIBUTE_RETURN): New macro.
15382         (_Exit): Use it instead of __attribute__.
15383
15384 2011-02-12  Bruno Haible  <bruno@clisp.org>
15385
15386         quotearg test: Avoid test failure on mingw.
15387         * tests/test-quotearg.sh: Convert the locale identifier from native
15388         Windows syntax to Unix syntax.
15389
15390 2011-02-12  Bruno Haible  <bruno@clisp.org>
15391
15392         setlocale: Prefer gnulib's override over libintl's override.
15393         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
15394         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
15395         GNULIB_defined_setlocale is set.
15396
15397 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15398
15399         stdlib: support non-GCC __attribute__
15400
15401         Fix a serious and tricky problem encountered when attempting to
15402         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
15403         5.5, but it crashed due to memory corruption on Solaris 10 with
15404         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
15405         bits that are otherwise zero.  This tagging is optional inside
15406         Emacs but is preferred and is used when __attribute__ ((__aligned
15407         (8))) works, as it does with both recent-enough GCC and with Sun C
15408         5.11.  However, Sun C 5.11 is not GCC and does not #define
15409         __GNUC__ and __GNUC_MINOR__.
15410
15411         When I added the getloadavg module to Emacs, it brought in
15412         stdlib.in.h, which contained this fragment:
15413
15414            #ifndef __attribute__
15415            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
15416            #  define __attribute__(Spec)   /* empty */
15417            # endif
15418            #endif
15419
15420         When files that include <stdlib.h> were compiled with Sun C 5.11,
15421         the above code disabled __attribute__ ((__aligned (8))), which
15422         caused variables to not be properly aligned, which eventually led
15423         to the pointer corruption mentioned above.  (This was a bit hard
15424         to diagnose, unfortunately.)
15425
15426         Several "#define __attribute__(X) /* empty */" code snippets need
15427         to be eradicated from Gnulib to work with non-GCC compilers that
15428         support __attribute__.  The Autoconf way to do this is to test for
15429         each kind of attribute that we want support for, and selectively
15430         enable that in source code.
15431
15432         Fix this problem just for stdlib.h, by adding a test for the
15433         __noreturn__ attribute, and change stdlib.in.h to use that test
15434         when needed.  This technique can be easily generalized to the
15435         other *.in.h files and attributes, and a similar technique can be
15436         used for *.h and *.c files.  This patch is enough to solve the
15437         problem for Emacs + getloadavg, and I thought I'd publish it for
15438         feedback before undertaking further, similar fixes in other
15439         modules.
15440
15441         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
15442         because it's not needed for stdlib.h.  It merely substitutes the
15443         value directly into stdlib.h.  We may well need to #define it, or
15444         similar symbols, for other modules, but it's nice to also have an
15445         option to not #define it for applications like Emacs that do not
15446         need it.
15447
15448         * lib/stdlib.in.h (__attribute__): Do not #define.
15449         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
15450         be defined only if the _Exit module is also used.
15451         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
15452         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
15453         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
15454         platforms.
15455         * modules/_Exit (Files): Add m4/attribute.m4.
15456         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
15457         * m4/attribute.m4: New file.
15458
15459 2011-02-12  Bruno Haible  <bruno@clisp.org>
15460
15461         wcsrtombs: Work around bug on native Windows.
15462         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
15463         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
15464         instead of len.
15465         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
15466
15467 2011-02-12  Bruno Haible  <bruno@clisp.org>
15468
15469         mbsrtowcs: Work around bug on native Windows.
15470         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
15471         against mingw bug.
15472         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
15473
15474 2011-02-12  Bruno Haible  <bruno@clisp.org>
15475
15476         Avoid setlocale bugs in tests.
15477         * modules/btowc (Dependencies): Add setlocale.
15478         * modules/c-strcase (Dependencies): Likewise.
15479         * modules/mbmemcasecmp (Dependencies): Likewise.
15480         * modules/mbmemcasecoll (Dependencies): Likewise.
15481         * modules/mbrtowc (Dependencies): Likewise.
15482         * modules/mbscasecmp (Dependencies): Likewise.
15483         * modules/mbscasestr (Dependencies): Likewise.
15484         * modules/mbschr (Dependencies): Likewise.
15485         * modules/mbscspn (Dependencies): Likewise.
15486         * modules/mbsinit (Dependencies): Likewise.
15487         * modules/mbsncasecmp (Dependencies): Likewise.
15488         * modules/mbsnrtowcs (Dependencies): Likewise.
15489         * modules/mbspbrk (Dependencies): Likewise.
15490         * modules/mbspcasecmp (Dependencies): Likewise.
15491         * modules/mbsrchr (Dependencies): Likewise.
15492         * modules/mbsrtowcs (Dependencies): Likewise.
15493         * modules/mbsspn (Dependencies): Likewise.
15494         * modules/mbsstr (Dependencies): Likewise.
15495         * modules/nl_langinfo (Dependencies): Likewise.
15496         * modules/quotearg (Dependencies): Likewise.
15497         * modules/unicase/locale-language (Dependencies): Likewise.
15498         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
15499         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
15500         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
15501         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
15502         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
15503         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
15504         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
15505         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
15506         * modules/vasnprintf-posix (Dependencies): Likewise.
15507         * modules/wcrtomb (Dependencies): Likewise.
15508         * modules/wcsnrtombs (Dependencies): Likewise.
15509         * modules/wcsrtombs (Dependencies): Likewise.
15510
15511 2011-02-12  Bruno Haible  <bruno@clisp.org>
15512
15513         setlocale: Workaround native Windows bug.
15514         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
15515         succeeds but sets LC_CTYPE to "C", report a failure.
15516         * tests/test-setlocale2.sh: New file.
15517         * tests/test-setlocale2.c: New file.
15518         * modules/setlocale-tests (Files): Add the new files.
15519         (Makefile.am): Enable test-setlocale2.sh test.
15520         * doc/posix-functions/setlocale.texi: Mention workaround.
15521
15522 2011-02-11  Bruno Haible  <bruno@clisp.org>
15523
15524         Tests for module 'setlocale'.
15525         * modules/setlocale-tests: New file.
15526         * tests/test-setlocale1.sh: New file.
15527         * tests/test-setlocale1.c: New file.
15528
15529         New module 'setlocale'.
15530         * lib/locale.in.h (setlocale): New declaration.
15531         * lib/setlocale.c: New file, based on
15532         gettext/gettext-runtime/intl/setlocale.c.
15533         * m4/setlocale.m4: New file.
15534         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
15535         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
15536         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
15537         REPLACE_SETLOCALE.
15538         * modules/setlocale: New file.
15539         * tests/test-locale-c++.cc: Test the declaration of setlocale.
15540         * doc/posix-functions/setlocale.texi: Mention the new module.
15541
15542 2011-02-11  Bruno Haible  <bruno@clisp.org>
15543
15544         Prepare for locale dependent tests on mingw.
15545         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
15546         because it has the wrong locale encoding.
15547         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
15548         French_France.1252 instead of "fr".
15549         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
15550         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
15551         because it has the wrong locale encoding.
15552         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
15553         native Windows, try Turkish_Turkey.65001.
15554         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
15555         Chinese_China.54936.
15556
15557         Prepare for locale dependent tests on mingw.
15558         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
15559         differently.
15560         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15561         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15562         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15563         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15564
15565 2011-02-11  Eric Blake  <eblake@redhat.com>
15566
15567         strptime: avoid compiler warnings
15568         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
15569         compiler warnings about dead code.
15570         Reported by Daniel P. Berrange.
15571
15572 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
15573
15574         doc: update users.txt
15575         * users.txt: Add rcs.
15576
15577 2011-02-10  John W. Eaton  <jwe@gnu.org>
15578
15579         doc: update users.txt
15580         * users.txt: Add octave.
15581
15582 2011-02-10  Jim Meyering  <meyering@redhat.com>
15583
15584         doc: update users.txt
15585         * users.txt: Add iwhd.
15586
15587 2011-02-09  Bruno Haible  <bruno@clisp.org>
15588
15589         gnulib-tool: Make copyright notice adjustment more robust.
15590         * gnulib-tool (func_import): In sed_transform_main_lib_file,
15591         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
15592         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
15593         License".
15594         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
15595
15596 2011-02-06  Bruno Haible  <bruno@clisp.org>
15597
15598         New module 'towctrans'.
15599         * modules/towctrans: New file.
15600         * lib/wctype.in.h (towctrans): New declaration.
15601         * lib/towctrans.c: New file.
15602         * lib/towctrans-impl.h: New file.
15603         * m4/towctrans.m4: New file.
15604         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
15605         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
15606         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
15607         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
15608         * doc/posix-functions/towctrans.texi: Mention the new module.
15609
15610 2011-02-06  Bruno Haible  <bruno@clisp.org>
15611
15612         New module 'wctrans'.
15613         * modules/wctrans: New file.
15614         * lib/wctype.in.h (wctrans): New declaration.
15615         * lib/wctrans.c: New file.
15616         * lib/wctrans-impl.h: New file.
15617         * m4/wctrans.m4: New file.
15618         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
15619         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
15620         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
15621         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
15622         * doc/posix-functions/wctrans.texi: Mention the new module.
15623
15624 2011-02-06  Bruno Haible  <bruno@clisp.org>
15625
15626         New module 'iswctype'.
15627         * modules/iswctype: New file.
15628         * lib/wctype.in.h (iswctype): New declaration.
15629         * lib/iswctype.c: New file.
15630         * lib/iswctype-impl.h: New file.
15631         * m4/iswctype.m4: New file.
15632         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
15633         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
15634         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
15635         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
15636         * doc/posix-functions/iswctype.texi: Mention the new module and the
15637         HP-UX 11.00 problem.
15638
15639 2011-02-06  Bruno Haible  <bruno@clisp.org>
15640
15641         New module 'wctype'.
15642         * modules/wctype: Change to represent the wctype() substitute.
15643         * lib/wctype.in.h (wctype): New declaration.
15644         * lib/wctype.c: New file.
15645         * lib/wctype-impl.h: New file.
15646         * m4/wctype.m4: New file.
15647         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
15648         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
15649         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
15650         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
15651         * doc/posix-functions/wctype.texi: Mention the new module and the
15652         HP-UX 11.00 problem.
15653
15654 2011-02-06  Bruno Haible  <bruno@clisp.org>
15655
15656         wctype-h: Ensure wctype_t and wctrans_t are defined.
15657         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
15658         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15659         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15660         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
15661         HAVE_WCTRANS_T.
15662         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
15663
15664 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15665
15666         flock: fix license typo
15667
15668         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
15669         omitted.
15670
15671 2011-02-08  Bruno Haible  <bruno@clisp.org>
15672
15673         Split large sed scripts, for HP-UX sed.
15674         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
15675         to avoid HP-UX limit of 99 commands, in the near future.
15676         * modules/stdlib (Makefile.am): Likewise.
15677         * modules/unistd (Makefile.am): Likewise.
15678         * modules/wchar (Makefile.am): Likewise.
15679         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15680         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
15681         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
15682
15683 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15684             Bruno Haible  <bruno@clisp.org>
15685
15686         stdlib: improve random_r modularization
15687         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
15688         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
15689         you also need the random_r module to get this material right.
15690         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
15691         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
15692         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
15693
15694 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15695
15696         stdlib: don't depend on stdint
15697         * lib/stdlib.in.h: Don't include <stdint.h> merely because
15698         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
15699         be independent of whether stdint.h is needed.
15700         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
15701         here, instead of ...
15702         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
15703         struct random_data should be using the random_r module, not just
15704         the stdlib module (which wouldn't make sense: what package needs
15705         just struct random_data without also needing random_r?).
15706         * modules/stdlib (Depends-on): Remove stdint.
15707
15708         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
15709         See the thread rooted at
15710         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
15711         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
15712         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
15713         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
15714         __VMS)); previously it was always included (via fcntl--.h).
15715         (getloadavg): Do not use c_strtod.  Instead, approximate it by
15716         hand; this is good enough for load averages.  Also, do not use
15717         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
15718         flags directly if available and don't bother otherwise.  (Packages
15719         that need the extra reliability should use the modules that define
15720         these flags on older platforms that lack them.)
15721         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
15722         fcntl-safer.
15723
15724 2011-02-08  Jim Meyering  <meyering@redhat.com>
15725
15726         di-set.h, ino-map.h: add multiple-inclusion guard
15727         Technically, the guard is required only for ino-map.h, due to its
15728         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
15729         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
15730         * lib/ino-map.h: Likewise.
15731
15732 2011-02-06  Bruno Haible  <bruno@clisp.org>
15733
15734         iswblank: Ensure declaration on glibc systems.
15735         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
15736         * modules/iswblank (Dependencies): Add 'extensions'.
15737         * doc/posix-functions/iswblank.texi: Document the glibc problem.
15738
15739 2011-02-06  Bruno Haible  <bruno@clisp.org>
15740
15741         New module 'iswblank'.
15742         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
15743         * modules/iswblank: New file.
15744         * modules/wctype-h (Files): Remove lib/iswblank.c.
15745         (Makefile.am): Substitute GNULIB_ISWBLANK.
15746         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
15747         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
15748         (gl_WCTYPE_H_DEFAULTS): New macro.
15749         (gl_WCTYPE_H): Require it. Remove iswblank related code.
15750         * modules/iswblank-tests: New file.
15751         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
15752         * tests/test-wctype-h.c (main): Remove iswblank tests.
15753         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
15754         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
15755         of 'wctype-h'.
15756         * NEWS: Mention the change.
15757         * modules/mbchar (Depends-on): Add iswblank.
15758
15759 2011-02-08  Bruno Haible  <bruno@clisp.org>
15760
15761         di-set tests: Refactor.
15762         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
15763         unnecessary includes.
15764         (ASSERT): Remove macro.
15765         (main): Make C90 compliant by avoiding variable declaration after
15766         statement.
15767         * modules/di-set-tests (Files): Add tests/macros.h.
15768
15769 2011-02-08  Bruno Haible  <bruno@clisp.org>
15770
15771         ino-map tests: Refactor.
15772         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
15773         unnecessary includes.
15774         (ASSERT): Remove macro.
15775         (main): Make C90 compliant by avoiding variable declaration after
15776         statement.
15777         * modules/ino-map-tests (Files): Add tests/macros.h.
15778
15779 2011-02-08  Jim Meyering  <meyering@redhat.com>
15780
15781         di-set: add "const" to a cast
15782         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
15783         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
15784
15785 2011-02-06  Bruno Haible  <bruno@clisp.org>
15786
15787         Rename module 'wctype' to 'wctype-h'.
15788         * modules/wctype-h: Renamed from modules/wctype.
15789         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
15790         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
15791         (Files, Depends-on, Makefile.am): Update.
15792         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
15793         (Files, Makefile.am): Update.
15794         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
15795         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
15796         * doc/posix-headers/wctype.texi: Update.
15797         * doc/posix-functions/iswalnum.texi: Update.
15798         * doc/posix-functions/iswalpha.texi: Update.
15799         * doc/posix-functions/iswblank.texi: Update.
15800         * doc/posix-functions/iswcntrl.texi: Update.
15801         * doc/posix-functions/iswdigit.texi: Update.
15802         * doc/posix-functions/iswgraph.texi: Update.
15803         * doc/posix-functions/iswlower.texi: Update.
15804         * doc/posix-functions/iswprint.texi: Update.
15805         * doc/posix-functions/iswpunct.texi: Update.
15806         * doc/posix-functions/iswspace.texi: Update.
15807         * doc/posix-functions/iswupper.texi: Update.
15808         * doc/posix-functions/iswxdigit.texi: Update.
15809         * doc/posix-functions/towlower.texi: Update.
15810         * doc/posix-functions/towupper.texi: Update.
15811         * NEWS: Mention the change.
15812         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
15813         * modules/mbchar (Dependencies): Likewise.
15814         * modules/mbswidth (Dependencies): Likewise.
15815         * modules/quotearg (Dependencies): Likewise.
15816         * modules/regex (Dependencies): Likewise.
15817         * modules/wcscasecmp (Dependencies): Likewise.
15818         * modules/wcsncasecmp (Dependencies): Likewise.
15819         * modules/wcwidth (Dependencies): Likewise.
15820
15821 2011-02-06  Bruno Haible  <bruno@clisp.org>
15822
15823         New module 'wcswidth'.
15824         * modules/wcswidth: New file.
15825         * lib/wchar.in.h (wcswidth): New declaration.
15826         * lib/wcswidth.c: New file.
15827         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
15828         * m4/wcswidth.m4: New file.
15829         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
15830         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
15831         REPLACE_WCSWIDTH.
15832         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
15833         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
15834         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
15835         * doc/posix-functions/wcswidth.texi: Mention the new module.
15836
15837 2011-02-06  Bruno Haible  <bruno@clisp.org>
15838
15839         New module 'wcstok'.
15840         * modules/wcstok: New file.
15841         * lib/wchar.in.h (wcstok): New declaration.
15842         * lib/wcstok.c: New file.
15843         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
15844         * m4/wcstok.m4: New file.
15845         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
15846         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
15847         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
15848         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
15849         * doc/posix-functions/wcstok.texi: Mention the new module.
15850
15851 2011-02-06  Bruno Haible  <bruno@clisp.org>
15852
15853         New module 'wcsstr'.
15854         * modules/wcsstr: New file.
15855         * lib/wchar.in.h (wcsstr): New declaration.
15856         * lib/wcsstr.c: New file.
15857         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
15858         * m4/wcsstr.m4: New file.
15859         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
15860         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
15861         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
15862         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
15863         * doc/posix-functions/wcsstr.texi: Mention the new module.
15864
15865 2011-02-06  Bruno Haible  <bruno@clisp.org>
15866
15867         New module 'wcspbrk'.
15868         * modules/wcspbrk: New file.
15869         * lib/wchar.in.h (wcspbrk): New declaration.
15870         * lib/wcspbrk.c: New file.
15871         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
15872         * m4/wcspbrk.m4: New file.
15873         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
15874         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
15875         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
15876         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
15877         * doc/posix-functions/wcspbrk.texi: Mention the new module.
15878
15879 2011-02-06  Bruno Haible  <bruno@clisp.org>
15880
15881         New module 'wcsspn'.
15882         * modules/wcsspn: New file.
15883         * lib/wchar.in.h (wcsspn): New declaration.
15884         * lib/wcsspn.c: New file.
15885         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
15886         * m4/wcsspn.m4: New file.
15887         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
15888         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
15889         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
15890         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
15891         * doc/posix-functions/wcsspn.texi: Mention the new module.
15892
15893 2011-02-06  Bruno Haible  <bruno@clisp.org>
15894
15895         New module 'wcscspn'.
15896         * modules/wcscspn: New file.
15897         * lib/wchar.in.h (wcscspn): New declaration.
15898         * lib/wcscspn.c: New file.
15899         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
15900         * m4/wcscspn.m4: New file.
15901         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
15902         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
15903         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
15904         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
15905         * doc/posix-functions/wcscspn.texi: Mention the new module.
15906
15907 2011-02-06  Bruno Haible  <bruno@clisp.org>
15908
15909         New module 'wcsrchr'.
15910         * modules/wcsrchr: New file.
15911         * lib/wchar.in.h (wcsrchr): New declaration.
15912         * lib/wcsrchr.c: New file.
15913         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
15914         * m4/wcsrchr.m4: New file.
15915         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
15916         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
15917         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
15918         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
15919         * doc/posix-functions/wcsrchr.texi: Mention the new module.
15920
15921 2011-02-06  Bruno Haible  <bruno@clisp.org>
15922
15923         New module 'wcschr'.
15924         * modules/wcschr: New file.
15925         * lib/wchar.in.h (wcschr): New declaration.
15926         * lib/wcschr.c: New file.
15927         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
15928         * m4/wcschr.m4: New file.
15929         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
15930         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
15931         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
15932         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
15933         * doc/posix-functions/wcschr.texi: Mention the new module.
15934
15935 2011-02-06  Bruno Haible  <bruno@clisp.org>
15936
15937         New module 'wcsdup'.
15938         * modules/wcsdup: New file.
15939         * lib/wchar.in.h (wcsdup): New declaration.
15940         * lib/wcsdup.c: New file.
15941         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
15942         * m4/wcsdup.m4: New file.
15943         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
15944         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
15945         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
15946         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
15947         * doc/posix-functions/wcsdup.texi: Mention the new module.
15948
15949 2011-02-06  Bruno Haible  <bruno@clisp.org>
15950
15951         New module 'wcsxfrm'.
15952         * modules/wcsxfrm: New file.
15953         * lib/wchar.in.h (wcsxfrm): New declaration.
15954         * lib/wcsxfrm.c: New file.
15955         * lib/wcsxfrm-impl.h: New file.
15956         * m4/wcsxfrm.m4: New file.
15957         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
15958         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
15959         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
15960         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
15961         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
15962
15963 2011-02-06  Bruno Haible  <bruno@clisp.org>
15964
15965         New module 'wcscoll'.
15966         * modules/wcscoll: New file.
15967         * lib/wchar.in.h (wcscoll): New declaration.
15968         * lib/wcscoll.c: New file.
15969         * lib/wcscoll-impl.h: New file.
15970         * m4/wcscoll.m4: New file.
15971         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
15972         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
15973         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
15974         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
15975         * doc/posix-functions/wcscoll.texi: Mention the new module.
15976
15977 2011-02-06  Bruno Haible  <bruno@clisp.org>
15978
15979         New module 'wcsncasecmp'.
15980         * modules/wcsncasecmp: New file.
15981         * lib/wchar.in.h (wcsncasecmp): New declaration.
15982         * lib/wcsncasecmp.c: New file.
15983         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
15984         * m4/wcsncasecmp.m4: New file.
15985         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
15986         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
15987         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
15988         HAVE_WCSNCASECMP.
15989         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
15990         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
15991
15992 2011-02-06  Bruno Haible  <bruno@clisp.org>
15993
15994         New module 'wcscasecmp'.
15995         * modules/wcscasecmp: New file.
15996         * lib/wchar.in.h (wcscasecmp): New declaration.
15997         * lib/wcscasecmp.c: New file.
15998         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
15999         * m4/wcscasecmp.m4: New file.
16000         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
16001         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
16002         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
16003         HAVE_WCSCASECMP.
16004         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
16005         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
16006
16007 2011-02-05  Bruno Haible  <bruno@clisp.org>
16008
16009         New module 'wcsncmp'.
16010         * modules/wcsncmp: New file.
16011         * lib/wchar.in.h (wcsncmp): New declaration.
16012         * lib/wcsncmp.c: New file.
16013         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
16014         * m4/wcsncmp.m4: New file.
16015         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
16016         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
16017         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
16018         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
16019         * doc/posix-functions/wcsncmp.texi: Mention the new module.
16020
16021 2011-02-05  Bruno Haible  <bruno@clisp.org>
16022
16023         New module 'wcscmp'.
16024         * modules/wcscmp: New file.
16025         * lib/wchar.in.h (wcscmp): New declaration.
16026         * lib/wcscmp.c: New file.
16027         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
16028         * m4/wcscmp.m4: New file.
16029         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
16030         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
16031         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
16032         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
16033         * doc/posix-functions/wcscmp.texi: Mention the new module.
16034
16035 2011-02-05  Bruno Haible  <bruno@clisp.org>
16036
16037         New module 'wcsncat'.
16038         * modules/wcsncat: New file.
16039         * lib/wchar.in.h (wcsncat): New declaration.
16040         * lib/wcsncat.c: New file.
16041         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
16042         * m4/wcsncat.m4: New file.
16043         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
16044         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
16045         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
16046         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
16047         * doc/posix-functions/wcsncat.texi: Mention the new module.
16048
16049 2011-02-05  Bruno Haible  <bruno@clisp.org>
16050
16051         New module 'wcscat'.
16052         * modules/wcscat: New file.
16053         * lib/wchar.in.h (wcscat): New declaration.
16054         * lib/wcscat.c: New file.
16055         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
16056         * m4/wcscat.m4: New file.
16057         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
16058         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
16059         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
16060         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
16061         * doc/posix-functions/wcscat.texi: Mention the new module.
16062
16063 2011-02-05  Bruno Haible  <bruno@clisp.org>
16064
16065         New module 'wcpncpy'.
16066         * modules/wcpncpy: New file.
16067         * lib/wchar.in.h (wcpncpy): New declaration.
16068         * lib/wcpncpy.c: New file.
16069         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
16070         * m4/wcpncpy.m4: New file.
16071         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
16072         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
16073         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
16074         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
16075         * doc/posix-functions/wcpncpy.texi: Mention the new module.
16076
16077 2011-02-05  Bruno Haible  <bruno@clisp.org>
16078
16079         New module 'wcsncpy'.
16080         * modules/wcsncpy: New file.
16081         * lib/wchar.in.h (wcsncpy): New declaration.
16082         * lib/wcsncpy.c: New file.
16083         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
16084         * m4/wcsncpy.m4: New file.
16085         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
16086         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
16087         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
16088         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
16089         * doc/posix-functions/wcsncpy.texi: Mention the new module.
16090
16091 2011-02-05  Bruno Haible  <bruno@clisp.org>
16092
16093         New module 'wcpcpy'.
16094         * modules/wcpcpy: New file.
16095         * lib/wchar.in.h (wcpcpy): New declaration.
16096         * lib/wcpcpy.c: New file.
16097         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
16098         * m4/wcpcpy.m4: New file.
16099         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
16100         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
16101         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
16102         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
16103         * doc/posix-functions/wcpcpy.texi: Mention the new module.
16104
16105 2011-02-05  Bruno Haible  <bruno@clisp.org>
16106
16107         New module 'wcscpy'.
16108         * modules/wcscpy: New file.
16109         * lib/wchar.in.h (wcscpy): New declaration.
16110         * lib/wcscpy.c: New file.
16111         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
16112         * m4/wcscpy.m4: New file.
16113         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
16114         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
16115         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
16116         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
16117         * doc/posix-functions/wcscpy.texi: Mention the new module.
16118
16119 2011-02-05  Bruno Haible  <bruno@clisp.org>
16120
16121         New module 'wcsnlen'.
16122         * modules/wcsnlen: New file.
16123         * lib/wchar.in.h (wcsnlen): New declaration.
16124         * lib/wcsnlen.c: New file.
16125         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
16126         * m4/wcsnlen.m4: New file.
16127         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
16128         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
16129         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
16130         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
16131         * doc/posix-functions/wcsnlen.texi: Mention the new module.
16132
16133 2011-02-05  Bruno Haible  <bruno@clisp.org>
16134
16135         New module 'wcslen'.
16136         * modules/wcslen: New file.
16137         * lib/wchar.in.h (wcslen): New declaration.
16138         * lib/wcslen.c: New file.
16139         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
16140         * m4/wcslen.m4: New file.
16141         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
16142         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
16143         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
16144         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
16145         * doc/posix-functions/wcslen.texi: Mention the new module.
16146
16147 2011-02-05  Bruno Haible  <bruno@clisp.org>
16148
16149         New module 'wmemset'.
16150         * modules/wmemset: New file.
16151         * lib/wchar.in.h (wmemset): New declaration.
16152         * lib/wmemset.c: New file.
16153         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
16154         * m4/wmemset.m4: New file.
16155         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
16156         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
16157         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
16158         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
16159         * doc/posix-functions/wmemset.texi: Mention the new module.
16160
16161 2011-02-05  Bruno Haible  <bruno@clisp.org>
16162
16163         New module 'wmemmove'.
16164         * modules/wmemmove: New file.
16165         * lib/wchar.in.h (wmemmove): New declaration.
16166         * lib/wmemmove.c: New file.
16167         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
16168         * m4/wmemmove.m4: New file.
16169         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
16170         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
16171         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
16172         HAVE_WMEMMOVE.
16173         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
16174         * doc/posix-functions/wmemmove.texi: Mention the new module.
16175
16176 2011-02-05  Bruno Haible  <bruno@clisp.org>
16177
16178         New module 'wmemcpy'.
16179         * modules/wmemcpy: New file.
16180         * lib/wchar.in.h (wmemcpy): New declaration.
16181         * lib/wmemcpy.c: New file.
16182         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
16183         * m4/wmemcpy.m4: New file.
16184         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
16185         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
16186         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
16187         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
16188         * doc/posix-functions/wmemcpy.texi: Mention the new module.
16189
16190 2011-02-05  Bruno Haible  <bruno@clisp.org>
16191
16192         New module 'wmemcmp'.
16193         * modules/wmemcmp: New file.
16194         * lib/wchar.in.h (wmemcmp): New declaration.
16195         * lib/wmemcmp.c: New file.
16196         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
16197         * m4/wmemcmp.m4: New file.
16198         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
16199         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
16200         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
16201         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
16202         * doc/posix-functions/wmemcmp.texi: Mention the new module.
16203
16204 2011-02-07  Jim Meyering  <meyering@redhat.com>
16205
16206         di-set, ino-map: new modules, from coreutils
16207         * lib/di-set.c: New file.
16208         * lib/di-set.h: Likewise.
16209         * lib/ino-map.c: Likewise.
16210         * lib/ino-map.h: Likewise.
16211         * modules/di-set: Likewise.
16212         * modules/di-set-tests: Likewise.
16213         * modules/ino-map: Likewise.
16214         * modules/ino-map-tests: Likewise.
16215         * tests/test-di-set.c: Likewise.
16216         * tests/test-ino-map.c: Likewise.
16217
16218 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
16219
16220         getloadavg: merge minor changes from Emacs
16221
16222         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
16223         (getloadavg): Use memset, not bzero.
16224
16225         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
16226         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16227         clash (bug#86).
16228
16229 2010-11-14  Bruno Haible  <bruno@clisp.org>
16230
16231         Allow multiple gnulib generated replacements to coexist.
16232         * lib/getopt.in.h (struct option): Avoid identical redefinition.
16233         * lib/inttypes.in.h (imaxdiv_t): Likewise.
16234         * lib/langinfo.in.h (nl_item): Likewise.
16235         * lib/math.in.h (_NaN, NAN): Likewise.
16236         * lib/netdb.in.h (struct addrinfo): Likewise.
16237         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
16238         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
16239         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
16240         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
16241         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
16242         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
16243         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
16244         pthread_mutexattr_init, pthread_mutexattr_settype,
16245         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
16246         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
16247         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
16248         pthread_spin_trylock, pthread_spin_unlock): Likewise.
16249         * lib/sched.in.h (struct sched_param): Likewise.
16250         * lib/se-selinux.in.h (security_class_t, security_context_t,
16251         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
16252         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
16253         lsetfilecon, fsetfilecon, security_check_context,
16254         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
16255         Likewise.
16256         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
16257         Likewise.
16258         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
16259         _gl_function_taking_int_returning_void_t, union sigval,
16260         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
16261         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
16262         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
16263         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
16264         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
16265         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
16266         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
16267         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
16268         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
16269         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
16270         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
16271         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
16272         socklen_t, rpl_fd_isset): Likewise.
16273         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
16274         * lib/sys_time.in.h (struct timeval): Likewise.
16275         * lib/sys_times.in.h (struct tms): Likewise.
16276         * lib/sys_utsname.in.h (struct utsname):
16277         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
16278         * lib/unistd.in.h (getpagesize): Likewise.
16279         * lib/wchar.in.h (mbstate_t): Likewise.
16280         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
16281         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
16282         towlower, towupper): Likewise.
16283         Reported by Sam Steingold <sds@gnu.org>.
16284
16285 2011-02-05  Eric Blake  <eblake@redhat.com>
16286
16287         unsetenv: work around Haiku issues
16288         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
16289         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
16290
16291 2010-12-30  Bruce Korb  <bkorb@gnu.org>
16292
16293         libposix: avoid calling error() within libposix
16294         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
16295         is defined.
16296
16297 2011-02-05  Eric Blake  <eblake@redhat.com>
16298
16299         strerror_r-posix: port to cygwin
16300         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
16301         implementation.
16302         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
16303         * tests/test-strerror_r.c (main): Fix test.
16304         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16305         issue.
16306
16307 2011-02-05  Bruno Haible  <bruno@clisp.org>
16308
16309         New module 'wmemchr'.
16310         * modules/wmemchr: New file.
16311         * lib/wchar.in.h (wmemchr): New declaration.
16312         * lib/wmemchr.c: New file.
16313         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
16314         * m4/wmemchr.m4: New file.
16315         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
16316         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
16317         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
16318         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
16319         * doc/posix-functions/wmemchr.texi: Mention the new module.
16320
16321 2011-02-04  Eric Blake  <eblake@redhat.com>
16322
16323         fdopendir: detect FreeBSD bug
16324         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
16325         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
16326
16327 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16328
16329         stdbool: do not define HAVE_STDBOOL_H
16330         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
16331         AC_HEADER_STDBOOL.  All uses changed.  Do not define
16332         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
16333         imported from the latest Autoconf git.  It was motivated by Emacs,
16334         which uses gnulib but does not need HAVE_STDBOOL_H.
16335
16336 2011-02-04  Bruno Haible  <bruno@clisp.org>
16337
16338         wcsnrtombs: Prepare for new module wwcsnrtombs.
16339         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
16340         * lib/wcsnrtombs.c: Include it.
16341         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
16342
16343         wcsrtombs: Prepare for new module wwcsrtombs.
16344         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
16345         * lib/wcsrtombs.c: Include it.
16346         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
16347
16348         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
16349         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
16350         * lib/mbsnrtowcs.c: Include it.
16351         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
16352
16353         mbsrtowcs: Prepare for new module mbsrtowwcs.
16354         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
16355         * lib/mbsrtowcs.c: Include it.
16356         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
16357
16358 2011-02-04  Bruno Haible  <bruno@clisp.org>
16359
16360         vasnprintf: Reduce use of malloc for small format strings.
16361         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
16362         (arguments): Add room for the first 7 arguments.
16363         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
16364         (char_directives, u8_directives, u16_directives, u32_directives): Add
16365         room for the first 7 directives.
16366         * lib/printf-parse.c: Include <string.h>.
16367         (PRINTF_PARSE): Change memory handling code so that it uses the first
16368         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
16369         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
16370         Reported by Pádraig Brady <P@draigbrady.com>.
16371
16372 2011-01-31  Eric Blake  <eblake@redhat.com>
16373
16374         dup2: work around Haiku bug
16375         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
16376         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
16377         * doc/posix-functions/dup2.texi (dup2): Document the bug.
16378         * tests/test-dup2.c (main): Enhance test.
16379
16380 2011-01-31  Simon Josefsson  <simon@josefsson.org>
16381
16382         doc: off_t is not available in eglibc 2.11.2 stdio.h.
16383         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
16384         declared by eglibc 2.11.2.
16385         * lib/stdio.in.h: Likewise.
16386
16387 2011-01-31  Eric Blake  <eblake@redhat.com>
16388
16389         ignore-value: add missing test dependency
16390         * tests/test-ignore-value.c: Revert previous change; stdio.h
16391         provides off_t.
16392         * modules/ignore-value-tests (Depends-on): Add missing dependency.
16393
16394 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
16395
16396         mktime: clarify long_int width checking
16397         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
16398         the top level, to make it clearer that the assumption about
16399         long_int width is being checked.  See
16400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
16401
16402 2011-01-30  Simon Josefsson  <simon@josefsson.org>
16403
16404         ignore-value: Fix self-test.
16405         * tests/test-ignore-value.c: Include sys/types.h for off_t.
16406
16407 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16408
16409         TYPE_MAXIMUM: avoid theoretically undefined behavior
16410         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
16411         negative number, which the C Standard says has undefined behavior.
16412         In practice this is not a problem, but might as well do it by the book.
16413         Reported by Rich Felker and Eric Blake; see
16414         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
16415         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
16416         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16417         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16418         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
16419         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16420         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
16421
16422         mktime: #undef mktime before #defining it
16423         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
16424
16425         mktime: systematically normalize tm_isdst comparisons
16426         * lib/mktime.c (isdst_differ): New function.
16427         (__mktime_internal): Use it systematically for all isdst comparisons.
16428         This completes the fix for libc BZ #6723, and removes the need for
16429         normalizing tm_isdst.  See
16430         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
16431         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
16432
16433         mktime: fix some integer overflow issues and sidestep the rest
16434
16435         This was prompted by a bug report by Benjamin Lindner for MinGW
16436         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
16437         His bug is due to signed integer overflow (0 - INT_MIN), and I
16438         I scanned through mktime.c looking for other integer overflow
16439         problems, fixing all the bugs I found.
16440
16441         Although the C Standard says the resulting code is still not safe
16442         in the presence of integer overflow, in practice it should be good
16443         enough for all real-world two's-complement implementations, except
16444         for debugging environments that deliberately trap on integer
16445         overflow (e.g., gcc -ftrapv).
16446
16447         * lib/mktime.c (WRAPV): New macro.
16448         (SHR): Also check that long_int and time_t shift right in the
16449         usual way, before using the fast-but-unportable method.
16450         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
16451         used.  The code already assumed two's complement, so there's
16452         no need to test for alternatives.  All uses removed.
16453         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
16454         the C standard.  Problem reported by Rich Felker in
16455         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
16456         (twos_complement_arithmetic): Also check long_int and time_t.
16457         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
16458         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
16459         (__mktime_internal): Avoid integer overflow with unary subtraction
16460         in two instances where -1 - X is an adequate replacement for -X,
16461         since the calculations are approximate.
16462
16463 2011-01-29  Eric Blake  <eblake@redhat.com>
16464
16465         mktime: avoid infinite loop
16466         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
16467         type; behavior is still undefined but portable to all known targets.
16468         Reported by Rich Felker.
16469
16470 2011-01-29  Simon Josefsson  <simon@josefsson.org>
16471
16472         rename, unlink, same-inode: Relicense.
16473         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
16474         * modules/unlink (License): Likewise.
16475         * modules/same-inode (License): Likewise.
16476
16477 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16478
16479         mktime: avoid problems on NetBSD 5 / i386
16480         * lib/mktime.c (long_int): New type.  This works around a problem
16481         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
16482         but time_t is 64 bits, and where I expect the existing code is
16483         wrong in some cases.
16484         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
16485         (ydhms_diff): Bring back the compile-time check for wide-enough
16486         year and yday.
16487
16488         mktime: fix misspelling in comment
16489         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
16490         This merges all recent glibc changes of importance.
16491
16492 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16493
16494         move-if-change: cope with concurrent mv of identical file.
16495         * build-aux/move-if-change (CMPPROG): Accept environment
16496         variable as an override for `cmp'.
16497         (usage): Document CMPPROG.
16498         Adjust comparison to drop stdout.  Cope with failure of mv if
16499         the target file exists and is identical to the source, for
16500         parallel builds.
16501         Report from H.J. Lu against binutils in PR binutils/12283.
16502
16503 2011-01-28  Bruce Korb  <bkorb@gnu.org>
16504
16505         * users.txt: Mention sharutils.
16506
16507 2011-01-28  Simon Josefsson  <simon@josefsson.org>
16508
16509         * users.txt: Mention OATH Toolkit.
16510
16511 2011-01-27  Bruno Haible  <bruno@clisp.org>
16512
16513         Prepare for supporting FreeBSD 10.
16514         * build-aux/config.libpath: Remove handling of freebsd1*.
16515
16516 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
16517
16518         Prepare for supporting FreeBSD 10.
16519         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
16520         match FreeBSD 10.0.
16521
16522 2011-01-27  Bruno Haible  <bruno@clisp.org>
16523
16524         vma-iter, get-rusage-as: Add OpenBSD support.
16525         * modules/vma-iter (configure.ac): Test for mquery.
16526         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
16527         * lib/vma-iter.c: Include <sys/mman.h>.
16528         (vma_iterate): Add an implementation based on mquery().
16529         * lib/resource-ext.h (get_rusage_as): Update comments.
16530         * lib/get-rusage-as.c: Likewise.
16531         * lib/get-rusage-data.c: Likewise.
16532
16533 2011-01-26  Karl Berry  <karl@gnu.org>
16534
16535         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
16536         variables to make it easier to override the makeinfo program used.
16537
16538 2011-01-26  Eric Blake  <eblake@redhat.com>
16539
16540         fcntl: work around Haiku F_DUPFD bugs
16541         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
16542         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
16543         cloexec bit on duplication.
16544         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
16545
16546 2011-01-26  Bruno Haible  <bruno@clisp.org>
16547
16548         Enable memory leak tests on AIX.
16549         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
16550         * tests/test-fprintf-posix3.c (main): Likewise.
16551
16552 2011-01-26  Bruno Haible  <bruno@clisp.org>
16553
16554         Tests for module 'get-rusage-data'.
16555         * modules/get-rusage-data-tests: New file.
16556         * tests/test-get-rusage-data.c: New file.
16557
16558         New module 'get-rusage-data'.
16559         * lib/resource-ext.h (get_rusage_data): New declaration.
16560         * lib/get-rusage-data.c: New file.
16561         * modules/get-rusage-data: New file.
16562
16563 2011-01-25  Bruno Haible  <bruno@clisp.org>
16564
16565         get-rusage-as: Allow for easier testing.
16566         * lib/resource-ext.h (get_rusage_as): Add comment.
16567         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
16568         (main): New function for interactive testing.
16569
16570 2011-01-25  Bruno Haible  <bruno@clisp.org>
16571
16572         vma-iter: Treat Haiku like BeOS.
16573         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
16574         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
16575
16576 2011-01-25  Eric Blake  <eblake@redhat.com>
16577
16578         c-stack: fix regression on cygwin when libsigsegv is present
16579         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
16580
16581 2011-01-24  Bruno Haible  <bruno@clisp.org>
16582
16583         vma-iter: Avoid empty intervals.
16584         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
16585         on an empty interval.
16586
16587 2011-01-24  Jim Meyering  <meyering@redhat.com>
16588
16589         u64: remove unnecessary #include
16590         * lib/u64.h: Don't include <stddef.h>.  It was not used.
16591
16592 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16593
16594         Allow the user to avoid the HAVE_RAW_DECL_* macros.
16595         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
16596
16597 2011-01-23  Bruno Haible  <bruno@clisp.org>
16598
16599         New module 'vma-iter'.
16600         * lib/vma-iter.h: New file.
16601         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
16602         * modules/vma-iter: New file.
16603         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
16604         for get_rusage_as_via_iterator.
16605         (vma_iterate_callback): New function.
16606         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
16607         * modules/get-rusage-as (Depends-on): Add vma-iter.
16608
16609 2011-01-23  Bruno Haible  <bruno@clisp.org>
16610
16611         uninorm: Tweak includes.
16612         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
16613         Reported by Jim Meyering.
16614
16615 2011-01-23  Bruno Haible  <bruno@clisp.org>
16616
16617         get-rusage-as: Improve on NetBSD.
16618         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
16619         /proc, like on FreeBSD.
16620
16621 2011-01-23  Jim Meyering  <meyering@redhat.com>
16622
16623         xreadlink.h: remove unnecessary #include
16624         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
16625
16626         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
16627         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
16628
16629 2011-01-23  Bruno Haible  <bruno@clisp.org>
16630
16631         get-rusage-as: Fix bug.
16632         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
16633         original limit when aborting the first loop.
16634
16635 2011-01-23  Bruno Haible  <bruno@clisp.org>
16636
16637         wctype: Ensure valid C syntax.
16638         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
16639         unconditionally, instead of gl_NEXT_HEADERS conditionally.
16640
16641 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16642
16643         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
16644         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
16645         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
16646         as they are needed only for configure's test case.
16647         This removes two unnecessary symbols from config.h.
16648
16649         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
16650         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
16651         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
16652         AC_CHECK_HEADERS_ONCE on a header that we also invoke
16653         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
16654         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
16655         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
16656         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
16657         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16658         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16659         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16660         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16661         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16662         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16663         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
16664         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16665         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16666         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16667
16668 2011-01-21  Eric Blake  <eblake@redhat.com>
16669
16670         maintainer-makefile: work with older git for submodule check
16671         * top/maint.mk (public-submodule-commit): Rewrite to avoid
16672         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
16673         Reported by Matthias Bolte.
16674
16675         bootstrap: minor portability fixes
16676         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
16677         (usage): Omit leading capital and trailing . on help phrases, per
16678         GNU Coding Standards.
16679         (check_versions, top level): Prefix messages with script name.
16680
16681 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
16682
16683         bootstrap: support --no-git option
16684         * build-aux/bootstrap: Add --no-git option, to be used when
16685         --gnulib-srcdir points to the exact desired checkout.
16686
16687 2011-01-21  Eric Blake  <eblake@redhat.com>
16688
16689         strerror_r-posix: work with glibc 2.13
16690         * lib/strerror_r.c (strerror_r): Fix return type.
16691
16692 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16693             Bruno Haible  <bruno@clisp.org>
16694
16695         uN_strstr: New unit tests.
16696         * modules/unistr/u8-strstr-tests: New file.
16697         * modules/unistr/u16-strstr-tests: New file.
16698         * modules/unistr/u32-strstr-tests: New file.
16699         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
16700         * tests/unistr/test-u8-strstr.c: New file.
16701         * tests/unistr/test-u16-strstr.c: New file.
16702         * tests/unistr/test-u32-strstr.c: New file.
16703
16704 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16705             Bruno Haible  <bruno@clisp.org>
16706
16707         Make uN_strstr functions O(n) worst-case.
16708         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
16709         16-bit and 32-bit unit cases, use the unibyte algorithm from
16710         lib/mbsstr.c.
16711         * lib/unistr/u8-strstr.c: Include <string.h>.
16712         (UNIT_IS_UINT8_T): New macro.
16713         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
16714         (U_STRLEN, U_STRNLEN): New macros.
16715         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
16716         (U_STRLEN, U_STRNLEN): New macros.
16717         * modules/unistr/u8-strstr (Depends-on): Add strstr.
16718         (configure.ac): Update required libunistring version.
16719         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
16720         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
16721         malloca.
16722         (configure.ac): Update required libunistring version.
16723         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
16724         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
16725         malloca.
16726         (configure.ac): Update required libunistring version.
16727
16728 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16729             Bruno Haible  <bruno@clisp.org>
16730
16731         Prepare for faster uN_strstr functions.
16732         * lib/str-kmp.h: Support definable UNITs.
16733         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
16734         needle_len argument.
16735         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
16736         * lib/mbscasestr.c (mbscasestr): Likewise.
16737
16738 2011-01-21  Pádraig Brady <P@draigBrady.com>
16739
16740         malloca-tests: make faster by unsetting MALLOC_PERTURB_
16741         * tests/test-malloca.c (main): Unset the environment variable
16742         to greatly speed up the test.
16743         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
16744         * modules/malloca-tests: Depend on unsetenv.
16745
16746 2011-01-21  Pádraig Brady <P@draigBrady.com>
16747
16748         ignore-value: remove stdint dependency
16749         * lib/ignore-value.h: Remove <stdint.h>
16750         * modules/ignore-value: Remove stdint dependency.
16751
16752 2011-01-21  Jim Meyering  <meyering@redhat.com>
16753
16754         maint.mk: adjust variable name to be consistent with other gl_ vars
16755         * top/maint.mk (gl_public_submodule_commit): Rename the variable
16756         to be lower case.
16757
16758 2011-01-20  Jim Meyering  <meyering@redhat.com>
16759
16760         maint.mk: make "check" depend on public-submodule-commit by default
16761         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
16762
16763 2011-01-20  Bruno Haible  <bruno@clisp.org>
16764
16765         mbfile, mbiter: Complete change from 2008-12-21.
16766         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
16767         * m4/mbiter.m4 (gl_MBITER): Likewise.
16768
16769 2011-01-20  Jim Meyering  <meyering@redhat.com>
16770
16771         init.sh: insert space between each function name and "()"
16772         * tests/init.sh: Make it a little easier to see that a function's
16773         name is "warn_", and not "warn" when looking at the first part of
16774         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
16775
16776 2011-01-20  Jim Meyering  <meyering@redhat.com>
16777
16778         mountlist: clean up code formatting
16779         * lib/mountlist.c (read_file_system_list): Split a long line,
16780         correct bracing style, use NULL in place of "(struct statfs *)0",
16781         don't parenthesize return value, add spaces around "=" and after
16782         ";-in-for-stmt".
16783
16784 2011-01-14  Markus Duft <mduft@gentoo.org>
16785
16786         mountlist: add support for Interix
16787         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
16788         Apply statvfs to all entries of /dev/fs.
16789         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
16790         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
16791
16792 2011-01-20  Jim Meyering  <meyering@redhat.com>
16793
16794         maint.mk: improve the public-submodule-commit rule
16795         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
16796         to suppress printing of its commands... unless V=1.
16797         Add git submodule's --quiet option to suppress printing of e.g.,
16798         "Entering gnulib" output.
16799         "cd" into $(srcdir) before running git submodule.
16800
16801 2011-01-20  Bruno Haible  <bruno@clisp.org>
16802
16803         include_next: Fix bug introduced on 2011-01-18.
16804         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
16805         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
16806         ac_cv_header_... variable if the second argument is not 'check'.
16807         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
16808         gl_NEXT_HEADERS_INTERNAL.
16809
16810 2011-01-20  Bruno Haible  <bruno@clisp.org>
16811
16812         Allow the user to avoid the GNULIB_TEST_* macros.
16813         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
16814         Suggested by Paul Eggert.
16815
16816 2011-01-14  Jim Meyering  <meyering@redhat.com>
16817
16818         bootstrap: avoid failure when there is no .gitmodules file
16819         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
16820         has been assigned to, even when its value is the empty string.
16821         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
16822         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
16823         Reported by John W. Eaton <jwe@gnu.org>.
16824
16825 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
16826
16827         assume <ctype.h>, ..., <time.h> exist
16828         For years gnulib has been assuming the existence of the headers
16829         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
16830         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
16831         them, since they don't appear to be needed.
16832         * README (Portability guidelines): Document this.
16833         * lib/flock.c: Assume <fcntl.h> exists.
16834         * lib/regex_internal.h: Assume <locale.h> exists.
16835         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
16836         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
16837         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
16838         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
16839         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
16840         * m4/regex.m4 (gl_REGEX): Likewise.
16841         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
16842         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
16843         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
16844         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
16845         * tests/test-argp.c: Likewise.
16846         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
16847
16848         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
16849         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
16850         AA_APPLE_UNIVERSAL_BUILD.  See
16851         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
16852         * NEWS: Document this.
16853
16854 2011-01-19  Eric Blake  <eblake@redhat.com>
16855
16856         c-stack: assume stack overflow if SA_SIGINFO unsupported
16857         * lib/c-stack.c (SIGACTION_WORKS): Rename...
16858         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
16859         sigaction will work.
16860         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
16861         behavior match Linux.
16862         * tests/test-c-stack.c (main): Prefer NULL for pointers.
16863
16864         stdbool-tests: accomodate Haiku
16865         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
16866
16867         binary-io: fix O_TEXT on Haiku
16868         * modules/binary-io (Depends-on): Add fcntl-h.
16869         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
16870         than blindly undefining O_TEXT.
16871         Reported by Scott McCreary.
16872
16873 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16874
16875         include_next: do not check for standard headers like stddef.h
16876
16877         I found this problem when modifying Emacs to use gnulib.
16878         I noticed that it added HAVE_STDDEF_H to config.h, even though
16879         gnulib always assumes <stddef.h> exists as per README and this
16880         symbol is unnecessary.
16881         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
16882         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
16883         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
16884         faster for headers like stddef.h that are known to exist.
16885         (gl_CHECK_NEXT_HEADERS): Use it.
16886         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
16887         rather than gl_CHECK_NEXT_HEADERS.
16888         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
16889         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
16890
16891 2011-01-18  Eric Blake  <eblake@redhat.com>
16892
16893         ansi-c++-opt: skip C++ dependency style if C++ is unused
16894         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
16895         tests when we know C++ compilation is not desired.
16896         Reported by Scott McCreary.
16897
16898 2011-01-18  Bruno Haible  <bruno@clisp.org>
16899
16900         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
16901         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
16902         (main): Perform test also when getrlimit and setrlimit don't exist or
16903         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
16904         limiting the address space size using setrlimit, compare the address
16905         space size before and after the the test.
16906         * tests/test-dprintf-posix2.c: Likewise.
16907         * tests/test-fprintf-posix3.sh: Update skip messages.
16908         * tests/test-dprintf-posix2.sh: Likewise.
16909         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
16910         * modules/dprintf-posix-tests (Depends-on): Likewise.
16911         Reported by Bruce Korb <bkorb@gnu.org> and
16912         Gary V. Vaughan <gary@gnu.org>.
16913
16914 2011-01-18  Bruno Haible  <bruno@clisp.org>
16915
16916         get-rusage-as: Improvement for Cygwin.
16917         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
16918         areas that are merely reserved.
16919
16920 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16921
16922         strftime: remove dependencies on multibyte modules
16923
16924         strftime depended on mbrlen, mbsinit, and wchar, but these modules
16925         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
16926         only if __osf__ is defined, and I suspect OSF doesn't need these
16927         other modules.  If my guess is wrong, we'll need to come up with a
16928         variant of strftime that doesn't need the multibyte modules.
16929
16930         I discovered this problem when attempting modify Emacs to use the
16931         strftime module.  With the previous gnulib, this caused Emacs to
16932         need 31 new files, ranging from lib/config.charset to
16933         m4/wint_t.m4.  This was overkill and I expect would be offputting
16934         to the Emacs maintainers.  After this change, only 6 new files are
16935         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
16936         stdbool.m4, and tm_gmtoff.m4.
16937
16938         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
16939         Suggested by Bruno Haible in
16940         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
16941         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
16942         and do not check for wchar.h.
16943         * modules/strftime (Files): Remove m4/mbstate_t.m4.
16944         (Depends-on): Remove mbrlen, mbsinit, wchar.
16945
16946 2011-01-18  Bruno Haible  <bruno@clisp.org>
16947
16948         Tests for module 'get-rusage-as'.
16949         * modules/get-rusage-as-tests: New file.
16950         * tests/test-get-rusage-as.c: New file.
16951
16952         New module 'get-rusage-as'.
16953         * modules/get-rusage-as: New file.
16954         * lib/resource-ext.h: New file.
16955         * lib/get-rusage-as.c: New file.
16956
16957 2011-01-17  Eric Blake  <eblake@redhat.com>
16958
16959         sigaction: relax license from LGPLv3+ to LGPLv2+
16960         * modules/sigaction (License): Relax to LGPLv2+.
16961
16962 2011-01-14  Bruno Haible  <bruno@clisp.org>
16963
16964         filemode: Make function declarations usable in C++ mode.
16965         * lib/filemode.h: Enclose function declarations in extern "C" block.
16966         Reported by John W. Eaton <jwe@gnu.org>.
16967
16968 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
16969
16970         save-cwd: no longer include "xgetcwd.h"
16971         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
16972         This avoids a compilation failure in projects that use save-cwd
16973         without also using the xgetcwd module.
16974
16975 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16976
16977         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
16978         This is so that a program like Emacs, which needs only dtoastr,
16979         does not have to bother with distributing and compiling ftoastr
16980         and ldtoastr.
16981         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
16982         * modules/dtoastr, modules/ldtoastr: New files.
16983         * modules/ftoastr: Now works just for 'float'.
16984         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
16985         (Makefile.am): Remove ftoastr.h (not needed and no effect),
16986         dtoastr.c, ldtoastr.c.
16987
16988 2011-01-11  Jim Meyering  <meyering@redhat.com>
16989
16990         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
16991         There is no need to work around the lack of the fchdir function,
16992         since gnulib can now provide a replacement when required.
16993         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
16994         * modules/save-cwd (Depends-on): Add fchdir.
16995
16996 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16997
16998         openat, save-cwd: avoid xmalloc
16999
17000         This removes a direct (but undocumented) dependency of openat on
17001         xalloc, along with an indirect dependency via save-cwd.  It also
17002         removes a dependency of save-cwd on xgetcwd, and thereby
17003         indirectly on xalloc.  This change causes the openat substitute
17004         to fall back on save_cwd when memory is tight, and for save_cwd to
17005         fail instead of dying when memory is tight, but that's good enough.
17006         Problem and initial idea for fix reported by Bastien Roucaries in
17007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
17008
17009         * lib/openat-proc.c: Include stdlib.h (for malloc), not
17010         xalloc.h (for xmalloc).
17011         (openat_proc_name): Use malloc, not xmalloc.
17012         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
17013         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
17014
17015         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
17016         This avoids heap allocation for file names whose lengths are in
17017         the range 512..1023, with the upper bound increasing to at most
17018         4031 depending on the platform's PATH_MAX.  (We do not want
17019         pathmax.h here as it might supply a non-constant PATH_MAX.)
17020         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
17021         Perhaps they should be moved to malloca.h?
17022         (OPENAT_BUFFER_SIZE): Use them.
17023
17024 2011-01-10  Bruno Haible  <bruno@clisp.org>
17025
17026         doc: Update users.txt.
17027         * users.txt: Add recutils.
17028
17029 2011-01-09  Karl Berry  <karl@gnu.org>
17030
17031         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
17032
17033         * doc/configmake.texi: New file.
17034         * doc/gnulib.texi: Include it.
17035         * modules/configmake: Move documentation from here.
17036
17037 2011-01-09  Bruno Haible  <bruno@clisp.org>
17038
17039         Update to Unicode 6.0.0.
17040         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
17041         (get_lbp): Update for Unicode 6.0.0.
17042         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
17043         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
17044         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
17045         U+11001, U+11038..U+11046. Remove U+06DE.
17046         (uc_width): Fix bounds of planes.
17047         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17048         lib/uniwidth/width.c.
17049         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
17050         trailing whitespace removed.
17051         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
17052         without comments, but with the original copyright notice.
17053         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
17054         * lib/unicase/ignorable.h: Likewise.
17055         * lib/unicase/tocasefold.h: Likewise.
17056         * lib/unicase/tolower.h: Likewise.
17057         * lib/unicase/totitle.h: Likewise.
17058         * lib/unicase/toupper.h: Likewise.
17059         * lib/unictype/bidi_of.h: Likewise.
17060         * lib/unictype/blocks.h: Likewise.
17061         * lib/unictype/categ_C.h: Likewise.
17062         * lib/unictype/categ_Cn.h: Likewise.
17063         * lib/unictype/categ_L.h: Likewise.
17064         * lib/unictype/categ_Ll.h: Likewise.
17065         * lib/unictype/categ_Lm.h: Likewise.
17066         * lib/unictype/categ_Lo.h: Likewise.
17067         * lib/unictype/categ_Lu.h: Likewise.
17068         * lib/unictype/categ_M.h: Likewise.
17069         * lib/unictype/categ_Mc.h: Likewise.
17070         * lib/unictype/categ_Me.h: Likewise.
17071         * lib/unictype/categ_Mn.h: Likewise.
17072         * lib/unictype/categ_N.h: Likewise.
17073         * lib/unictype/categ_Nd.h: Likewise.
17074         * lib/unictype/categ_No.h: Likewise.
17075         * lib/unictype/categ_P.h: Likewise.
17076         * lib/unictype/categ_Po.h: Likewise.
17077         * lib/unictype/categ_S.h: Likewise.
17078         * lib/unictype/categ_Sc.h: Likewise.
17079         * lib/unictype/categ_Sk.h: Likewise.
17080         * lib/unictype/categ_Sm.h: Likewise.
17081         * lib/unictype/categ_So.h: Likewise.
17082         * lib/unictype/categ_of.h: Likewise.
17083         * lib/unictype/combining.h: Likewise.
17084         * lib/unictype/ctype_alnum.h: Likewise.
17085         * lib/unictype/ctype_alpha.h: Likewise.
17086         * lib/unictype/ctype_graph.h: Likewise.
17087         * lib/unictype/ctype_lower.h: Likewise.
17088         * lib/unictype/ctype_print.h: Likewise.
17089         * lib/unictype/ctype_punct.h: Likewise.
17090         * lib/unictype/ctype_upper.h: Likewise.
17091         * lib/unictype/decdigit.h: Likewise.
17092         * lib/unictype/digit.h: Likewise.
17093         * lib/unictype/numeric.h: Likewise.
17094         * lib/unictype/pr_alphabetic.h: Likewise.
17095         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17096         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17097         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17098         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17099         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17100         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17101         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17102         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17103         * lib/unictype/pr_case_ignorable.h: Likewise.
17104         * lib/unictype/pr_cased.h: Likewise.
17105         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
17106         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
17107         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
17108         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
17109         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
17110         * lib/unictype/pr_combining.h: Likewise.
17111         * lib/unictype/pr_composite.h: Likewise.
17112         * lib/unictype/pr_currency_symbol.h: Likewise.
17113         * lib/unictype/pr_decimal_digit.h: Likewise.
17114         * lib/unictype/pr_deprecated.h: Likewise.
17115         * lib/unictype/pr_format_control.h: Likewise.
17116         * lib/unictype/pr_grapheme_base.h: Likewise.
17117         * lib/unictype/pr_grapheme_extend.h: Likewise.
17118         * lib/unictype/pr_grapheme_link.h: Likewise.
17119         * lib/unictype/pr_id_continue.h: Likewise.
17120         * lib/unictype/pr_id_start.h: Likewise.
17121         * lib/unictype/pr_ideographic.h: Likewise.
17122         * lib/unictype/pr_lowercase.h: Likewise.
17123         * lib/unictype/pr_math.h: Likewise.
17124         * lib/unictype/pr_numeric.h: Likewise.
17125         * lib/unictype/pr_other_alphabetic.h: Likewise.
17126         * lib/unictype/pr_other_id_continue.h: Likewise.
17127         * lib/unictype/pr_other_math.h: Likewise.
17128         * lib/unictype/pr_punctuation.h: Likewise.
17129         * lib/unictype/pr_sentence_terminal.h: Likewise.
17130         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17131         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17132         * lib/unictype/pr_unified_ideograph.h: Likewise.
17133         * lib/unictype/pr_uppercase.h: Likewise.
17134         * lib/unictype/pr_xid_continue.h: Likewise.
17135         * lib/unictype/pr_xid_start.h: Likewise.
17136         * lib/unictype/scripts.h: Likewise.
17137         * lib/unictype/scripts_byname.gperf: Likewise.
17138         * lib/unictype/sy_java_ident.h: Likewise.
17139         * lib/unigbrk/gbrkprop.h: Likewise.
17140         * lib/unilbrk/lbrkprop1.h: Likewise.
17141         * lib/unilbrk/lbrkprop2.h: Likewise.
17142         * lib/uninorm/decomposition-table2.h: Likewise.
17143         * lib/uniwbrk/wbrkprop.h: Likewise.
17144         * tests/unicase/test-cased.c: Likewise.
17145         * tests/unicase/test-ignorable.c: Likewise.
17146         * tests/unicase/test-uc_tolower.c: Likewise.
17147         * tests/unicase/test-uc_totitle.c: Likewise.
17148         * tests/unicase/test-uc_toupper.c: Likewise.
17149         * tests/unictype/test-categ_C.c: Likewise.
17150         * tests/unictype/test-categ_Cn.c: Likewise.
17151         * tests/unictype/test-categ_L.c: Likewise.
17152         * tests/unictype/test-categ_Ll.c: Likewise.
17153         * tests/unictype/test-categ_Lm.c: Likewise.
17154         * tests/unictype/test-categ_Lo.c: Likewise.
17155         * tests/unictype/test-categ_Lu.c: Likewise.
17156         * tests/unictype/test-categ_M.c: Likewise.
17157         * tests/unictype/test-categ_Mc.c: Likewise.
17158         * tests/unictype/test-categ_Me.c: Likewise.
17159         * tests/unictype/test-categ_Mn.c: Likewise.
17160         * tests/unictype/test-categ_N.c: Likewise.
17161         * tests/unictype/test-categ_Nd.c: Likewise.
17162         * tests/unictype/test-categ_No.c: Likewise.
17163         * tests/unictype/test-categ_P.c: Likewise.
17164         * tests/unictype/test-categ_Po.c: Likewise.
17165         * tests/unictype/test-categ_S.c: Likewise.
17166         * tests/unictype/test-categ_Sc.c: Likewise.
17167         * tests/unictype/test-categ_Sk.c: Likewise.
17168         * tests/unictype/test-categ_Sm.c: Likewise.
17169         * tests/unictype/test-categ_So.c: Likewise.
17170         * tests/unictype/test-ctype_alnum.c: Likewise.
17171         * tests/unictype/test-ctype_alpha.c: Likewise.
17172         * tests/unictype/test-ctype_graph.c: Likewise.
17173         * tests/unictype/test-ctype_lower.c: Likewise.
17174         * tests/unictype/test-ctype_print.c: Likewise.
17175         * tests/unictype/test-ctype_punct.c: Likewise.
17176         * tests/unictype/test-ctype_upper.c: Likewise.
17177         * tests/unictype/test-decdigit.h: Likewise.
17178         * tests/unictype/test-digit.h: Likewise.
17179         * tests/unictype/test-numeric.h: Likewise.
17180         * tests/unictype/test-pr_alphabetic.c: Likewise.
17181         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17182         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
17183         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
17184         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17185         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17186         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17187         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17188         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17189         * tests/unictype/test-pr_case_ignorable.c: Likewise.
17190         * tests/unictype/test-pr_cased.c: Likewise.
17191         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
17192         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
17193         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
17194         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
17195         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
17196         * tests/unictype/test-pr_combining.c: Likewise.
17197         * tests/unictype/test-pr_composite.c: Likewise.
17198         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17199         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17200         * tests/unictype/test-pr_deprecated.c: Likewise.
17201         * tests/unictype/test-pr_format_control.c: Likewise.
17202         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17203         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17204         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17205         * tests/unictype/test-pr_id_continue.c: Likewise.
17206         * tests/unictype/test-pr_id_start.c: Likewise.
17207         * tests/unictype/test-pr_ideographic.c: Likewise.
17208         * tests/unictype/test-pr_lowercase.c: Likewise.
17209         * tests/unictype/test-pr_math.c: Likewise.
17210         * tests/unictype/test-pr_numeric.c: Likewise.
17211         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17212         * tests/unictype/test-pr_other_id_continue.c: Likewise.
17213         * tests/unictype/test-pr_other_math.c: Likewise.
17214         * tests/unictype/test-pr_punctuation.c: Likewise.
17215         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17216         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17217         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17218         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17219         * tests/unictype/test-pr_uppercase.c: Likewise.
17220         * tests/unictype/test-pr_xid_continue.c: Likewise.
17221         * tests/unictype/test-pr_xid_start.c: Likewise.
17222         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17223         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17224         changes.
17225         * lib/unictype/categ_Cc.h: Likewise.
17226         * lib/unictype/categ_Cf.h: Likewise.
17227         * lib/unictype/categ_Co.h: Likewise.
17228         * lib/unictype/categ_Cs.h: Likewise.
17229         * lib/unictype/categ_Lt.h: Likewise.
17230         * lib/unictype/categ_Nl.h: Likewise.
17231         * lib/unictype/categ_Pc.h: Likewise.
17232         * lib/unictype/categ_Pd.h: Likewise.
17233         * lib/unictype/categ_Pe.h: Likewise.
17234         * lib/unictype/categ_Pf.h: Likewise.
17235         * lib/unictype/categ_Pi.h: Likewise.
17236         * lib/unictype/categ_Ps.h: Likewise.
17237         * lib/unictype/categ_Z.h: Likewise.
17238         * lib/unictype/categ_Zl.h: Likewise.
17239         * lib/unictype/categ_Zp.h: Likewise.
17240         * lib/unictype/categ_Zs.h: Likewise.
17241         * lib/unictype/ctype_blank.h: Likewise.
17242         * lib/unictype/ctype_cntrl.h: Likewise.
17243         * lib/unictype/ctype_digit.h: Likewise.
17244         * lib/unictype/ctype_space.h: Likewise.
17245         * lib/unictype/ctype_xdigit.h: Likewise.
17246         * lib/unictype/mirror.h: Likewise.
17247         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17248         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17249         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17250         * lib/unictype/pr_bidi_control.h: Likewise.
17251         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17252         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17253         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17254         * lib/unictype/pr_bidi_pdf.h: Likewise.
17255         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17256         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17257         * lib/unictype/pr_dash.h: Likewise.
17258         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17259         * lib/unictype/pr_diacritic.h: Likewise.
17260         * lib/unictype/pr_extender.h: Likewise.
17261         * lib/unictype/pr_hex_digit.h: Likewise.
17262         * lib/unictype/pr_hyphen.h: Likewise.
17263         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17264         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17265         * lib/unictype/pr_ignorable_control.h: Likewise.
17266         * lib/unictype/pr_iso_control.h: Likewise.
17267         * lib/unictype/pr_join_control.h: Likewise.
17268         * lib/unictype/pr_left_of_pair.h: Likewise.
17269         * lib/unictype/pr_line_separator.h: Likewise.
17270         * lib/unictype/pr_logical_order_exception.h: Likewise.
17271         * lib/unictype/pr_non_break.h: Likewise.
17272         * lib/unictype/pr_not_a_character.h: Likewise.
17273         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17274         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17275         * lib/unictype/pr_other_id_start.h: Likewise.
17276         * lib/unictype/pr_other_lowercase.h: Likewise.
17277         * lib/unictype/pr_other_uppercase.h: Likewise.
17278         * lib/unictype/pr_paired_punctuation.h: Likewise.
17279         * lib/unictype/pr_paragraph_separator.h: Likewise.
17280         * lib/unictype/pr_pattern_syntax.h: Likewise.
17281         * lib/unictype/pr_pattern_white_space.h: Likewise.
17282         * lib/unictype/pr_private_use.h: Likewise.
17283         * lib/unictype/pr_quotation_mark.h: Likewise.
17284         * lib/unictype/pr_radical.h: Likewise.
17285         * lib/unictype/pr_soft_dotted.h: Likewise.
17286         * lib/unictype/pr_space.h: Likewise.
17287         * lib/unictype/pr_titlecase.h: Likewise.
17288         * lib/unictype/pr_variation_selector.h: Likewise.
17289         * lib/unictype/pr_white_space.h: Likewise.
17290         * lib/unictype/pr_zero_width.h: Likewise.
17291         * lib/unictype/sy_c_ident.h: Likewise.
17292         * lib/unictype/sy_c_whitespace.h: Likewise.
17293         * lib/unictype/sy_java_whitespace.h: Likewise.
17294         * lib/uninorm/composition-table.gperf: Likewise.
17295         * lib/uninorm/decomposition-table1.h: Likewise.
17296         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
17297         LB8.
17298         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17299         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17300         * modules/unictype/*: Bump version number of expected libunistring
17301         version.
17302
17303 2011-01-09  Bruno Haible  <bruno@clisp.org>
17304
17305         Update to Unicode 5.2.0.
17306         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
17307         trailing whitespace removed.
17308
17309 2011-01-09  Bruno Haible  <bruno@clisp.org>
17310
17311         New Unicode character properties, from Unicode 5.2.0.
17312         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
17313         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
17314         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
17315         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
17316         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
17317         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
17318         uc_is_property_cased, uc_is_property_case_ignorable,
17319         uc_is_property_changes_when_lowercased,
17320         uc_is_property_changes_when_uppercased,
17321         uc_is_property_changes_when_titlecased,
17322         uc_is_property_changes_when_casefolded,
17323         uc_is_property_changes_when_casemapped): New declarations.
17324         * lib/unictype/pr_byname.gperf: Add the new properties.
17325         * modules/unictype/property-byname (Depends-on): Depend on the new
17326         properties modules.
17327         * modules/unictype/property-all (Depends-on): Likewise.
17328         * MODULES.html.sh (Unicode string functions): Add
17329         unictype/property-case-ignorable, unictype/property-cased,
17330         unictype/property-changes-when-casefolded,
17331         unictype/property-changes-when-casemapped,
17332         unictype/property-changes-when-lowercased,
17333         unictype/property-changes-when-titlecased,
17334         unictype/property-changes-when-uppercased.
17335
17336         New module 'unictype/property-changes-when-casemapped'.
17337         * modules/unictype/property-changes-when-casemapped: New file.
17338         * lib/unictype/pr_changes_when_casemapped.c: New file.
17339         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
17340         generated by gen-uni-tables.
17341         * modules/unictype/property-changes-when-casemapped-tests: New file.
17342         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
17343         automatically generated by gen-uni-tables.
17344
17345         New module 'unictype/property-changes-when-casefolded'.
17346         * modules/unictype/property-changes-when-casefolded: New file.
17347         * lib/unictype/pr_changes_when_casefolded.c: New file.
17348         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
17349         generated by gen-uni-tables.
17350         * modules/unictype/property-changes-when-casefolded-tests: New file.
17351         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
17352         automatically generated by gen-uni-tables.
17353
17354         New module 'unictype/property-changes-when-titlecased'.
17355         * modules/unictype/property-changes-when-titlecased: New file.
17356         * lib/unictype/pr_changes_when_titlecased.c: New file.
17357         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
17358         generated by gen-uni-tables.
17359         * modules/unictype/property-changes-when-titlecased-tests: New file.
17360         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
17361         automatically generated by gen-uni-tables.
17362
17363         New module 'unictype/property-changes-when-uppercased'.
17364         * modules/unictype/property-changes-when-uppercased: New file.
17365         * lib/unictype/pr_changes_when_uppercased.c: New file.
17366         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
17367         generated by gen-uni-tables.
17368         * modules/unictype/property-changes-when-uppercased-tests: New file.
17369         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
17370         automatically generated by gen-uni-tables.
17371
17372         New module 'unictype/property-changes-when-lowercased'.
17373         * modules/unictype/property-changes-when-lowercased: New file.
17374         * lib/unictype/pr_changes_when_lowercased.c: New file.
17375         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
17376         generated by gen-uni-tables.
17377         * modules/unictype/property-changes-when-lowercased-tests: New file.
17378         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
17379         automatically generated by gen-uni-tables.
17380
17381         New module 'unictype/property-case-ignorable'.
17382         * modules/unictype/property-case-ignorable: New file.
17383         * lib/unictype/pr_case_ignorable.c: New file.
17384         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
17385         by gen-uni-tables.
17386         * modules/unictype/property-case-ignorable-tests: New file.
17387         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
17388         generated by gen-uni-tables.
17389
17390         New module 'unictype/property-cased'.
17391         * modules/unictype/property-cased: New file.
17392         * lib/unictype/pr_cased.c: New file.
17393         * lib/unictype/pr_cased.h: New file, automatically generated by
17394         gen-uni-tables.
17395         * modules/unictype/property-cased-tests: New file.
17396         * tests/unictype/test-pr_cased.c: New file, automatically generated by
17397         gen-uni-tables.
17398
17399 2011-01-09  Bruno Haible  <bruno@clisp.org>
17400
17401         Update to Unicode 5.2.0.
17402         * lib/gen-uni-tables.c (output_predicate, output_category,
17403         output_combclass, output_bidi_category, output_decimal_digit_test,
17404         output_decimal_digit, output_digit_test, output_digit,
17405         output_numeric_test, output_numeric, output_mirror, output_scripts,
17406         output_scripts_byname, output_blocks, output_ident_category): Fix
17407         comment header.
17408         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
17409         get_wbp.
17410         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
17411         items.
17412         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
17413         Changes_When_Lowercased, Changes_When_Uppercased,
17414         Changes_When_Titlecased, Changes_When_Casefolded,
17415         Changes_When_Casemapped.
17416         (is_property_alphabetic, is_property_default_ignorable_code_point):
17417         Update for Unicode 5.2.0.
17418         (is_property_cased, is_property_case_ignorable,
17419         is_property_changes_when_lowercased,
17420         is_property_changes_when_uppercased,
17421         is_property_changes_when_titlecased,
17422         is_property_changes_when_casefolded,
17423         is_property_changes_when_casemapped): New functions.
17424         (output_properties): Output also the properties cased, case_ignorable,
17425         changes_when_lowercased, changes_when_uppercased,
17426         changes_when_titlecased, changes_when_casefolded,
17427         changes_when_casemapped.
17428         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
17429         Unicode TR#11 revision 17 -> 19.
17430         (LBP_CP): New enumeration value.
17431         (LBP_*): Adjust values accordingly.
17432         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17433         TR#14 revision 22 -> 24.
17434         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
17435         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
17436         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17437         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
17438         is_WBP_MIDLETTER.
17439         (output_composition_tables): Allow for 24 bits instead of 16 bits in
17440         the code1 and code2 of each composition rule.
17441         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
17442         * lib/unicase/ignorable.h: Likewise.
17443         * lib/unicase/tocasefold.h: Likewise.
17444         * lib/unicase/tolower.h: Likewise.
17445         * lib/unicase/totitle.h: Likewise.
17446         * lib/unicase/toupper.h: Likewise.
17447         * lib/unictype/bidi_of.h: Likewise.
17448         * lib/unictype/blocks.h: Likewise.
17449         * lib/unictype/categ_C.h: Likewise.
17450         * lib/unictype/categ_Cf.h: Likewise.
17451         * lib/unictype/categ_Cn.h: Likewise.
17452         * lib/unictype/categ_L.h: Likewise.
17453         * lib/unictype/categ_Ll.h: Likewise.
17454         * lib/unictype/categ_Lm.h: Likewise.
17455         * lib/unictype/categ_Lo.h: Likewise.
17456         * lib/unictype/categ_Lu.h: Likewise.
17457         * lib/unictype/categ_M.h: Likewise.
17458         * lib/unictype/categ_Mc.h: Likewise.
17459         * lib/unictype/categ_Mn.h: Likewise.
17460         * lib/unictype/categ_N.h: Likewise.
17461         * lib/unictype/categ_Nd.h: Likewise.
17462         * lib/unictype/categ_Nl.h: Likewise.
17463         * lib/unictype/categ_No.h: Likewise.
17464         * lib/unictype/categ_P.h: Likewise.
17465         * lib/unictype/categ_Pd.h: Likewise.
17466         * lib/unictype/categ_Po.h: Likewise.
17467         * lib/unictype/categ_S.h: Likewise.
17468         * lib/unictype/categ_Sc.h: Likewise.
17469         * lib/unictype/categ_So.h: Likewise.
17470         * lib/unictype/categ_of.h: Likewise.
17471         * lib/unictype/combining.h: Likewise.
17472         * lib/unictype/ctype_alnum.h: Likewise.
17473         * lib/unictype/ctype_alpha.h: Likewise.
17474         * lib/unictype/ctype_graph.h: Likewise.
17475         * lib/unictype/ctype_lower.h: Likewise.
17476         * lib/unictype/ctype_print.h: Likewise.
17477         * lib/unictype/ctype_punct.h: Likewise.
17478         * lib/unictype/ctype_upper.h: Likewise.
17479         * lib/unictype/decdigit.h: Likewise.
17480         * lib/unictype/digit.h: Likewise.
17481         * lib/unictype/numeric.h: Likewise.
17482         * lib/unictype/pr_alphabetic.h: Likewise.
17483         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17484         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17485         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17486         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17487         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17488         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17489         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17490         * lib/unictype/pr_combining.h: Likewise.
17491         * lib/unictype/pr_composite.h: Likewise.
17492         * lib/unictype/pr_currency_symbol.h: Likewise.
17493         * lib/unictype/pr_dash.h: Likewise.
17494         * lib/unictype/pr_decimal_digit.h: Likewise.
17495         * lib/unictype/pr_deprecated.h: Likewise.
17496         * lib/unictype/pr_diacritic.h: Likewise.
17497         * lib/unictype/pr_extender.h: Likewise.
17498         * lib/unictype/pr_grapheme_base.h: Likewise.
17499         * lib/unictype/pr_grapheme_extend.h: Likewise.
17500         * lib/unictype/pr_grapheme_link.h: Likewise.
17501         * lib/unictype/pr_id_continue.h: Likewise.
17502         * lib/unictype/pr_id_start.h: Likewise.
17503         * lib/unictype/pr_ideographic.h: Likewise.
17504         * lib/unictype/pr_ignorable_control.h: Likewise.
17505         * lib/unictype/pr_logical_order_exception.h: Likewise.
17506         * lib/unictype/pr_lowercase.h: Likewise.
17507         * lib/unictype/pr_numeric.h: Likewise.
17508         * lib/unictype/pr_other_alphabetic.h: Likewise.
17509         * lib/unictype/pr_punctuation.h: Likewise.
17510         * lib/unictype/pr_sentence_terminal.h: Likewise.
17511         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17512         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17513         * lib/unictype/pr_unified_ideograph.h: Likewise.
17514         * lib/unictype/pr_uppercase.h: Likewise.
17515         * lib/unictype/pr_xid_continue.h: Likewise.
17516         * lib/unictype/pr_xid_start.h: Likewise.
17517         * lib/unictype/pr_zero_width.h: Likewise.
17518         * lib/unictype/scripts.h: Likewise.
17519         * lib/unictype/scripts_byname.gperf: Likewise.
17520         * lib/unictype/sy_java_ident.h: Likewise.
17521         * lib/unigbrk/gbrkprop.h: Likewise.
17522         * lib/unilbrk/lbrkprop1.h: Likewise.
17523         * lib/unilbrk/lbrkprop2.h: Likewise.
17524         * lib/unilbrk/lbrktables.h: Likewise.
17525         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
17526         LBP_CP. Implement rule LB30.
17527         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
17528         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
17529         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
17530         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
17531         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
17532         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
17533         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
17534         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
17535         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
17536         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
17537         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
17538         bits instead of 16 bits in the code1 and code2 of each composition
17539         rule.
17540         (uc_composition): Update for Unicode 5.2.0.
17541         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
17542         * lib/uninorm/decomposition-table2.h: Likewise.
17543         * lib/uniwbrk/wbrkprop.h: Likewise.
17544         * tests/unicase/test-cased.c: Likewise.
17545         * tests/unicase/test-ignorable.c: Likewise.
17546         * tests/unicase/test-uc_tolower.c: Likewise.
17547         * tests/unicase/test-uc_totitle.c: Likewise.
17548         * tests/unicase/test-uc_toupper.c: Likewise.
17549         * tests/unictype/test-categ_C.c: Likewise.
17550         * tests/unictype/test-categ_Cf.c: Likewise.
17551         * tests/unictype/test-categ_Cn.c: Likewise.
17552         * tests/unictype/test-categ_L.c: Likewise.
17553         * tests/unictype/test-categ_Ll.c: Likewise.
17554         * tests/unictype/test-categ_Lm.c: Likewise.
17555         * tests/unictype/test-categ_Lo.c: Likewise.
17556         * tests/unictype/test-categ_Lu.c: Likewise.
17557         * tests/unictype/test-categ_M.c: Likewise.
17558         * tests/unictype/test-categ_Mc.c: Likewise.
17559         * tests/unictype/test-categ_Mn.c: Likewise.
17560         * tests/unictype/test-categ_N.c: Likewise.
17561         * tests/unictype/test-categ_Nd.c: Likewise.
17562         * tests/unictype/test-categ_Nl.c: Likewise.
17563         * tests/unictype/test-categ_No.c: Likewise.
17564         * tests/unictype/test-categ_P.c: Likewise.
17565         * tests/unictype/test-categ_Pd.c: Likewise.
17566         * tests/unictype/test-categ_Po.c: Likewise.
17567         * tests/unictype/test-categ_S.c: Likewise.
17568         * tests/unictype/test-categ_Sc.c: Likewise.
17569         * tests/unictype/test-categ_So.c: Likewise.
17570         * tests/unictype/test-ctype_alnum.c: Likewise.
17571         * tests/unictype/test-ctype_alpha.c: Likewise.
17572         * tests/unictype/test-ctype_graph.c: Likewise.
17573         * tests/unictype/test-ctype_lower.c: Likewise.
17574         * tests/unictype/test-ctype_print.c: Likewise.
17575         * tests/unictype/test-ctype_punct.c: Likewise.
17576         * tests/unictype/test-ctype_upper.c: Likewise.
17577         * tests/unictype/test-decdigit.h: Likewise.
17578         * tests/unictype/test-digit.h: Likewise.
17579         * tests/unictype/test-numeric.h: Likewise.
17580         * tests/unictype/test-pr_alphabetic.c: Likewise.
17581         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17582         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17583         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17584         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17585         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17586         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17587         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17588         * tests/unictype/test-pr_combining.c: Likewise.
17589         * tests/unictype/test-pr_composite.c: Likewise.
17590         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17591         * tests/unictype/test-pr_dash.c: Likewise.
17592         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17593         * tests/unictype/test-pr_deprecated.c: Likewise.
17594         * tests/unictype/test-pr_diacritic.c: Likewise.
17595         * tests/unictype/test-pr_extender.c: Likewise.
17596         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17597         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17598         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17599         * tests/unictype/test-pr_id_continue.c: Likewise.
17600         * tests/unictype/test-pr_id_start.c: Likewise.
17601         * tests/unictype/test-pr_ideographic.c: Likewise.
17602         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17603         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17604         * tests/unictype/test-pr_lowercase.c: Likewise.
17605         * tests/unictype/test-pr_numeric.c: Likewise.
17606         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17607         * tests/unictype/test-pr_punctuation.c: Likewise.
17608         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17609         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17610         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17611         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17612         * tests/unictype/test-pr_uppercase.c: Likewise.
17613         * tests/unictype/test-pr_xid_continue.c: Likewise.
17614         * tests/unictype/test-pr_xid_start.c: Likewise.
17615         * tests/unictype/test-pr_zero_width.c: Likewise.
17616         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17617         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
17618         changed behaviour: line breaking is now disallowed between a letter
17619         or '=' and '('.
17620         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17621         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17622         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
17623         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
17624         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17625         lib/uniwidth/width.c.
17626         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
17627         without comments, but with the original copyright notice.
17628         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17629         changes.
17630         * lib/unictype/categ_Cc.h: Likewise.
17631         * lib/unictype/categ_Co.h: Likewise.
17632         * lib/unictype/categ_Cs.h: Likewise.
17633         * lib/unictype/categ_Lt.h: Likewise.
17634         * lib/unictype/categ_Me.h: Likewise.
17635         * lib/unictype/categ_Pc.h: Likewise.
17636         * lib/unictype/categ_Pe.h: Likewise.
17637         * lib/unictype/categ_Pf.h: Likewise.
17638         * lib/unictype/categ_Pi.h: Likewise.
17639         * lib/unictype/categ_Ps.h: Likewise.
17640         * lib/unictype/categ_Sk.h: Likewise.
17641         * lib/unictype/categ_Sm.h: Likewise.
17642         * lib/unictype/categ_Z.h: Likewise.
17643         * lib/unictype/categ_Zl.h: Likewise.
17644         * lib/unictype/categ_Zp.h: Likewise.
17645         * lib/unictype/categ_Zs.h: Likewise.
17646         * lib/unictype/ctype_blank.h: Likewise.
17647         * lib/unictype/ctype_cntrl.h: Likewise.
17648         * lib/unictype/ctype_digit.h: Likewise.
17649         * lib/unictype/ctype_space.h: Likewise.
17650         * lib/unictype/ctype_xdigit.h: Likewise.
17651         * lib/unictype/mirror.h: Likewise.
17652         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17653         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17654         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17655         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17656         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17657         * lib/unictype/pr_bidi_control.h: Likewise.
17658         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17659         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17660         * lib/unictype/pr_bidi_pdf.h: Likewise.
17661         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17662         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17663         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17664         * lib/unictype/pr_format_control.h: Likewise.
17665         * lib/unictype/pr_hex_digit.h: Likewise.
17666         * lib/unictype/pr_hyphen.h: Likewise.
17667         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17668         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17669         * lib/unictype/pr_iso_control.h: Likewise.
17670         * lib/unictype/pr_join_control.h: Likewise.
17671         * lib/unictype/pr_left_of_pair.h: Likewise.
17672         * lib/unictype/pr_line_separator.h: Likewise.
17673         * lib/unictype/pr_math.h: Likewise.
17674         * lib/unictype/pr_non_break.h: Likewise.
17675         * lib/unictype/pr_not_a_character.h: Likewise.
17676         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17677         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17678         * lib/unictype/pr_other_id_continue.h: Likewise.
17679         * lib/unictype/pr_other_id_start.h: Likewise.
17680         * lib/unictype/pr_other_lowercase.h: Likewise.
17681         * lib/unictype/pr_other_math.h: Likewise.
17682         * lib/unictype/pr_other_uppercase.h: Likewise.
17683         * lib/unictype/pr_paired_punctuation.h: Likewise.
17684         * lib/unictype/pr_paragraph_separator.h: Likewise.
17685         * lib/unictype/pr_pattern_syntax.h: Likewise.
17686         * lib/unictype/pr_pattern_white_space.h: Likewise.
17687         * lib/unictype/pr_private_use.h: Likewise.
17688         * lib/unictype/pr_quotation_mark.h: Likewise.
17689         * lib/unictype/pr_radical.h: Likewise.
17690         * lib/unictype/pr_soft_dotted.h: Likewise.
17691         * lib/unictype/pr_space.h: Likewise.
17692         * lib/unictype/pr_titlecase.h: Likewise.
17693         * lib/unictype/pr_variation_selector.h: Likewise.
17694         * lib/unictype/pr_white_space.h: Likewise.
17695         * lib/unictype/sy_c_ident.h: Likewise.
17696         * lib/unictype/sy_c_whitespace.h: Likewise.
17697         * lib/unictype/sy_java_whitespace.h: Likewise.
17698         * modules/uni*/*: Bump version number of expected libunistring version.
17699         Reported by Simon Josefsson.
17700
17701 2011-01-09  Karl Heuer  <kwzh@gnu.org>
17702
17703         useless-if-before-free: fix typo in --help and make the internal,
17704         automatic version date update process work once again.
17705         --help output contained a NUL character instead of the
17706         backslash-zero that was intended.  Also, the "must lie within
17707         the first 8 lines" line is on line 9, and hence not getting
17708         automatically updated.
17709         * build-aux/useless-if-before-free: Fix the former by adding a
17710         backslash, and the latter by condensing the three lines of what-it-does
17711         to a single line, leaving one line of slack for the future.
17712
17713 2011-01-09  Bruno Haible  <bruno@clisp.org>
17714
17715         uniwidth/width: Fix width of U+1D173..U+1D17A.
17716         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
17717         symbolic_width, output_width_property_test): New functions.
17718         (main): Invoke output_nonspacing_property, output_width_property_test.
17719         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
17720         U+1D173..U+1D17A.
17721         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
17722         1.
17723         * modules/uniwidth/*: Bump version number of expected libunistring
17724         version.
17725         * modules/unilbrk/*: Likewise.
17726
17727 2011-01-08  Bruno Haible  <bruno@clisp.org>
17728
17729         uninorm tests: Preserve copyright of Unicode data file.
17730         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
17731         Mention modifications.
17732
17733 2011-01-08  Bruno Haible  <bruno@clisp.org>
17734
17735         gen-uni-tables: Prepare for Unicode 5.2.0.
17736         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
17737         (debug_output_lbp, output_lbp): Update.
17738
17739 2011-01-08  Bruno Haible  <bruno@clisp.org>
17740
17741         unilbrk: Clarify gen-uni-tables.c code.
17742         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
17743         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
17744         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
17745
17746 2011-01-07  Bruno Haible  <bruno@clisp.org>
17747
17748         strtod: Restore errno when successfully parsing Infinity or NaN.
17749         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
17750         restore the original errno.
17751
17752 2011-01-07  Bruno Haible  <bruno@clisp.org>
17753
17754         remove test: Avoid failure on HP-UX 11.
17755         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
17756
17757 2011-01-07  Bruno Haible  <bruno@clisp.org>
17758
17759         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
17760         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
17761         error code.
17762
17763 2011-01-07  Pádraig Brady <P@draigBrady.com>
17764
17765         ignore-value: fixup comments, and add Eric Blake
17766         as an author since he rewrote the macros.
17767         * lib/ignore-value.h (ignore_value):  State that
17768         we now support aggregates.  Also specify exactly
17769         when the GCC warn_unused_result feature was added.
17770
17771 2011-01-06  Eric Blake  <eblake@redhat.com>
17772
17773         ignore-value: support aggregate types
17774         * lib/ignore-value.h (ignore_value): Provide separate gcc
17775         definition.
17776         * modules/ignore-value-tests: New test module.
17777         * tests/test-ignore-value.c: New test.
17778
17779         maint.mk: improve sc_prohibit_strcmp regex
17780         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
17781         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
17782         definition of STRNEQ.
17783
17784         signal: work around Haiku issue with SIGBUS
17785         * lib/siglist.h: Add comment.
17786         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
17787         strsignal's favoring of SIGSEGV.
17788         * tests/test-signal.c (main): Avoid test failure.
17789         * doc/posix-headers/signal.texi (signal.h): Document the issue.
17790         Reported by Scott McCreary.
17791
17792         maint.mk: add pre-release check to ensure submodule commits are public
17793         * top/maint.mk (public-submodule-commit): New rule.
17794         (submodule-checks): New variable.
17795         (alpha beta stable): Depend on the variable.
17796
17797 2011-01-05  Pádraig Brady <P@draigBrady.com>
17798         and Jim Meyering  <meyering@redhat.com>
17799
17800         ignore-value: make ignore_value more generic; deprecate ignore_ptr
17801         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
17802         (ATTRIBUTE_DEPRECATED): Define.
17803         (_ignore_case): New function.
17804         (ignore_value): New macro, to replace the old function.
17805         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
17806         * modules/ignore-value (Depends-on): Add stdint.
17807
17808 2011-01-04  Eric Blake  <eblake@redhat.com>
17809
17810         doc: regenerate INSTALL
17811         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
17812         @firstparagraphindent support, now that autoconf dropped it.
17813         (INSTALL_PRELUDE): Reinstate old macro.
17814         * doc/install.texi: Resync from autoconf.
17815         * doc/INSTALL: Reflect recent autoconf update.
17816         * doc/INSTALL.ISO: Likewise.
17817         * doc/INSTALL.UTF-8: Likewise.
17818         Reported by Karl Berry.
17819
17820 2011-01-04  Bruce Korb  <address@hidden>
17821
17822         git-version-gen: avoid a sub-shell
17823         * build-aux/git-version-gen: Redirect stderr in `...` via
17824         "exec 2>...", rather than via an added sub-shell.
17825
17826 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
17827
17828         git-version-gen: use (...) rather than sh -c '...'
17829         * build-aux/git-version-gen: Rather than hard-coding a shell's name
17830         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
17831
17832 2011-01-03  Jim Meyering  <meyering@redhat.com>
17833
17834         git-version-gen: convert leading TABs to spaces
17835         * build-aux/git-version-gen: Expand leading TABs.
17836
17837         git-version-gen: handle failed "git rev-list"
17838         * build-aux/git-version-gen: Rather than leaking a "fatal" error
17839         from git and proceeding as if it had succeeded but printed no SHA1
17840         checksums, suppress the diagnostic and handle the failure.
17841         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
17842
17843         git-version-gen: include command name in one more diagnostic
17844         * build-aux/git-version-gen: When the required .tarball-version file
17845         was missing or unreadable, you might see the diagnostic from "cat",
17846         but no trace of the name of the invoking script.  Now, you still see
17847         the diagnostic from cat, but also get one from "git-version-gen: ".
17848         Inspired by a patch from Bruce Korb.
17849
17850         update-copyright: adjust test to match changed code
17851         * tests/test-update-copyright.sh: Change test's expected output
17852         to match new actual output.
17853
17854 2011-01-02  Bruno Haible  <bruno@clisp.org>
17855
17856         getlogin_r: Avoid test failure on HP-UX 11.
17857         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
17858         ERANGE when the second argument is zero.
17859         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
17860         portability problem.
17861
17862 2011-01-02  Bruce Korb  <bkorb@gnu.org>
17863
17864         * build-aux/update-copyright: doc Simon's changes
17865
17866 2011-01-02  Simon Josefsson  <simon@josefsson.org>
17867
17868         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
17869         environment variable.
17870
17871 2011-01-02  Bruno Haible  <bruno@clisp.org>
17872
17873         unigbrk: Avoid gcc warnings.
17874         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
17875         unused variable.
17876         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
17877         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
17878         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
17879         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
17880         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
17881         Change type of first argument to 'const char *'.
17882         (main): Remove unused variable.
17883         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
17884         type of first argument to 'const char *'.
17885         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
17886         Likewise.
17887         (main): Change type of variable 's'.
17888         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
17889         to 'int'.
17890
17891 2011-01-02  Bruno Haible  <bruno@clisp.org>
17892
17893         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
17894         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
17895         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
17896         bug.
17897         * lib/pwrite.c: Undo 2010-12-31 patch.
17898         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
17899
17900 2011-01-02  Bruno Haible  <bruno@clisp.org>
17901
17902         pread: Fix test whether it works.
17903         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
17904
17905 2011-01-02  Bruno Haible  <bruno@clisp.org>
17906
17907         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
17908         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
17909         ends in "6". Don't require a specific month name. Try also the locale
17910         names found on HP-UX 11 and Solaris 7.
17911
17912 2011-01-02  Bruno Haible  <bruno@clisp.org>
17913
17914         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
17915         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
17916         C linkage.
17917         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
17918
17919 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17920
17921         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
17922         for consistency, since the "cluster" term is not used elsewhere.
17923         * lib/unigbrk.in.h: Update name.
17924         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
17925         * lib/unigbrk/u16-grapheme-next.c: Update name.
17926         * lib/unigbrk/u16-grapheme-prev.c: Update name.
17927         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
17928         * lib/unigbrk/u32-grapheme-next.c: Update name.
17929         * lib/unigbrk/u32-grapheme-prev.c: Update name.
17930         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
17931         * lib/unigbrk/u8-grapheme-next.c: Update name.
17932         * lib/unigbrk/u8-grapheme-prev.c: Update name.
17933         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
17934         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
17935         Suggested by Bruno Haible.
17936
17937 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17938
17939         Remove module 'u8-grapheme-len' as too redundant with
17940         'u8-grapheme-next'.
17941         * modules/unigbrk/u8-grapheme-len: Delete file.
17942         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
17943         * lib/unigbrk.in.h: Remove prototype for deleted function.
17944         * lib/unigbrk/u8-grapheme-len.c: Delete file.
17945         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
17946
17947         Remove module 'u16-grapheme-len' as too redundant with
17948         'u16-grapheme-next'.
17949         * modules/unigbrk/u16-grapheme-len: Delete file.
17950         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
17951         * lib/unigbrk.in.h: Remove prototype for deleted function.
17952         * lib/unigbrk/u16-grapheme-len.c: Delete file.
17953         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
17954
17955         Remove module 'u32-grapheme-len' as too redundant with
17956         'u32-grapheme-next'.
17957         * modules/unigbrk/u32-grapheme-len: Delete file.
17958         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
17959         * lib/unigbrk.in.h: Remove prototype for deleted function.
17960         * lib/unigbrk/u32-grapheme-len.c: Delete file.
17961         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
17962
17963         Suggested by Bruno Haible.
17964
17965 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17966
17967         * unigbrk.in.h: Fix typo: "ben" => "been".
17968         Reported by Bruno Haible.
17969
17970 2011-01-01  Jim Meyering  <meyering@redhat.com>
17971
17972         maint: update almost all copyright ranges to include 2011
17973         Run the new "make update-copyright" rule.
17974
17975 2011-01-01  Jim Meyering  <meyering@redhat.com>
17976
17977         maint: update-copyright: exempt doc/INSTALL*
17978         * Makefile (update-copyright): Also exclude doc/INSTALL*,
17979         since they are generated.  Suggested by Bruno Haible.
17980
17981 2011-01-01  Jim Meyering  <meyering@redhat.com>
17982
17983         maint: refine the update-copyright rule
17984         * Makefile (update-copyright): Also exclude any file that includes
17985         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
17986         code that merely generates the comment.
17987
17988 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17989
17990         New module 'u8-grapheme-len'.
17991         * modules/unigbrk/u8-grapheme-len: New file.
17992         * modules/unigbrk/u8-grapheme-len-tests: New file.
17993         * lib/unigbrk.in.h: Add prototype for new function.
17994         * lib/unigbrk/u8-grapheme-len.c: New file.
17995         * tests/unigbrk/test-u8-grapheme-len.c: New file.
17996
17997         New module 'u16-grapheme-len'.
17998         * modules/unigbrk/u16-grapheme-len: New file.
17999         * modules/unigbrk/u16-grapheme-len-tests: New file.
18000         * lib/unigbrk.in.h: Add prototype for new function.
18001         * lib/unigbrk/u16-grapheme-len.c: New file.
18002         * tests/unigbrk/test-u16-grapheme-len.c: New file.
18003
18004         New module 'u32-grapheme-len'.
18005         * modules/unigbrk/u32-grapheme-len: New file.
18006         * modules/unigbrk/u32-grapheme-len-tests: New file.
18007         * lib/unigbrk.in.h: Add prototype for new function.
18008         * lib/unigbrk/u32-grapheme-len.c: New file.
18009         * tests/unigbrk/test-u32-grapheme-len.c: New file.
18010
18011         New module 'u8-grapheme-next'.
18012         * modules/unigbrk/u8-grapheme-next: New file.
18013         * modules/unigbrk/u8-grapheme-next-tests: New file.
18014         * lib/unigbrk.in.h: Add prototype for new function.
18015         * lib/unigbrk/u8-grapheme-next.c: New file.
18016         * tests/unigbrk/test-u8-grapheme-next.c: New file.
18017
18018         New module 'u16-grapheme-next'.
18019         * modules/unigbrk/u16-grapheme-next: New file.
18020         * modules/unigbrk/u16-grapheme-next-tests: New file.
18021         * lib/unigbrk.in.h: Add prototype for new function.
18022         * lib/unigbrk/u16-grapheme-next.c: New file.
18023         * tests/unigbrk/test-u16-grapheme-next.c: New file.
18024
18025         New module 'u32-grapheme-next'.
18026         * modules/unigbrk/u32-grapheme-next: New file.
18027         * modules/unigbrk/u32-grapheme-next-tests: New file.
18028         * lib/unigbrk.in.h: Add prototype for new function.
18029         * lib/unigbrk/u32-grapheme-next.c: New file.
18030         * tests/unigbrk/test-u32-grapheme-next.c: New file.
18031
18032         New module 'u8-grapheme-prev'.
18033         * modules/unigbrk/u8-grapheme-prev: New file.
18034         * modules/unigbrk/u8-grapheme-prev-tests: New file.
18035         * lib/unigbrk.in.h: Add prototype for new function.
18036         * lib/unigbrk/u8-grapheme-prev.c: New file.
18037         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
18038
18039         New module 'u16-grapheme-prev'.
18040         * modules/unigbrk/u16-grapheme-prev: New file.
18041         * modules/unigbrk/u16-grapheme-prev-tests: New file.
18042         * lib/unigbrk.in.h: Add prototype for new function.
18043         * lib/unigbrk/u16-grapheme-prev.c: New file.
18044         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
18045
18046         New module 'u32-grapheme-prev'.
18047         * modules/unigbrk/u32-grapheme-prev: New file.
18048         * modules/unigbrk/u32-grapheme-prev-tests: New file.
18049         * lib/unigbrk.in.h: Add prototype for new function.
18050         * lib/unigbrk/u32-grapheme-prev.c: New file.
18051         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
18052
18053         New module 'u8-grapheme-breaks'.
18054         * modules/unigbrk/u8-grapheme-breaks: New file.
18055         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
18056         * lib/unigbrk.in.h: Add prototype for new function.
18057         * lib/unigbrk/u8-grapheme-breaks.c: New file.
18058         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
18059
18060         New module 'u16-grapheme-breaks'.
18061         * modules/unigbrk/u16-grapheme-breaks: New file.
18062         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
18063         * lib/unigbrk.in.h: Add prototype for new function.
18064         * lib/unigbrk/u16-grapheme-breaks.c: New file.
18065         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
18066
18067         New module 'u32-grapheme-breaks'.
18068         * modules/unigbrk/u32-grapheme-breaks: New file.
18069         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
18070         * lib/unigbrk.in.h: Add prototype for new function.
18071         * lib/unigbrk/u32-grapheme-breaks.c: New file.
18072         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
18073
18074         New module 'ulc-grapheme-breaks'.
18075         * modules/unigbrk/ulc-grapheme-breaks: New file.
18076         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
18077         * m4/locale-ar.m4: New file.
18078         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
18079         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
18080         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
18081
18082 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18083
18084         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
18085         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
18086         modified how this file was generated before I initially submitted
18087         the module, but failed to regenerate it.  This meant that several
18088         of the level2 entries were wrong.
18089         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
18090         Remove the division-by-2 that is folded into the table now that
18091         gbrkprop.h has been regenerated properly.  Now -1 entries are
18092         handled correctly.
18093
18094         New module 'unigbrk/uc-gbrk-prop-tests'.
18095         * modules/unigbrk/uc-gbrk-prop-tests: New file.
18096         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
18097         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
18098         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
18099
18100 2011-01-01  Bruno Haible  <bruno@clisp.org>
18101
18102         Avoid use of hexadecimal escapes.
18103         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
18104         instead of hexadecimal escapes.
18105
18106 2011-01-01  Jim Meyering  <meyering@redhat.com>
18107
18108         maint: new rule to update copyright year ranges
18109         * Makefile (update-copyright): New rule.
18110
18111         maint: indent with TABs in Makefile
18112         * Makefile: Expand leading sequences of spaces to TABs
18113
18114         version-etc: update the copyright year it reports
18115         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
18116
18117 2010-12-31  Bruno Haible  <bruno@clisp.org>
18118
18119         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
18120         * lib/isfinite.c (zerof, zerod, zerol): New variables.
18121         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
18122         zero.
18123
18124 2010-12-31  Bruno Haible  <bruno@clisp.org>
18125
18126         pwrite: Work around HP-UX 11.11 bug.
18127         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
18128         works and set REPLACE_PWRITE if not.
18129         * lib/pwrite.c (pwrite): Add an implementation that uses the system
18130         function.
18131         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
18132
18133 2010-12-31  Bruno Haible  <bruno@clisp.org>
18134
18135         pread: Work around HP-UX 11 bugs.
18136         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
18137         and set REPLACE_PREAD if not.
18138         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
18139
18140 2010-12-31  Eric Blake  <eblake@redhat.com>
18141
18142         nl_langinfo: fix YESEXPR on Irix 6.5
18143         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
18144         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
18145         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
18146         it.
18147
18148 2010-12-31  Bruno Haible  <bruno@clisp.org>
18149
18150         iconv: Document HP-UX 11 bug.
18151         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
18152
18153 2010-12-31  Bruno Haible  <bruno@clisp.org>
18154
18155         ldexpl: Fix link error on HP-UX 11.
18156         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
18157         LDEXPL_LIBM, using $ISNANL_LIBM.
18158
18159 2010-12-31  Eric Blake  <eblake@redhat.com>
18160
18161         ftello: avoid compilation failure with SunStudio c89
18162         * lib/ftello.c (ftello): Use lseek, not llseek.
18163
18164         tests: avoid failing coreutils tests on cygwin
18165         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
18166         (create_exe_shims_): Return 0 when skipping.
18167
18168 2010-12-31  Bruno Haible  <bruno@clisp.org>
18169
18170         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
18171         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
18172
18173 2010-12-31  Bruno Haible  <bruno@clisp.org>
18174
18175         waitpid: Fix link error in C++ mode.
18176         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
18177
18178 2010-12-31  Bruno Haible  <bruno@clisp.org>
18179
18180         isnan: Use GCC built-ins when possible.
18181         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
18182         __builtin_isnan.
18183         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
18184         (isnan): Define using GCC built-ins for GCC >= 4.0.
18185
18186 2010-12-31  Bruno Haible  <bruno@clisp.org>
18187
18188         isnand: Fix mistake.
18189         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
18190         __builtin_isnand.
18191
18192 2010-12-31  Bruno Haible  <bruno@clisp.org>
18193
18194         open: Avoid C++ error on HP-UX 11.
18195         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
18196
18197 2010-12-31  Bruno Haible  <bruno@clisp.org>
18198
18199         time_r: Add missing declarations on HP-UX 11.
18200         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
18201         instead of HAVE_LOCALTIME_R.
18202         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
18203         HAVE_LOCALTIME_R always.
18204         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
18205         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
18206         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
18207         HAVE_LOCALTIME_R.
18208         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
18209         * doc/posix-functions/localtime_r.texi: Likewise.
18210
18211 2010-12-29  Eric Blake  <eblake@redhat.com>
18212
18213         mountlist: tweak previous commit
18214         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
18215         Reported by Paul Eggert.
18216
18217         mountlist: fix local drive detection on cygwin
18218         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
18219         that works for cygwin.
18220
18221 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18222
18223         ftoastr, snprintf: ftoastr + snprintf module
18224         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
18225         since the snprintf module now should be good enough here.
18226         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
18227         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
18228         and gl_MODULE_INDICATOR([snprintf]), but the former enables
18229         GNULIB_SNPRINTF only for the test directory, and the latter
18230         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
18231         seems to suffice by itself.
18232
18233 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18234
18235         alloca: one step towards thread-safety
18236         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
18237         need for a static variable.  All callers changed.  This does not
18238         make the alloca replacement thread-safe, but it's one step.
18239
18240         tests: minor indenting change
18241         * tests/init.sh: Sync from coreutils housekeeping patch
18242         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
18243         to keep lines within 80 columns.
18244
18245 2010-12-28  Jim Meyering  <meyering@redhat.com>
18246
18247         regex: don't infloop on persistent failing calloc
18248         * lib/regexec.c (build_trtable): Return failure indication upon
18249         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18250         In glibc, this was fixed for version 2.13:
18251         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
18252
18253 2010-12-28  Bruno Haible  <bruno@clisp.org>
18254             Paul Eggert <eggert@cs.ucla.edu>
18255
18256         linkat: Make implementation robust against system behaviour variations.
18257         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
18258         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
18259         way, and to -2 if it needs a generic runtime test.
18260         * lib/linkat.c (solaris_optimized_link_immediate,
18261         solaris_optimized_link_follow): New functions.
18262         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
18263         (check_same_link): Use it.
18264
18265 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
18266
18267         New module 'unigbrk/base'.
18268         * modules/unigbrk/base: New file.
18269         * lib/unigbrk.in.h: New file.
18270
18271         New module 'unigbrk/uc-gbrk-prop'.
18272         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
18273         * modules/unigbrk/uc-gbrk-prop: New file.
18274         * lib/unigbrk/gbrkprop.h: New file.
18275         * lib/unigbrk/uc-gbrk-prop.c: New file.
18276
18277         New module 'unigbrk/uc-is-grapheme-break'.
18278         * modules/unigbrk/uc-is-grapheme-break: New file.
18279         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
18280         * lib/unigbrk/uc-is-grapheme-break.c: New file.
18281         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
18282         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
18283         * tests/unigbrk/GraphemeBreakTest.txt: New file.
18284
18285         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
18286
18287 2010-12-27  Bruno Haible  <bruno@clisp.org>
18288
18289         linkat test: Avoid failure on Solaris 11 2010-11.
18290         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
18291
18292 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18293
18294         utimens: work around glibc rounding bug on more platforms
18295         * lib/utimens.c (fdutimens): Work around rounding bug even if
18296         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
18297         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
18298
18299 2010-12-27  Bruno Haible  <bruno@clisp.org>
18300
18301         select tests: Improve comments.
18302         * tests/test-select.c (do_select): Add comments.
18303
18304 2010-12-27  Bruno Haible  <bruno@clisp.org>
18305
18306         select tests: Safer way of handling timeout.
18307         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
18308         at every invocation.
18309
18310 2010-12-27  Bruno Haible  <bruno@clisp.org>
18311
18312         select tests: Use 'bool' where appropriate.
18313         * tests/test-select.c (connect_to_socket): Change argument type to
18314         'bool'.
18315
18316 2010-12-27  Bruno Haible  <bruno@clisp.org>
18317
18318         select tests: Use existing modules.
18319         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
18320         (configure.ac): Don't test for unistd.h.
18321         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
18322         declared in <unistd.h>.
18323
18324 2010-12-27  Bruno Haible  <bruno@clisp.org>
18325
18326         mbrtowc: Work around a Solaris 7 bug.
18327         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
18328         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
18329         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
18330         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
18331         MBRTOWC_NULL_ARG1_BUG.
18332         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
18333         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
18334         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
18335         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
18336
18337 2010-12-27  Jim Meyering  <meyering@redhat.com>
18338
18339         read-file.c: tweak syntax
18340         * lib/read-file.c (fread_file): Remove space after "*" in function
18341         definitions.
18342
18343 2010-12-27  Bruno Haible  <bruno@clisp.org>
18344
18345         times test: Avoid gcc warnings on OSF/1.
18346         * tests/test-times.c (main): Cast printf arguments from clock_t to
18347         'long int'.
18348
18349 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18350
18351         utimens: work around glibc rounding bug on older Linux kernels
18352         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
18353         on Linux with a glibc whose utimes might not work, then work
18354         around a longstanding glibc bug involving rounding rather than
18355         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
18356         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18357
18358 2010-12-26  Bruno Haible  <bruno@clisp.org>
18359
18360         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
18361         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
18362         _GL_CXXALIAS_SYS.
18363         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18364
18365 2010-12-26  Bruno Haible  <bruno@clisp.org>
18366
18367         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
18368         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
18369         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18370         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
18371         looking for the declaration.
18372         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
18373         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
18374         problem.
18375         * doc/posix-functions/inet_pton.texi: Likewise.
18376
18377 2010-12-26  Bruno Haible  <bruno@clisp.org>
18378
18379         arpa_inet: Use the common idioms with C++ support.
18380         * lib/arpa_inet.in.h: Include c++defs.h.
18381         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
18382         support.
18383         * modules/arpa_inet (Depends-on): Add c++defs.
18384         (Makefile.am): Substitute the contents of c++defs.h.
18385         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
18386         * modules/arpa_inet-c++-tests: New file.
18387         * tests/test-arpa_inet-c++.cc: New file.
18388
18389 2010-12-25  Bruno Haible  <bruno@clisp.org>
18390
18391         Fix more C++ link errors on Solaris 8.
18392         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
18393         $(LIB_EACCESS).
18394         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
18395         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
18396         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
18397         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
18398         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
18399
18400 2010-12-25  Bruno Haible  <bruno@clisp.org>
18401
18402         printf-posix: Fix link error when a non-GCC compiler is used.
18403         * lib/stdio.in.h (printf): When not using GCC, override printf
18404         correctly.
18405         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18406
18407 2010-12-25  Bruno Haible  <bruno@clisp.org>
18408
18409         strerror_r-posix: Update doc.
18410         * doc/posix-functions/strerror_r.texi: Update doc about the return
18411         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
18412
18413 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18414
18415         utimens: simplify the logic of the previous change
18416         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
18417         This should not affect whether the test succeeds or fails.
18418
18419         utimens: configure better on hosts with NFS clock skew
18420         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
18421         uses the clock of the local host.  It might use the clock of the
18422         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
18423         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18424
18425 2010-12-25  Bruno Haible  <bruno@clisp.org>
18426
18427         ptsname test: Avoid failure on Solaris.
18428         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
18429         open a pseudo-terminal; don't use BSD-style ptys.
18430         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
18431
18432 2010-12-25  Bruno Haible  <bruno@clisp.org>
18433
18434         ptsname: Avoid ERANGE failure on some systems.
18435         * lib/ptsname.c (buffer): Increase size.
18436
18437 2010-12-25  Bruno Haible  <bruno@clisp.org>
18438
18439         rename, renameat: Avoid test failures at NFS mounted locations.
18440         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
18441         so that subsequent mkdir calls succeed.
18442
18443 2010-12-25  Bruno Haible  <bruno@clisp.org>
18444
18445         iswblank: Fix C++ link error on Solaris 8.
18446         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
18447         _GL_FUNCDECL_SYS.
18448
18449 2010-12-25  Bruno Haible  <bruno@clisp.org>
18450
18451         unistd: Fix C++ link error on Solaris 8.
18452         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
18453
18454 2010-12-25  Bruno Haible  <bruno@clisp.org>
18455
18456         readlink doc: Mention an old glibc bug.
18457         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
18458
18459 2010-12-25  Bruno Haible  <bruno@clisp.org>
18460
18461         fcntl-h: Fix for use of C++ on glibc systems.
18462         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18463         also on glibc systems in C++ mode.
18464         Reported by Gary V. Vaughan <gary@gnu.org>.
18465
18466 2010-12-25  Bruno Haible  <bruno@clisp.org>
18467
18468         roundl-ieee: Make it work on OSF/1 5.1 with cc.
18469         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
18470
18471 2010-12-25  Bruno Haible  <bruno@clisp.org>
18472
18473         truncl-ieee: Make it work on OSF/1 5.1 with cc.
18474         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
18475         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
18476         test whether truncl works according to ISO C 99 with IEC 60559.
18477         * m4/truncl-ieee.m4: New file.
18478         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
18479         m4/signbit.m4.
18480         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
18481
18482 2010-12-25  Bruno Haible  <bruno@clisp.org>
18483
18484         ceill-ieee: Make it work on OSF/1 5.1 with cc.
18485         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
18486         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
18487         test whether ceill works according to ISO C 99 with IEC 60559.
18488         * m4/ceill-ieee.m4: New file.
18489         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
18490         m4/signbit.m4.
18491         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
18492
18493 2010-12-25  Bruno Haible  <bruno@clisp.org>
18494
18495         Ensure all prerequisites of <wchar.h> are included.
18496         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
18497         before <wchar.h>.
18498         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18499         gl_MBRLEN_NUL_RETVAL): Likewise.
18500         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18501         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
18502         AC_FUNC_MBRTOWC): Likewise.
18503         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18504         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
18505         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18506         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18507         Likewise.
18508         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18509         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
18510         (gl_WCHAR_H): Improve comments.
18511         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18512
18513 2010-12-25  Bruno Haible  <bruno@clisp.org>
18514
18515         strtok_r: Fix C syntax error in autoconf macro.
18516         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
18517         characters in test program.
18518
18519 2010-12-24  Bruno Haible  <bruno@clisp.org>
18520
18521         ceil, trunc, round: Fix gcc warnings.
18522         * lib/ceil.c (MIN): Undefine before redefining.
18523         * lib/trunc.c (MIN): Likewise.
18524         * lib/round.c (MIN): Likewise.
18525         Include <math.h> first.
18526
18527 2010-12-24  Bruno Haible  <bruno@clisp.org>
18528
18529         select tests: Avoid failures on OSF/1 5.1.
18530         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
18531         failure of closing the last socket; it may fail with ECONNRESET.
18532
18533 2010-12-24  Eric Blake  <eblake@redhat.com>
18534
18535         stdint: avoid HP-UX 10.20 preprocessor bug
18536         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
18537         than #if.
18538         * tests/test-floor2.c (main): Likewise.
18539         Reported by Peter O'Gorman.
18540
18541         pipe: make obsoletion transition easier
18542         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
18543         * modules/pipe (Files): Include revived file.
18544         (Include): Drop reference, to mirror getdate's behavior.
18545
18546 2010-12-24  Bruno Haible  <bruno@clisp.org>
18547
18548         sys_socket: Hide mismatch of declarations on NonStop Kernel.
18549         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
18550         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
18551         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18552
18553 2010-12-24  Bruno Haible  <bruno@clisp.org>
18554
18555         gethostname: Ensure declaration on NonStop Kernel.
18556         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
18557         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18558
18559 2010-12-24  Bruno Haible  <bruno@clisp.org>
18560
18561         sys_select: Ensure all necessary types on NonStop Kernel.
18562         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
18563         include <sys/time.h>.
18564         * doc/posix-headers/sys_select.texi: Mention that it's missing on
18565         NonStop Kernel.
18566         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18567
18568 2010-12-24  Bruno Haible  <bruno@clisp.org>
18569
18570         sys_select: Remove unneeded include.
18571         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
18572         have <sys/select.h>.
18573
18574 2010-12-24  Bruno Haible  <bruno@clisp.org>
18575
18576         gethostname: Provide a fallback for HOST_NAME_MAX.
18577         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
18578         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
18579         instead.
18580         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18581
18582 2010-12-24  Bruno Haible  <bruno@clisp.org>
18583
18584         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
18585         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
18586         (SA_RESTART): Likewise.
18587         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18588
18589 2010-12-24  Bruno Haible  <bruno@clisp.org>
18590
18591         signal: Define NSIG.
18592         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
18593         * tests/test-signal.c (nsig): New variable.
18594         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18595
18596 2010-12-24  Bruno Haible  <bruno@clisp.org>
18597
18598         rename, renameat: Avoid test failures on OSF/1 5.1.
18599         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
18600         alternative error codes.
18601         * tests/test-renameat.c (main): Likewise.
18602
18603 2010-12-24  Bruno Haible  <bruno@clisp.org>
18604
18605         *printf: Detect large precisions bug on Solaris 10/SPARC.
18606         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
18607         by Paul Eggert.
18608         * tests/test-snprintf-posix.h (test_function): Add this test code here
18609         too.
18610         * tests/test-sprintf-posix.h (test_function): Likewise.
18611         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18612         * tests/test-vasprintf-posix.c (test_function): Likewise.
18613         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
18614         around by gnulib.
18615         * doc/posix-functions/printf.texi: Likewise.
18616         * doc/posix-functions/snprintf.texi: Likewise.
18617         * doc/posix-functions/sprintf.texi: Likewise.
18618         * doc/posix-functions/vfprintf.texi: Likewise.
18619         * doc/posix-functions/vprintf.texi: Likewise.
18620         * doc/posix-functions/vsnprintf.texi: Likewise.
18621         * doc/posix-functions/vsprintf.texi: Likewise.
18622         * doc/posix-functions/dprintf.texi: Undo last commit.
18623         * doc/posix-functions/vdprintf.texi: Likewise.
18624
18625 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18626
18627         tests: port test-fdutimensat.c to Solaris 8
18628         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
18629         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
18630         On Solaris 8, it fails with errno == ENOSYS, because there is no
18631         futimens (so it can't use the fd), and there is no lutimens (so it
18632         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
18633
18634         vsnprintf: make more consistent with snprintf; doc fixes
18635
18636         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
18637         the byte count return problem was promoted from the snprintf-posix
18638         to the snprintf module.
18639         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
18640         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
18641         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
18642         * tests/test-snprintf.c (main): Check the byte count returned.
18643         * tests/test-vsnprintf.c (main): Likewise.
18644
18645 2010-12-23  Eric Blake  <eblake@redhat.com>
18646
18647         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
18648         * modules/sigpipe (License): Relax license.
18649
18650 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18651
18652         doc: document Solaris printf bug with large float precisions
18653         * doc/posix-functions/dprintf.texi (dprintf):
18654         * doc/posix-functions/fprintf.texi (fprintf):
18655         * doc/posix-functions/printf.texi (printf):
18656         * doc/posix-functions/snprintf.texi (snprintf):
18657         * doc/posix-functions/sprintf.texi (sprintf):
18658         * doc/posix-functions/vdprintf.texi (vdprintf):
18659         * doc/posix-functions/vfprintf.texi (vfprintf):
18660         * doc/posix-functions/vprintf.texi (vprintf):
18661         * doc/posix-functions/vsnprintf.texi (vsnprintf):
18662         * doc/posix-functions/vsprintf.texi (vsprintf):
18663         Mention that these functions mishandle large floating point
18664         precisions on Solaris 10.  The same bug is also present in Solaris
18665         8, and I assume earlier.  This causes "cd gnulib-tests; make
18666         check" to fail on Solaris 8 (and I assume, later) when building
18667         the latest coreutils, in test-vasprintf-posix's call to
18668         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
18669         the wide flavors (e.g., wprintf) so this patch just updates the
18670         documentation for the narrow ones.
18671
18672         test-posixtm.c: add two tests
18673         * tests/test-posixtm.c: Add two tests, to highlight the
18674         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
18675         around this bug; this is merely to document it.
18676
18677 2010-12-22  Bruno Haible  <bruno@clisp.org>
18678
18679         getlogin_r: Work around portability problem on OSF/1.
18680         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
18681         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
18682         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
18683         test for a truncated result.
18684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
18685         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
18686         * modules/getlogin_r (Depends-on): Add memchr.
18687         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
18688
18689 2010-12-22  Bruno Haible  <bruno@clisp.org>
18690
18691         ptsname: Avoid test failure on OSF/1 5.1.
18692         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
18693         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
18694         (same_slave): New function.
18695         (main): Use it to compare ptsname's result with the expected file name.
18696
18697 2010-12-22  Bruno Haible  <bruno@clisp.org>
18698
18699         Port extended stdio modules to HP NonStop Kernel.
18700         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
18701         macros.
18702         * lib/fbufmode.c: Update comments.
18703         * lib/fflush.c: Likewise.
18704         * lib/fpurge.c: Likewise.
18705         * lib/freadable.c: Likewise.
18706         * lib/freadahead.c: Likewise.
18707         * lib/freading.c: Likewise.
18708         * lib/freadptr.c: Likewise.
18709         * lib/freadseek.c: Likewise.
18710         * lib/fseeko.c: Likewise.
18711         * lib/fseterr.c: Likewise.
18712         * lib/fwritable.c: Likewise.
18713         * lib/fwriting.c: Likewise.
18714         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18715
18716 2010-12-22  Bruno Haible  <bruno@clisp.org>
18717
18718         ttyname_r: Work around bug on OSF/1 5.1.
18719         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
18720         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
18721         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
18722         present.
18723         * lib/ttyname_r.c (ttyname_r): Update comments.
18724
18725 2010-12-22  Bruno Haible  <bruno@clisp.org>
18726
18727         round: Implement result sign according to IEEE 754.
18728         * lib/round.c (MIN, MINUS_ZERO): New macros.
18729         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
18730         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
18731         * tests/test-round-ieee.c (main): Likewise.
18732         * tests/test-roundl-ieee.c (main): Likewise.
18733
18734         trunc: Implement result sign according to IEEE 754.
18735         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
18736         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
18737         * tests/test-trunc2.c: Include minus-zero.h.
18738         (MINUS_ZERO): New macro.
18739         (trunc_reference): Keep in sync with lib/trunc.c.
18740         * tests/test-truncf2.c: Include minus-zero.h.
18741         (MINUS_ZERO): New macro.
18742         (truncf_reference): Keep in sync with lib/trunc.c.
18743         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
18744         * tests/test-trunc-ieee.c (main): Likewise.
18745         * tests/test-truncl-ieee.c (main): Likewise.
18746
18747         ceil: Implement result sign according to IEEE 754.
18748         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
18749         (FUNC): Return -0.0 for -1 < x < 0.
18750         * tests/test-ceil2.c: Include minus-zero.h.
18751         (MINUS_ZERO): New macro.
18752         (ceil_reference): Keep in sync with lib/ceil.c.
18753         * tests/test-ceilf2.c: Include minus-zero.h.
18754         (MINUS_ZERO): New macro.
18755         (ceilf_reference): Keep in sync with lib/ceil.c.
18756         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
18757         * tests/test-ceil-ieee.c (main): Likewise.
18758         * tests/test-ceill-ieee.c (main): Likewise.
18759
18760         floor: Implement result sign according to IEEE 754.
18761         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
18762         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
18763         * tests/test-floorf2.c (floorf_reference): Likewise.
18764         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
18765         * tests/test-floor-ieee.c (main): Likewise.
18766         * tests/test-floorl-ieee.c (main): Likewise.
18767
18768 2010-12-22  Bruno Haible  <bruno@clisp.org>
18769
18770         getaddrinfo: Update doc.
18771         * doc/posix-functions/gai_strerror.texi: Return type is also different
18772         on AIX and HP-UX.
18773
18774 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18775
18776         getaddrinfo, inet_ntop: Update doc for Solaris.
18777         * doc/posix-functions/gai_strerror.texi: Return type is also an
18778         issue on Solaris 9 and earlier.
18779         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
18780         on Solaris 10 and earlier.
18781
18782 2010-12-21  Bruno Haible  <bruno@clisp.org>
18783
18784         New module 'roundl-ieee'.
18785         * modules/roundl-ieee: New file.
18786         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
18787         test whether roundl works according to ISO C 99 with IEC 60559.
18788         * m4/roundl-ieee.m4: New file.
18789         * modules/roundl-ieee-tests: New file.
18790         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
18791         * tests/test-roundl.c (main): Remove signbit tests.
18792         * modules/roundl-tests (Depends-on): Remove signbit.
18793         * doc/posix-functions/roundl.texi: Mention the new module.
18794
18795 2010-12-21  Bruno Haible  <bruno@clisp.org>
18796
18797         New module 'truncl-ieee'.
18798         * modules/truncl-ieee: New file.
18799         * modules/truncl-ieee-tests: New file.
18800         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
18801         * tests/test-truncl.c (main): Remove signbit tests.
18802         * modules/truncl-tests (Depends-on): Remove signbit.
18803         * doc/posix-functions/truncl.texi: Mention the new module.
18804
18805 2010-12-21  Bruno Haible  <bruno@clisp.org>
18806
18807         New module 'ceill-ieee'.
18808         * modules/ceill-ieee: New file.
18809         * modules/ceill-ieee-tests: New file.
18810         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
18811         * tests/test-ceill.c (main): Remove signbit tests.
18812         * modules/ceill-tests (Depends-on): Remove signbit.
18813         * doc/posix-functions/ceill.texi: Mention the new module.
18814
18815 2010-12-21  Bruno Haible  <bruno@clisp.org>
18816
18817         New module 'floorl-ieee'.
18818         * modules/floorl-ieee: New file.
18819         * modules/floorl-ieee-tests: New file.
18820         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
18821         * tests/test-floorl.c (main): Remove signbit tests.
18822         * modules/floorl-tests (Depends-on): Remove signbit.
18823         * doc/posix-functions/floorl.texi: Mention the new module.
18824
18825 2010-12-21  Bruno Haible  <bruno@clisp.org>
18826
18827         New module 'round-ieee'.
18828         * modules/round-ieee: New file.
18829         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
18830         whether round works according to ISO C 99 with IEC 60559.
18831         * m4/round-ieee.m4: New file.
18832         * modules/round-ieee-tests: New file.
18833         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
18834         * tests/test-round1.c (main): Remove signbit tests.
18835         * modules/round-tests (Depends-on): Remove 'signbit'.
18836         * doc/posix-functions/round.texi: Mention the new module.
18837
18838 2010-12-21  Bruno Haible  <bruno@clisp.org>
18839
18840         New module 'trunc-ieee'.
18841         * modules/trunc-ieee: New file.
18842         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
18843         whether trunc works according to ISO C 99 with IEC 60559.
18844         * m4/trunc-ieee.m4: New file.
18845         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
18846         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
18847         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
18848         * modules/trunc-ieee-tests: New file.
18849         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
18850         * tests/test-trunc1.c (main): Remove signbit tests.
18851         * modules/trunc-tests (Depends-on): Remove 'signbit'.
18852         * doc/posix-functions/trunc.texi: Mention the new module.
18853
18854 2010-12-21  Bruno Haible  <bruno@clisp.org>
18855
18856         New module 'ceil-ieee'.
18857         * modules/ceil-ieee: New file.
18858         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
18859         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
18860         ISO C 99 with IEC 60559.
18861         * m4/ceil-ieee.m4: New file.
18862         * modules/ceil (Files): Add lib/ceil.c.
18863         (Depends-on): Add 'float'.
18864         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18865         * lib/math.in.h (ceil): New declaration.
18866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
18867         REPLACE_CEIL.
18868         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
18869         * modules/ceil-ieee-tests: New file.
18870         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
18871         * tests/test-math-c++.cc: Check the signature of 'ceil'.
18872         * doc/posix-functions/ceil.texi: Mention the new module.
18873
18874 2010-12-21  Bruno Haible  <bruno@clisp.org>
18875
18876         New module 'floor-ieee'.
18877         * modules/floor-ieee: New file.
18878         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
18879         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
18880         ISO C 99 with IEC 60559.
18881         * m4/floor-ieee.m4: New file.
18882         * modules/floor (Files): Add lib/floor.c.
18883         (Depends-on): Add 'float'.
18884         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18885         * lib/math.in.h (floor): New declaration.
18886         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
18887         REPLACE_FLOOR.
18888         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
18889         * modules/floor-ieee-tests: New file.
18890         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
18891         * tests/test-math-c++.cc: Check the signature of 'floor'.
18892         * doc/posix-functions/floor.texi: Mention the new module.
18893
18894 2010-12-21  Bruno Haible  <bruno@clisp.org>
18895
18896         New module 'roundf-ieee'.
18897         * modules/roundf-ieee: New file.
18898         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
18899         test whether roundf works according to ISO C 99 with IEC 60559.
18900         * m4/roundf-ieee.m4: New file.
18901         * modules/roundf-ieee-tests: New file.
18902         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
18903         * tests/test-roundf1.c (main): Remove signbit tests.
18904         * modules/roundf-tests (Depends-on): Remove 'signbit'.
18905         * doc/posix-functions/roundf.texi: Mention the new module.
18906
18907 2010-12-21  Bruno Haible  <bruno@clisp.org>
18908
18909         New module 'truncf-ieee'.
18910         * modules/truncf-ieee: New file.
18911         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
18912         test whether truncf works according to ISO C 99 with IEC 60559.
18913         * m4/truncf-ieee.m4: New file.
18914         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
18915         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
18916         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
18917         * modules/truncf-ieee-tests: New file.
18918         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
18919         * tests/test-truncf1.c (main): Remove signbit tests.
18920         * modules/truncf-tests (Depends-on): Remove 'signbit'.
18921         * doc/posix-functions/truncf.texi: Mention the new module.
18922
18923 2010-12-21  Bruno Haible  <bruno@clisp.org>
18924
18925         New module 'ceilf-ieee'.
18926         * modules/ceilf-ieee: New file.
18927         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
18928         test whether ceilf works according to ISO C 99 with IEC 60559.
18929         * m4/ceilf-ieee.m4: New file.
18930         * modules/ceilf-ieee-tests: New file.
18931         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
18932         * tests/test-ceilf1.c (main): Remove signbit tests.
18933         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
18934         * doc/posix-functions/ceilf.texi: Mention the new module.
18935
18936 2010-12-21  Bruno Haible  <bruno@clisp.org>
18937
18938         New module 'floorf-ieee'.
18939         * modules/floorf-ieee: New file.
18940         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
18941         test whether floorf works according to ISO C 99 with IEC 60559.
18942         * m4/floorf-ieee.m4: New file.
18943         * modules/floorf-ieee-tests: New file.
18944         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
18945         * tests/test-floorf1.c (main): Remove signbit tests.
18946         * modules/floorf-tests (Depends-on): Remove 'signbit'.
18947         * doc/posix-functions/floorf.texi: Mention the new module.
18948
18949 2010-12-21  Bruno Haible  <bruno@clisp.org>
18950
18951         Support for minus zero in autoconf macros.
18952         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
18953         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
18954         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
18955         * tests/minus-zero.h: Update comments.
18956
18957 2010-12-21  Bruno Haible  <bruno@clisp.org>
18958
18959         Tests for module 'ceil'.
18960         * modules/ceil-tests: New file.
18961         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
18962         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
18963
18964 2010-12-21  Bruno Haible  <bruno@clisp.org>
18965
18966         Tests for module 'floor'.
18967         * modules/floor-tests: New file.
18968         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
18969         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
18970
18971 2010-12-21  Bruno Haible  <bruno@clisp.org>
18972
18973         math: Fix indentation.
18974         * lib/math.in.h (floorf): Fix indentation.
18975
18976 2010-12-21  Bruno Haible  <bruno@clisp.org>
18977
18978         Fix cross-compilation guesses on Solaris.
18979         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
18980         not match "solaris2.10".
18981         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18982         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
18983         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
18984
18985 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18986
18987         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
18988         This fixes a problem observed with the latest coreutils snapshot
18989         that caused a test to fail on Solaris 8.  src/csplit.c's call
18990         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
18991         earlier, instead of returning the number of bytes that would have
18992         been generated; this causes csplit to incorrectly report memory
18993         exhaustion.
18994         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
18995         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
18996         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
18997         comments to match.
18998         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
18999         Fix typo in matching older versions of Solaris: "solaris2.10"
19000         is matched by the shell pattern "solaris2.[0-9]*".  This matters
19001         only for guessing while cross-compiling.
19002         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
19003
19004 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
19005
19006         ftoastr: fix comment again
19007         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19008         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
19009         Also, simplify example a bit by using flags = 0.
19010
19011 2010-12-20  Bruno Haible  <bruno@clisp.org>
19012
19013         round*, trunc*: Update documentation regarding glibc.
19014         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
19015         * doc/posix-functions/round.texi: Likewise.
19016         * doc/posix-functions/roundl.texi: Likewise.
19017         * doc/posix-functions/truncf.texi: Likewise.
19018         * doc/posix-functions/trunc.texi: Likewise.
19019         * doc/posix-functions/truncl.texi: Likewise.
19020
19021 2010-12-20  Bruno Haible  <bruno@clisp.org>
19022
19023         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
19024         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
19025         * doc/posix-functions/round.texi: Likewise.
19026         * doc/posix-functions/roundl.texi: Likewise.
19027
19028 2010-12-20  Bruno Haible  <bruno@clisp.org>
19029
19030         ttyname_r: Add missing declaration on HP-UX 11.
19031         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
19032         HAVE_TTYNAME_R.
19033         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
19034         declared. Set HAVE_TTYNAME_R always.
19035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19036         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
19037         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
19038         HAVE_TTYNAME_R.
19039         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
19040
19041 2010-12-20  Bruno Haible  <bruno@clisp.org>
19042
19043         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
19044         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
19045         * doc/posix-functions/getlogin_r.texi: Likewise.
19046         * tests/test-getlogin.c: Include <errno.h>.
19047         (main): Avoid test failure on HP-UX 11.11.
19048         * tests/test-getlogin_r.c (main): Likewise.
19049
19050 2010-12-20  Bruno Haible  <bruno@clisp.org>
19051
19052         getlogin_r: Add missing declaration on HP-UX 11.
19053         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
19054         declared also when it exists as a function.
19055         * doc/posix-functions/getlogin_r.texi: Document this workaround.
19056
19057 2010-12-20  Bruno Haible  <bruno@clisp.org>
19058
19059         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
19060         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
19061         through wcrtomb.
19062
19063 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
19064
19065         ftoastr: fix comment
19066         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19067         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
19068
19069 2010-12-19  Bruno Haible  <bruno@clisp.org>
19070
19071         isnan: Ensure it is a macro.
19072         * lib/math.in.h (isnan): Define as a macro if not already a macro.
19073         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
19074         Solaris.
19075
19076 2010-12-19  Bruno Haible  <bruno@clisp.org>
19077
19078         ldexpl test: Fix link error on OSF/1 5.1.
19079         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
19080
19081 2010-12-19  Bruno Haible  <bruno@clisp.org>
19082
19083         wctype: Make it work in C++ mode on OSF/1 5.1.
19084         * lib/wctype.in.h (iswblank): Declare but not define here.
19085         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
19086         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
19087         * modules/wctype (Files): Add lib/iswblank.c.
19088
19089 2010-12-19  Bruno Haible  <bruno@clisp.org>
19090
19091         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
19092         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
19093         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
19094
19095 2010-12-19  Bruno Haible  <bruno@clisp.org>
19096
19097         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
19098         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
19099         _POSIX_PII_SOCKET.
19100         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
19101         * doc/posix-functions/recvfrom.texi: Likewise.
19102         * doc/posix-functions/send.texi: Likewise.
19103         * doc/posix-functions/sendto.texi: Likewise.
19104
19105 2010-12-19  Bruno Haible  <bruno@clisp.org>
19106
19107         tcgetsid: Add missing declaration on OSF/1 5.1.
19108         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
19109         HAVE_TCGETSID.
19110         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
19111         Don't set HAVE_TCGETSID.
19112         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
19113         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
19114         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
19115         HAVE_TCGETSID.
19116         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
19117
19118 2010-12-19  Bruno Haible  <bruno@clisp.org>
19119
19120         stdio: Fix problem with popen() declaration on OSF/1 5.1.
19121         * lib/stdio.in.h: During the include_next statement, let recursive
19122         includes of this file include only the system header file.
19123
19124 2010-12-19  Bruno Haible  <bruno@clisp.org>
19125
19126         iconv_open: Fix regression from 2010-12-04.
19127         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
19128         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
19129
19130 2010-12-19  Bruno Haible  <bruno@clisp.org>
19131
19132         stdbool test: Avoid a gcc warning.
19133         * tests/test-stdbool.c (main): Fail if e1 is false.
19134         Reported by Jim Meyering.
19135
19136 2010-12-19  Jim Meyering  <meyering@redhat.com>
19137
19138         setenv: restore to working order
19139         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
19140         mistakenly removed.
19141         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
19142         HAVE_SETENV.
19143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
19144         HAVE_SETENV.
19145
19146 2010-12-19  Bruno Haible  <bruno@clisp.org>
19147
19148         Document some different function declarations on OSF/1 5.1.
19149         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
19150         * doc/posix-functions/inet_ntop.texi: Likewise.
19151         * doc/posix-functions/gethostname.texi: Likewise.
19152         * lib/unistd.in.h (gethostname): Update comment.
19153
19154 2010-12-19  Bruno Haible  <bruno@clisp.org>
19155
19156         doc: Mention vasprintf-posix module.
19157         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
19158         the 'vasprintf-posix' module.
19159         * doc/glibc-functions/vasprintf.texi: Likewise.
19160
19161 2010-12-19  Bruno Haible  <bruno@clisp.org>
19162
19163         unsetenv: Add missing declaration on OSF/1 5.1.
19164         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
19165         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
19166         Don't set HAVE_UNSETENV. In the test program, set _BSD.
19167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
19168         not HAVE_UNSETENV.
19169         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
19170         HAVE_UNSETENV.
19171         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
19172
19173 2010-12-19  Bruno Haible  <bruno@clisp.org>
19174
19175         setenv: Add missing declaration on OSF/1 5.1.
19176         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
19177         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
19178         declared. Don't set HAVE_SETENV.
19179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
19180         not HAVE_SETENV.
19181         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
19182         HAVE_SETENV.
19183         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
19184
19185 2010-12-19  Bruno Haible  <bruno@clisp.org>
19186
19187         nl_langinfo tests: Avoid gcc warning.
19188         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
19189
19190 2010-12-19  Bruno Haible  <bruno@clisp.org>
19191
19192         mknod: Avoid error in C++ mode on OSF/1 with GCC.
19193         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
19194         _GL_CXXALIAS_SYS.
19195
19196 2010-12-19  Bruno Haible  <bruno@clisp.org>
19197
19198         stdbool: Relax test.
19199         * tests/test-stdbool.c (e): Don't require that casts from a variable's
19200         address to 'bool' work in static initializer, for compilers other than
19201         GCC.
19202
19203 2010-12-19  Bruno Haible  <bruno@clisp.org>
19204
19205         ftello: Add missing declaration on OSF/1 5.1.
19206         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
19207         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
19208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
19209         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
19210         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
19211
19212 2010-12-19  Bruno Haible  <bruno@clisp.org>
19213
19214         fseeko: Add missing declaration on OSF/1 5.1.
19215         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
19216         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
19217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
19218         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
19219         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
19220
19221 2010-12-19  Bruno Haible  <bruno@clisp.org>
19222
19223         fchdir: Add missing declaration on OSF/1 5.1.
19224         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
19225         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
19226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
19227         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
19228         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
19229
19230 2010-12-19  Bruno Haible  <bruno@clisp.org>
19231
19232         relocatable-prog-wrapper: Separate from relocatable-prog.
19233         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
19234         uninstall-relocwrapper rule here.
19235         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
19236         Reported by Ian Beckwith <ianb@erislabs.net>.
19237
19238 2010-12-19  Bruno Haible  <bruno@clisp.org>
19239
19240         unistr/u8-mbsnlen: Add missing dependency.
19241         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
19242         Reported by Ian Beckwith <ianb@erislabs.net>.
19243
19244 2010-12-19  Bruno Haible  <bruno@clisp.org>
19245
19246         iconv: Make it possible again to use this module without 'iconv-h'.
19247         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
19248         if it is not defined.
19249         Reported by Ian Beckwith <ianb@erislabs.net>.
19250
19251 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19252
19253         acl: port to Solaris 8 when copying from tmpfs to ufs
19254         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
19255         error number.  Problem observed on Solaris 8 with latest
19256         coreutils, with "mv A B", where A is on a tmpfs file system and B
19257         is on a ufs file system.  This caused coreutils' mv/part-symlink
19258         test to fail.
19259
19260         tests: set fail=0 at start
19261         * tests/init.sh (setup_): Move fail=0 initialization here ...
19262         (mktempd_): ... from here, so that tests can rely on fail being
19263         set to 0 initially.  This fixes a problem in coreutils; see:
19264         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
19265
19266 2010-12-18  Bruno Haible  <bruno@clisp.org>
19267
19268         memmem-simple: Stylistic changes.
19269         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
19270         Fix preprocessor directive indentation.
19271
19272 2010-12-15  Pádraig Brady <P@draigBrady.com>
19273
19274         memmem, memmem-simple: reorganize and expand empty needle check
19275         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
19276         functional checks to memmem-simple so that one has a fully functional
19277         memmem by using just this module.
19278         Restrict the performance only check to the memmem module.
19279         Also expand the empty needle check to ensure the correct
19280         pointer is returned, not just a non NULL pointer.
19281         * doc/glibc-functions/memmem.texi: Rearrange the portability
19282         documentation to correlate with the rearranged checks.
19283         Clarify exactly how the memmem and memmem-simple modules
19284         relate to each other.
19285
19286 2010-12-15  Pádraig Brady <P@draigBrady.com>
19287             Bruno Haible  <bruno@clisp.org>
19288
19289         Improve cross-compilation guesses for uClibc.
19290         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
19291         that uClibc does not have the glibc bug.
19292         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
19293         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
19294
19295 2010-12-14  Eric Blake  <eblake@redhat.com>
19296
19297         configmake: provide fallbacks for oldest supported autotools
19298         * m4/configmake.m4: New file.
19299         * modules/configmake (Files): Ship it.
19300         (configure.ac): Use it to guarantee fallbacks.
19301
19302 2010-12-13  Pádraig Brady <P@draigBrady.com>
19303
19304         read-file: Improve handling of large files
19305         * lib/read-file.c (fread_file): Minimize realloc()s
19306         for regular files, and better manage sizes around SIZE_MAX.
19307
19308 2010-12-13  Eric Blake  <eblake@redhat.com>
19309
19310         cloexec, fcntl: relax license
19311         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
19312         consent from all contributors.
19313         * modules/fcntl (License): Likewise.
19314
19315 2010-12-10  Bruno Haible  <bruno@clisp.org>
19316
19317         Tests for module 'pipe-posix'.
19318         * modules/pipe-posix-tests: New file.
19319         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
19320
19321 2010-12-10  Bruno Haible  <bruno@clisp.org>
19322
19323         pipe-posix: Make it work in C++ mode.
19324         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
19325         (pipe): Use common idiom, not a macro definition.
19326         * lib/pipe.c: New file.
19327         * m4/pipe.m4: New file.
19328         * modules/pipe-posix (Description): Enhance.
19329         (Files): Add lib/pipe.c, m4/pipe.m4.
19330         (configure.ac): Invoke gl_FUNC_PIPE.
19331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
19332         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
19333         * tests/test-unistd-c++.cc: Check the signature of pipe.
19334
19335 2010-12-10  Bruno Haible  <bruno@clisp.org>
19336
19337         Rename module 'pipe' to 'spawn-pipe'.
19338         * modules/spawn-pipe: New file, renamed from modules/pipe.
19339         (Files, configure.ac, Makefile.am): Update.
19340         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
19341         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
19342         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
19343         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
19344         "spawn-pipe.h" instead of "pipe.h".
19345         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
19346         to gl_SPAWN_PIPE.
19347         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
19348         (Files, Makefile.am): Update.
19349         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
19350         Update.
19351         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
19352         Include "spawn-pipe.h" instead of "pipe.h".
19353         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
19354         * lib/javacomp.c: Likewise.
19355         * lib/javaversion.c: Likewise.
19356         * lib/pipe-filter-gi.c: Likewise.
19357         * lib/pipe-filter-ii.c: Likewise.
19358         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
19359         * modules/javacomp (Depends-on): Likewise.
19360         * modules/javaversion (Depends-on): Likewise.
19361         * modules/pipe-filter-gi (Depends-on): Likewise.
19362         * modules/pipe-filter-ii (Depends-on): Likewise.
19363         * MODULES.html.sh (Executing programs): Update.
19364         * NEWS: Mention the change.
19365
19366 2010-12-10  Eric Blake  <eblake@redhat.com>
19367
19368         pipe-posix: new module
19369         * modules/pipe-posix: New file.
19370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
19371         (gl_UNISTD_H): Check for declaration.
19372         * modules/unistd (Makefile.am): Substitute it.
19373         * lib/unistd.in.h (pipe): Provide it for mingw.
19374         * doc/posix-functions/pipe.texi (pipe): Update documentation.
19375         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
19376
19377 2010-12-07  Bruno Haible  <bruno@clisp.org>
19378
19379         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
19380         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
19381         u8_strcmp_gnu.
19382         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
19383
19384 2010-12-06  Bruno Haible  <bruno@clisp.org>
19385
19386         Update internal documentation.
19387         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
19388
19389 2010-12-04  Bruno Haible  <bruno@clisp.org>
19390
19391         Put more information about failed tests into the test return codes.
19392         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
19393         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
19394         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19395         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19396         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19397         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19398         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19399         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19400         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
19401         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19402         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
19403         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19404         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19405         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19406         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
19407         returns a bit mask.
19408         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19409         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
19410         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
19411         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19412         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19413         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19414         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19415         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19416         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19417         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19418         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19419         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19420         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19421         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19422         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19423         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19424         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
19425         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
19426         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19427         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
19428         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19429         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19430         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19431         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19432         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19433         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19434         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19435         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19436         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19437         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
19438         gl_PRINTF_PRECISION): Likewise.
19439         * m4/regex.m4 (gl_REGEX): Likewise.
19440         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19441         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19442         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
19443         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19444         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19445         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19446         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19447         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
19448         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19449         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19450         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19451         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19452         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19453         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19454         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19455         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19456         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19457         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19458         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19459         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
19460         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
19461         enumerated value.
19462         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
19463
19464 2010-12-04  Bruno Haible  <bruno@clisp.org>
19465
19466         Update for Solaris 11 2010-11.
19467         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
19468         Express, released in November 2010.
19469
19470 2010-12-04  Bruno Haible  <bruno@clisp.org>
19471
19472         nproc: Relax license.
19473         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
19474         and Paul Eggert.
19475         Requested by Ludovic Courtès <ludo@gnu.org>.
19476
19477 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
19478
19479         utimecmp: fine-grained src to nearby coarse-grained dest
19480
19481         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
19482         and the source is on a file system with higher-resolution time
19483         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
19484         not work, and the time stamps are close together, the algorithm to
19485         determine the exact resolution from the read-back mtime was buggy:
19486         it had a "!=" where it should have had an "==".  This bug has been
19487         in the code ever since it was introduced to gnulib.
19488         Problem reported by Dan Jacobson in
19489         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
19490
19491 2010-11-30  Bruno Haible  <bruno@clisp.org>
19492
19493         strerror_r-posix: Fix autoconf test.
19494         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
19495
19496 2010-11-28  Bruno Haible  <bruno@clisp.org>
19497             Paul Eggert  <eggert@cs.ucla.edu>
19498
19499         Tests for module 'getdomainname'.
19500         * modules/getdomainname-tests: New file.
19501         * tests/test-getdomainname.c: New file, based on
19502         tests/test-gethostname.c.
19503
19504 2010-11-28  Bruno Haible  <bruno@clisp.org>
19505             Paul Eggert  <eggert@cs.ucla.edu>
19506
19507         getdomainname: Use the system function when possible.
19508         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
19509         (getdomainname): Replace if needed. Provide the declaration if it is
19510         missing. Don't use _GL_CXXALIAS_SYS_CAST.
19511         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
19512         (getdomainname): When the system has getdomainname, call the system
19513         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
19514         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19515         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
19516         found in libnsl. Look for the declaration also in <netdb.h>. Replace
19517         the function if its second argument is of type 'int' or if it is found
19518         in libnsl.
19519         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
19520         <sys/systeminfo.h> and sysinfo().
19521         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
19522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19523         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
19524         HAVE_GETDOMAINNAME.
19525         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
19526         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
19527         * doc/glibc-functions/getdomainname.texi: Document the problems with
19528         the getdomainname declaration.
19529
19530 2010-11-28  Bruno Haible  <bruno@clisp.org>
19531
19532         sys_socket: Ensure ss_family field on AIX.
19533         * lib/sys_socket.in.h (ss_family): New macro definition.
19534         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
19535         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
19536         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19537         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19538         * modules/sys_socket (Makefile.am): Substitute
19539         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19540         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
19541
19542 2010-11-27  Bruno Haible  <bruno@clisp.org>
19543
19544         readline: Improve configure output.
19545         * m4/readline.m4 (gl_FUNC_READLINE): Make the
19546         "checking for readline..." result understandable.
19547
19548 2010-11-27  Bruno Haible  <bruno@clisp.org>
19549
19550         *printf-posix: Detect a bug on Solaris 10/x86.
19551         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
19552         for floating-point output.
19553         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
19554         directive.
19555         * tests/test-snprintf-posix.h (test_function): Likewise.
19556         * tests/test-sprintf-posix.h (test_function): Likewise.
19557         * tests/test-vasprintf-posix.c (test_function): Likewise.
19558         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
19559         * doc/posix-functions/printf.texi: Likewise.
19560         * doc/posix-functions/snprintf.texi: Likewise.
19561         * doc/posix-functions/sprintf.texi: Likewise.
19562         * doc/posix-functions/vfprintf.texi: Likewise.
19563         * doc/posix-functions/vprintf.texi: Likewise.
19564         * doc/posix-functions/vsnprintf.texi: Likewise.
19565         * doc/posix-functions/vsprintf.texi: Likewise.
19566         * doc/glibc-functions/obstack_printf.texi: Likewise.
19567         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19568
19569 2010-11-27  Bruno Haible  <bruno@clisp.org>
19570
19571         Fix link error when module libunistring-optional is in use.
19572         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
19573         * modules/striconveha-tests (Makefile.am): Likewise.
19574
19575 2010-11-27  Bruno Haible  <bruno@clisp.org>
19576
19577         regex: Mention link dependencies.
19578         * modules/regex (Link): New section.
19579         * modules/rpmatch (Link): Likewise.
19580         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
19581
19582 2010-11-27  Bruno Haible  <bruno@clisp.org>
19583
19584         ftoastr: Fix compilation error on Solaris.
19585         * lib/ftoastr.c: Include <config.h>.
19586
19587 2010-11-27  Bruno Haible  <bruno@clisp.org>
19588
19589         getloadavg: Update documentation.
19590         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
19591
19592 2010-11-27  Bruno Haible  <bruno@clisp.org>
19593
19594         sys_socket: Fix test whether the functions are declared.
19595         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
19596         not <sys/select.h>.
19597
19598 2010-11-27  Bruno Haible  <bruno@clisp.org>
19599
19600         getpass: Make sure to get system declaration on some platforms.
19601         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
19602         gl_USE_SYSTEM_EXTENSIONS.
19603         * modules/getpass (Depends-on): Add extensions.
19604
19605 2010-11-26  Bruno Haible  <bruno@clisp.org>
19606
19607         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
19608         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
19609         'iconv' module is present.
19610         (ICONV_CONST): New macro.
19611         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
19612         ICONV_CONST.
19613         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
19614         set ICONV_CONST.
19615         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
19616         here.
19617         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
19618         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
19619         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
19620         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
19621         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
19622         present.
19623
19624 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
19625
19626         ftoastr: comment fix
19627         * lib/ftoastr.c: "little" -> "little or no" in comment
19628
19629 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19630
19631         stdint: port to GCC 4.3 + OSX + Octave
19632         On this platform, stdint.h is buggy and defines int64_t to long
19633         long int.  The replacement defined it to long int, causing
19634         problems with C++ style name mangling.  Instead, trust the system
19635         definition if INT64_MAX is defined, and likewise for the unsigned
19636         variant.   Problem reported by Jarno Rajahalme in
19637         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
19638         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
19639         and don't mess with int64_t and INT64_MAX in this case.
19640         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
19641
19642 2010-11-24  Bruno Haible  <bruno@clisp.org>
19643
19644         doc: Corrections regarding MacOS X 10.4 and 10.5.
19645         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
19646         MacOS X.
19647         Reported by Simon Josefsson.
19648
19649 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
19650
19651         Uninstall ".bin" files installed by relocwrapper.
19652         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
19653         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
19654         unless it is already there.
19655
19656 2010-11-21  Bruno Haible  <bruno@clisp.org>
19657
19658         Update for NetBSD 5.0.
19659         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19660         NetBSD; the test fails on NetBSD 5.0.
19661         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19662         about NetBSD.
19663
19664 2010-11-21  Bruno Haible  <bruno@clisp.org>
19665
19666         Update for HP-UX 11.23 and HP-UX 11.31.
19667         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
19668         HP-UX.
19669
19670 2010-11-21  Bruno Haible  <bruno@clisp.org>
19671
19672         Update for MacOS X 10.5.
19673         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19674         MacOS X; the test fails on MacOS X 10.5.8.
19675         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19676         about MacOS X.
19677
19678 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
19679
19680         bootstrap: add bootstrap_sync option.
19681         See discussion at
19682         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
19683         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
19684         * build-aux/bootstrap: Accept --bootstrap-sync to update
19685         bootstrap if it is not identical to the local gnulib's
19686         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
19687         enable this by default.  Accept --no-bootstrap-sync to disable
19688         it.
19689
19690 2010-11-20  Bruno Haible  <bruno@clisp.org>
19691
19692         Ensure that <features.h> is included before __GLIBC__ is tested.
19693         * lib/printf-parse.h: Include <features.h>.
19694         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
19695         Reported by Mike Frysinger <vapier@gentoo.org>.
19696
19697         Ensure that <features.h> is included before __GLIBC__ is tested.
19698         * lib/wchar.in.h: Include <features.h>.
19699         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
19700         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
19701         Reported by Mike Frysinger <vapier@gentoo.org>.
19702
19703         Ensure that <features.h> is included before __GLIBC__ is tested.
19704         * lib/arpa_inet.in.h: Include <features.h>.
19705         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
19706         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
19707         Reported by Mike Frysinger <vapier@gentoo.org>.
19708
19709         Ensure that <features.h> is included before __GLIBC__ is tested.
19710         * build-aux/link-warning.h: Include <features.h>.
19711         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
19712         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
19713         Reported by Mike Frysinger <vapier@gentoo.org>.
19714
19715         Ensure that <features.h> is included before __GLIBC__ is tested.
19716         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
19717         Reported by Mike Frysinger <vapier@gentoo.org>.
19718
19719 2010-11-20  Bruno Haible  <bruno@clisp.org>
19720
19721         memmem: Fix autoconf test.
19722         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
19723
19724 2010-11-20  Bruno Haible  <bruno@clisp.org>
19725
19726         Port to uClibc.
19727         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
19728         * lib/fcntl.in.h: Likewise.
19729         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
19730         * lib/mbrtowc.c (mbrtowc): Likewise.
19731         * lib/relocatable.c (find_shared_library_fullname): Likewise.
19732         * lib/strerror_r.c: Likewise.
19733         * lib/unistr/u8-strnlen.c: Likewise.
19734         * lib/vasnprintf.c (decimal_point_char): Likewise.
19735         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19736         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19737         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
19738         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
19739         * tests/test-sigaction.c (handler, main): Likewise.
19740         * lib/freading.h: Treat uClibc like a non-glibc platform.
19741         * lib/freading.c: Likewise.
19742         * lib/gettext.h: Likewise.
19743         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
19744         Likewise.
19745         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
19746         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
19747         * lib/propername.c (proper_name_utf8): Likewise.
19748         * lib/spawn.in.h: Likewise.
19749         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
19750         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
19751         mem_cd_iconveh_internal): Likewise.
19752         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
19753         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19754         strstr, strcasestr): Likewise.
19755         * lib/unicodeio.c (unicode_to_mb): Likewise.
19756         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
19757         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
19758         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
19759         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
19760         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
19761         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
19762         * lib/unistr/u8-stpncpy.c: Likewise.
19763         * lib/vasnprintf.c (VASNPRINTF): Likewise.
19764         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
19765         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19766         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19767         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
19768         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
19769         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
19770         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
19771         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19772         Likewise.
19773         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19774         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19775         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19776         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19777         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19778         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19779         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19780         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19781         * tests/test-getopt.h (OPTIND_MIN): Likewise.
19782         * tests/test-striconveha.c (main): Likewise.
19783         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19784         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
19785         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
19786         * doc/posix-functions/getline.texi: Likewise.
19787         Reported by Mike Frysinger <vapier@gentoo.org>.
19788
19789 2010-11-20  Bruno Haible  <bruno@clisp.org>
19790
19791         nproc: Fix condition.
19792         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
19793         HAVE_PTHREAD_AFFINITY_NP.
19794
19795 2010-11-20  Bruno Haible  <bruno@clisp.org>
19796
19797         Fix a comment.
19798         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
19799
19800 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
19801
19802         ftoastr: don't assume snprintf
19803         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
19804         Implement a subset of snprintf here, by using sprintf safely.
19805         * modules/ftoastr (Depends-on): Remove snprintf.
19806
19807 2010-11-19  Jim Meyering  <meyering@redhat.com>
19808
19809         test-rename.h: fix compilation failure
19810         * tests/test-rename.h (test_rename): Add omitted "}".
19811
19812 2010-11-17  Jim Meyering  <meyering@redhat.com>
19813
19814         maint.mk: add a URL discussing the no-@acronym policy
19815         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
19816
19817 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
19818
19819         ftoastr: depend on snprintf, improve comments
19820         * lib/ftoastr.c: Also mention Loitsch's draft.
19821         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
19822         needed in the current implementation, but it might simplify
19823         speeding up the code later.
19824         * modules/ftoastr: Depend on snprintf; this improves portability.
19825         Suggested by Bruno Haible in the same email.
19826
19827         ftoastr: port to hosts lacking strtof and strtold
19828         Problem reported by Bruno Haible in
19829         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
19830         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
19831         environment and strtold (and presumably strtof) are not available.
19832         * modules/ftoastr (Files): Add m4/c-strtod.m4.
19833         (configure.ac): Require gl_C99_STRTOLD.
19834
19835 2010-11-18  Bruno Haible  <bruno@clisp.org>
19836
19837         c-strtold: Avoid link error on AIX 7.
19838         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
19839         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
19840         (gl_C_STRTOLD): Test whether strtold_l exists.
19841         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19842
19843 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19844
19845         intprops: new macro INT_BITS_STRLEN_BOUND
19846         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
19847         ftoastr.h.  This exposes an internal of intprops.h that was formerly
19848         not exposed.  Also, it uses a slightly tighter bound than before;
19849         though this makes no practical difference, we might as well be as
19850         tight as we easily can.
19851
19852         ftoastr: new module, for lossless conversion of floats to short strings
19853         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
19854         * modules/ftoastr: New files.
19855
19856 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
19857
19858         bootstrap: port to Solaris sed
19859         * build-aux/bootstrap (get_version): Port to Solaris sed.
19860         See Ralf Wildenhues's note in
19861         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
19862
19863 2010-11-14  Jim Meyering  <meyering@redhat.com>
19864
19865         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
19866         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
19867         and move definition closer to sole use.
19868
19869 2010-11-13  Jim Meyering  <meyering@redhat.com>
19870
19871         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
19872         Now we require at least autoconf-2.59, which means the work-around
19873         is no longer needed.
19874         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
19875         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19876         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19877         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19878         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19879
19880 2010-11-13  Bruno Haible  <bruno@clisp.org>
19881
19882         rename, renameat: Avoid test failures at NFS mounted locations.
19883         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
19884         functions.
19885         (test_rename): Use assert_nonexistent.
19886         * tests/test-rename.c: Include <dirent.h>.
19887         * tests/test-renameat.c: Likewise.
19888         Reported by Gary V. Vaughan <gary@gnu.org>.
19889
19890         rename, renameat: Document Linux bug with NFS
19891         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
19892         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
19893         * doc/posix-functions/renameat.texi: Likewise.
19894         Suggested by Eric Blake.
19895
19896 2010-11-13  Bruno Haible  <bruno@clisp.org>
19897
19898         rename test: Add comments.
19899         * tests/test-rename.h (test_rename): Add structure and comments.
19900
19901 2010-11-13  Eric Blake  <eblake@redhat.com>
19902
19903         maintainer-makefile: cover a few more files
19904         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
19905         scripts generated within C files, for libvirt.
19906
19907 2010-11-13  Bruno Haible  <bruno@clisp.org>
19908
19909         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
19910         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
19911         character, return the number of bytes that belong together, not always
19912         1.
19913         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
19914         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
19915         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
19916         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
19917         number of bytes of an invalid character.
19918         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
19919         (main): Invoke it.
19920         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
19921         results.
19922         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
19923         malformed byte sequences.
19924         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
19925         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
19926         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
19927         Reported by Ben Pfaff and Paolo Bonzini.
19928
19929 2010-11-13  Bruno Haible  <bruno@clisp.org>
19930
19931         openat: Work around glibc bug with fchownat() and empty file names.
19932         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
19933         (gl_FUNC_FCHOWNAT): Invoke it.
19934         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
19935         * doc/posix-functions/fchownat.texi: Document the glibc bug.
19936         Reported by Gary V. Vaughan <gary@gnu.org>.
19937
19938 2010-11-13  Bruno Haible  <bruno@clisp.org>
19939
19940         openat: Ensure autoconf macro ordering.
19941         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
19942         gl_USE_SYSTEM_EXTENSIONS.
19943         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
19944
19945 2010-11-13  Bruno Haible  <bruno@clisp.org>
19946
19947         Update comments.
19948         * lib/unistr/u8-check.c: Update file name in comments.
19949         * lib/unistr/u8-mblen.c: Likewise.
19950         * lib/unistr/u8-prev.c: Likewise.
19951         * lib/unistr/u8-strmblen.c: Likewise.
19952         * lib/unistr/u8-strmbtouc.c: Likewise.
19953
19954 2010-11-13  Jim Meyering  <meyering@redhat.com>
19955
19956         tests: avoid test failure on Solaris 10 due to lack of PATH export
19957         * tests/test-update-copyright.sh: Don't forget to export PATH.
19958
19959         init.sh: ensure that IFS is defined, just in case...
19960         * tests/init.sh (setup_): Ensure that IFS is defined,
19961         so that saving and restoring it works as expected.  This
19962         appears to be useful at least for an old version of dash
19963         from a long time ago (RH 6).  See here for details:
19964         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
19965
19966         maint.mk: tighten "test a == b" check
19967         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
19968         test to files that contain something like #!/bin/sh.
19969         Without this, coreutils would get two false positives in
19970         the comments of C source files.
19971
19972 2010-11-12  Eric Blake  <eblake@redhat.com>
19973
19974         bootstrap: fix typo in previous attempt
19975         * build-aux/bootstrap (buildreq): Correct the grouping.
19976         Reported by Paul Eggert.
19977
19978         maintainer-makefile: prohibit test x == x
19979         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
19980         Based on a report by Matthias Bolte.
19981
19982         bootstrap: allow FreeBSD gzip
19983         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
19984         which has no '.' and goes to stderr.
19985         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
19986         Reported by Matthias Bolte.
19987
19988         maintainer-makefile: check for i18n setup
19989         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
19990         will likely work.
19991
19992 2010-11-12  Bruno Haible  <bruno@clisp.org>
19993
19994         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
19995         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
19996         * lib/nanosleep.c (nanosleep): Likewise.
19997
19998 2010-11-11  Bruno Haible  <bruno@clisp.org>
19999
20000         fcntl-h: Fix for use of C++ on glibc systems.
20001         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
20002         also on glibc systems in C++ mode.
20003         Reported by Gary V. Vaughan <gary@gnu.org>.
20004
20005 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20006
20007         mknod: avoid false failure with dash
20008         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
20009
20010 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20011
20012         unlink: Fix "is it should" typo in diagnostic.
20013         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
20014         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
20015
20016 2010-11-11  Bruno Haible  <bruno@clisp.org>
20017
20018         Tests for module 'strerror_r-posix'.
20019         * modules/strerror_r-posix-tests: New file.
20020         * tests/test-strerror_r.c: New file.
20021         * tests/test-string-c++.cc: Check the signature of strerror_r.
20022
20023         New module 'strerror_r-posix'.
20024         * lib/string.in.h (strerror_r): New declaration.
20025         * lib/strerror_r.c: New file.
20026         * m4/strerror_r.m4: New file.
20027         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
20028         of strerror_r.
20029         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
20030         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20031         * modules/strerror_r-posix: New file.
20032         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
20033         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20034         * doc/posix-functions/strerror_r.texi: Mention the new module and the
20035         portability problems.
20036
20037 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
20038
20039         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
20040         line is also considered for output. Quoted function name in shell
20041         command, so temporary files for functions like MyClass::operator()
20042         are removed correctly without errors.
20043
20044 2010-11-09  Bruno Haible  <bruno@clisp.org>
20045
20046         * doc/posix-functions/strerror.texi: List more failing platforms.
20047
20048         * doc/posix-functions/strerror.texi: Add a comment.
20049
20050 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20051
20052         fdopendir: fix bug on MacOS X when low on file descriptors
20053
20054         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
20055         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
20056         All callers changed.
20057         (fdopendir): Invoke save_cwd at the top level, not after using
20058         multiple dup() calls to use up file descriptors.  Then retry
20059         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
20060         less than the maximum number of open file descriptors, because
20061         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
20062         on Mac OS X 10.6.4 for tar 1.24
20063         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
20064         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
20065         and for tar 1.25
20066         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
20067
20068 2010-11-07  Bruno Haible  <bruno@clisp.org>
20069
20070         vasnprintf: Support I flag on glibc systems.
20071         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
20072         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
20073         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
20074         snprintf function.
20075         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
20076         glibc systems.
20077         * tests/test-vasnprintf-posix3.c: New file.
20078         * modules/vasnprintf-posix-tests (Files): Add it.
20079         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
20080
20081 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20082
20083         [html] Fix copy/paste bug: Use unique name for compiler warnings.
20084         * MODULES.html.sh: For compiler warnings, use name
20085         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
20086
20087 2010-11-05  Eric Blake  <eblake@redhat.com>
20088
20089         ceil, floor: avoid spurious failure with icc
20090         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
20091         [denormals-as-zero] when optimizing without -mieee-fp option.
20092         * tests/test-floorf2.c (floorf_reference): Likewise.
20093         * tests/test-ceilf1.c (dummy): New function.
20094         (main): Use it to outsmart icc's optimization.
20095         * tests/test-floorf1.c (dummy, main): Likewise.
20096
20097         tests: require working signbit
20098         * modules/ceilf-tests (Depends-on): Add signbit.
20099         * modules/ceill-tests (Depends-on): Likewise.
20100         * modules/floorf-tests (Depends-on): Likewise.
20101         * modules/floorl-tests (Depends-on): Likewise.
20102         * modules/round-tests (Depends-on): Likewise.
20103         * modules/roundf-tests (Depends-on): Likewise.
20104         * modules/roundl-tests (Depends-on): Likewise.
20105         * modules/trunc-tests (Depends-on): Likewise.
20106         * modules/truncf-tests (Depends-on): Likewise.
20107         * modules/truncl-tests (Depends-on): Likewise.
20108
20109         strtod: work around icc bug
20110         * lib/strtod.c (minus_zero): Define to working value.
20111         (strtod): Use it to avoid icc bug.
20112
20113         copysign: enhance tests
20114         * modules/copysign-tests (Files): Add minus-zero.h.
20115         * tests/test-copysign.c (main): Also test zeros.
20116
20117 2010-11-04  Eric Blake  <eblake@redhat.com>
20118
20119         ceil, floor, round, trunc: enhance tests of -0
20120         * tests/test-ceilf1.c (main): Ensure correct sign of result.
20121         * tests/test-ceill.c (main): Likewise.
20122         * tests/test-floorf1.c (main): Likewise.
20123         * tests/test-floorl.c (main): Likewise.
20124         * tests/test-round1.c (main): Likewise.
20125         * tests/test-roundf1.c (main): Likewise.
20126         * tests/test-roundl.c (main): Likewise.
20127         * tests/test-trunc1.c (main): Likewise.
20128         * tests/test-truncf1.c (main): Likewise.
20129         * tests/test-truncl.c (main): Likewise.
20130
20131 2010-11-04  Eric Blake  <eblake@redhat.com>
20132
20133         frexp, tests: work around ICC bug with -zero
20134         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
20135         works with more compilers.
20136         * tests/minus-zero.h: New file.
20137         * modules/ceilf-tests (Files): Include it.
20138         * modules/ceill-tests (Files): Likewise.
20139         * modules/floorf-tests (Files): Likewise.
20140         * modules/floorl-tests (Files): Likewise.
20141         * modules/frexp-nolibm-tests (Files): Likewise.
20142         * modules/frexp-tests (Files): Likewise.
20143         * modules/frexpl-nolibm-tests (Files): Likewise.
20144         * modules/frexpl-tests (Files): Likewise.
20145         * modules/isnan-tests (Files): Likewise.
20146         * modules/isnand-nolibm-tests (Files): Likewise.
20147         * modules/isnand-tests (Files): Likewise.
20148         * modules/isnanf-nolibm-tests (Files): Likewise.
20149         * modules/isnanf-tests (Files): Likewise.
20150         * modules/isnanl-nolibm-tests (Files): Likewise.
20151         * modules/isnanl-tests (Files): Likewise.
20152         * modules/round-tests (Files): Likewise.
20153         * modules/roundf-tests (Files): Likewise.
20154         * modules/roundl-tests (Files): Likewise.
20155         * modules/ldexpl-tests (Files): Likewise.
20156         * modules/signbit-tests (Files): Likewise.
20157         * modules/snprintf-posix-tests (Files): Likewise.
20158         * modules/sprintf-posix-tests (Files): Likewise.
20159         * modules/strtod-tests (Files): Likewise.
20160         * modules/trunc-tests (Files): Likewise.
20161         * modules/truncf-tests (Files): Likewise.
20162         * modules/truncl-tests (Files): Likewise.
20163         * modules/vsnprintf-posix-tests (Files): Likewise.
20164         * modules/vsprintf-posix-tests (Files): Likewise.
20165         * modules/vasnprintf-posix-tests (Files): Likewise.
20166         * modules/vasprintf-posix-tests (Files): Likewise.
20167         * tests/test-ceilf1.c (main): Use it.
20168         * tests/test-ceill.c (main): Likewise.
20169         * tests/test-floorf1.c (main): Likewise.
20170         * tests/test-floorl.c (main): Likewise.
20171         * tests/test-frexp.c (main): Likewise.
20172         * tests/test-frexpl.c (main): Likewise.
20173         * tests/test-isnan.c (main): Likewise.
20174         * tests/test-isnand.h (main): Likewise.
20175         * tests/test-isnanf.h (main): Likewise.
20176         * tests/test-isnanl.h (main): Likewise.
20177         * tests/test-ldexpl.c (main): Likewise.
20178         * tests/test-round.c (main): Likewise.
20179         * tests/test-roundf.c (main): Likewise.
20180         * tests/test-roundl.c (main): Likewise.
20181         * tests/test-signbit.c (test_signbitf, test_signbitd)
20182         (test_signbitl): Likewise.
20183         * tests/test-snprintf-posix.h (test_function): Likewise.
20184         * tests/test-sprintf-posix.h (test_function): Likewise.
20185         * tests/test-strtod.c (main): Likewise.
20186         * tests/test-trunc1.c (main): Likewise.
20187         * tests/test-truncf1.c (main): Likewise.
20188         * tests/test-truncl.c (main): Likewise.
20189
20190         isnanl: work around icc bug
20191         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
20192
20193 2010-11-03  Eric Blake  <eblake@redhat.com>
20194
20195         tests: fix compiler warnings
20196         * tests/test-getopt.h (test_getopt): Fix condition.
20197         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20198         * tests/test-pipe2.c (main): Likewise.
20199         * tests/test-quotearg-simple.c (main): Avoid icc warning.
20200
20201         utimens: fix broken m4 test
20202         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
20203
20204 2010-10-28  Bruno Haible  <bruno@clisp.org>
20205
20206         posix_spawn*, getdtablesize: Relax license.
20207         * modules/posix_spawn (License): Change to LGPLv2+.
20208         * modules/posix_spawnp (License): Likewise.
20209         * modules/posix_spawn-internal (License): Likewise.
20210         * modules/posix_spawnattr_init (License): Likewise.
20211         * modules/posix_spawnattr_getflags (License): Likewise.
20212         * modules/posix_spawnattr_setflags (License): Likewise.
20213         * modules/posix_spawnattr_getpgroup (License): Likewise.
20214         * modules/posix_spawnattr_setpgroup (License): Likewise.
20215         * modules/posix_spawnattr_getschedparam (License): Likewise.
20216         * modules/posix_spawnattr_setschedparam (License): Likewise.
20217         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
20218         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
20219         * modules/posix_spawnattr_getsigdefault (License): Likewise.
20220         * modules/posix_spawnattr_setsigdefault (License): Likewise.
20221         * modules/posix_spawnattr_getsigmask (License): Likewise.
20222         * modules/posix_spawnattr_setsigmask (License): Likewise.
20223         * modules/posix_spawnattr_destroy (License): Likewise.
20224         * modules/posix_spawn_file_actions_init (License): Likewise.
20225         * modules/posix_spawn_file_actions_addclose (License): Likewise.
20226         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
20227         * modules/posix_spawn_file_actions_addopen (License): Likewise.
20228         * modules/posix_spawn_file_actions_destroy (License): Likewise.
20229         * modules/getdtablesize (License): Likewise.
20230         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
20231
20232 2010-10-26  Bruno Haible  <bruno@clisp.org>
20233
20234         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
20235         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
20236         Cygwin and mingw.
20237         Suggested by Eric Blake.
20238
20239 2010-10-26  Bruno Haible  <bruno@clisp.org>
20240
20241         stdio: Work around compilation error due to renameat() on Solaris 10.
20242         * lib/stdio.in.h: Include <unistd.h> on Solaris.
20243         * lib/renameat.c: Don't include <unistd.h> here.
20244         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
20245         Reported by Paul Eggert and Eric Blake.
20246
20247 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
20248
20249         renameat: port to Solaris 10, which declares renameat in unistd.h
20250
20251         * lib/renameat.c: Include unistd.h before stdio.h, because
20252         Solaris 10 declares renameat in unistd.h.  Problem encountered
20253         when building GNU tar 1.24 on Solaris 10.
20254
20255 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20256
20257         fdopendir: fix C89 compilation
20258         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
20259         compilers.
20260
20261 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
20262
20263         inttostr: simplify by removing unnecessary redundancy
20264         * lib/anytostr.c: Don't include verify.h.
20265         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
20266         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
20267         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
20268         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
20269         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
20270         Likewise.
20271         * modules/inttostr (Depends-on): Remove 'verify'.
20272
20273 2010-10-23  Bruno Haible  <bruno@clisp.org>
20274
20275         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
20276         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
20277         Reported by Eric Blake.
20278
20279 2010-10-23  Bruno Haible  <bruno@clisp.org>
20280
20281         Tests: Fix LOCALE_JA on MirBSD 10.
20282         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
20283         to an UTF-8 locale.
20284         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
20285         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20286         Reported by Eric Blake.
20287
20288 2010-10-21  Bruno Haible  <bruno@clisp.org>
20289
20290         nl_langinfo test: Avoid test failure on NetBSD 5.
20291         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
20292         Reported by Eric Blake.
20293
20294 2010-10-21  Eric Blake  <eblake@redhat.com>
20295
20296         c-stack: work around libsigsegv 2.8 bug
20297         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
20298         overflow on at least PowerPC64.
20299
20300 2010-10-17  Bruno Haible  <bruno@clisp.org>
20301
20302         userspec: Drop redundant file.
20303         * modules/userspec (Files): Remove lib/inttostr.h.
20304
20305 2010-10-17  Bruno Haible  <bruno@clisp.org>
20306
20307         nl_langinfo tests: Silence some warnings.
20308         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
20309         Reported by Jim Meyering.
20310
20311 2010-10-17  Bruno Haible  <bruno@clisp.org>
20312
20313         Make use of GCC's attribute __alloc_size__.
20314         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
20315         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
20316         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
20317         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
20318         __alloc_size__.
20319         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
20320         Suggested by Jim Meyering.
20321
20322 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
20323
20324         bootstrap: anchor .gitignore entries.
20325         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
20326         with...
20327         (insert_vc_ignore): ... this new function, which prepends `/' to
20328         all .gitignore entries before passing them to
20329         insert_sorted_if_absent.
20330
20331 2010-10-16  Bruno Haible  <bruno@clisp.org>
20332
20333         nextafter: Fix configure check.
20334         * modules/nextafter (configure.ac): Correct expected prototype.
20335
20336 2010-10-16  Bruno Haible  <bruno@clisp.org>
20337
20338         termios: Update documentation.
20339         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
20340
20341 2010-10-16  Bruno Haible  <bruno@clisp.org>
20342
20343         tests: Make them compile with TinyCC.
20344         * tests/test-strstr.c (main): Remove parentheses around array
20345         initializer.
20346
20347 2010-10-15  Eric Blake  <eblake@redhat.com>
20348
20349         ignore-value: make header idempotent
20350         * lib/ignore-value.h: Add double-inclusion guards.
20351         Reported by Stefan Berger.
20352
20353 2010-10-15  Jim Meyering  <meyering@redhat.com>
20354
20355         GNUmakefile: handle "stable" target, not "major"
20356         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
20357         lists in maint.mk and announce-gen.  Without this, "make stable"
20358         would fail to ensure that $(VERSION) is up to date.
20359
20360 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
20361
20362         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
20363         & co.
20364
20365 2010-10-14  Bruno Haible  <bruno@clisp.org>
20366
20367         vasnprintf: Don't set errno to 0.
20368         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
20369         block that sets it to 0.
20370         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
20371
20372 2010-10-14  Bruno Haible  <bruno@clisp.org>
20373
20374         socketlib: Fix.
20375         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
20376         gl_PREREQ_SYS_H_WINSOCK2.
20377         Reported by Ian Beckwith <ianb@erislabs.net>.
20378
20379 2010-10-13  Jim Meyering  <meyering@redhat.com>
20380
20381         test-select-stdin.c: avoid warn_unused_result warnings
20382         * tests/test-select-stdin.c: Include "macros.h".
20383         ASSERT that read and fflush succeed.
20384
20385 2010-10-13  Jim Meyering  <meyering@redhat.com>
20386
20387         git-version-gen: do require git-VC'd files in cwd
20388         * build-aux/git-version-gen: Reject a git version string
20389         if there are no commits associated with the current directory.
20390         This avoids an unlikely false-positive (unrelated dir whose parent
20391         repository also contains a tag matching v*), as pointed out
20392         by Giuseppe Scrivano in
20393         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
20394
20395 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
20396
20397         argv-iter: omit nonconforming declaration
20398         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
20399         enum arg_iter_err declaration, which doesn't conform to C99.
20400         Solaris 10 cc warns about this.
20401
20402 2010-10-13  Eric Blake  <eblake@redhat.com>
20403
20404         termios: fix compilation on mingw
20405         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
20406         (gl_TERMIOS_H): Adjust it on mingw.
20407         * modules/termios (Makefile.am): Substitute new key.
20408         * lib/termios.in.h (includes): Make include_next conditional.
20409         * doc/posix-headers/termios.texi (termios.h): Update
20410         documentation.
20411         Reported by Daniel P. Berrange.
20412
20413 2010-10-13  Jim Meyering  <meyering@redhat.com>
20414
20415         git-version-gen: don't require that .git/ be in the current dir
20416         * build-aux/git-version-gen: Adjust this script so that it works
20417         when run from any working directory beneath the top-level .git/-
20418         containing directory.  Inspired by a patch from Giuseppe Scrivano,
20419         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
20420
20421         test-select: avoid warn_unused_result warnings
20422         * tests/test-select.c: Include "macros.h".
20423         ASSERT that each call to read, write, and pipe succeeds.
20424         While not technically required, also check each "close".
20425         * modules/select-tests (Files): Add tests/macros.h.
20426
20427         test-symlinkat: remove declaration of unused local
20428         * tests/test-symlinkat.c (main): Remove unused local, "buf".
20429
20430         test-inttostr: avoid shadowing warnings
20431         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
20432         and use malloc rather than the stack for the same reason as
20433         mentioned in the comment justifying the other allocation.
20434
20435 2010-10-11  Bruno Haible  <bruno@clisp.org>
20436
20437         stdlib: Allow multiple gnulib generated replacements to coexist.
20438         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
20439         Reported by Sam Steingold <sds@gnu.org>.
20440
20441 2010-10-11  Jim Meyering  <meyering@redhat.com>
20442
20443         fix a documentation typo
20444         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
20445
20446 2010-10-11  Eric Blake  <eblake@redhat.com>
20447
20448         futimens: work around Solaris 11 bug
20449         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
20450         * tests/test-futimens.h (test_futimens): Enhance, rather than
20451         weaken test.
20452         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20453
20454 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20455
20456         Indentation.
20457         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
20458         higher-level operators more to the left.
20459
20460 2010-10-11  Jim Meyering  <meyering@redhat.com>
20461
20462         test-futimens: avoid unwarranted test failure on Solaris 5.11
20463         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
20464         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
20465         because it tries to dereference the NULL name argument.
20466
20467 2010-10-11  Bruno Haible  <bruno@clisp.org>
20468
20469         Indentation.
20470         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
20471         indentation.
20472
20473 2010-10-11  Jim Meyering  <meyering@redhat.com>
20474
20475         spawn.in.h: make indentation consistent with parentheses
20476         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
20477         Make indentation consistent with parentheses.
20478
20479 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
20480
20481         Fix mismatched parens in previous commit
20482         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
20483         parens.
20484
20485 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20486
20487         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
20488
20489         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
20490         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
20491         * lib/malloca.c: Include "verify.h".
20492         (verify1): Remove, replacing with a verify call.
20493         * lib/relocwrapper.c (verify1): Likewise.
20494         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
20495         Likewise.
20496         * modules/malloca (Depends-on): Add 'verify'.
20497         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
20498         * modules/vasnprintf (Depends-on): Add 'verify'.
20499         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20500         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20501         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20502         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20503         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20504         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20505         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20506
20507         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
20508
20509         Formerly the style was sometimes 2*X - 1, because the C standard
20510         was wrongly thought to disallow ?: in integral constant expressions.
20511         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
20512         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
20513         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20514         * lib/stdint.in.h (_verify_intmax_size): Likewise.
20515         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
20516         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
20517         verify that time_t cannot be floating.
20518
20519 2010-10-08  Eric Blake  <eblake@redhat.com>
20520
20521         time: enforce recent POSIX ruling that time_t is integral
20522         * lib/time.in.h (__time_t_must_be_integral): Detect any
20523         problematic systems, allowing the rest of gnulib to assume POSIX.
20524
20525 2010-10-08  Jim Meyering  <meyering@redhat.com>
20526
20527         fdopendir: fix a bug on systems lacking openat and /proc support
20528         OpenBSD 4.7 is one such system.  The most noticeable effect was
20529         failure of any application making nontrivial use of fts: rm, du,
20530         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
20531           ./rm: traversal failed: `a': Bad file descriptor
20532         Debugging that, you see that even though FD 6 was closed just
20533         prior to the opendir call in fd_clone_opendir, its resulting
20534         dir->dd_fd was 8, rather than the expected value of 6:
20535
20536         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
20537         93                close (fd);
20538         (gdb) n
20539         94                dir = fd_clone_opendir (dupfd);
20540         (gdb) n
20541         95                saved_errno = errno;
20542         (gdb) p dir->dd_fd
20543         $11 = 8
20544
20545         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
20546         The problem is that on OpenBSD, fd_clone_opendir has to resort
20547         to using the old-style save/restore CWD mechanism, due to its
20548         lack of openat/proc support, and *that* would steal the FD (6)
20549         that opendir was supposed to use.
20550
20551         The fix is to squirrel away the desired FD so that save_cwd uses a
20552         different one, and then free the dest FD right before calling opendir.
20553         That guarantees opendir will use the required file descriptor.
20554
20555         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
20556
20557 2010-10-08  Bruno Haible  <bruno@clisp.org>
20558
20559         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
20560         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
20561
20562 2010-10-08  Bruno Haible  <bruno@clisp.org>
20563
20564         nanosleep: Make replacement POSIX compliant.
20565         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
20566         is out of range.
20567         Reported by Jim Meyering.
20568
20569 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20570
20571         bootstrap: add hook for altering gnulib.mk, for Bison
20572         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
20573         the Bison bootstrapping process can rewrite file names and variables
20574         in this file before later parts of 'bootstrap' use the file.
20575         Bison wants to include lib/gnulib.mk from the top-level makefile,
20576         so it needs the file names in this file to be relative to the top
20577         level, not relative to lib; plus it needs variable names to be
20578         rewritten.
20579         (slurp): Use the new function.
20580
20581         bootstrap: reformat for readability
20582         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
20583
20584 2010-10-08  Eric Blake  <eblake@redhat.com>
20585
20586         docs: update cygwin progress
20587         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
20588         1.7.7.
20589         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
20590         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
20591         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
20592         * doc/posix-functions/carg.texi (carg): Likewise.
20593         * doc/posix-functions/cargf.texi (cargf): Likewise.
20594         * doc/posix-functions/casin.texi (casin): Likewise.
20595         * doc/posix-functions/casinf.texi (casinf): Likewise.
20596         * doc/posix-functions/casinh.texi (casinh): Likewise.
20597         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
20598         * doc/posix-functions/catan.texi (catan): Likewise.
20599         * doc/posix-functions/catanf.texi (catanf): Likewise.
20600         * doc/posix-functions/catanh.texi (catanh): Likewise.
20601         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
20602         * doc/posix-functions/ccos.texi (ccos): Likewise.
20603         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
20604         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
20605         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
20606         * doc/posix-functions/cexp.texi (cexp): Likewise.
20607         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
20608         * doc/posix-functions/cimag.texi (cimag): Likewise.
20609         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
20610         * doc/posix-functions/clog.texi (clog): Likewise.
20611         * doc/posix-functions/clogf.texi (clogf): Likewise.
20612         * doc/posix-functions/conj.texi (conj): Likewise.
20613         * doc/posix-functions/conjf.texi (conjf): Likewise.
20614         * doc/posix-functions/cpow.texi (cpow): Likewise.
20615         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
20616         * doc/posix-functions/cproj.texi (cproj): Likewise.
20617         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
20618         * doc/posix-functions/creal.texi (creal): Likewise.
20619         * doc/posix-functions/crealf.texi (crealf): Likewise.
20620         * doc/posix-functions/csin.texi (csin): Likewise.
20621         * doc/posix-functions/csinf.texi (csinf): Likewise.
20622         * doc/posix-functions/csinh.texi (csinh): Likewise.
20623         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
20624         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
20625         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
20626         * doc/posix-functions/ctan.texi (ctan): Likewise.
20627         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
20628         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
20629         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
20630         * doc/posix-headers/complex.texi (complex.h): Likewise.
20631
20632 2010-10-07  Jim Meyering  <meyering@redhat.com>
20633
20634         parse-datetime: avoid compilation failure on OpenBSD 4.7
20635         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
20636         This works around a compilation failure on OpenBSD 4.7:
20637         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
20638
20639 2010-10-07  Eric Blake  <eblake@redhat.com>
20640
20641         docs: update cygwin progress
20642         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
20643         1.7.6.
20644         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20645         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
20646         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
20647         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
20648         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
20649         Likewise.
20650         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
20651         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
20652         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
20653         Likewise.
20654         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
20655         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
20656         Likewise.
20657         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
20658         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
20659         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
20660         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
20661         Likewise.
20662         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
20663         Likewise.
20664         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
20665
20666         docs: update parse-datetime history
20667         * doc/parse-datetime.texi (Authors of parse_datetime): Better
20668         documentation of this function's history and alternatives.
20669
20670         cygwin: use more robust version check
20671         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
20672         exclude an eventual cygwin 1.9.1.
20673         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20674         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20675         (gl_FUNC_STRCASESTR): Likewise.
20676         Reported by Bruno Haible.
20677
20678 2010-10-06  Bruno Haible  <bruno@clisp.org>
20679
20680         string, sys_select: Avoid #including large headers unless necessary.
20681         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
20682         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
20683         OSF/1, BeOS, Haiku.
20684         Reported by Jim Meyering.
20685
20686 2010-10-05  Eric Blake  <eblake@redhat.com>
20687
20688         memmem, strstr, strcasestr: fix bug with long periodic needle
20689         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
20690         periodic needle having false positive.
20691         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
20692         and cygwin 1.7.7.
20693         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
20694         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20695         (gl_FUNC_STRCASESTR): Likewise.
20696         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20697         * tests/test-memmem.c (main): Expose the bug.
20698         * tests/test-strcasestr.c (main): Likewise.
20699         * tests/test-strstr.c (main): Likewise.
20700         * tests/test-c-strcasestr.c (main): Likewise.
20701         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
20702         * doc/posix-functions/strstr.texi (strstr): Likewise.
20703         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20704         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
20705
20706 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20707
20708         parse-datetime: do some more renaming
20709         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
20710         parse_datetime, not get_date.  Mention the renaming.
20711         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
20712         in comments.
20713         * m4/bison.m4: Likewise.
20714
20715 2010-10-05  Eric Blake  <eblake@redhat.com>
20716
20717         parse-datetime: better name than get_date
20718         * NEWS: Reword the deprecation notice.
20719         * modules/get_date: Rename to modules/parse-datetime.
20720         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
20721         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
20722         * lib/get_date.y: Rename to lib/parse-datetime.y.
20723         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
20724         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
20725         * doc/getdate.texi: Provide fallback wrapper.
20726         * lib/getdate.h: Move guts, and wrap...
20727         * lib/parse-datetime.h: ...new file.
20728         * lib/parse-datetime.y (get_date): Rename...
20729         (parse_datetime): ...to this.
20730         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
20731         (gl_PARSE_DATETIME): ...to this.
20732         * doc/posix-functions/getdate.texi (get_date): Provide fallback
20733         documentation.
20734         * modules/getdate (Files): Provide fallback docs and header.
20735         (Notice, Depends-on): Update references.
20736         * tests/test-parse-datetime.c: Likewise.
20737         * DEPENDENCIES: Likewise.
20738         * MODULES.html.sh (Date and time <time.h>): Likewise.
20739         * doc/parse-datetime.texi (Date input formats)
20740         (Authors of parse_datetime): Likewise.
20741         * modules/parse-datetime (Files, configure.ac, Makefile.am)
20742         (Include): Likewise.
20743         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
20744         * gnulib-tool: Likewise.
20745         * m4/bison.m4 (gl_BISON): Likewise.
20746         Suggested by Bruno Haible.
20747
20748 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20749
20750         more ports to Solaris tr, which needs [] around ranges
20751         * gnulib-tool: Solaris tr needs [] around ranges.
20752         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20753         * tests/test-pipe-filter-gi1.c (main): Likewise.
20754         * tests/test-pipe-filter-ii1.c (main): Likewise.
20755
20756 2010-10-05  Eric Blake  <eblake@redhat.com>
20757
20758         bootstrap: fix Solaris regression
20759         * build-aux/bootstrap (check_versions): Solaris tr still needs []
20760         around ranges.
20761         Reported by Pádraig Brady.
20762
20763         bootstrap: work with pkg-config
20764         * build-aux/bootstrap (check_versions): Also transliterate - in
20765         prerequisite name.
20766         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
20767         prerequisites that were already found, to avoid confusion.
20768         Reported by Justin Clift.
20769
20770         faccessat: remove unused wrappers
20771         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
20772         presence of these wrappers dragged in -lgen on Solaris.
20773         Reported by Clemens Brogi; fix suggested by Paul Eggert.
20774
20775 2010-10-05  Jim Meyering  <meyering@redhat.com>
20776
20777         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
20778         * Makefile (sc_pragma_columns): New syntax-check rule.
20779
20780 2010-10-04  Bruno Haible  <bruno@clisp.org>
20781
20782         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
20783         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
20784         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
20785         Reported by Bruce Korb and Eric Blake.
20786
20787 2010-10-04  Bruno Haible  <bruno@clisp.org>
20788
20789         threadlib: Make option --with-libpth-prefix work.
20790         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
20791         use $LIBPTH, not just -lpth.
20792
20793 2010-10-04  Bruno Haible  <bruno@clisp.org>
20794
20795         Avoid line length limitation from HP NonStop system header files.
20796         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
20797         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
20798         * lib/ctype.in.h: Likewise.
20799         * lib/dirent.in.h: Likewise.
20800         * lib/errno.in.h: Likewise.
20801         * lib/fcntl.in.h: Likewise.
20802         * lib/float.in.h: Likewise.
20803         * lib/getopt.in.h: Likewise.
20804         * lib/iconv.in.h: Likewise.
20805         * lib/inttypes.in.h: Likewise.
20806         * lib/langinfo.in.h: Likewise.
20807         * lib/locale.in.h: Likewise.
20808         * lib/math.in.h: Likewise.
20809         * lib/netdb.in.h: Likewise.
20810         * lib/netinet_in.in.h: Likewise.
20811         * lib/poll.in.h: Likewise.
20812         * lib/pthread.in.h: Likewise.
20813         * lib/pty.in.h: Likewise.
20814         * lib/sched.in.h: Likewise.
20815         * lib/se-selinux.in.h: Likewise.
20816         * lib/search.in.h: Likewise.
20817         * lib/signal.in.h: Likewise.
20818         * lib/spawn.in.h: Likewise.
20819         * lib/stdarg.in.h: Likewise.
20820         * lib/stddef.in.h: Likewise.
20821         * lib/stdint.in.h: Likewise.
20822         * lib/stdio.in.h: Likewise.
20823         * lib/stdlib.in.h: Likewise.
20824         * lib/string.in.h: Likewise.
20825         * lib/strings.in.h: Likewise.
20826         * lib/sys_file.in.h: Likewise.
20827         * lib/sys_ioctl.in.h: Likewise.
20828         * lib/sys_select.in.h: Likewise.
20829         * lib/sys_socket.in.h: Likewise.
20830         * lib/sys_stat.in.h: Likewise.
20831         * lib/sys_time.in.h: Likewise.
20832         * lib/sys_times.in.h: Likewise.
20833         * lib/sys_utsname.in.h: Likewise.
20834         * lib/sys_wait.in.h: Likewise.
20835         * lib/sysexits.in.h: Likewise.
20836         * lib/termios.in.h: Likewise.
20837         * lib/time.in.h: Likewise.
20838         * lib/unistd.in.h: Likewise.
20839         * lib/wchar.in.h: Likewise.
20840         * lib/wctype.in.h: Likewise.
20841         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
20842         * modules/ctype (Makefile.am): Likewise.
20843         * modules/dirent (Makefile.am): Likewise.
20844         * modules/errno (Makefile.am): Likewise.
20845         * modules/fcntl-h (Makefile.am): Likewise.
20846         * modules/float (Makefile.am): Likewise.
20847         * modules/getopt-posix (Makefile.am): Likewise.
20848         * modules/iconv-h (Makefile.am): Likewise.
20849         * modules/inttypes (Makefile.am): Likewise.
20850         * modules/langinfo (Makefile.am): Likewise.
20851         * modules/locale (Makefile.am): Likewise.
20852         * modules/math (Makefile.am): Likewise.
20853         * modules/netdb (Makefile.am): Likewise.
20854         * modules/netinet_in (Makefile.am): Likewise.
20855         * modules/poll-h (Makefile.am): Likewise.
20856         * modules/pthread (Makefile.am): Likewise.
20857         * modules/pty (Makefile.am): Likewise.
20858         * modules/sched (Makefile.am): Likewise.
20859         * modules/search (Makefile.am): Likewise.
20860         * modules/selinux-h (Makefile.am): Likewise.
20861         * modules/signal (Makefile.am): Likewise.
20862         * modules/spawn (Makefile.am): Likewise.
20863         * modules/stdarg (Makefile.am): Likewise.
20864         * modules/stddef (Makefile.am): Likewise.
20865         * modules/stdint (Makefile.am): Likewise.
20866         * modules/stdio (Makefile.am): Likewise.
20867         * modules/stdlib (Makefile.am): Likewise.
20868         * modules/string (Makefile.am): Likewise.
20869         * modules/strings (Makefile.am): Likewise.
20870         * modules/sys_file (Makefile.am): Likewise.
20871         * modules/sys_ioctl (Makefile.am): Likewise.
20872         * modules/sys_select (Makefile.am): Likewise.
20873         * modules/sys_socket (Makefile.am): Likewise.
20874         * modules/sys_stat (Makefile.am): Likewise.
20875         * modules/sys_time (Makefile.am): Likewise.
20876         * modules/sys_times (Makefile.am): Likewise.
20877         * modules/sys_utsname (Makefile.am): Likewise.
20878         * modules/sys_wait (Makefile.am): Likewise.
20879         * modules/sysexits (Makefile.am): Likewise.
20880         * modules/termios (Makefile.am): Likewise.
20881         * modules/time (Makefile.am): Likewise.
20882         * modules/unistd (Makefile.am): Likewise.
20883         * modules/wchar (Makefile.am): Likewise.
20884         * modules/wctype (Makefile.am): Likewise.
20885
20886 2010-10-04  Bruno Haible  <bruno@clisp.org>
20887
20888         read-file tests: Avoid a test failure on NonStop Kernel.
20889         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
20890         a regular file.
20891         Reported by Joachim Schmitz <schmitz@hp.com>.
20892
20893 2010-10-03  Bruno Haible  <bruno@clisp.org>
20894
20895         gnulib-tool: Fixes for --create-testdir with --libtool.
20896         * gnulib-tool (func_get_automake_snippet): Don't augment
20897         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
20898         an executable.
20899         (func_create_testdir): Handle module 'alloca' like func_import.
20900         Reported by Bruce Korb <bruce.korb@gmail.com>.
20901
20902 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
20903
20904         Avoid some lines longer than 80 characters.
20905         * lib/stdint.in.h: Break long comment lines.
20906         * lib/math.in.h: Likewise.
20907         (_GL_NUM_UINT_WORDS): New macro, for readability.
20908         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
20909         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
20910         * lib/stdlib.in.h: Likewise.
20911         * lib/spawn.in.h: Likewise.
20912         * lib/sys_socket.in.h: Update an URL.
20913         * lib/sys_stat.in.h: Break long line.
20914
20915 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
20916
20917         Improve pmccabe2html.
20918         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
20919         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
20920         when the sources change. Remove the line in the HTML about "Used
20921         ranges" (which implied that there might be other unused ranges),
20922         rename "Resume" to "Summary" (easier to understand for more users).
20923         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
20924         styles, and some unnecessary blank lines.
20925
20926 2010-10-03  Bruno Haible  <bruno@clisp.org>
20927             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
20928
20929         acl: Add support for ACLs on NonStop Kernel.
20930         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
20931         Check whether the function aclsort() exists.
20932         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
20933         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
20934         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20935         (acl_nontrivial [HAVE_ACLSORT]: New function.
20936         (file_has_acl): Implement for NonStop Kernel.
20937         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20938         (qset_acl): Implement for NonStop Kernel.
20939         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
20940         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20941         (main): Implement for NonStop Kernel.
20942         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
20943         Kernel. Handle this flavor.
20944         * tests/test-set-mode-acl.sh: Likewise.
20945         * tests/test-copy-acl.sh: Likewise.
20946         * tests/test-copy-file.sh: Likewise.
20947
20948 2010-10-03  Bruno Haible  <bruno@clisp.org>
20949
20950         Info about ACLs on NonStop Kernel.
20951         * doc/acl-resources.txt: Add info about NonStop Kernel.
20952         References by Joachim Schmitz <schmitz@hp.com>.
20953
20954 2010-10-02  Bruno Haible  <bruno@clisp.org>
20955
20956         Define missing EDQUOT on NonStop Kernel.
20957         * lib/errno.in.h (EDQUOT): Assign a value if missing.
20958         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
20959         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
20960         missing.
20961         * doc/posix-headers/errno.texi: Mention the NSK bug.
20962         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
20963         Reported by Joachim Schmitz <schmitz@hp.com>.
20964
20965 2010-10-02  Bruno Haible  <bruno@clisp.org>
20966
20967         Update doc for POSIX:2008.
20968         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
20969         Update URL of POSIX specification.
20970
20971 2010-10-02  Bruno Haible  <bruno@clisp.org>
20972
20973         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
20974         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
20975         from gnulib, not from Automake.
20976
20977 2010-10-02  Bruno Haible  <bruno@clisp.org>
20978
20979         New module 'system-posix'.
20980         * modules/system-posix: New file.
20981         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
20982         module is present.
20983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20984         GNULIB_SYSTEM_POSIX.
20985         * modules/stdlib (Depends-on): Remove sys_wait.
20986         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
20987         * doc/posix-functions/system.texi: Mention the new module.
20988         * doc/posix-headers/stdlib.texi: Likewise.
20989         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
20990         define test_sys_wait_macros to a no-op.
20991         Reported by Sam Steingold <sds@gnu.org>.
20992
20993 2010-09-30  Bruno Haible  <bruno@clisp.org>
20994
20995         More renaming from 'getdate' to 'get_date'.
20996         * doc/get_date.texi: Renamed from doc/getdate.texi.
20997         * modules/get_date (Files): Update.
20998         * MODULES.html.sh (Date and time <time.h>): Update.
20999         * DEPENDENCIES: Update.
21000         * gnulib-tool: Update comment.
21001         * m4/bison.m4 (gl_BISON): Likewise.
21002         * m4/get_date.m4 (gl_GET_DATE): Likewise.
21003
21004 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
21005
21006         bootstrap: support ACLOCAL_FLAGS during aclocal
21007         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
21008         can add additional -I dir for third-party .m4 files.
21009
21010 2010-09-30  Eric Blake  <eblake@redhat.com>
21011
21012         bootstrap: use glibtoolize on MacOS
21013         * build-aux/bootstrap (check_versions): Convert libtool into
21014         libtoolize.
21015         (tool search): Move libtool check earlier, and look for
21016         glibtoolize for MacOS.
21017         (gnulib_tool_options): Auto-add --libtool when appropriate.
21018         Reported by Justin Clift.
21019
21020         poll: fix typo that broke test on MacOS
21021         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
21022         Reported by Justin Clift.
21023
21024         getdate: rename to get_date
21025         Note: getdate.h is not renamed, to minimize client impact.
21026         * modules/getdate: Mark obsolete.  Move old contents...
21027         * modules/get_date: ...to new module name.
21028         * modules/getdate-tests: Move...
21029         * modules/get_date-tests: ...here.
21030         * m4/getdate.m4: Move...
21031         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
21032         * lib/getdate.y: Move...
21033         * lib/get_date.y: ...here.
21034         * tests/test-getdate.c: Move...
21035         * tests/test-get_date.c: ...here.
21036         * doc/posix-functions/getdate.texi (getdate): Update name.
21037         * NEWS: Mention the change.
21038
21039 2010-09-29  Bruno Haible  <bruno@clisp.org>
21040
21041         Separate the module 'waitpid' from the module 'sys_wait'.
21042         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
21043         present.
21044         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
21045         gl_MODULE_INDICATOR_FOR_TESTS.
21046         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
21047         * modules/sys_wait (Depends-on): Remove waitpid.
21048         (Makefile.am): Substitute GNULIB_WAITPID.
21049         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
21050         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
21051         signature only if the 'waitpid' module is present.
21052         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
21053         * NEWS: Mention the change.
21054         * modules/grantpt (Depends-on): Add waitpid.
21055         * modules/wait-process (Depends-on): Likewise.
21056
21057 2010-09-29  Bruno Haible  <bruno@clisp.org>
21058
21059         More tests for module 'sys_wait'.
21060         * modules/sys_wait-c++-tests: New file.
21061         * tests/test-sys_wait-c++.cc: New file.
21062         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
21063         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21064
21065 2010-09-29  Bruno Haible  <bruno@clisp.org>
21066
21067         New module 'waitpid'.
21068         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
21069         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
21070         Don't include <process.h>.
21071         (waitpid): Declare only, using modern idiom.
21072         * m4/waitpid.m4: New file.
21073         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
21074         * modules/waitpid: New file.
21075         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
21076         (Makefile.am): Update.
21077         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21078
21079 2010-09-28  Bruno Haible  <bruno@clisp.org>
21080
21081         poll: Assume ANSI C.
21082         * lib/poll.c (poll): Use an ANSI C declaration.
21083
21084 2010-09-28  Bruno Haible  <bruno@clisp.org>
21085
21086         poll-h: Create poll.h on all platforms.
21087         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
21088         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
21089         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
21090         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
21091         (gl_REPLACE_POLL_H): Don't set POLL_H.
21092         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
21093         * modules/poll-h (Depends-on): Add include_next.
21094         (Makefile.am): Create poll.h unconditionally. Substitute also
21095         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
21096
21097 2010-09-28  Bruno Haible  <bruno@clisp.org>
21098
21099         Tests for module 'poll-h'.
21100         * modules/poll-h-c++-tests: New file.
21101         * tests/test-poll-h-c++.cc: New file.
21102
21103         Tests for module 'poll-h'.
21104         * modules/poll-h-tests: New file.
21105         * tests/test-poll-h.c: New file.
21106
21107 2010-09-28  Bruno Haible  <bruno@clisp.org>
21108
21109         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
21110         * modules/poll-h (Depends-on): Add 'extensions'.
21111
21112 2010-09-28  Bruno Haible  <bruno@clisp.org>
21113
21114         New module 'poll-h'.
21115         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
21116         (poll): Use modern idiom.
21117         * modules/poll-h: New file.
21118         * modules/poll (Files): Remove lib/poll.in.h.
21119         (Depends-on): Add poll-h.
21120         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
21121         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
21122         * m4/poll_h.m4: New file.
21123         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
21124         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
21125         and invoke gl_REPLACE_POLL_H.
21126         * lib/poll.c: Use common idiom.
21127         * tests/test-poll.c: Likewise.
21128         * doc/posix-headers/poll.texi: Mention the poll-h module.
21129         Suggested by Eric Blake.
21130
21131 2010-09-26  Bruno Haible  <bruno@clisp.org>
21132
21133         sys_wait: Implement WSTOPSIG.
21134         * lib/sys_wait.in.h (WSTOPSIG): New macro.
21135         Reported by Simon Josefsson.
21136
21137 2010-09-26  Simon Josefsson  <simon@josefsson.org>
21138
21139         stdlib, sys_wait: Avoid compilation error on mingw.
21140         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
21141
21142 2010-09-26  Bruno Haible  <bruno@clisp.org>
21143
21144         stdlib tests: Avoid code duplication.
21145         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
21146         * modules/sys_wait-tests (Files): Likewise.
21147         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
21148         * tests/test-stdlib.c: Include test-sys_wait.h.
21149         (main): Invoke test_sys_wait_macros.
21150         * tests/test-sys_wait.c: Include test-sys_wait.h.
21151         (main): Invoke test_sys_wait_macros.
21152
21153 2010-09-25  Simon Josefsson  <simon@josefsson.org>
21154
21155         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
21156         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
21157         sure Windows sockets are working before calling getaddrinfo.
21158         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
21159         * doc/gnulib.texi (Windows sockets): Fix typo.
21160
21161 2010-09-25  Bruno Haible  <bruno@clisp.org>
21162
21163         Tests for module 'regex-quote'.
21164         * modules/regex-quote-tests: New file.
21165         * tests/test-regex-quote.c: New file.
21166
21167         New module 'regex-quote'.
21168         * lib/regex-quote.h: New file.
21169         * lib/regex-quote.c: New file.
21170         * modules/regex-quote: New file.
21171         Suggested by Reuben Thomas <rrt@sc3d.org>.
21172
21173 2010-09-24  Bruno Haible  <bruno@clisp.org>
21174
21175         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
21176         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
21177
21178 2010-09-23  Bruno Haible  <bruno@clisp.org>
21179
21180         setenv: Relax license.
21181         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
21182         Blake.
21183         Requested by Eric Blake.
21184
21185 2010-09-22  Bruno Haible  <bruno@clisp.org>
21186
21187         termios: Relax license.
21188         * modules/termios (License): Change to LGPLv2+.
21189         Requested by Eric Blake.
21190
21191 2010-09-22  Bruno Haible  <bruno@clisp.org>
21192
21193         threadlib: Allow the package to change the default to 'no'.
21194         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
21195         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
21196         Reported by Paul Eggert.
21197
21198 2010-09-22  Pádraig Brady  <P@draigbrady.com>
21199             Bruno Haible  <bruno@clisp.org>
21200
21201         Fix endless loop in mbmemcasecoll.
21202         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
21203         byte.
21204         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
21205
21206 2010-09-22  Bruno Haible  <bruno@clisp.org>
21207
21208         Tests for module 'memcoll'.
21209         * modules/memcoll-tests: New file.
21210         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
21211
21212         memcoll, xmemcoll: Clarify size vs. length.
21213         * modules/memcoll.c (memcoll0): Clarify specification.
21214         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
21215         passed to collate_error.
21216
21217 2010-09-22  Bruno Haible  <bruno@clisp.org>
21218
21219         Tests for module 'memcasecmp'.
21220         * modules/memcasecmp-tests: New file.
21221         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
21222
21223 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21224
21225         * lib/pthread.in.h: Add split double-inclusion guard, and include
21226         system <pthread.h> if there is one.  Use @@-style as in other
21227         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
21228         pthread.h doesn't.
21229         (pthread_mutexattr_destroy, pthread_mutexattr_init):
21230         (pthread_mutexattr_settype, pthread_mutex_trylock):
21231         New static inline functions, if there's no system <pthread.h>.
21232         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
21233         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
21234         Approximate with mutexes if the system lacks spinlocks, as in
21235         MacOS.
21236         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
21237         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
21238         @@-style.  Check for spinlocks separately.
21239         (gl_PTHREAD_DEFAULTS): New macro.
21240         * modules/pthread: Redo to use a more typical style for in.h files.
21241
21242 2010-09-21  Eric Blake  <eblake@redhat.com>
21243
21244         net_if: enhance tests
21245         * tests/test-net_if.c (main): Move signature checks earlier.
21246         Print failures to stderr.
21247         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
21248         Document the bug that we do not yet fix.
21249
21250 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21251
21252         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
21253         about gnulib, not GSS.
21254
21255 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21256
21257         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
21258         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
21259         for Emacs.
21260         * build-aux/pmccabe2html: Make Makefile.am example code more
21261         cut-and-paste friendly.
21262
21263 2010-09-21  Simon Josefsson  <simon@josefsson.org>
21264
21265         * tests/test-net_if.c: New file.
21266         * modules/net_if-tests: New file.
21267
21268 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21269
21270         pthread: add pthread_spin_destroy
21271         * lib/pthread.in.h (pthread_spin_destroy): New function.
21272
21273 2010-09-19  Bruno Haible  <bruno@clisp.org>
21274
21275         gnulib-tool: Fix --help output.
21276         * gnulib-tool (func_usage): Fix help message.
21277         Reported by Reuben Thomas <rrt@sc3d.org>.
21278
21279 2010-09-18  Jim Meyering  <meyering@redhat.com>
21280
21281         maint.mk: avoid unexpanded \n in two diagnostics
21282         * top/maint.mk (sc_prohibit_always_true_header_tests):
21283         Don't use a literal \n in a halt=... assignment.  It would not be
21284         expanded, and the two \n bytes would appear in the diagnostic output
21285         rather than the desired newline.  Use halt=$$(printf ... instead.
21286         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21287
21288 2010-09-18  Bruno Haible  <bruno@clisp.org>
21289
21290         netinet_in: Doc tweak.
21291         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
21292         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21293
21294 2010-09-18  Jim Meyering  <meyering@redhat.com>
21295
21296         init.sh: correct an outdated comment
21297         * tests/init.sh (create_exe_shims_):  s/function/alias/
21298
21299         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
21300         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
21301         a file named "*.exe" is removed between the glob expansion and the
21302         processing of that oddly named file.
21303
21304 2010-09-17  Eric Blake  <eblake@redhat.com>
21305
21306         mirbsd: add some more support
21307         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
21308         in BSD family.
21309         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
21310         devices as OpenBSD.
21311         * m4/host-os.m4 (mirbsd): Add MirBSD.
21312
21313         tests: fix unportable assumption on sys/wait.h
21314         * tests/test-sys_wait.c (main): Relax test.
21315         * tests/test-stdlib.c (main): Likewise.
21316
21317         init.sh: accomodate directory with no .exes
21318         * tests/init.sh: Accomodate directory containing only scripts.
21319
21320         tests: avoid compiler warning
21321         * tests/test-stdlib.c (main): Use the variable.
21322
21323         fdutimens, fdutimensat: update signature, again
21324         * lib/utimens.h (gl_futimens): Delete, and move signature...
21325         (fdutimens): ...here.
21326         (fdutimensat): Rearrange signature.
21327         (lutimensat): Rename variable for clarity.
21328         * lib/fdutimensat.c (fdutimensat): Update signature.
21329         * lib/utimens.c (fdutimens): Likewise.
21330         (gl_futimens): Delete.
21331         (utimens, lutimens): Update callers.
21332         * lib/futimens.c (futimens): Likewise.
21333         * tests/test-fdutimensat.c: Likewise.
21334         * tests/test-utimens.c: Likewise.
21335         * tests/test-futimens.h: Update comment.
21336         * NEWS: Mention this.
21337         Suggested by Paul Eggert.
21338
21339 2010-09-17  Bruno Haible  <bruno@clisp.org>
21340
21341         Take over the maintenance of some older macros from Autoconf.
21342         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
21343         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
21344         GNU Autoconf.
21345         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
21346         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
21347
21348 2010-09-17  Eric Blake  <eblake@redhat.com>
21349
21350         fdutimensat: drop atflag validation
21351         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
21352         with valid fd, to close a race scenario where futimens is
21353         unsupported and FILE was replaced by a symlink.
21354         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
21355         accordingly.
21356         Suggested by Paul Eggert.
21357
21358 2010-09-16  Bruno Haible  <bruno@clisp.org>
21359
21360         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
21361         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
21362
21363 2010-09-16  Bruno Haible  <bruno@clisp.org>
21364
21365         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
21366         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
21367         login_tty exists.
21368         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21369
21370 2010-09-16  Bruno Haible  <bruno@clisp.org>
21371
21372         login_tty: Make the replacement code work on BSD systems.
21373         * lib/login_tty.c: Include <sys/ioctl.h>.
21374         (login_tty): Use ioctl TIOCSCTTY when available.
21375         * modules/login_tty (Depends-on): Add sys_ioctl.
21376         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21377
21378 2010-09-16  Bruno Haible  <bruno@clisp.org>
21379
21380         login_tty: Stricter unit test.
21381         * modules/login_tty-tests (Depends-on): Add tcgetsid.
21382         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
21383         and tcgetsid() after login_tty.
21384         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21385
21386 2010-09-16  Bruno Haible  <bruno@clisp.org>
21387
21388         New module 'tcgetsid'.
21389         * lib/tcgetsid.c: New file.
21390         * m4/tcgetsid.m4: New file.
21391         * modules/tcgetsid: New file.
21392         * modules/termios (Depends-on): Add c++defs, warn-on-use.
21393         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
21394         GNULIB_TCGETSID, HAVE_TCGETSID.
21395         * lib/termios.in.h: Include <sys/types.h>.
21396         (tcgetsid): New declaration.
21397         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
21398         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
21399         * doc/posix-functions/tcgetsid.texi: Mention the new module.
21400         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
21401
21402 2010-09-16  Bruno Haible  <bruno@clisp.org>
21403
21404         Tests for module 'termios'.
21405         * modules/termios-c++-tests: New file.
21406         * modules/termios-tests: New file.
21407         * tests/test-termios-c++.cc: New file.
21408         * tests/test-termios.c: New file.
21409
21410         New module 'termios'.
21411         * modules/termios: New file.
21412         * lib/termios.in.h: New file.
21413         * m4/termios_h.m4: New file.
21414         * doc/posix-headers/termios.texi: Mention the new module.
21415
21416 2010-09-16  Eric Blake  <eblake@redhat.com>
21417
21418         fdutimensat: add an atflag parameter
21419         * lib/fdutimensat.c (fdutimensat): Add new parameter.
21420         * lib/utimens.h (fdutimensat): Update prototype.
21421         * tests/test-fdutimensat.c: Adjust test to match.
21422         * NEWS: Document the change.
21423         Suggested by Paul Eggert.
21424
21425 2010-09-16  Bruno Haible  <bruno@clisp.org>
21426
21427         Fix typos in comments.
21428         * lib/striconveh.h: Fix typo in comment.
21429         * lib/login_tty.c (login_tty): Likewise.
21430
21431 2010-09-15  Bruno Haible  <bruno@clisp.org>
21432
21433         stdlib: clarify MirBSD WEXITSTATUS bug
21434         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
21435         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21436
21437 2010-09-15  Eric Blake  <eblake@redhat.com>
21438
21439         stdlib: work around MirBSD WEXITSTATUS bug
21440         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
21441         * modules/stdlib (Depends-on): Add sys_wait.
21442         * tests/test-sys_wait.c (main): Enhance test.
21443         * tests/test-stdlib.c (main): Likewise.
21444         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
21445
21446         docs: mention MacOS issue with WEXITSTATUS(constant)
21447         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
21448         issue.
21449         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21450
21451         strnlen: add tests
21452         * modules/strnlen-tests: New file.
21453         * tests/test-strnlen.c: Likewise.
21454
21455 2010-09-14  Bruno Haible  <bruno@clisp.org>
21456
21457         unistr/base: Avoid link errors when module 'libunistring' is also used.
21458         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
21459         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
21460         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
21461         Declare also when HAVE_LIBUNISTRING is set.
21462         Reported by Pádraig Brady <P@draigbrady.com>.
21463
21464 2010-09-14  Eric Blake  <eblake@redhat.com>
21465
21466         test-rawmemchr: make more robust
21467         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
21468         (Depends-on, configure.ac): Add needed prerequisites to use it.
21469         * modules/memchr-tests (Files, Depends-on, configure.ac):
21470         Likewise, to avoid implicit reliance on memchr module prereqs.
21471         * tests/test-memchr.c (main): Ensure proper masking.
21472         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
21473         reads.
21474
21475         memchr: detect glibc Alpha bug
21476         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
21477         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
21478         Alpha.
21479         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
21480         * tests/test-memchr.c (main): Enhance test.
21481         Reported by Nelson H. F. Beebe.
21482
21483 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21484
21485         fts, getcwd, glob: audit for dirfd returning -1
21486         * lib/fts.c (opendir): Remove #define; no longer used.
21487         (opendirat): New arg PDIR_FD.  All callers changed.
21488         (fts_build, _opendir2): Use new opendirat to avoid the need for
21489         dirfd, or for checking whether dirfd returns a negative value.
21490         Don't use opendir; always use openat followed by fdopendir.
21491         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
21492         it.
21493         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
21494         returns -1 here.
21495         * modules/fts (Depends-on): Remove dirfd.
21496         * modules/getcwd (Depends-on): Likewise.
21497
21498 2010-09-13  Eric Blake  <eblake@redhat.com>
21499
21500         float: fix broken MirBSD header
21501         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
21502         * doc/posix-headers/float.texi (float.h): Document it.
21503
21504 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21505
21506         fts: use O_NOFOLLOW to avoid race condition when opening a directory
21507         * lib/fts.c (opendirat): New arg extra_flags.
21508         (__opendir2): Use it to avoid following symlinks when opening
21509         a directory, if symlinks are not supposed to be followed.  See
21510         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
21511
21512         fdopendir: preserve argument fd before returning
21513         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
21514         (fdopendir_with_dup, fd_clone_opendir): New static functions.
21515         (fdopendir): Use them, arranging for FD to be open to the same
21516         directory that it was when it started.  (It might be temporarily
21517         closed while fdopendir is running, so this not thread- or
21518         signal-safe.)  Be careful to do the right thing even when file
21519         descriptors are scarce and dup fails with errno == EMFILE.  See
21520         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
21521
21522 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
21523
21524         regex: Pass the system regex if its only problem is 32-bit regoff_t.
21525         * NEWS: Document change.
21526         * m4/regex.m4: Disable test for regoff_t size.
21527
21528 2010-09-13  Jim Meyering  <meyering@redhat.com>
21529
21530         fts: don't operate on an invalid file descriptor after failed dup
21531         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
21532         negative file descriptor.
21533
21534 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21535
21536         savedir: add streamsavedir, deprecate fdsavedir
21537         * NEWS: Mention deprecation of fdsavedir.
21538         * lib/savedir.c (streamsavedir): New extern function, whose name
21539         ends in "savedir" to be consistent with the others.  This differs
21540         from savedirstream in that it doesn't close its argument.  The
21541         next version of GNU tar will use this instead of fdsavedir, to
21542         avoid some race conditions and conserve file descriptors.
21543         (savedirstream): Reimplement as a wrapper around streamsavedir.
21544         (fdsavedir): Add a comment deprecating this function.  As far as
21545         I know, only GNU tar used it, and GNU tar doesn't need it any more.
21546         * lib/savedir.h (streamsavedir): New decl.
21547         (fdsavedir): Add a comment deprecating this.
21548
21549 2010-09-10  Bruno Haible  <bruno@clisp.org>
21550
21551         langinfo: Fix last commit.
21552         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
21553         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
21554         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21555
21556 2010-09-10  Bruno Haible  <bruno@clisp.org>
21557
21558         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
21559         * lib/progreloc.c (O_EXEC): Define fallback.
21560
21561 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21562
21563         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
21564         * NEWS: Document recent changes to fcntl-h.
21565         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
21566         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
21567         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
21568         Similarly for O_SEARCH; this last was already true, but not documented.
21569         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
21570         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
21571         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
21572         Likewise.
21573         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
21574         is zero, not whether it is defined.
21575         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
21576         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
21577         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
21578
21579 2010-09-10  Bruno Haible  <bruno@clisp.org>
21580
21581         langinfo, nl_langinfo: Fix for IRIX 5.3.
21582         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
21583         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
21584         HAVE_LANGINFO_YESEXPR.
21585         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
21586         HAVE_LANGINFO_YESEXPR.
21587         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
21588         HAVE_LANGINFO_T_FMT_AMPM is 0.
21589         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
21590         HAVE_LANGINFO_YESEXPR is 0.
21591         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
21592         NOEXPR.
21593         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
21594         * doc/posix-functions/nl_langinfo.texi: Likewise.
21595         Reported by Eric Blake.
21596
21597 2010-09-10  Bruno Haible  <bruno@clisp.org>
21598
21599         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
21600         * doc/glibc-functions/login_tty.texi: Mention the include file problem
21601         on FreeBSD 8.0 and OpenBSD 4.6.
21602         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
21603         * m4/pty_h.m4 (gl_PTY_H): Likewise.
21604         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
21605         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
21606         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
21607         ac_includes_default.
21608         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21609
21610 2010-09-09  Eric Blake  <eblake@redhat.com>
21611
21612         strsignal: work around NetBSD bug
21613         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
21614         * lib/string.in.h (includes): Likewise.
21615         * doc/posix-functions/strsignal.texi (strsignal): Document the
21616         bug.
21617         Reported by Nelson H. F. Beebe.
21618
21619         gnulib-tool: work with NetBSD /bin/sh
21620         * gnulib-tool (func_cache_var, func_cache_lookup_module)
21621         (func_get_description, func_get_comment, func_get_status)
21622         (func_get_notice, func_get_applicability, func_get_filelist)
21623         (func_get_dependencies, func_get_autoconf_early_snippet)
21624         (func_get_autoconf_snippet, func_get_automake_snippet)
21625         (func_get_include_directive, func_get_link_directive)
21626         (func_get_license, func_get_maintainer, func_import): Avoid
21627         shell syntax errors from parsing syntax extensions.
21628
21629 2010-09-09  Bruno Haible  <bruno@clisp.org>
21630
21631         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21632         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
21633         a reliable way to determine whether the 'alias' command works.
21634
21635 2010-09-08  Jim Meyering  <meyering@redhat.com>
21636
21637         init.sh: penalize a set-x-impaired shell; don't disqualify it
21638         * tests/init.sh: Too many shells corrupt application stderr when
21639         you set -x, so we can't afford to disqualify them, since at least
21640         on Irix-6.5, that would disqualify all bourne shells.
21641         Instead, use a two-pass approach.
21642         On the first pass, try to find a shell that meets the stricter
21643         condition that set -x does not corrupt stderr.
21644         If no shell meets the stricter condition, retest each candidate
21645         shell, but without that extra condition.  Finally, when
21646         VERBOSE=yes is requested and set -x might cause trouble, simply
21647         issue a warning and refrain from enabling debug output.
21648
21649 2010-09-08  Eric Blake  <eblake@redhat.com>
21650
21651         unsetenv: fix OpenBSD bug
21652         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
21653         * doc/posix-functions/unsetenv.texi (unsetenv): Update
21654         documentation.
21655         Reported by Jim Meyering.
21656
21657         strtod: work around IRIX 6.5 bug
21658         * lib/strtod.c (strtod): Reparse number on shorter string if
21659         exponent parse was invalid.
21660         * tests/test-strtod.c (main): Add check for "0x1p 2".
21661         Reported by Tom G. Christensen.
21662
21663         getopt: optimize previous patch
21664         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
21665         empty variable.  Speed up awk script.
21666         Reported by Paolo Bonzini.
21667
21668 2010-09-08  Jim Meyering  <meyering@redhat.com>
21669
21670         test.sh: disqualify shells for which set -x corrupts stderr
21671         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
21672         and OpenBSD 4.7.  They make it so with "set -x", environment settings
21673         appear in stderr output.  For example, this command:
21674             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
21675         prints "P=1" on those two systems:
21676
21677 2010-09-08  Bruno Haible  <bruno@clisp.org>
21678
21679         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21680         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
21681         commands, because some shells ignore redirections when there is an
21682         error in the command lookup.
21683         Reported by Eric Blake.
21684
21685 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
21686
21687         * lib/regex.h: Fix a mention of `regex_compile' (should be
21688         `re_compile_pattern').
21689         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
21690         (re_set_registers): Correct name of parameter in comment.
21691
21692         * doc/regex.texi: Add documentation for missing syntax flags.
21693         Remove commented-out documentation of defunct syntax option
21694         RE_NO_EMPTY_ALTS.
21695         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
21696         Add documentation of re_set_registers.
21697         Document trick to re-use a pattern buffer by setting fastmap manually.
21698         Update documentation of struct re_pattern_buffer per public members.
21699         Uncomment documentation of equivalence class operators and
21700         collating symbol operators, since they are now implemented,
21701         Explain leftmost-longest matching in relation to alternatives.
21702         Tidy documentation of substring matching.
21703         Remove POSIX documentation, which is done better in
21704         glibc, and refer the reader there. Keep BSD API documentation, as
21705         that is not readily available elsewhere.
21706
21707 2010-09-07  Eric Blake  <eblake@redhat.com>
21708
21709         getopt: handle POSIXLY_CORRECT set but not exported
21710         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
21711         export state of POSIXLY_CORRECT, due to bash set -o posix.
21712         Reported by Dustin J. Mitchell.
21713
21714 2010-09-05  Bruno Haible  <bruno@clisp.org>
21715
21716         gnulib-tool: Highlight the changed options.
21717         * gnulib-tool (func_usage): Display the --import, --add-import,
21718         --remove-import explanations in bold font.
21719
21720 2010-09-06  Karl Berry  <karl@gnu.org>
21721
21722         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
21723
21724 2010-09-05  Bruno Haible  <bruno@clisp.org>
21725
21726         uniwidth/width: Update comment.
21727         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
21728         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
21729
21730 2010-09-05  Bruno Haible  <bruno@clisp.org>
21731
21732         isinf, isnan: Relax license.
21733         * modules/isinf (License): Change from GPL to LGPL, with consent from
21734         Ben Pfaff.
21735         * modules/isnan (License): Likewise.
21736         Requested by Ludovic Courtès.
21737
21738 2010-09-04  Bruno Haible  <bruno@clisp.org>
21739
21740         gnulib-tool: Help migration from --import to --add-import or --update.
21741         * gnulib-tool: Emit a verbose error message when --import is used
21742         without any module name.
21743
21744 2010-09-04  Bruno Haible  <bruno@clisp.org>
21745
21746         Update doc about gnulib-tool.
21747         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
21748         'gnulib-tool --update' in more detail.
21749         Reported by Eric Blake.
21750
21751 2010-09-04  Bruno Haible  <bruno@clisp.org>
21752
21753         gnulib-tool: Change --import. New options --add/remove-import.
21754         * gnulib-tool: New options --add-import, --remove-import.
21755         (func_usage): Document them.
21756         (have_associative): Define always.
21757         (func_import): In import mode, don't merge the specified settings with
21758         the cached settings. Implement remove-import mode.
21759         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
21760         Explain when to use them versus --import.
21761         (Simple update): Use --add-import instead of --import.
21762         * NEWS: Mention the change.
21763
21764 2010-09-04  Bruno Haible  <bruno@clisp.org>
21765
21766         * doc/gnulib-tool.texi (Initial import): Update paragraph about
21767         separate gnulib.mk.
21768
21769 2010-09-04  Bruno Haible  <bruno@clisp.org>
21770
21771         gnulib-tool: Don't talk about CVS any more.
21772         * gnulib-tool (func_usage, func_import): Write "version control"
21773         instead of CVS.
21774
21775 2010-09-04  Jim Meyering  <meyering@redhat.com>
21776
21777         maint.mk: avoid obscure sc_copyright_check failure in coreutils
21778         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
21779         false positives (whose names may be ill-chosen) when searching
21780         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
21781         would cause a false-positive.
21782
21783         avoid coreutils "make distcheck" failure
21784         Coreutils tests with an absolute build directory name that contains
21785         a space.  Not quoting this directory name caused a failure.
21786         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
21787         * tests/test-vc-list-files-cvs.sh: Likewise.
21788
21789 2010-09-04  Bruno Haible  <bruno@clisp.org>
21790
21791         gnulib-tool: Avoid error when run in a package without Makefile.am.
21792         * gnulib-tool: When collecting the m4dirs in a package that does not
21793         have a Makefile.am, eliminate those directories that contain no
21794         gnulib-cache.m4. Fix expression that counts these directories.
21795
21796 2010-09-04  Bruno Haible  <bruno@clisp.org>
21797
21798         update-copyright test: Improve output when perl is missing or too old.
21799         * tests/test-update-copyright.sh: Move test of Perl version down after
21800         the test whether Perl exists. Provide an explanation relating Perl's
21801         error message to Automake's SKIP: message.
21802
21803 2010-09-04  Bruno Haible  <bruno@clisp.org>
21804
21805         Don't augment PATH in TESTS_ENVIRONMENT.
21806         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
21807         set abs_aux_dir instead of augmenting PATH.
21808         * modules/vc-list-files-tests (Makefile.am): Likewise.
21809         * tests/test-update-copyright.sh: Augment PATH here.
21810         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
21811         path_prepend_.
21812         * tests/test-vc-list-files-git.sh: Likewise.
21813
21814 2010-09-04  Jim Meyering  <meyering@redhat.com>
21815
21816         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
21817         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
21818
21819 2010-09-04  Bruno Haible  <bruno@clisp.org>
21820
21821         strdup: Fix compilation error in C++ mode.
21822         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
21823         the macro.
21824
21825 2010-09-04  Bruno Haible  <bruno@clisp.org>
21826
21827         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
21828         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
21829         macro into a function.
21830         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21831
21832 2010-09-04  Bruno Haible  <bruno@clisp.org>
21833
21834         Set PATH_SEPARATOR the same way autoconf does.
21835         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
21836         the value of PATH_SEPARATOR the same way autoconf-generated configure
21837         scripts do.
21838         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
21839         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21840
21841 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21842
21843         Set PATH_SEPARATOR the same way autoconf does.
21844         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
21845         the same way autoconf-generated configure scripts do.
21846         * posix-modules: Likewise.
21847
21848 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21849
21850         hash: fix safe_hasher const typo
21851         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
21852         const; otherwise, there is a type error later.
21853
21854 2010-09-02  Jim Meyering  <meyering@redhat.com>
21855
21856         test-update-copyright.sh: require perl 5.8.0
21857         * tests/test-update-copyright.sh: Require 5.8.0,
21858         which Tom G. Christensen has confirmed is adequate,
21859         while 5.6.1 is not.
21860
21861 2010-09-02  Eric Blake  <eblake@redhat.com>
21862
21863         tests: init.sh improvements for re-exec'ing with zsh
21864         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
21865         -vx through shell re-exec.
21866         Reported by Tom G. Christensen.
21867
21868         wctype: fix typo in previous commit
21869         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
21870         Reported by Ludovic Courtès.
21871
21872 2010-09-02  Jim Meyering  <meyering@redhat.com>
21873
21874         test-update-copyright.sh: skip test if Perl is too old
21875         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
21876         Reported by Tom G. Christensen.
21877
21878 2010-09-02  Bruno Haible  <bruno@clisp.org>
21879
21880         wctype: Avoid compilation error on IRIX 6.5.30.
21881         * lib/wctype.in.h (iswblank): Declare with a replacement if
21882         REPLACE_ISWBLANK is set.
21883         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
21884         declared. Set REPLACE_ISWBLANK.
21885         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
21886         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
21887         * doc/posix-headers/wctype.texi: Likewise.
21888         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21889
21890 2010-09-01  Bruno Haible  <bruno@clisp.org>
21891
21892         New module 'socketlib'.
21893         * modules/socketlib: New file.
21894         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
21895         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
21896         * modules/sockets (Depends-on): Add socketlib.
21897         Suggested by Sam Steingold <sds@gnu.org>.
21898
21899 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21900
21901         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
21902
21903         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
21904         when one needs search access to a directory but not read access.
21905         On systems where it is available, it works in some cases where
21906         O_RDONLY does not, namely on directories that are searchable but
21907         not readable, and which need only to be searchable.  If O_SEARCH
21908         is not available, fall back to the traditional method of using
21909         O_RDONLY.
21910
21911         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
21912         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
21913         when opening a directory that needs only to be searchable.
21914         * lib/chdir-safer.c (chdir_no_follow): Likewise.
21915         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
21916         * lib/openat-proc.c (openat_proc_name): Likewise.
21917         * lib/openat.c (openat_needs_fchdir): Likewise.
21918         * lib/save-cwd.c (save_cwd): Likewise.
21919         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
21920
21921 2010-08-28  Bruno Haible  <bruno@clisp.org>
21922
21923         New module 'host-cpu-c-abi'.
21924         * modules/host-cpu-c-abi: New file.
21925         * m4/host-cpu-c-abi.m4: New file, based on part of
21926         clisp/src/m4/general.m4.
21927         Requested by Sam Steingold <sds@gnu.org>.
21928
21929 2010-08-31  Eric Blake  <eblake@redhat.com>
21930         and Jim Meyering  <meyering@redhat.com>
21931
21932         hash: factor, and guard against misbehaving hasher function
21933         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
21934         of table->hasher's return value.  Also protect against a hash value
21935         so large that adding it to table->bucket results in a NULL pointer.
21936         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
21937         Use it in place of open-coded check-and-abort.
21938
21939 2010-08-30  Bruno Haible  <bruno@clisp.org>
21940
21941         hash: silence spurious clang warning
21942         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
21943         Reported by Eric Blake.
21944
21945 2010-08-30  Eric Blake  <eblake@redhat.com>
21946
21947         strstr, memmem, strcasestr: avoid leaked shell message
21948         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
21949         FreeBSD.
21950         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21951         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21952
21953         tests: silence clang warning
21954         * tests/test-malloca.c (do_allocation): Avoid dead store.
21955
21956 2010-08-29  Bruno Haible  <bruno@clisp.org>
21957
21958         gettext: Fix recent mistake.
21959         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
21960
21961 2010-08-29  Bruno Haible  <bruno@clisp.org>
21962
21963         selinux-h: Offer a --without-selinux option.
21964         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
21965         --without-selinux was specified, skip all tests and define
21966         HAVE_SELINUX_SELINUX_H to 0.
21967         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
21968         set LIB_SELINUX to empty.
21969         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
21970         gl_LIBSELINUX. If --without-selinux was specified, replace
21971         selinux/context.h.
21972         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
21973
21974 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21975             Bruno Haible  <bruno@clisp.org>
21976
21977         Make the module 'realloc-gnu' work again on AIX and OSF/1.
21978         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
21979         of HAVE_REALLOC.
21980         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
21981         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
21982         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
21983         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21984
21985 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21986             Bruno Haible  <bruno@clisp.org>
21987
21988         Make the module 'calloc-gnu' work again on AIX and OSF/1.
21989         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
21990         HAVE_CALLOC.
21991         * lib/xmalloc.c: Update accordingly.
21992         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
21993         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
21994         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
21995
21996 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21997             Bruno Haible  <bruno@clisp.org>
21998
21999         Make the module 'malloc-gnu' work again on AIX and OSF/1.
22000         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
22001         HAVE_MALLOC.
22002         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
22003         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
22004         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22005
22006 2010-08-29  Bruno Haible  <bruno@clisp.org>
22007
22008         Update modules list.
22009         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
22010         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
22011         (String handling <string.h>): Add astrxfrm.
22012         (File system functions): Add readlinkat.
22013
22014 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22015
22016         Tests for module 'realloc-gnu'.
22017         * modules/realloc-gnu-tests: New file.
22018         * tests/test-realloc-gnu.c: New file.
22019
22020         Tests for module 'calloc-gnu'.
22021         * modules/calloc-gnu-tests: New file.
22022         * tests/test-calloc-gnu.c: New file.
22023
22024         Tests for module 'malloc-gnu'.
22025         * modules/malloc-gnu-tests: New file.
22026         * tests/test-malloc-gnu.c: New file.
22027
22028 2010-08-28  Bruno Haible  <bruno@clisp.org>
22029
22030         Rename module 'realloc' -> 'realloc-gnu'.
22031         * modules/realloc-gnu: New file, copied from modules/realloc.
22032         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
22033         obsolete.
22034         * modules/mgetgroups (Depends-on): Update.
22035         * doc/posix-functions/realloc.texi: Update.
22036         * NEWS: Mention the change.
22037
22038         Rename module 'calloc' -> 'calloc-gnu'.
22039         * modules/calloc-gnu: New file, copied from modules/calloc.
22040         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
22041         obsolete.
22042         * doc/posix-functions/calloc.texi: Update.
22043         * NEWS: Mention the change.
22044
22045         Rename module 'malloc' -> 'malloc-gnu'.
22046         * modules/malloc-gnu: New file, copied from modules/malloc.
22047         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
22048         obsolete.
22049         * modules/argp (Depends-on): Update.
22050         * modules/regex (Depends-on): Update.
22051         * doc/posix-functions/malloc.texi: Update.
22052         * NEWS: Mention the change.
22053
22054 2010-08-28  Eric Blake  <eblake@redhat.com>
22055
22056         pread, pwrite: add missing dependency
22057         * modules/pread (Depends-on): Add extensions.
22058         * modules/pwrite (Depends-on): Likewise.
22059
22060 2010-08-28  Bruno Haible  <bruno@clisp.org>
22061
22062         unistr/u*-strchr: Fix tests dependencies.
22063         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
22064         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
22065         Reported by Ian Beckwith <ianb@erislabs.net>.
22066
22067 2010-08-28  Bruno Haible  <bruno@clisp.org>
22068
22069         read-file: Don't occupy too much unused memory.
22070         * lib/read-file.c (fread_file): Shrink the buffer at the end.
22071
22072 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
22073             Eric Blake  <eblake@redhat.com>
22074             Bruno Haible  <bruno@clisp.org>
22075
22076         read-file: Avoid memory reallocations with regular files.
22077         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
22078         (fread_file): With regular files, use the remaining length as the
22079         initial buffer size.  Check against overflow.
22080         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
22081         sys_stat.
22082
22083 2010-08-28  Bruno Haible  <bruno@clisp.org>
22084
22085         ftello: Relax license.
22086         * modules/ftello (License): Relax to LGPLv2+.
22087         Reported by Eric Blake.
22088
22089 2010-08-28  Bruno Haible  <bruno@clisp.org>
22090
22091         Avoid relocwrapper link errors due to gnulib replacement functions.
22092         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
22093         function.
22094         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22095
22096 2010-08-28  Bruno Haible  <bruno@clisp.org>
22097
22098         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
22099         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
22100         defined.
22101         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
22102         Suggested by Eric Blake.
22103
22104 2010-08-28  Bruno Haible  <bruno@clisp.org>
22105
22106         sys_socket, netdb: Ensure socklen_t gets defined.
22107         * modules/sys_socket (Depends-on): Add socklen.
22108         * modules/netdb (Depends-on): Likewise.
22109         * modules/getaddrinfo (Depends-on): Remove socklen.
22110         * modules/getsockopt (Depends-on): Likewise.
22111         * modules/setsockopt (Depends-on): Likewise.
22112         * tests/test-sys_socket.c: Check that socklen_t is defined.
22113         * tests/test-netdb.c: Likewise.
22114         * m4/socklen.m4: Update comments.
22115         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22116
22117 2010-08-27  Eric Blake  <eblake@redhat.com>
22118
22119         login_tty: add missing dependency
22120         * modules/login_tty (Depends-on): Add pty.
22121
22122 2010-08-26  Eric Blake  <eblake@redhat.com>
22123
22124         lib-symbol-versions: fix m4 quoting
22125         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
22126         format for AC_LINK_IFELSE.
22127
22128         glob: fix compile test
22129         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
22130
22131         btowc: fix missing file
22132         * modules/btowc (Files): Also ship locale-fr.m4.
22133
22134         lseek: fix link test
22135         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
22136         AC_LINK_IFELSE.
22137
22138         include_next: silence autoconf 2.68 warning
22139         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
22140         AC_COMPILE_IFELSE as special.
22141         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
22142         autoconf < 2.68.
22143
22144         acl: fix compilation test
22145         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
22146         AC_COMPILE_IFELSE.
22147
22148 2010-08-26  Bruno Haible  <bruno@clisp.org>
22149
22150         Modernize AC_TRY_RUN invocations.
22151         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
22152         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
22153         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
22154         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
22155         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
22156         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22157         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22158         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22159         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22160         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22161         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22162         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22163         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22164         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22165         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22166         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22167         gl_MBRLEN_NUL_RETVAL): Likewise.
22168         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22169         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
22170         Likewise.
22171         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22172         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22173         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22174         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22175         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
22176         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
22177         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
22178         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
22179         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
22180         Likewise.
22181         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22182         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
22183         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22184         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22185         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22186         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22187         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22188         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
22189         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22190         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22191
22192 2010-08-26  Bruno Haible  <bruno@clisp.org>
22193
22194         Modernize AC_TRY_LINK invocations.
22195         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
22196         AC_TRY_LINK.
22197         * m4/argp.m4 (gl_ARGP): Likewise.
22198         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
22199         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22200         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
22201         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22202         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22203         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
22204         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
22205         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22206         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22207         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22208         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22209         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
22210         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
22211         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22212         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22213         * m4/hostent.m4 (gl_HOSTENT): Likewise.
22214         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22215         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
22216         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22217         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
22218         Likewise.
22219         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
22220         Likewise.
22221         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
22222         Likewise.
22223         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22224         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
22225         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
22226         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
22227         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
22228         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22229         * m4/servent.m4 (gl_SERVENT): Likewise.
22230         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
22231         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
22232         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
22233         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
22234         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22235         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
22236         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22237         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22238         * modules/tsearch-tests (configure.ac): Likewise.
22239
22240 2010-08-26  Bruno Haible  <bruno@clisp.org>
22241
22242         Modernize AC_TRY_COMPILE invocations.
22243         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
22244         AC_TRY_COMPILE.
22245         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
22246         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
22247         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22248         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22249         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22250         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22251         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22252         * m4/lock.m4 (gl_LOCK): Likewise.
22253         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
22254         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22255         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
22256         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22257         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22258         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
22259         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22260         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
22261         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22262         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22263         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22264         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22265         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
22266         extraneous semicolon.
22267
22268 2010-08-26  Jim Meyering  <meyering@redhat.com>
22269
22270         stat-time: relax license LGPL
22271         * modules/stat-time (License): Change from GPL to LGPL,
22272         with consent from all contributors, for use in libguile.
22273         Requested by Ludovic Courtès.
22274
22275 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
22276
22277         poll: return immediately on POLLHUP.
22278         * lib/poll.c (poll): Always set timeout before wait_timeout is
22279         computed.
22280
22281 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22282
22283         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
22284         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
22285         rmdir ("dir/.//"), unlinkat.
22286
22287 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22288
22289         stdbool: avoid spurious failure with modern xlc
22290         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22291
22292 2010-08-24  Bruno Haible  <bruno@clisp.org>
22293
22294         getloadavg: simplify code
22295         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
22296         gl_have_func. Update comments.
22297
22298 2010-08-24  Eric Blake  <eblake@redhat.com>
22299
22300         getloadavg: don't define SVR4 on cygwin
22301         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
22302         only define SVR4 when -lkvm is required.
22303         Reported by Yaakov Selkowitz.
22304
22305 2010-08-24  Bruno Haible  <bruno@clisp.org>
22306
22307         priv-set: fix comment
22308         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
22309
22310 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22311
22312         priv-set: fix comments
22313         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
22314         to match code, as suggested by David Bartley in:
22315         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
22316
22317 2010-08-23  Eric Blake  <eblake@redhat.com>
22318
22319         stdbool: avoid rejecting clang
22320         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22321         * tests/test-stdbool.c: Enable more tests if using the system
22322         <stdbool.h> instead of the gnulib replacement.
22323         (main): Move xlc bug test to a runtime test for all compilers.
22324         Reported by Anders Kaseorg.
22325
22326         argz: fix shell quoting issue
22327         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
22328         Reported by Charles Wilson.
22329
22330 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
22331             Erik Faye-Lund <kusmabite@gmail.com>
22332
22333         poll, select: handle ERROR_BROKEN_PIPE.
22334         * lib/poll.c (win32_compute_revents): Return POLLHUP when
22335         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22336         * lib/select.c (win32_compute_revents): Do not mark a pipe
22337         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22338
22339 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
22340
22341         fts: allow compilation with C++
22342         * lib/fts_.h: Specify extern "C" linkage with C++.
22343
22344 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22345
22346         Fix gnulib-tool sed script de-commentation for AIX sed.
22347         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
22348         sed.
22349
22350 2010-08-17  Eric Blake  <eblake@redhat.com>
22351
22352         test-stddef: test for (some) offsetof bugs
22353         * tests/test-stddef.c: Enhance test to ensure correct type of
22354         offsetof.
22355         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
22356         that we are not fixing at this time.
22357
22358 2010-08-15  Bruno Haible  <bruno@clisp.org>
22359
22360         stpncpy: Allow stpncpy to be defined as a macro.
22361         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
22362         if it's already correctly declared.
22363         * lib/string.in.h (stpncpy): Undefine before redefining.
22364         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
22365
22366 2010-08-14  Bruno Haible  <bruno@clisp.org>
22367
22368         Rename module 'memxfrm' to 'amemxfrm'.
22369         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
22370         (amemxfrm): Renamed from memxfrm.
22371         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
22372         (amemxfrm): Renamed from memxfrm.
22373         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
22374         * NEWS: Mention the change.
22375         * MODULES.html.sh (String handling <string.h>): Update.
22376         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
22377         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
22378         * lib/unicase/u16-casexfrm.c: Likewise.
22379         * lib/unicase/u32-casexfrm.c: Likewise.
22380         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
22381         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
22382         * lib/uninorm/u16-normxfrm.c: Likewise.
22383         * lib/uninorm/u32-normxfrm.c: Likewise.
22384         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
22385         memxfrm.
22386         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
22387         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
22388         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
22389         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
22390         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
22391         Suggested by Paul Eggert.
22392
22393 2010-08-14  Bruno Haible  <bruno@clisp.org>
22394
22395         Tests for module 'astrxfrm'.
22396         * modules/astrxfrm-tests: New file.
22397         * tests/test-astrxfrm.c: New file.
22398
22399         New module 'astrxfrm'.
22400         * lib/astrxfrm.h: New file.
22401         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
22402         * modules/astrxfrm: New file.
22403
22404 2010-08-14  Reuben Thomas <rrt@sc3d.org>
22405
22406         regex: Tweak doc.
22407         * doc/regex.texi (Overview): Don't mention regex.c.
22408         (GNU Regular Expression Compiling): Likewise.
22409         (Match-end-of-line Operator): Mention 'not_eol'.
22410
22411 2010-08-14  Brian Gough  <bjg@gnu.org>
22412             Bruno Haible  <bruno@clisp.org>
22413
22414         git-merge-changelog: add doc relating to use with bzr and hg.
22415         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
22416
22417 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
22418
22419         pthread: fix pthread.h creation for srcdir != builddir
22420         * modules/pthread (Makefile.am): Fix the rule to work also in a
22421         non-srcdir build.
22422
22423 2010-08-13  Karl Berry  <karl@gnu.org>
22424
22425         * doc/regex.texi (Predefined Syntaxes): @smallexample.
22426         * doc/posix-*/*: force line break before @url of POSIX
22427         specifications.
22428         Suggested by Werner Lemberg.
22429
22430 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22431
22432         strtod: fix const diagnostic
22433         * lib/strtod.c (strtod): Don't assign const char * to char *,
22434         as this elicits a warning from GCC when warnings are enabled.
22435
22436 2010-08-10  Pádraig Brady <P@draigbrady.com>
22437         and Eric Blake  <eblake@redhat.com>
22438
22439         copy-acl: ignore ENOTSUP on HP-UX
22440         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
22441         so that it is available for HP-UX.
22442         * lib/copy-acl.c (qcopy_acl): Use it.
22443         Reported by Patrick M. Callahan.
22444
22445 2010-08-10  Eric Blake  <eblake@redhat.com>
22446
22447         open, chown: relax license
22448         * modules/open (License): Change to LGPLv2+, with consent by all
22449         authors, for use in augeas.
22450         * modules/chown (License): Likewise.
22451         * modules/lchown (Likewise): Likewise.
22452         Requested by Adam Stokes.
22453
22454 2010-08-09  Karl Berry  <karl@gnu.org>
22455
22456         * build-aux/ar-lib: new file, import from Automake.
22457         * config/srclist.txt: autocheck for updates.
22458
22459 2010-08-09  Eric Blake  <eblake@redhat.com>
22460
22461         readlinkat: adjust client modules
22462         * modules/areadlinkat (Depends-on): Use readlinkat, not
22463         symlinkat.
22464         * modules/areadlinkat-with-size (Depends-on): Likewise.
22465
22466         mknod: be more vocal about danger of running tests as root
22467         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
22468         root, since that is just asking for problems.
22469         Suggested by Bruno Haible, based on a report by Rainer Tammer.
22470
22471         readlinkat: split into its own module
22472         * modules/symlinkat: Split readlinkat...
22473         * modules/readlinkat: ...into separate module.
22474         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
22475         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
22476         * lib/symlinkat.c (readlinkat): Move...
22477         * lib/readlinkat.c: ...into new file.
22478         * modules/symlinkat-tests: Split readlinkat test...
22479         * modules/readlinkat-tests: ...into separate module.
22480         * tests/test-symlinkat.c: Split...
22481         * tests/test-readlinkat.c: ...into new file.
22482         * NEWS: Document the split.
22483         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22484         * lib/unistd.in.h (readlinkat): Likewise.
22485         Suggested by Bruno Haible.
22486
22487 2010-08-08  Bruno Haible  <bruno@clisp.org>
22488
22489         memxfrm: Speed up.
22490         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
22491         that usually only one call to strxfrm is necessary for each string
22492         part.
22493         Reported by Paul Eggert <eggert@cs.ucla.edu>.
22494
22495 2010-08-07  Karl Berry  <karl@gnu.org>
22496
22497         * doc/posix-headers/limits.texi,
22498         * doc/posix-functions/malloc.texi,
22499         * doc/posix-functions/strsignal.texi: missing @item.
22500         * doc/ld-version-script.texi: spurious leading i.
22501         * doc/regex.texi (Interval Operators): no commas inside @var.
22502
22503 2010-08-01  Bruno Haible  <bruno@clisp.org>
22504
22505         Integrate the regex documentation.
22506         * doc/gnulib.texi: Define 'cn' index.
22507         (Regular expressions): New a chapter that includes regex.texi and
22508         regexprops-generic.texi.
22509         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
22510         syntax.
22511
22512         Whitespace cleanup.
22513         * doc/regex.texi: Remove trailing spaces.
22514
22515         Add regex documentation.
22516         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
22517         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
22518         Written by Kathy A. Hargreaves and Karl Berry.
22519
22520 2010-08-01  Bruno Haible  <bruno@clisp.org>
22521
22522         link: Update documentation.
22523         * doc/posix-functions/link.texi: Update regarding Solaris.
22524
22525 2010-07-31  Bruno Haible  <bruno@clisp.org>
22526
22527         Update modules list.
22528         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
22529         (String handling <string.h>): Add memcmp2, memxfrm.
22530         (Container data structures): Add xlist, xsublist, xoset.
22531         (Core language properties): Add alignof, unused-parameter.
22532         (Process control, Numeric conversion functions <stdlib.h>): Renamed
22533         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
22534         (Unibyte characters <ctype.h>): New section.
22535         (String handling <string.h>): New section.
22536         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
22537         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
22538         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
22539         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
22540         tan, tanh, tanl, y0, y1, yn.
22541         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
22542         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
22543         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
22544         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
22545         unlockpt, vdprintf, vdprintf-posix.
22546         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
22547         (File system functions): Add concat-filename, sys_file, sys_ioctl,
22548         xconcat-filename.
22549         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
22550         getdtablesize, pipe2, pipe2-safer.
22551         (Security): New section.
22552         (Networking functions): Add accept4.
22553         (Signal handling): Add sigpipe.
22554         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
22555         mbmemcasecoll.
22556         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
22557         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
22558         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
22559         pipe-filter-ii.
22560         (Misc): Add argp-version-etc, login_tty, parse-duration.
22561
22562 2010-07-31  Bruno Haible  <bruno@clisp.org>
22563
22564         Improve doc in MODULES.html.
22565         * modules/linkat (Description): Add the word "function".
22566         * modules/mkfifo (Description): Likewise.
22567         * modules/mknod (Description): Likewise.
22568         * modules/remove (Description): Likewise.
22569         * modules/renameat (Description): Likewise.
22570         * modules/stat (Description): Likewise.
22571         * modules/symlink (Description): Likewise.
22572         * modules/unlink (Description): Likewise.
22573
22574 2010-07-31  Bruno Haible  <bruno@clisp.org>
22575
22576         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
22577         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
22578         option --enable/disable-c++ instead of --enable/disable-cxx.
22579         * NEWS: Mention the change.
22580
22581 2010-07-31  Bruno Haible  <bruno@clisp.org>
22582
22583         readlink, areadlink: Relax test a bit.
22584         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
22585         alternative to ENOTDIR.
22586         * tests/test-areadlink.h (test_areadlink): Likewise.
22587         Reported by Rainer Tammer.
22588
22589 2010-07-31  Bruno Haible  <bruno@clisp.org>
22590
22591         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
22592         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
22593         character, perform the search using U_STRCHR.
22594         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
22595         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
22596         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
22597         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
22598         Suggested by Paolo Bonzini.
22599
22600 2010-07-31  Bruno Haible  <bruno@clisp.org>
22601
22602         unistr/u*-strstr: Fix dependencies.
22603         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
22604         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
22605         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
22606
22607 2010-07-31  Bruno Haible  <bruno@clisp.org>
22608
22609         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
22610         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
22611         the beginning of the loop.
22612         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
22613         cases in 'switch' statement.
22614
22615         unistr/u8-strchr: Fix several bugs.
22616         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
22617         the string. When not found, return NULL, not a pointer near the end.
22618
22619         More tests for unistr/u8-strchr.
22620         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
22621         that the function does not read past the first occurrence of the byte
22622         being searched.
22623         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
22624         * tests/unistr/test-u16-strchr.c (main): New function.
22625         * tests/unistr/test-u32-strchr.c (main): New function.
22626
22627 2010-07-31  Bruno Haible  <bruno@clisp.org>
22628
22629         posix-modules: Ignore backup files of documentation files.
22630         * posix-modules: grep only through files named *.texi.
22631
22632 2010-07-31  Bruno Haible  <bruno@clisp.org>
22633
22634         symlinkat: Fix documentation.
22635         * doc/posix-functions/readlinkat.texi: Fix module name.
22636
22637 2010-07-31  Bruno Haible  <bruno@clisp.org>
22638
22639         fchownat: Replace also when chown has the trailing slash bug.
22640         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
22641         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
22642         introduced on 2010-04-10.
22643         Reported by Rainer Tammer.
22644
22645 2010-07-31  Bruno Haible  <bruno@clisp.org>
22646
22647         linkat: Work around AIX 7.1 bug.
22648         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
22649         whether linkat handles trailing slash correctly. If not, replace linkat
22650         and define LINKAT_TRAILING_SLASH_BUG.
22651         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
22652         check whether (fd1,file1) points to a directory if file1 or file2 ends
22653         in a slash. Code taken from lib/link.c.
22654         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
22655         Reported by Rainer Tammer.
22656
22657 2010-07-31  Bruno Haible  <bruno@clisp.org>
22658
22659         Correctly determine whether pow is available in libc on AIX 7 with xlc.
22660         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
22661         This disables an xlc optimization that was causing wrong test results.
22662         Reported by Rainer Tammer.
22663
22664 2010-07-31  Bruno Haible  <bruno@clisp.org>
22665
22666         iconv: Work around AIX 6.1..7.1 bug.
22667         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
22668         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
22669         cross-compiling, guess no on all versions of AIX.
22670         Reported by Rainer Tammer.
22671
22672 2010-07-31  Bruno Haible  <bruno@clisp.org>
22673
22674         readlink: Relax test a bit.
22675         * tests/test-readlink.h (test_readlink): Allow different errno value
22676         when readlink is called with a file name that ends in / and refers to
22677         a file.
22678         Suggested by Eric Blake.
22679         Reported by Rainer Tammer.
22680
22681 2010-07-31  Bruno Haible  <bruno@clisp.org>
22682
22683         copysign: Does not require -lm on glibc systems.
22684         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
22685         gl_COMMON_DOUBLE_MATHFUNC.
22686         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
22687
22688 2010-07-31  Bruno Haible  <bruno@clisp.org>
22689
22690         duplocale: Work around AIX 7.1 bug.
22691         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
22692         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
22693         * lib/duplocale.c (rpl_duplocale): Update comment.
22694         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
22695         Reported by Rainer Tammer.
22696
22697 2010-07-30  Bruno Haible  <bruno@clisp.org>
22698
22699         dirfd: Avoid link error on AIX 7.1.
22700         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
22701         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
22702         exist, set REPLACE_DIRFD.
22703         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
22704         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
22705         * doc/posix-functions/dirfd.texi: Update.
22706         Reported by Rainer Tammer.
22707
22708 2010-07-30  Eric Blake  <eblake@redhat.com>
22709
22710         strtod: next round of AIX fixes
22711         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
22712         exponent.
22713         * tests/test-strtod.c (main): Enhance tests.
22714         * doc/posix-functions/strtod.texi (strtod): Document next bug.
22715         Reported by Rainer Tammer.
22716
22717         futimens: fix configure check
22718         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
22719         Reported by Bruno Haible.
22720
22721 2010-07-30  Bruno Haible  <bruno@clisp.org>
22722
22723         getline: Update regarding AIX.
22724         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
22725         Reported by Rainer Tammer.
22726
22727 2010-07-30  Bruno Haible  <bruno@clisp.org>
22728
22729         wcwidth: Drop replacement on AIX 7.
22730         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
22731         AIX 7.
22732         Reported by Rainer Tammer.
22733
22734 2010-07-30  Bruno Haible  <bruno@clisp.org>
22735
22736         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
22737         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
22738         a 'char *'.
22739         Reported by Rainer Tammer.
22740
22741 2010-07-30  Bruno Haible  <bruno@clisp.org>
22742
22743         unlink: Update regarding AIX.
22744         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
22745         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
22746         Reported by Rainer Tammer.
22747
22748 2010-07-30  Bruno Haible  <bruno@clisp.org>
22749
22750         symlink: Update regarding AIX.
22751         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
22752         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
22753         Reported by Rainer Tammer.
22754
22755 2010-07-30  Bruno Haible  <bruno@clisp.org>
22756
22757         strndup: Update regarding AIX.
22758         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
22759         AIX 7.
22760         Reported by Rainer Tammer.
22761
22762 2010-07-30  Bruno Haible  <bruno@clisp.org>
22763
22764         stat: Update regarding AIX.
22765         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
22766         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
22767         Reported by Rainer Tammer.
22768
22769 2010-07-30  Bruno Haible  <bruno@clisp.org>
22770
22771         truncl: Fix autoconf test.
22772         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
22773         whether truncl works.
22774         Reported by Rainer Tammer.
22775
22776 2010-07-30  Bruno Haible  <bruno@clisp.org>
22777
22778         round: Update regarding AIX.
22779         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
22780         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
22781         Reported by Rainer Tammer.
22782
22783 2010-07-30  Bruno Haible  <bruno@clisp.org>
22784
22785         rename: Update regarding AIX.
22786         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
22787         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
22788         Reported by Rainer Tammer.
22789
22790 2010-07-30  Bruno Haible  <bruno@clisp.org>
22791
22792         printf.m4: Update regarding AIX.
22793         * m4/printf.m4: Update comments regarding AIX.
22794         Reported by Rainer Tammer.
22795
22796 2010-07-30  Bruno Haible  <bruno@clisp.org>
22797
22798         iconv: Update regarding AIX.
22799         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
22800         AIX 7.
22801         Reported by Rainer Tammer.
22802
22803 2010-07-30  Bruno Haible  <bruno@clisp.org>
22804
22805         getopt: Update regarding AIX.
22806         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
22807         no on AIX.
22808         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
22809         Reported by Rainer Tammer.
22810
22811 2010-07-30  Bruno Haible  <bruno@clisp.org>
22812
22813         ldexpl; Update regarding AIX.
22814         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
22815         on AIX 7.
22816         Reported by Rainer Tammer.
22817
22818 2010-07-30  Bruno Haible  <bruno@clisp.org>
22819
22820         frexpl: Update regarding AIX.
22821         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
22822         on AIX 7.
22823         Reported by Rainer Tammer.
22824
22825 2010-07-30  Bruno Haible  <bruno@clisp.org>
22826
22827         open, fopen: Update regarding AIX.
22828         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
22829         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22830         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
22831         * doc/posix-functions/fopen.texi: Likewise.
22832         Reported by Rainer Tammer.
22833
22834 2010-07-30  Bruno Haible  <bruno@clisp.org>
22835
22836         chown: Update doc regarding AIX.
22837         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
22838         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
22839         Reported by Rainer Tammer.
22840
22841 2010-07-30  Eric Blake  <eblake@redhat.com>
22842
22843         strtod: fix bug in replacement function on AIX
22844         * lib/strtod.c (strtod): Special case broken "0x" parse in
22845         underlying strtod.
22846         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
22847         * doc/posix-functions/strtod.texi (strtod): Likewise.
22848         Reported by Rainer Tammer.
22849
22850 2010-07-30  Bruno Haible  <bruno@clisp.org>
22851
22852         mbrlen: Fix cross-compilation guess for AIX.
22853         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
22854         guess. Leftover from 2008-12-22.
22855
22856 2010-07-30  Bruno Haible  <bruno@clisp.org>
22857
22858         mbrtowc: Fix cross-compilation guess for AIX.
22859         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
22860         guess. Leftover from 2008-12-21.
22861
22862 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
22863
22864         init.sh: work around trap limitation of some shells
22865         * tests/init.sh (setup_): Move exit trap outside of shell function.
22866
22867 2010-07-29  Eric Blake  <eblake@redhat.com>
22868
22869         strtod: aid debugging
22870         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
22871         understanding why strtod is rejected.
22872
22873 2010-07-28  Bruno Haible  <bruno@clisp.org>
22874
22875         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
22876         * lib/unistr/u8-chr.c: Include <string.h>.
22877         * tests/unistr/test-u8-chr.c: Likewise.
22878         * tests/unistr/test-u16-chr.c: Likewise.
22879         * tests/unistr/test-u32-chr.c: Likewise.
22880         * tests/unistr/test-u8-strchr.c: Likewise.
22881         * tests/unistr/test-u16-strchr.c: Likewise.
22882         * tests/unistr/test-u32-strchr.c: Likewise.
22883         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
22884         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
22885         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
22886         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
22887
22888 2010-07-28  Bruno Haible  <bruno@clisp.org>
22889
22890         Use spaces for indentation, not tabs.
22891         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22892
22893 2010-07-27  Bruno Haible  <bruno@clisp.org>
22894
22895         mbspcasecmp: Fix function specification.
22896         * lib/string.in.h (mbspcasecmp): Fix specification comment.
22897         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
22898         Reported by Eric Blake <eblake@redhat.com>.
22899
22900 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
22901
22902         timespec: use cast and not conditional, as truncation isn't possible
22903         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
22904         instead of a conditional.  Comment about the situation in more detail.
22905         This undoes most of the 2009-10-29 patch.
22906
22907 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
22908
22909         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
22910         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
22911         * lib/unistr/u8-strchr.c: Likewise.
22912         * modules/unistr/u8-chr: Depend on memchr.
22913
22914         unistr/u*-strchr: add tests
22915         * modules/unistr/u8-strchr-tests: New file.
22916         * modules/unistr/u16-strchr-tests: New file.
22917         * modules/unistr/u32-strchr-tests: New file.
22918         * tests/unistr/test-strchr.h: New file.
22919         * tests/unistr/test-u8-strchr.c: New file.
22920         * tests/unistr/test-u16-strchr.c: New file.
22921         * tests/unistr/test-u32-strchr.c: New file.
22922
22923         unistr/u*-chr: test multibyte sequences more
22924         * tests/unistr/test-chr.h: Do complete testing of the characters in the
22925         test vector.
22926         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
22927         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
22928         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
22929
22930         unistr/u*-chr: test multibyte sequences
22931         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
22932
22933         unistr/u*-chr: prepare for multibyte tests
22934         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
22935         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
22936         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
22937         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
22938         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
22939         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
22940
22941 2010-07-18  Bruno Haible  <bruno@clisp.org>
22942
22943         unistr/u8-strchr: Optimize non-ASCII argument case.
22944         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
22945         because the first byte often matches anyway.
22946         Reported by Pádraig Brady <P@draigbrady.com>.
22947
22948 2010-07-15  Karl Berry  <karl@gnu.org>
22949
22950         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
22951
22952 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
22953
22954         getcwd: on Solaris, work better if ancestors are inaccessible
22955         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
22956         buffer and size, try again with a large buffer.  This works better
22957         on Solaris, since its getcwd succeeds even if the path to the root
22958         is inaccessible, and this is helpful in common cases such as .zfs
22959         hidden directories.  Problem reported by J Chapman Flack in
22960         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
22961         Use system getcwd if it's declared, not merely if it's partly
22962         working; use the partly-working test only to avoid needless effort
22963         if the system getcwd fails.
22964         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
22965         comment that was already obsolete and is now even more obsolete.
22966         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
22967         now might call strdup.
22968
22969 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
22970
22971         pthread: Add enough so that coreutils/src/sort.c compiles.
22972         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
22973         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
22974         gnulib. Include <sched.h> and <time.h>, as per POSIX.
22975         Include <sys/types.h>, in case it defines pthread_t.
22976         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
22977         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
22978         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
22979         (pthread_rwlockattr_t, pthread_spinlock_t):
22980         New typedefs, if HAVE_PTHREAD_T is not defined.
22981         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
22982         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
22983         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
22984         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
22985         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
22986         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
22987         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
22988         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
22989         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
22990         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
22991         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
22992         New macros.
22993         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
22994         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
22995         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
22996         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
22997         (pthread_spin_unlock): New dummy functions.
22998         (pthread_create): Return EAGAIN; don't set errno.
22999         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
23000         require AC_C_INLINE.
23001         * modules/pthread (Depends-on): Add sched, time.
23002         (pthread.h): Use AM_V_GEN.
23003
23004 2010-07-13  Bruno Haible  <bruno@clisp.org>
23005
23006         striconveh: Don't malloc memory if the result buffer is sufficient.
23007         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
23008         buffer if its size is sufficient.
23009         Reported by Ludovic Courtès <ludo@gnu.org>.
23010
23011 2010-07-13  Bruno Haible  <bruno@clisp.org>
23012
23013         strtod: Add safety check.
23014         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
23015
23016 2010-07-12  Bruno Haible  <bruno@clisp.org>
23017
23018         Unify tests that set gl_cv_func_ldexpl_no_libm.
23019         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
23020         gl_FUNC_LDEXPL.
23021         (gl_FUNC_LDEXPL): Invoke it.
23022         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23023
23024 2010-07-12  Bruno Haible  <bruno@clisp.org>
23025
23026         Unify tests that set gl_cv_func_ldexp_no_libm.
23027         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
23028         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
23029         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
23030         (configure.ac): Simply invoke gl_FUNC_LDEXP.
23031         * modules/strtod (Files): Add m4/ldexp.m4.
23032
23033 2010-07-12  Bruno Haible  <bruno@clisp.org>
23034
23035         Unify tests that set gl_cv_func_frexpl_no_libm.
23036         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
23037         gl_FUNC_FREXPL_NO_LIBM.
23038         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
23039         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23040
23041 2010-07-12  Bruno Haible  <bruno@clisp.org>
23042
23043         Unify tests that set gl_cv_func_frexp_no_libm.
23044         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
23045         gl_FUNC_FREXP_NO_LIBM.
23046         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
23047         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23048
23049 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23050
23051         memcoll: clarify sizes versus lengths, document better, and tweak perf
23052         * lib/memcoll.c (strcoll_loop, memcoll0):
23053         Improve quality of descriptive comments.  Name variables
23054         consistently as to whether they are lengths (which do not include
23055         terminating null) versus sizes (which do).
23056         * lib/xmemcoll.c (xmemcoll0): Likewise.
23057         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
23058         returned when s1size == 0; this is easier to compile and saves
23059         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
23060
23061 2010-07-12  Bruno Haible  <bruno@clisp.org>
23062
23063         Tests for module '_Exit'.
23064         * modules/_Exit-tests: New file.
23065         * tests/test-_Exit.sh: New file.
23066         * tests/test-_Exit.c: New file.
23067
23068         New module '_Exit'.
23069         * lib/stdlib.in.h (__attribute__): New macro.
23070         (_Exit): New declaration.
23071         * lib/_Exit.c: New file.
23072         * m4/_Exit.m4: New file.
23073         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
23074         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
23075         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
23076         * modules/_Exit: New file.
23077         * tests/test-stdlib-c++.cc (_Exit): Check signature.
23078         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
23079
23080 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23081
23082         strtod: make it more-accurate typically, and don't require libm
23083         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
23084         Include limits.h.  Don't include string.h.
23085         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
23086         (locale_isspace): New function, so that no casts are needed to
23087         check whether *s is a space.
23088         (ldexp): Provide an unused dummy if not available.
23089         (scale_radix_exp, parse_number, underlying_strtod): New functions.
23090         (strtod): Use them.  This implementation prefers to use the
23091         underlying strtod if available, falling back on our own code
23092         only to fix known bugs.  This is more likely to produce an
23093         accurate result.  Also, it avoids the use of libm functions.
23094         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
23095         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
23096         was absent, but it caused a test failure with coreutils.
23097         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
23098         with libm.
23099         * modules/strtod (Makefile.am, Link): libm is no longer needed.
23100         * modules/strtod-tests (Makefile.am): Likewise.
23101
23102 2010-07-11  Pádraig Brady  <P@draigBrady.com>
23103             Bruno Haible  <bruno@clisp.org>
23104
23105         unistr/u8-strchr: Optimize ASCII argument case.
23106         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
23107
23108 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
23109
23110         (x)memcoll: minor tweaks
23111         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
23112         is after the type that it qualifies.
23113         (memcoll0): Likewise.
23114         * lib/memcoll.h (memcoll0): Likewise.
23115         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
23116         * lib/xmemcoll.h (xmemcoll0): Likewise.
23117         * lib/memcoll.c (memcoll0): Correct the comment.  This function
23118         differs from memcoll in that the NUL byte is part of the argument.
23119         Omit the abort-checks, as performance is a real issue here.  Plus,
23120         the checks were wrong anyway (an off-by-one error).  Omit local
23121         variable 'diff', as it's a bit clearer that way.
23122         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
23123         no longer needed.
23124
23125 2010-07-08  Chen Guo <chenguo4@yahoo.com>
23126
23127         (x)memcoll: speedup when input is known to be NUL delimited
23128         * lib/memcoll.c: Include stdlib.
23129         (memcoll0): New function.
23130         (strcoll_loop): New function, refactored for use in both memcoll
23131         and memcoll0.
23132         * lib/memcoll.h (memcoll0): Add prototype.
23133         * lib/xmemcoll.c (xmemcoll0): New function.
23134         (collate_error): New function, refactored for use in both xmemcoll
23135         and xmemcoll0.
23136         * lib/xmemcoll.h (xmemcoll0): Add prototype.
23137         * m4/memcoll.m4: add inline invocation.
23138
23139 2010-07-06  Pádraig Brady  <P@draigBrady.com>
23140
23141         * build-aux/bootstrap: Remove any local translations
23142         from the translation project synchronization directory,
23143         so that local only translations are not distributed.
23144
23145 2010-07-04  Bruno Haible  <bruno@clisp.org>
23146
23147         fsusage: Clarify which code applies to which platforms.
23148         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
23149         platform.
23150         * lib/fsusage.c (get_fs_usage): Likewise.
23151
23152 2010-07-04  Bruno Haible  <bruno@clisp.org>
23153
23154         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
23155         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
23156         Reported by Martin Lambers <marlam@marlam.de>.
23157
23158 2010-07-04  Jim Meyering  <meyering@redhat.com>
23159
23160         hash: once again explicitly disallow insertion of NULL
23161         * lib/hash.c (hash_insert0): Reinstate just-removed test:
23162         inserting a NULL pointer cannot work with these functions.
23163         Add a comment with details.
23164         This reverts part of the 2010-07-01 commit, 5bef1a35
23165         "hash: extend module to deal with non-pointer keys".
23166
23167 2010-07-01  Bruno Haible  <bruno@clisp.org>
23168
23169         stdbool: Update doc.
23170         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
23171         Info from Christian Weisgerber <naddy@mips.inka.de>.
23172
23173 2010-07-01  Jim Meyering  <meyering@redhat.com>
23174
23175         hash: extend module to deal with non-pointer keys
23176         * lib/hash.c (hash_insert0): New interface, much like hash_insert
23177         but that allows insertion of non-pointer entries.
23178         Do not disallow an ENTRY value of NULL.
23179         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
23180         * lib/hash.h (hash_insert0): Declare.
23181
23182 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23183
23184         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
23185         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
23186         not present (i.e. with autoconf 2.59 and when using gettextize, not
23187         gnulib), require AC_GNU_SOURCE instead.
23188
23189 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
23190
23191         idpriv-drop: Fix tests.
23192         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
23193         not to the test-idpriv-droptemp program.
23194
23195 2010-06-29  Bruno Haible  <bruno@clisp.org>
23196
23197         string: Fix syntax error with g++ 2.96.
23198         * lib/string.in.h (__pure__): Remove definition.
23199         (_GL_ATTRIBUTE_PURE): New macro.
23200         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
23201         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
23202         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23203
23204 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
23205
23206         unitypes: Fix bug introduced on 2010-05-18.
23207         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
23208
23209 2010-06-22  Eric Blake  <eblake@redhat.com>
23210
23211         memmem: slight optimization
23212         * lib/str-two-way.h (critical_factorization): Update comments.
23213         Reduce work during factorization phase.
23214         Reported by Carlos Bueno <carlos@bueno.org>.
23215
23216 2010-06-21  Bruno Haible  <bruno@clisp.org>
23217
23218         Fix HAVE_CALLOC_POSIX misnomer.
23219         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
23220         !HAVE_CALLOC_POSIX.
23221         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
23222         HAVE_CALLOC_POSIX.
23223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
23224         instead of HAVE_CALLOC_POSIX.
23225         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
23226         HAVE_CALLOC_POSIX.
23227
23228         Use modern idiom for calloc() replacement.
23229         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
23230         AC_FUNC_CALLOC.
23231         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
23232         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
23233         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23234         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
23235         (gl_REPLACE_CALLOC): New macro.
23236
23237 2010-06-21  Bruno Haible  <bruno@clisp.org>
23238
23239         Fix HAVE_REALLOC_POSIX misnomer.
23240         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
23241         !HAVE_REALLOC_POSIX.
23242         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
23243         HAVE_REALLOC_POSIX.
23244         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
23245         instead of HAVE_REALLOC_POSIX.
23246         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
23247         HAVE_REALLOC_POSIX.
23248
23249         Use modern idiom for realloc() replacement.
23250         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
23251         AC_FUNC_REALLOC.
23252         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
23253         Autoconf's AC_FUNC_REALLOC.
23254         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23255         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
23256         (gl_REPLACE_REALLOC): New macro.
23257         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23258
23259 2010-06-21  Bruno Haible  <bruno@clisp.org>
23260
23261         Fix HAVE_MALLOC_POSIX misnomer.
23262         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
23263         !HAVE_MALLOC_POSIX.
23264         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
23265         HAVE_MALLOC_POSIX.
23266         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
23267         instead of HAVE_MALLOC_POSIX.
23268         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
23269         HAVE_MALLOC_POSIX.
23270
23271         Use modern idiom for malloc() replacement.
23272         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
23273         AC_FUNC_MALLOC.
23274         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
23275         Autoconf's AC_FUNC_MALLOC.
23276         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23277         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
23278         (gl_REPLACE_MALLOC): New macro.
23279         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23280
23281 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
23282
23283         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
23284         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
23285         This macro takes 3 arguments, not 4.
23286
23287 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
23288
23289         ipv6: fix detection under mingw
23290         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
23291         in6_addr.
23292
23293 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
23294
23295         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
23296         that strtod() works when cross-compiling to a glibc version known
23297         to work.
23298
23299 2010-06-15  Bruno Haible  <bruno@clisp.org>
23300
23301         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
23302
23303 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
23304
23305         select: Correct timeout.
23306         * lib/select.c (rpl_select): Compute wait_timeout correctly.
23307
23308 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23309
23310         git-version-gen: init shell var to avoid env var influence
23311         * build-aux/git-version-gen (v): Init shell var to empty.
23312
23313 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
23314
23315         priv-set: Don't assume that priv.h exists merely because getppriv does.
23316         See Jan Andersen's bug report about AIX 5L in
23317         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
23318         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
23319         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
23320         * lib/priv-set.h: Likewise.
23321         * tests/test-priv-set.c: Likewise.
23322
23323 2010-06-13  Bruno Haible  <bruno@clisp.org>
23324
23325         relocatable: Make it easier to test whether to install wrappers.
23326         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
23327         RELOCATABLE_VIA_WRAPPER.
23328
23329 2010-06-13  Bruno Haible  <bruno@clisp.org>
23330
23331         gnulib-tool: Display specified modules and dependencies differently.
23332         * gnulib-tool (func_show_module_list): New function.
23333         (func_import, func_create_testdir): Invoke it.
23334         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23335
23336 2010-06-13  Bruno Haible  <bruno@clisp.org>
23337
23338         gnulib-tool: Align code of func_import and func_create_testdir.
23339         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
23340         specified_modules.
23341
23342 2010-06-12  Jim Meyering  <meyering@redhat.com>
23343
23344         test-inttostr: avoid spurious failure on Solaris 9
23345         * tests/test-inttostr.c (main): Skip the test when snprintf fails
23346         to accept "%ju".  Reported by Bruno Haible.
23347
23348 2010-06-11  Jim Meyering  <meyering@redhat.com>
23349
23350         test-sys_socket: mark variables as used more readably
23351         * tests/test-sys_socket.c (main): Mark otherwise unused variables
23352         as "used" explicitly via (void) statement casts.  This is more
23353         readable than using them in an artificial return expression.
23354         Suggestion from Bruno Haible.
23355
23356 2010-06-11  Bruno Haible  <bruno@clisp.org>
23357
23358         Avoid some more warnings from "gcc -Wwrite-strings".
23359         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
23360         to 'const char *'.
23361         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
23362         * tests/test-c-strcasestr.c (main): Likewise.
23363         * tests/test-mbscasestr1.c (main): Likewise.
23364         * tests/test-mbscasestr2.c (main): Likewise.
23365         * tests/test-memmem.c (main): Likewise.
23366         * tests/test-strstr.c (main): Likewise.
23367         * tests/test-strcasestr.c (main): Likewise.
23368
23369 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23370
23371         init.sh: change framework_failure_ to fail with status 99, not 1
23372         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
23373         automake's parallel-tests rule that this is an unexpected failure,
23374         even if the test is listed in XFAIL_TESTS.
23375
23376 2010-06-11  Jim Meyering  <meyering@redhat.com>
23377
23378         test-inttostr: avoid warnings about 4-6KB literal strings
23379         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
23380         Include "macros.h", for its definition of ASSERT.
23381         (CK): s/assert/ASSERT/
23382         * modules/inttostr-tests (Files): Add macros.h.
23383
23384         init.sh: don't use $ME_ or skip_ before they are defined
23385         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
23386         their first uses.  Also hoist their companions: warn_, fail_,
23387         framework_failure_, $stderr_fileno.  Prompted by a patch from
23388         Stefano Lattarini.
23389
23390         test-sys_socket: avoid set-but-not-used warnings from gcc
23391         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
23392         avoid warning about set-but-not-used variables.
23393
23394         test-xvasprintf: avoid 'const' discard warnings
23395         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
23396         "const" when assigning from literal strings.
23397         (test_xasprintf): Add "void" in function argument list to placate
23398         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
23399
23400         tests: avoid compilation warnings in argmatch and exclude tests...
23401         in packages that define ARGMATCH_DIE_DECL, like coreutils.
23402         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
23403         Since it always exits, declare with the "noreturn" attribute.
23404         * tests/test-argmatch.c: Likewise.
23405
23406         tests: avoid 'const' discard warnings in mbsstr tests
23407         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
23408         * tests/test-mbsstr2.c (main): Likewise.
23409
23410         test-verify: avoid warning from gcc's -Wmissing-declarations
23411         * tests/test-verify.c (function): Declare to be static.
23412
23413         test-inttostr.c: include <string.h> for use of strcmp
23414         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
23415
23416         test-linkat: avoid failed assertion on "other" architectures
23417         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
23418         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
23419         sparc: https://bugs.launchpad.net/bugs/591968
23420
23421 2010-06-11  Jim Meyering  <meyering@redhat.com>
23422
23423         printf.m4: avoid autoconf's "Expanded Before Required" warning
23424         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
23425         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
23426         autoconf warning.
23427
23428 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
23429
23430         Replacement header templates are now named with ".in", not "_".
23431         * doc/gnulib-intro.texi: Correct.
23432
23433 2010-06-10  Jim Meyering  <meyering@redhat.com>
23434
23435         inttostr-tests: depend on snprintf, not snprintf-posix
23436         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
23437         snprintf-posix, to avoid this aclocal failure:
23438           missing file gnulib-tests/vasnprintf.c
23439           configure.ac:45: error: expected source file, required through \
23440           AC_LIBSOURCES, not found
23441
23442 2010-06-10  Jim Meyering  <meyering@redhat.com>
23443
23444         inttostr: add a new function, inttostr, and tests
23445         The namesake function was not available.  The existence of the
23446         template file, inttostr.c makes its addition nontrivial.
23447         * lib/anytostr.c: Rename from inttostr.c.
23448         (anytostr): Rename from inttostr.
23449         * lib/inttostr.c: New file.
23450         * modules/inttostr (Files): Add anytostr.c.
23451         (Makefile.am): Set lib_SOURCES instead of ...
23452         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
23453         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
23454         * lib/offtostr.c: Likewise.
23455         * lib/uinttostr.c: Likewise.
23456         * lib/umaxtostr.c: Likewise.
23457         * modules/inttostr-tests: New file.
23458         * tests/test-inttostr.c: New file.  Test these functions.
23459
23460 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
23461             Bruno Haible  <bruno@clisp.org>
23462
23463         Add "Extending Gnulib" chapter to manual.
23464         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
23465         chapter.
23466         (Extending Gnulib): New chapter.
23467         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
23468         chapter.
23469
23470 2010-06-09  Bruno Haible  <bruno@clisp.org>
23471
23472         Avoid relocwrapper link errors due to gnulib replacement functions.
23473         * lib/areadlink.c: Use the system's malloc, realloc functions.
23474         (areadlink): Set errno to ENOMEM explicitly.
23475         * modules/areadlink (Depends-on): Remove malloc-posix.
23476         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23477
23478 2010-06-09  Bruno Haible  <bruno@clisp.org>
23479
23480         Avoid relocwrapper link errors due to gnulib replacement functions.
23481         * lib/canonicalize-lgpl.c: Use the system's malloc function.
23482         * lib/malloca.c: Likewise.
23483         * lib/relocatable.c: Likewise.
23484         * lib/progreloc.c: Use the system's malloc, sprintf functions.
23485         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
23486         * lib/setenv.c: Use the system's malloc, realloc functions.
23487         * lib/strerror.c: Use the system's sprintf function.
23488         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23489
23490 2010-06-04  Bruno Haible  <bruno@clisp.org>
23491
23492         Prefer documented low-level autoconf macro names.
23493         * m4/lib-link.m4: Use m4_translit instead of translit.
23494         * m4/environ.m4: Likewise.
23495         * m4/mathfunc.m4: Likewise.
23496         * m4/onceonly.m4: Likewise.
23497         * m4/stdint.m4: Likewise.
23498         Suggested by Eric Blake.
23499
23500 2010-06-04  Martin Lambers  <marlam@marlam.de>
23501             Bruno Haible  <bruno@clisp.org>
23502
23503         havelib: Allow library names with '+' characters.
23504         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23505         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
23506
23507 2010-06-09  Bruno Haible  <bruno@clisp.org>
23508
23509         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
23510         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
23511         realloc failed.
23512
23513 2010-06-08  Peter Simons  <simons@cryp.to>
23514
23515         maint.mk: make the news-check rule more configurable
23516         * top/maint.mk (news-check-lines-spec): New variable.
23517         (news-check): Use "sed -n 1,10p" in place of "head".
23518
23519 2010-06-07  Jim Meyering  <meyering@redhat.com>
23520
23521         do-release-commit-and-tag: fix typo in --help
23522         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
23523
23524         regex: avoid new dead-code warning with gcc-4.6.0
23525         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
23526         if-block containing a while-loop.  It's been unused for at least
23527         5 years.
23528
23529 2010-06-05  Bruno Haible  <bruno@clisp.org>
23530
23531         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
23532         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
23533
23534 2010-06-04  Bruno Haible  <bruno@clisp.org>
23535
23536         Update to GNU gettext 0.18.1.
23537         * modules/gettext (configure.ac): Require gettext infrastructure from
23538         version 0.18.1.
23539
23540 2010-06-03  Bruno Haible  <bruno@clisp.org>
23541
23542         Don't use AC_LIBOBJ with file names in subdirectories.
23543         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
23544         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
23545         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
23546         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
23547         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
23548         gl_LIBUNISTRING_LIBSOURCE.
23549         (Makefile.am): Augment lib_SOURCES here, conditionally.
23550         * NEWS: Drop requirement for Automake option 'subdir-objects'.
23551
23552 2010-06-03  Bruno Haible  <bruno@clisp.org>
23553
23554         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
23555         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
23556         expansion does not end with a newline.
23557         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
23558         unnecessary newline.
23559
23560 2010-06-03  Bruno Haible  <bruno@clisp.org>
23561
23562         Reduce dependencies.
23563         * tests/test-quotearg.h: New file, extracted from
23564         tests/test-quotearg.c.
23565         * tests/test-quotearg-simple.c: New file, extracted from
23566         tests/test-quotearg.c.
23567         * tests/test-quotearg.c: Don't include <ctype.h>.
23568         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
23569         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
23570         use_quote_double_quotes, use_quotearg_colon): Moved to
23571         tests/test-quotearg.h.
23572         (results_g, flag_results, custom_quotes, custom_results): Moved
23573         to tests/test-quotearg-simple.c.
23574         (main): Moved the part that does not depend on gettext to
23575         tests/test-quotearg-simple.c. Return 77 if the test cannot be
23576         performed.
23577         * modules/quotearg-simple: New file.
23578         * modules/quotearg-simple-tests: New file.
23579         * modules/quotearg (Depends-on): Add quotearg-simple.
23580         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
23581         (Files): Add tests/test-quotearg.h.
23582         Reported by Paolo Bonzini.
23583
23584 2010-06-03  Bruno Haible  <bruno@clisp.org>
23585
23586         Reduce dependencies.
23587         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
23588
23589 2010-06-03  Bruno Haible  <bruno@clisp.org>
23590
23591         time: Undefine more broken macros.
23592         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
23593         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
23594         Reported by Eric Blake.
23595
23596 2010-06-03  Bruno Haible  <bruno@clisp.org>
23597
23598         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
23599         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
23600         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
23601         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
23602         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
23603         Reported by Ludovic Courtès <ludo@gnu.org>.
23604
23605 2010-06-02  Eric Blake  <eblake@redhat.com>
23606
23607         time: work with mingw + pthreads-win32 library
23608         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
23609         if timespec is defined only in pthread.h.
23610         * modules/time (Makefile.am): Substitute it.
23611         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
23612         <pthread.h>, when needed.
23613         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
23614         from the library.
23615
23616 2010-05-31  Bruno Haible  <bruno@clisp.org>
23617
23618         Avoid expanding two macros in the wrong order.
23619         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
23620         gl_LIBUNISTRING if it is defined.
23621         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
23622         autoconf >= 2.64.
23623         Reported by Ludovic Courtès <ludo@gnu.org>.
23624
23625 2010-05-27  Jim Meyering  <meyering@redhat.com>
23626
23627         maint.mk: also prohibit "#undef" of always-defined symbols
23628         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
23629         Allow more than one space before the symbol name.
23630         (sc_prohibit_always-defined_macros): Use grep's -E, now that
23631         the regexp uses alternation.
23632
23633 2010-05-26  Eric Blake  <eblake@redhat.com>
23634
23635         maint.mk: avoid echo -e
23636         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
23637         Convert all uses of echo -* to printf.
23638         Reported by Matthias Bolte.
23639
23640 2010-05-25  Bruno Haible  <bruno@clisp.org>
23641
23642         Update to GNU gettext 0.18, part 2.
23643         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
23644         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
23645
23646 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23647
23648         Add missing include in test-pwrite.c.
23649         * tests/test-pwrite.c: Include string.h, for strcmp.
23650
23651 2010-05-24  Bruno Haible  <bruno@clisp.org>
23652
23653         * NEWS: Mention requirement for Automake option 'subdir-objects'.
23654
23655 2010-05-24  Bruno Haible  <bruno@clisp.org>
23656
23657         Don't use conversion with transliteration in u{8,16,32}_strcoll.
23658         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
23659         iconveh_error argument.
23660         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
23661         U_STRCONV_TO_LOCALE.
23662         * lib/unistr/u16-strcoll.c: Likewise.
23663         * lib/unistr/u32-strcoll.c: Likewise.
23664         * modules/unistr/u8-strcoll (Depends-on): Add
23665         uniconv/u8-strconv-to-enc, localcharset. Remove
23666         uniconv/u8-strconv-to-locale.
23667         (configure.ac): Bump version number.
23668         * modules/unistr/u16-strcoll (Depends-on): Add
23669         uniconv/u16-strconv-to-enc, localcharset. Remove
23670         uniconv/u16-strconv-to-locale.
23671         (configure.ac): Bump version number.
23672         * modules/unistr/u32-strcoll (Depends-on): Add
23673         uniconv/u32-strconv-to-enc, localcharset. Remove
23674         uniconv/u32-strconv-to-locale.
23675         (configure.ac): Bump version number.
23676
23677 2010-05-24  Bruno Haible  <bruno@clisp.org>
23678
23679         Avoid a test failure on NetBSD 5.0.
23680         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
23681         an iconv() bug.
23682
23683 2010-05-24  Bruno Haible  <bruno@clisp.org>
23684
23685         Adjust #include directive style.
23686         * modules/regex (Includes): Recommend to write <regex.h>.
23687
23688 2010-05-24  Bruno Haible  <bruno@clisp.org>
23689
23690         regex: Don't require alloca.
23691         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
23692         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
23693         only inside if (0).
23694
23695 2010-05-23  Jim Meyering  <meyering@redhat.com>
23696
23697         test-renameat.c: include <sys/stat.h>
23698         * tests/test-renameat.c: Include <sys/stat.h>; required for
23699         definition of S_IS* macros.
23700
23701 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
23702
23703         Update maintainer documentation for 'relocatable-prog' module.
23704         * doc/relocatable-maint.texi: Update.
23705         Comments by Bruno Haible.
23706
23707 2010-05-23  Bruno Haible  <bruno@clisp.org>
23708
23709         git-merge-changelog: Enable --split-merged-entry by default.
23710         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
23711         (usage): Don't mention this option any more.
23712         Reported by Ralf Wildenhues.
23713
23714 2010-05-23  Jim Meyering  <meyering@redhat.com>
23715
23716         test-pwrite: do not leave behind a test file named "out"
23717         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
23718         The trivial-looking use of init.sh is really necessary.
23719         It ensures that the temporary file, "out", is created in
23720         a temporary directory, and removed upon termination.
23721         * tests/test-pwrite.sh: Re-add file.
23722         * modules/pwrite-tests: Reference it.
23723
23724 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23725
23726         Fix output redirection buglet in init.sh.
23727         * tests/init.sh: Fix redirection of stderr.
23728
23729 2010-05-20  Simon Josefsson  <simon@josefsson.org>
23730
23731         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
23732
23733 2010-05-17  Simon Josefsson  <simon@josefsson.org>
23734
23735         * modules/valgrind-tests: New file.
23736         * m4/valgrind-tests.m4: New file.
23737         * doc/valgrind-tests.texi: New file.
23738         * doc/gnulib.texi (Running self-tests under valgrind): New
23739         section.
23740
23741 2010-05-19  Bruno Haible  <bruno@clisp.org>
23742
23743         Clean up dead code in recent commit.
23744         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
23745         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
23746         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
23747         Suggested by Paolo Bonzini.
23748
23749 2010-05-19  Bruno Haible  <bruno@clisp.org>
23750
23751         Avoid valgrind error reports from libunistring.
23752         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
23753         * modules/libunistring (Files): Add it.
23754         * modules/libunistring-optional (Files): Likewise.
23755
23756 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
23757             Bruno Haible  <bruno@clisp.org>
23758
23759         New module 'libunistring-optional'.
23760         * modules/libunistring-optional: New file.
23761         * m4/libunistring-base.m4: New file.
23762         * m4/libunistring-optional.m4: New file.
23763         * lib/unicase.in.h: Renamed from lib/unicase.h.
23764         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
23765         * lib/unictype.in.h: Renamed from lib/unictype.h.
23766         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
23767         * lib/uniname.in.h: Renamed from lib/uniname.h.
23768         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
23769         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
23770         * lib/unistr.in.h: Renamed from lib/unistr.h.
23771         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
23772         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
23773         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
23774         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
23775         gl_LIBUNISTRING. If the library was found, determine the installed
23776         version and set LIBUNISTRING_VERSION.
23777         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
23778         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
23779         handle a configuration option --with-included-libunistring.
23780         * modules/libunistring (Files): Add m4/absolute-header.m4.
23781         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
23782         Add m4/libunistring-base.m4.
23783         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23784         (Makefile.am): Build unicase.h from unicase.in.h.
23785         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
23786         Add m4/libunistring-base.m4.
23787         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23788         (Makefile.am): Build uniconv.h from uniconv.in.h.
23789         * modules/unictype/base (Files): Use unictype.in.h instead of
23790         unictype.h. Add m4/libunistring-base.m4.
23791         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23792         (Makefile.am): Build unictype.h from unictype.in.h.
23793         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
23794         Add m4/libunistring-base.m4.
23795         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23796         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
23797         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
23798         Add m4/libunistring-base.m4.
23799         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23800         (Makefile.am): Build uniname.h from uniname.in.h.
23801         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
23802         Add m4/libunistring-base.m4.
23803         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23804         (Makefile.am): Build uninorm.h from uninorm.in.h.
23805         * modules/unistdio/base (Files): Use unistdio.in.h instead of
23806         unistdio.h. Add m4/libunistring-base.m4.
23807         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23808         (Makefile.am): Build unistdio.h from unistdio.in.h.
23809         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
23810         Add m4/libunistring-base.m4.
23811         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23812         (Makefile.am): Build unistr.h from unistr.in.h.
23813         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
23814         Add m4/libunistring-base.m4.
23815         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23816         (Makefile.am): Build unitypes.h from unitypes.in.h.
23817         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
23818         Add m4/libunistring-base.m4.
23819         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23820         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
23821         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
23822         uniwidth.h. Add m4/libunistring-base.m4.
23823         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23824         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
23825         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
23826         instead of augmenting lib_SOURCES.
23827         * modules/unicase/empty-suffix-context: Likewise.
23828         * modules/unicase/locale-language: Likewise.
23829         * modules/unicase/tolower: Likewise.
23830         * modules/unicase/totitle: Likewise.
23831         * modules/unicase/toupper: Likewise.
23832         * modules/unicase/u8-casecmp: Likewise.
23833         * modules/unicase/u8-casecoll: Likewise.
23834         * modules/unicase/u8-casefold: Likewise.
23835         * modules/unicase/u8-casexfrm: Likewise.
23836         * modules/unicase/u8-ct-casefold: Likewise.
23837         * modules/unicase/u8-ct-tolower: Likewise.
23838         * modules/unicase/u8-ct-totitle: Likewise.
23839         * modules/unicase/u8-ct-toupper: Likewise.
23840         * modules/unicase/u8-is-cased: Likewise.
23841         * modules/unicase/u8-is-casefolded: Likewise.
23842         * modules/unicase/u8-is-lowercase: Likewise.
23843         * modules/unicase/u8-is-titlecase: Likewise.
23844         * modules/unicase/u8-is-uppercase: Likewise.
23845         * modules/unicase/u8-prefix-context: Likewise.
23846         * modules/unicase/u8-suffix-context: Likewise.
23847         * modules/unicase/u8-tolower: Likewise.
23848         * modules/unicase/u8-totitle: Likewise.
23849         * modules/unicase/u8-toupper: Likewise.
23850         * modules/unicase/u16-casecmp: Likewise.
23851         * modules/unicase/u16-casecoll: Likewise.
23852         * modules/unicase/u16-casefold: Likewise.
23853         * modules/unicase/u16-casexfrm: Likewise.
23854         * modules/unicase/u16-ct-casefold: Likewise.
23855         * modules/unicase/u16-ct-tolower: Likewise.
23856         * modules/unicase/u16-ct-totitle: Likewise.
23857         * modules/unicase/u16-ct-toupper: Likewise.
23858         * modules/unicase/u16-is-cased: Likewise.
23859         * modules/unicase/u16-is-casefolded: Likewise.
23860         * modules/unicase/u16-is-lowercase: Likewise.
23861         * modules/unicase/u16-is-titlecase: Likewise.
23862         * modules/unicase/u16-is-uppercase: Likewise.
23863         * modules/unicase/u16-prefix-context: Likewise.
23864         * modules/unicase/u16-suffix-context: Likewise.
23865         * modules/unicase/u16-tolower: Likewise.
23866         * modules/unicase/u16-totitle: Likewise.
23867         * modules/unicase/u16-toupper: Likewise.
23868         * modules/unicase/u32-casecmp: Likewise.
23869         * modules/unicase/u32-casecoll: Likewise.
23870         * modules/unicase/u32-casefold: Likewise.
23871         * modules/unicase/u32-casexfrm: Likewise.
23872         * modules/unicase/u32-ct-casefold: Likewise.
23873         * modules/unicase/u32-ct-tolower: Likewise.
23874         * modules/unicase/u32-ct-totitle: Likewise.
23875         * modules/unicase/u32-ct-toupper: Likewise.
23876         * modules/unicase/u32-is-cased: Likewise.
23877         * modules/unicase/u32-is-casefolded: Likewise.
23878         * modules/unicase/u32-is-lowercase: Likewise.
23879         * modules/unicase/u32-is-titlecase: Likewise.
23880         * modules/unicase/u32-is-uppercase: Likewise.
23881         * modules/unicase/u32-prefix-context: Likewise.
23882         * modules/unicase/u32-suffix-context: Likewise.
23883         * modules/unicase/u32-tolower: Likewise.
23884         * modules/unicase/u32-totitle: Likewise.
23885         * modules/unicase/u32-toupper: Likewise.
23886         * modules/unicase/ulc-casecmp: Likewise.
23887         * modules/unicase/ulc-casecoll: Likewise.
23888         * modules/unicase/ulc-casexfrm: Likewise.
23889         * modules/uniconv/u8-conv-from-enc: Likewise.
23890         * modules/uniconv/u8-conv-to-enc: Likewise.
23891         * modules/uniconv/u8-strconv-from-enc: Likewise.
23892         * modules/uniconv/u8-strconv-from-locale: Likewise.
23893         * modules/uniconv/u8-strconv-to-enc: Likewise.
23894         * modules/uniconv/u8-strconv-to-locale: Likewise.
23895         * modules/uniconv/u16-conv-from-enc: Likewise.
23896         * modules/uniconv/u16-conv-to-enc: Likewise.
23897         * modules/uniconv/u16-strconv-from-enc: Likewise.
23898         * modules/uniconv/u16-strconv-from-locale: Likewise.
23899         * modules/uniconv/u16-strconv-to-enc: Likewise.
23900         * modules/uniconv/u16-strconv-to-locale: Likewise.
23901         * modules/uniconv/u32-conv-from-enc: Likewise.
23902         * modules/uniconv/u32-conv-to-enc: Likewise.
23903         * modules/uniconv/u32-strconv-from-enc: Likewise.
23904         * modules/uniconv/u32-strconv-from-locale: Likewise.
23905         * modules/uniconv/u32-strconv-to-enc: Likewise.
23906         * modules/uniconv/u32-strconv-to-locale: Likewise.
23907         * modules/unictype/bidicategory-byname: Likewise.
23908         * modules/unictype/bidicategory-name: Likewise.
23909         * modules/unictype/bidicategory-of: Likewise.
23910         * modules/unictype/bidicategory-test: Likewise.
23911         * modules/unictype/block-list: Likewise.
23912         * modules/unictype/block-test: Likewise.
23913         * modules/unictype/category-C: Likewise.
23914         * modules/unictype/category-Cc: Likewise.
23915         * modules/unictype/category-Cf: Likewise.
23916         * modules/unictype/category-Cn: Likewise.
23917         * modules/unictype/category-Co: Likewise.
23918         * modules/unictype/category-Cs: Likewise.
23919         * modules/unictype/category-L: Likewise.
23920         * modules/unictype/category-Ll: Likewise.
23921         * modules/unictype/category-Lm: Likewise.
23922         * modules/unictype/category-Lo: Likewise.
23923         * modules/unictype/category-Lt: Likewise.
23924         * modules/unictype/category-Lu: Likewise.
23925         * modules/unictype/category-M: Likewise.
23926         * modules/unictype/category-Mc: Likewise.
23927         * modules/unictype/category-Me: Likewise.
23928         * modules/unictype/category-Mn: Likewise.
23929         * modules/unictype/category-N: Likewise.
23930         * modules/unictype/category-Nd: Likewise.
23931         * modules/unictype/category-Nl: Likewise.
23932         * modules/unictype/category-No: Likewise.
23933         * modules/unictype/category-P: Likewise.
23934         * modules/unictype/category-Pc: Likewise.
23935         * modules/unictype/category-Pd: Likewise.
23936         * modules/unictype/category-Pe: Likewise.
23937         * modules/unictype/category-Pf: Likewise.
23938         * modules/unictype/category-Pi: Likewise.
23939         * modules/unictype/category-Po: Likewise.
23940         * modules/unictype/category-Ps: Likewise.
23941         * modules/unictype/category-S: Likewise.
23942         * modules/unictype/category-Sc: Likewise.
23943         * modules/unictype/category-Sk: Likewise.
23944         * modules/unictype/category-Sm: Likewise.
23945         * modules/unictype/category-So: Likewise.
23946         * modules/unictype/category-Z: Likewise.
23947         * modules/unictype/category-Zl: Likewise.
23948         * modules/unictype/category-Zp: Likewise.
23949         * modules/unictype/category-Zs: Likewise.
23950         * modules/unictype/category-and: Likewise.
23951         * modules/unictype/category-and-not: Likewise.
23952         * modules/unictype/category-byname: Likewise.
23953         * modules/unictype/category-name: Likewise.
23954         * modules/unictype/category-none: Likewise.
23955         * modules/unictype/category-of: Likewise.
23956         * modules/unictype/category-or: Likewise.
23957         * modules/unictype/category-test: Likewise.
23958         * modules/unictype/combining-class: Likewise.
23959         * modules/unictype/ctype-alnum: Likewise.
23960         * modules/unictype/ctype-alpha: Likewise.
23961         * modules/unictype/ctype-blank: Likewise.
23962         * modules/unictype/ctype-cntrl: Likewise.
23963         * modules/unictype/ctype-digit: Likewise.
23964         * modules/unictype/ctype-graph: Likewise.
23965         * modules/unictype/ctype-lower: Likewise.
23966         * modules/unictype/ctype-print: Likewise.
23967         * modules/unictype/ctype-punct: Likewise.
23968         * modules/unictype/ctype-space: Likewise.
23969         * modules/unictype/ctype-upper: Likewise.
23970         * modules/unictype/ctype-xdigit: Likewise.
23971         * modules/unictype/decimal-digit: Likewise.
23972         * modules/unictype/digit: Likewise.
23973         * modules/unictype/mirror: Likewise.
23974         * modules/unictype/numeric: Likewise.
23975         * modules/unictype/property-alphabetic: Likewise.
23976         * modules/unictype/property-ascii-hex-digit: Likewise.
23977         * modules/unictype/property-bidi-arabic-digit: Likewise.
23978         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
23979         * modules/unictype/property-bidi-block-separator: Likewise.
23980         * modules/unictype/property-bidi-boundary-neutral: Likewise.
23981         * modules/unictype/property-bidi-common-separator: Likewise.
23982         * modules/unictype/property-bidi-control: Likewise.
23983         * modules/unictype/property-bidi-embedding-or-override: Likewise.
23984         * modules/unictype/property-bidi-eur-num-separator: Likewise.
23985         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
23986         * modules/unictype/property-bidi-european-digit: Likewise.
23987         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
23988         * modules/unictype/property-bidi-left-to-right: Likewise.
23989         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
23990         * modules/unictype/property-bidi-other-neutral: Likewise.
23991         * modules/unictype/property-bidi-pdf: Likewise.
23992         * modules/unictype/property-bidi-segment-separator: Likewise.
23993         * modules/unictype/property-bidi-whitespace: Likewise.
23994         * modules/unictype/property-byname: Likewise.
23995         * modules/unictype/property-combining: Likewise.
23996         * modules/unictype/property-composite: Likewise.
23997         * modules/unictype/property-currency-symbol: Likewise.
23998         * modules/unictype/property-dash: Likewise.
23999         * modules/unictype/property-decimal-digit: Likewise.
24000         * modules/unictype/property-default-ignorable-code-point: Likewise.
24001         * modules/unictype/property-deprecated: Likewise.
24002         * modules/unictype/property-diacritic: Likewise.
24003         * modules/unictype/property-extender: Likewise.
24004         * modules/unictype/property-format-control: Likewise.
24005         * modules/unictype/property-grapheme-base: Likewise.
24006         * modules/unictype/property-grapheme-extend: Likewise.
24007         * modules/unictype/property-grapheme-link: Likewise.
24008         * modules/unictype/property-hex-digit: Likewise.
24009         * modules/unictype/property-hyphen: Likewise.
24010         * modules/unictype/property-id-continue: Likewise.
24011         * modules/unictype/property-id-start: Likewise.
24012         * modules/unictype/property-ideographic: Likewise.
24013         * modules/unictype/property-ids-binary-operator: Likewise.
24014         * modules/unictype/property-ids-trinary-operator: Likewise.
24015         * modules/unictype/property-ignorable-control: Likewise.
24016         * modules/unictype/property-iso-control: Likewise.
24017         * modules/unictype/property-join-control: Likewise.
24018         * modules/unictype/property-left-of-pair: Likewise.
24019         * modules/unictype/property-line-separator: Likewise.
24020         * modules/unictype/property-logical-order-exception: Likewise.
24021         * modules/unictype/property-lowercase: Likewise.
24022         * modules/unictype/property-math: Likewise.
24023         * modules/unictype/property-non-break: Likewise.
24024         * modules/unictype/property-not-a-character: Likewise.
24025         * modules/unictype/property-numeric: Likewise.
24026         * modules/unictype/property-other-alphabetic: Likewise.
24027         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
24028         * modules/unictype/property-other-grapheme-extend: Likewise.
24029         * modules/unictype/property-other-id-continue: Likewise.
24030         * modules/unictype/property-other-id-start: Likewise.
24031         * modules/unictype/property-other-lowercase: Likewise.
24032         * modules/unictype/property-other-math: Likewise.
24033         * modules/unictype/property-other-uppercase: Likewise.
24034         * modules/unictype/property-paired-punctuation: Likewise.
24035         * modules/unictype/property-paragraph-separator: Likewise.
24036         * modules/unictype/property-pattern-syntax: Likewise.
24037         * modules/unictype/property-pattern-white-space: Likewise.
24038         * modules/unictype/property-private-use: Likewise.
24039         * modules/unictype/property-punctuation: Likewise.
24040         * modules/unictype/property-quotation-mark: Likewise.
24041         * modules/unictype/property-radical: Likewise.
24042         * modules/unictype/property-sentence-terminal: Likewise.
24043         * modules/unictype/property-soft-dotted: Likewise.
24044         * modules/unictype/property-space: Likewise.
24045         * modules/unictype/property-terminal-punctuation: Likewise.
24046         * modules/unictype/property-test: Likewise.
24047         * modules/unictype/property-titlecase: Likewise.
24048         * modules/unictype/property-unassigned-code-value: Likewise.
24049         * modules/unictype/property-unified-ideograph: Likewise.
24050         * modules/unictype/property-uppercase: Likewise.
24051         * modules/unictype/property-variation-selector: Likewise.
24052         * modules/unictype/property-white-space: Likewise.
24053         * modules/unictype/property-xid-continue: Likewise.
24054         * modules/unictype/property-xid-start: Likewise.
24055         * modules/unictype/property-zero-width: Likewise.
24056         * modules/unictype/scripts: Likewise.
24057         * modules/unictype/syntax-c-ident: Likewise.
24058         * modules/unictype/syntax-c-whitespace: Likewise.
24059         * modules/unictype/syntax-java-ident: Likewise.
24060         * modules/unictype/syntax-java-whitespace: Likewise.
24061         * modules/unilbrk/u8-possible-linebreaks: Likewise.
24062         * modules/unilbrk/u8-width-linebreaks: Likewise.
24063         * modules/unilbrk/u16-possible-linebreaks: Likewise.
24064         * modules/unilbrk/u16-width-linebreaks: Likewise.
24065         * modules/unilbrk/u32-possible-linebreaks: Likewise.
24066         * modules/unilbrk/u32-width-linebreaks: Likewise.
24067         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
24068         * modules/unilbrk/ulc-width-linebreaks: Likewise.
24069         * modules/uniname/uniname: Likewise.
24070         * modules/uninorm/canonical-decomposition: Likewise.
24071         * modules/uninorm/composition: Likewise.
24072         * modules/uninorm/decomposing-form: Likewise.
24073         * modules/uninorm/decomposition: Likewise.
24074         * modules/uninorm/filter: Likewise.
24075         * modules/uninorm/nfc: Likewise.
24076         * modules/uninorm/nfd: Likewise.
24077         * modules/uninorm/nfkc: Likewise.
24078         * modules/uninorm/nfkd: Likewise.
24079         * modules/uninorm/u8-normalize: Likewise.
24080         * modules/uninorm/u8-normcmp: Likewise.
24081         * modules/uninorm/u8-normcoll: Likewise.
24082         * modules/uninorm/u8-normxfrm: Likewise.
24083         * modules/uninorm/u16-normalize: Likewise.
24084         * modules/uninorm/u16-normcmp: Likewise.
24085         * modules/uninorm/u16-normcoll: Likewise.
24086         * modules/uninorm/u16-normxfrm: Likewise.
24087         * modules/uninorm/u32-normalize: Likewise.
24088         * modules/uninorm/u32-normcmp: Likewise.
24089         * modules/uninorm/u32-normcoll: Likewise.
24090         * modules/uninorm/u32-normxfrm: Likewise.
24091         * modules/unistdio/u8-asnprintf: Likewise.
24092         * modules/unistdio/u8-asprintf: Likewise.
24093         * modules/unistdio/u8-snprintf: Likewise.
24094         * modules/unistdio/u8-sprintf: Likewise.
24095         * modules/unistdio/u8-u8-asnprintf: Likewise.
24096         * modules/unistdio/u8-u8-asprintf: Likewise.
24097         * modules/unistdio/u8-u8-snprintf: Likewise.
24098         * modules/unistdio/u8-u8-sprintf: Likewise.
24099         * modules/unistdio/u8-u8-vasnprintf: Likewise.
24100         * modules/unistdio/u8-u8-vasprintf: Likewise.
24101         * modules/unistdio/u8-u8-vsnprintf: Likewise.
24102         * modules/unistdio/u8-u8-vsprintf: Likewise.
24103         * modules/unistdio/u8-vasnprintf: Likewise.
24104         * modules/unistdio/u8-vasprintf: Likewise.
24105         * modules/unistdio/u8-vsnprintf: Likewise.
24106         * modules/unistdio/u8-vsprintf: Likewise.
24107         * modules/unistdio/u16-asnprintf: Likewise.
24108         * modules/unistdio/u16-asprintf: Likewise.
24109         * modules/unistdio/u16-snprintf: Likewise.
24110         * modules/unistdio/u16-sprintf: Likewise.
24111         * modules/unistdio/u16-u16-asnprintf: Likewise.
24112         * modules/unistdio/u16-u16-asprintf: Likewise.
24113         * modules/unistdio/u16-u16-snprintf: Likewise.
24114         * modules/unistdio/u16-u16-sprintf: Likewise.
24115         * modules/unistdio/u16-u16-vasnprintf: Likewise.
24116         * modules/unistdio/u16-u16-vasprintf: Likewise.
24117         * modules/unistdio/u16-u16-vsnprintf: Likewise.
24118         * modules/unistdio/u16-u16-vsprintf: Likewise.
24119         * modules/unistdio/u16-vasnprintf: Likewise.
24120         * modules/unistdio/u16-vasprintf: Likewise.
24121         * modules/unistdio/u16-vsnprintf: Likewise.
24122         * modules/unistdio/u16-vsprintf: Likewise.
24123         * modules/unistdio/u32-asnprintf: Likewise.
24124         * modules/unistdio/u32-asprintf: Likewise.
24125         * modules/unistdio/u32-snprintf: Likewise.
24126         * modules/unistdio/u32-sprintf: Likewise.
24127         * modules/unistdio/u32-u32-asnprintf: Likewise.
24128         * modules/unistdio/u32-u32-asprintf: Likewise.
24129         * modules/unistdio/u32-u32-snprintf: Likewise.
24130         * modules/unistdio/u32-u32-sprintf: Likewise.
24131         * modules/unistdio/u32-u32-vasnprintf: Likewise.
24132         * modules/unistdio/u32-u32-vasprintf: Likewise.
24133         * modules/unistdio/u32-u32-vsnprintf: Likewise.
24134         * modules/unistdio/u32-u32-vsprintf: Likewise.
24135         * modules/unistdio/u32-vasnprintf: Likewise.
24136         * modules/unistdio/u32-vasprintf: Likewise.
24137         * modules/unistdio/u32-vsnprintf: Likewise.
24138         * modules/unistdio/u32-vsprintf: Likewise.
24139         * modules/unistdio/ulc-asnprintf: Likewise.
24140         * modules/unistdio/ulc-asprintf: Likewise.
24141         * modules/unistdio/ulc-fprintf: Likewise.
24142         * modules/unistdio/ulc-snprintf: Likewise.
24143         * modules/unistdio/ulc-sprintf: Likewise.
24144         * modules/unistdio/ulc-vasnprintf: Likewise.
24145         * modules/unistdio/ulc-vasprintf: Likewise.
24146         * modules/unistdio/ulc-vfprintf: Likewise.
24147         * modules/unistdio/ulc-vsnprintf: Likewise.
24148         * modules/unistdio/ulc-vsprintf: Likewise.
24149         * modules/unistr/u8-check: Likewise.
24150         * modules/unistr/u8-chr: Likewise.
24151         * modules/unistr/u8-cmp: Likewise.
24152         * modules/unistr/u8-cmp2: Likewise.
24153         * modules/unistr/u8-cpy: Likewise.
24154         * modules/unistr/u8-cpy-alloc: Likewise.
24155         * modules/unistr/u8-endswith: Likewise.
24156         * modules/unistr/u8-mblen: Likewise.
24157         * modules/unistr/u8-mbsnlen: Likewise.
24158         * modules/unistr/u8-mbtouc: Likewise.
24159         * modules/unistr/u8-mbtouc-unsafe: Likewise.
24160         * modules/unistr/u8-mbtoucr: Likewise.
24161         * modules/unistr/u8-move: Likewise.
24162         * modules/unistr/u8-next: Likewise.
24163         * modules/unistr/u8-prev: Likewise.
24164         * modules/unistr/u8-set: Likewise.
24165         * modules/unistr/u8-startswith: Likewise.
24166         * modules/unistr/u8-stpcpy: Likewise.
24167         * modules/unistr/u8-stpncpy: Likewise.
24168         * modules/unistr/u8-strcat: Likewise.
24169         * modules/unistr/u8-strchr: Likewise.
24170         * modules/unistr/u8-strcmp: Likewise.
24171         * modules/unistr/u8-strcoll: Likewise.
24172         * modules/unistr/u8-strcpy: Likewise.
24173         * modules/unistr/u8-strcspn: Likewise.
24174         * modules/unistr/u8-strdup: Likewise.
24175         * modules/unistr/u8-strlen: Likewise.
24176         * modules/unistr/u8-strmblen: Likewise.
24177         * modules/unistr/u8-strmbtouc: Likewise.
24178         * modules/unistr/u8-strncat: Likewise.
24179         * modules/unistr/u8-strncmp: Likewise.
24180         * modules/unistr/u8-strncpy: Likewise.
24181         * modules/unistr/u8-strnlen: Likewise.
24182         * modules/unistr/u8-strpbrk: Likewise.
24183         * modules/unistr/u8-strrchr: Likewise.
24184         * modules/unistr/u8-strspn: Likewise.
24185         * modules/unistr/u8-strstr: Likewise.
24186         * modules/unistr/u8-strtok: Likewise.
24187         * modules/unistr/u8-to-u16: Likewise.
24188         * modules/unistr/u8-to-u32: Likewise.
24189         * modules/unistr/u8-uctomb: Likewise.
24190         * modules/unistr/u16-check: Likewise.
24191         * modules/unistr/u16-chr: Likewise.
24192         * modules/unistr/u16-cmp: Likewise.
24193         * modules/unistr/u16-cmp2: Likewise.
24194         * modules/unistr/u16-cpy: Likewise.
24195         * modules/unistr/u16-cpy-alloc: Likewise.
24196         * modules/unistr/u16-endswith: Likewise.
24197         * modules/unistr/u16-mblen: Likewise.
24198         * modules/unistr/u16-mbsnlen: Likewise.
24199         * modules/unistr/u16-mbtouc: Likewise.
24200         * modules/unistr/u16-mbtouc-unsafe: Likewise.
24201         * modules/unistr/u16-mbtoucr: Likewise.
24202         * modules/unistr/u16-move: Likewise.
24203         * modules/unistr/u16-next: Likewise.
24204         * modules/unistr/u16-prev: Likewise.
24205         * modules/unistr/u16-set: Likewise.
24206         * modules/unistr/u16-startswith: Likewise.
24207         * modules/unistr/u16-stpcpy: Likewise.
24208         * modules/unistr/u16-stpncpy: Likewise.
24209         * modules/unistr/u16-strcat: Likewise.
24210         * modules/unistr/u16-strchr: Likewise.
24211         * modules/unistr/u16-strcmp: Likewise.
24212         * modules/unistr/u16-strcoll: Likewise.
24213         * modules/unistr/u16-strcpy: Likewise.
24214         * modules/unistr/u16-strcspn: Likewise.
24215         * modules/unistr/u16-strdup: Likewise.
24216         * modules/unistr/u16-strlen: Likewise.
24217         * modules/unistr/u16-strmblen: Likewise.
24218         * modules/unistr/u16-strmbtouc: Likewise.
24219         * modules/unistr/u16-strncat: Likewise.
24220         * modules/unistr/u16-strncmp: Likewise.
24221         * modules/unistr/u16-strncpy: Likewise.
24222         * modules/unistr/u16-strnlen: Likewise.
24223         * modules/unistr/u16-strpbrk: Likewise.
24224         * modules/unistr/u16-strrchr: Likewise.
24225         * modules/unistr/u16-strspn: Likewise.
24226         * modules/unistr/u16-strstr: Likewise.
24227         * modules/unistr/u16-strtok: Likewise.
24228         * modules/unistr/u16-to-u32: Likewise.
24229         * modules/unistr/u16-to-u8: Likewise.
24230         * modules/unistr/u16-uctomb: Likewise.
24231         * modules/unistr/u32-check: Likewise.
24232         * modules/unistr/u32-chr: Likewise.
24233         * modules/unistr/u32-cmp: Likewise.
24234         * modules/unistr/u32-cmp2: Likewise.
24235         * modules/unistr/u32-cpy: Likewise.
24236         * modules/unistr/u32-cpy-alloc: Likewise.
24237         * modules/unistr/u32-endswith: Likewise.
24238         * modules/unistr/u32-mblen: Likewise.
24239         * modules/unistr/u32-mbsnlen: Likewise.
24240         * modules/unistr/u32-mbtouc: Likewise.
24241         * modules/unistr/u32-mbtouc-unsafe: Likewise.
24242         * modules/unistr/u32-mbtoucr: Likewise.
24243         * modules/unistr/u32-move: Likewise.
24244         * modules/unistr/u32-next: Likewise.
24245         * modules/unistr/u32-prev: Likewise.
24246         * modules/unistr/u32-set: Likewise.
24247         * modules/unistr/u32-startswith: Likewise.
24248         * modules/unistr/u32-stpcpy: Likewise.
24249         * modules/unistr/u32-stpncpy: Likewise.
24250         * modules/unistr/u32-strcat: Likewise.
24251         * modules/unistr/u32-strchr: Likewise.
24252         * modules/unistr/u32-strcmp: Likewise.
24253         * modules/unistr/u32-strcoll: Likewise.
24254         * modules/unistr/u32-strcpy: Likewise.
24255         * modules/unistr/u32-strcspn: Likewise.
24256         * modules/unistr/u32-strdup: Likewise.
24257         * modules/unistr/u32-strlen: Likewise.
24258         * modules/unistr/u32-strmblen: Likewise.
24259         * modules/unistr/u32-strmbtouc: Likewise.
24260         * modules/unistr/u32-strncat: Likewise.
24261         * modules/unistr/u32-strncmp: Likewise.
24262         * modules/unistr/u32-strncpy: Likewise.
24263         * modules/unistr/u32-strnlen: Likewise.
24264         * modules/unistr/u32-strpbrk: Likewise.
24265         * modules/unistr/u32-strrchr: Likewise.
24266         * modules/unistr/u32-strspn: Likewise.
24267         * modules/unistr/u32-strstr: Likewise.
24268         * modules/unistr/u32-strtok: Likewise.
24269         * modules/unistr/u32-to-u16: Likewise.
24270         * modules/unistr/u32-to-u8: Likewise.
24271         * modules/unistr/u32-uctomb: Likewise.
24272         * modules/uniwbrk/u8-wordbreaks: Likewise.
24273         * modules/uniwbrk/u16-wordbreaks: Likewise.
24274         * modules/uniwbrk/u32-wordbreaks: Likewise.
24275         * modules/uniwbrk/ulc-wordbreaks: Likewise.
24276         * modules/uniwbrk/wordbreak-property: Likewise.
24277         * modules/uniwidth/u8-strwidth: Likewise.
24278         * modules/uniwidth/u8-width: Likewise.
24279         * modules/uniwidth/u16-strwidth: Likewise.
24280         * modules/uniwidth/u16-width: Likewise.
24281         * modules/uniwidth/u32-strwidth: Likewise.
24282         * modules/uniwidth/u32-width: Likewise.
24283         * modules/uniwidth/width: Likewise.
24284         * modules/unicase/cased-tests (Makefile.am): Link all test programs
24285         with $(LIBUNISTRING).
24286         * modules/unicase/ignorable-tests: Likewise.
24287         * modules/unicase/locale-language-tests: Likewise.
24288         * modules/unicase/tolower-tests: Likewise.
24289         * modules/unicase/totitle-tests: Likewise.
24290         * modules/unicase/toupper-tests: Likewise.
24291         * modules/unicase/u8-casecmp-tests: Likewise.
24292         * modules/unicase/u8-casecoll-tests: Likewise.
24293         * modules/unicase/u8-casefold-tests: Likewise.
24294         * modules/unicase/u8-is-cased-tests: Likewise.
24295         * modules/unicase/u8-is-casefolded-tests: Likewise.
24296         * modules/unicase/u8-is-lowercase-tests: Likewise.
24297         * modules/unicase/u8-is-titlecase-tests: Likewise.
24298         * modules/unicase/u8-is-uppercase-tests: Likewise.
24299         * modules/unicase/u8-tolower-tests: Likewise.
24300         * modules/unicase/u8-totitle-tests: Likewise.
24301         * modules/unicase/u8-toupper-tests: Likewise.
24302         * modules/unicase/u16-casecmp-tests: Likewise.
24303         * modules/unicase/u16-casecoll-tests: Likewise.
24304         * modules/unicase/u16-casefold-tests: Likewise.
24305         * modules/unicase/u16-is-cased-tests: Likewise.
24306         * modules/unicase/u16-is-casefolded-tests: Likewise.
24307         * modules/unicase/u16-is-lowercase-tests: Likewise.
24308         * modules/unicase/u16-is-titlecase-tests: Likewise.
24309         * modules/unicase/u16-is-uppercase-tests: Likewise.
24310         * modules/unicase/u16-tolower-tests: Likewise.
24311         * modules/unicase/u16-totitle-tests: Likewise.
24312         * modules/unicase/u16-toupper-tests: Likewise.
24313         * modules/unicase/u32-casecmp-tests: Likewise.
24314         * modules/unicase/u32-casecoll-tests: Likewise.
24315         * modules/unicase/u32-casefold-tests: Likewise.
24316         * modules/unicase/u32-is-cased-tests: Likewise.
24317         * modules/unicase/u32-is-casefolded-tests: Likewise.
24318         * modules/unicase/u32-is-lowercase-tests: Likewise.
24319         * modules/unicase/u32-is-titlecase-tests: Likewise.
24320         * modules/unicase/u32-is-uppercase-tests: Likewise.
24321         * modules/unicase/u32-tolower-tests: Likewise.
24322         * modules/unicase/u32-totitle-tests: Likewise.
24323         * modules/unicase/u32-toupper-tests: Likewise.
24324         * modules/unicase/ulc-casecmp-tests: Likewise.
24325         * modules/unicase/ulc-casecoll-tests: Likewise.
24326         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
24327         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
24328         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
24329         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
24330         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
24331         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
24332         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
24333         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
24334         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
24335         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
24336         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
24337         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
24338         * modules/unictype/bidicategory-byname-tests: Likewise.
24339         * modules/unictype/bidicategory-name-tests: Likewise.
24340         * modules/unictype/bidicategory-of-tests: Likewise.
24341         * modules/unictype/bidicategory-test-tests: Likewise.
24342         * modules/unictype/block-list-tests: Likewise.
24343         * modules/unictype/block-of-tests: Likewise.
24344         * modules/unictype/block-test-tests: Likewise.
24345         * modules/unictype/category-C-tests: Likewise.
24346         * modules/unictype/category-Cc-tests: Likewise.
24347         * modules/unictype/category-Cf-tests: Likewise.
24348         * modules/unictype/category-Cn-tests: Likewise.
24349         * modules/unictype/category-Co-tests: Likewise.
24350         * modules/unictype/category-Cs-tests: Likewise.
24351         * modules/unictype/category-L-tests: Likewise.
24352         * modules/unictype/category-Ll-tests: Likewise.
24353         * modules/unictype/category-Lm-tests: Likewise.
24354         * modules/unictype/category-Lo-tests: Likewise.
24355         * modules/unictype/category-Lt-tests: Likewise.
24356         * modules/unictype/category-Lu-tests: Likewise.
24357         * modules/unictype/category-M-tests: Likewise.
24358         * modules/unictype/category-Mc-tests: Likewise.
24359         * modules/unictype/category-Me-tests: Likewise.
24360         * modules/unictype/category-Mn-tests: Likewise.
24361         * modules/unictype/category-N-tests: Likewise.
24362         * modules/unictype/category-Nd-tests: Likewise.
24363         * modules/unictype/category-Nl-tests: Likewise.
24364         * modules/unictype/category-No-tests: Likewise.
24365         * modules/unictype/category-P-tests: Likewise.
24366         * modules/unictype/category-Pc-tests: Likewise.
24367         * modules/unictype/category-Pd-tests: Likewise.
24368         * modules/unictype/category-Pe-tests: Likewise.
24369         * modules/unictype/category-Pf-tests: Likewise.
24370         * modules/unictype/category-Pi-tests: Likewise.
24371         * modules/unictype/category-Po-tests: Likewise.
24372         * modules/unictype/category-Ps-tests: Likewise.
24373         * modules/unictype/category-S-tests: Likewise.
24374         * modules/unictype/category-Sc-tests: Likewise.
24375         * modules/unictype/category-Sk-tests: Likewise.
24376         * modules/unictype/category-Sm-tests: Likewise.
24377         * modules/unictype/category-So-tests: Likewise.
24378         * modules/unictype/category-Z-tests: Likewise.
24379         * modules/unictype/category-Zl-tests: Likewise.
24380         * modules/unictype/category-Zp-tests: Likewise.
24381         * modules/unictype/category-Zs-tests: Likewise.
24382         * modules/unictype/category-and-not-tests: Likewise.
24383         * modules/unictype/category-and-tests: Likewise.
24384         * modules/unictype/category-byname-tests: Likewise.
24385         * modules/unictype/category-name-tests: Likewise.
24386         * modules/unictype/category-none-tests: Likewise.
24387         * modules/unictype/category-of-tests: Likewise.
24388         * modules/unictype/category-or-tests: Likewise.
24389         * modules/unictype/category-test-withtable-tests: Likewise.
24390         * modules/unictype/combining-class-tests: Likewise.
24391         * modules/unictype/ctype-alnum-tests: Likewise.
24392         * modules/unictype/ctype-alpha-tests: Likewise.
24393         * modules/unictype/ctype-blank-tests: Likewise.
24394         * modules/unictype/ctype-cntrl-tests: Likewise.
24395         * modules/unictype/ctype-digit-tests: Likewise.
24396         * modules/unictype/ctype-graph-tests: Likewise.
24397         * modules/unictype/ctype-lower-tests: Likewise.
24398         * modules/unictype/ctype-print-tests: Likewise.
24399         * modules/unictype/ctype-punct-tests: Likewise.
24400         * modules/unictype/ctype-space-tests: Likewise.
24401         * modules/unictype/ctype-upper-tests: Likewise.
24402         * modules/unictype/ctype-xdigit-tests: Likewise.
24403         * modules/unictype/decimal-digit-tests: Likewise.
24404         * modules/unictype/digit-tests: Likewise.
24405         * modules/unictype/mirror-tests: Likewise.
24406         * modules/unictype/numeric-tests: Likewise.
24407         * modules/unictype/property-alphabetic-tests: Likewise.
24408         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
24409         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
24410         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
24411         * modules/unictype/property-bidi-block-separator-tests: Likewise.
24412         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
24413         * modules/unictype/property-bidi-common-separator-tests: Likewise.
24414         * modules/unictype/property-bidi-control-tests: Likewise.
24415         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
24416         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
24417         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
24418         * modules/unictype/property-bidi-european-digit-tests: Likewise.
24419         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
24420         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
24421         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
24422         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
24423         * modules/unictype/property-bidi-pdf-tests: Likewise.
24424         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
24425         * modules/unictype/property-bidi-whitespace-tests: Likewise.
24426         * modules/unictype/property-byname-tests: Likewise.
24427         * modules/unictype/property-combining-tests: Likewise.
24428         * modules/unictype/property-composite-tests: Likewise.
24429         * modules/unictype/property-currency-symbol-tests: Likewise.
24430         * modules/unictype/property-dash-tests: Likewise.
24431         * modules/unictype/property-decimal-digit-tests: Likewise.
24432         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
24433         * modules/unictype/property-deprecated-tests: Likewise.
24434         * modules/unictype/property-diacritic-tests: Likewise.
24435         * modules/unictype/property-extender-tests: Likewise.
24436         * modules/unictype/property-format-control-tests: Likewise.
24437         * modules/unictype/property-grapheme-base-tests: Likewise.
24438         * modules/unictype/property-grapheme-extend-tests: Likewise.
24439         * modules/unictype/property-grapheme-link-tests: Likewise.
24440         * modules/unictype/property-hex-digit-tests: Likewise.
24441         * modules/unictype/property-hyphen-tests: Likewise.
24442         * modules/unictype/property-id-continue-tests: Likewise.
24443         * modules/unictype/property-id-start-tests: Likewise.
24444         * modules/unictype/property-ideographic-tests: Likewise.
24445         * modules/unictype/property-ids-binary-operator-tests: Likewise.
24446         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
24447         * modules/unictype/property-ignorable-control-tests: Likewise.
24448         * modules/unictype/property-iso-control-tests: Likewise.
24449         * modules/unictype/property-join-control-tests: Likewise.
24450         * modules/unictype/property-left-of-pair-tests: Likewise.
24451         * modules/unictype/property-line-separator-tests: Likewise.
24452         * modules/unictype/property-logical-order-exception-tests: Likewise.
24453         * modules/unictype/property-lowercase-tests: Likewise.
24454         * modules/unictype/property-math-tests: Likewise.
24455         * modules/unictype/property-non-break-tests: Likewise.
24456         * modules/unictype/property-not-a-character-tests: Likewise.
24457         * modules/unictype/property-numeric-tests: Likewise.
24458         * modules/unictype/property-other-alphabetic-tests: Likewise.
24459         * modules/unictype/property-other-default-ignorable-code-point-tests:
24460         Likewise.
24461         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
24462         * modules/unictype/property-other-id-continue-tests: Likewise.
24463         * modules/unictype/property-other-id-start-tests: Likewise.
24464         * modules/unictype/property-other-lowercase-tests: Likewise.
24465         * modules/unictype/property-other-math-tests: Likewise.
24466         * modules/unictype/property-other-uppercase-tests: Likewise.
24467         * modules/unictype/property-paired-punctuation-tests: Likewise.
24468         * modules/unictype/property-paragraph-separator-tests: Likewise.
24469         * modules/unictype/property-pattern-syntax-tests: Likewise.
24470         * modules/unictype/property-pattern-white-space-tests: Likewise.
24471         * modules/unictype/property-private-use-tests: Likewise.
24472         * modules/unictype/property-punctuation-tests: Likewise.
24473         * modules/unictype/property-quotation-mark-tests: Likewise.
24474         * modules/unictype/property-radical-tests: Likewise.
24475         * modules/unictype/property-sentence-terminal-tests: Likewise.
24476         * modules/unictype/property-soft-dotted-tests: Likewise.
24477         * modules/unictype/property-space-tests: Likewise.
24478         * modules/unictype/property-terminal-punctuation-tests: Likewise.
24479         * modules/unictype/property-test-tests: Likewise.
24480         * modules/unictype/property-titlecase-tests: Likewise.
24481         * modules/unictype/property-unassigned-code-value-tests: Likewise.
24482         * modules/unictype/property-unified-ideograph-tests: Likewise.
24483         * modules/unictype/property-uppercase-tests: Likewise.
24484         * modules/unictype/property-variation-selector-tests: Likewise.
24485         * modules/unictype/property-white-space-tests: Likewise.
24486         * modules/unictype/property-xid-continue-tests: Likewise.
24487         * modules/unictype/property-xid-start-tests: Likewise.
24488         * modules/unictype/property-zero-width-tests: Likewise.
24489         * modules/unictype/scripts-tests: Likewise.
24490         * modules/unictype/syntax-c-ident-tests: Likewise.
24491         * modules/unictype/syntax-c-whitespace-tests: Likewise.
24492         * modules/unictype/syntax-java-ident-tests: Likewise.
24493         * modules/unictype/syntax-java-whitespace-tests: Likewise.
24494         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
24495         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
24496         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
24497         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
24498         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
24499         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
24500         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
24501         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
24502         * modules/uniname/uniname-tests: Likewise.
24503         * modules/uninorm/canonical-decomposition-tests: Likewise.
24504         * modules/uninorm/compat-decomposition-tests: Likewise.
24505         * modules/uninorm/composition-tests: Likewise.
24506         * modules/uninorm/decomposing-form-tests: Likewise.
24507         * modules/uninorm/decomposition-tests: Likewise.
24508         * modules/uninorm/filter-tests: Likewise.
24509         * modules/uninorm/nfc-tests: Likewise.
24510         * modules/uninorm/nfd-tests: Likewise.
24511         * modules/uninorm/nfkc-tests: Likewise.
24512         * modules/uninorm/nfkd-tests: Likewise.
24513         * modules/uninorm/u8-normcmp-tests: Likewise.
24514         * modules/uninorm/u8-normcoll-tests: Likewise.
24515         * modules/uninorm/u16-normcmp-tests: Likewise.
24516         * modules/uninorm/u16-normcoll-tests: Likewise.
24517         * modules/uninorm/u32-normcmp-tests: Likewise.
24518         * modules/uninorm/u32-normcoll-tests: Likewise.
24519         * modules/unistdio/u8-asnprintf-tests: Likewise.
24520         * modules/unistdio/u8-vasnprintf-tests: Likewise.
24521         * modules/unistdio/u8-vasprintf-tests: Likewise.
24522         * modules/unistdio/u8-vsnprintf-tests: Likewise.
24523         * modules/unistdio/u8-vsprintf-tests: Likewise.
24524         * modules/unistdio/u16-asnprintf-tests: Likewise.
24525         * modules/unistdio/u16-vasnprintf-tests: Likewise.
24526         * modules/unistdio/u16-vasprintf-tests: Likewise.
24527         * modules/unistdio/u16-vsnprintf-tests: Likewise.
24528         * modules/unistdio/u16-vsprintf-tests: Likewise.
24529         * modules/unistdio/u32-asnprintf-tests: Likewise.
24530         * modules/unistdio/u32-vasnprintf-tests: Likewise.
24531         * modules/unistdio/u32-vasprintf-tests: Likewise.
24532         * modules/unistdio/u32-vsnprintf-tests: Likewise.
24533         * modules/unistdio/u32-vsprintf-tests: Likewise.
24534         * modules/unistdio/ulc-asnprintf-tests: Likewise.
24535         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
24536         * modules/unistdio/ulc-vasprintf-tests: Likewise.
24537         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
24538         * modules/unistdio/ulc-vsprintf-tests: Likewise.
24539         * modules/unistr/u8-check-tests: Likewise.
24540         * modules/unistr/u8-chr-tests: Likewise.
24541         * modules/unistr/u8-cmp-tests: Likewise.
24542         * modules/unistr/u8-cmp2-tests: Likewise.
24543         * modules/unistr/u8-cpy-alloc-tests: Likewise.
24544         * modules/unistr/u8-cpy-tests: Likewise.
24545         * modules/unistr/u8-mblen-tests: Likewise.
24546         * modules/unistr/u8-mbsnlen-tests: Likewise.
24547         * modules/unistr/u8-mbtouc-tests: Likewise.
24548         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
24549         * modules/unistr/u8-mbtoucr-tests: Likewise.
24550         * modules/unistr/u8-move-tests: Likewise.
24551         * modules/unistr/u8-next-tests: Likewise.
24552         * modules/unistr/u8-prev-tests: Likewise.
24553         * modules/unistr/u8-set-tests: Likewise.
24554         * modules/unistr/u8-stpcpy-tests: Likewise.
24555         * modules/unistr/u8-stpncpy-tests: Likewise.
24556         * modules/unistr/u8-strcat-tests: Likewise.
24557         * modules/unistr/u8-strcmp-tests: Likewise.
24558         * modules/unistr/u8-strcoll-tests: Likewise.
24559         * modules/unistr/u8-strcpy-tests: Likewise.
24560         * modules/unistr/u8-strdup-tests: Likewise.
24561         * modules/unistr/u8-strlen-tests: Likewise.
24562         * modules/unistr/u8-strmblen-tests: Likewise.
24563         * modules/unistr/u8-strmbtouc-tests: Likewise.
24564         * modules/unistr/u8-strncat-tests: Likewise.
24565         * modules/unistr/u8-strncmp-tests: Likewise.
24566         * modules/unistr/u8-strncpy-tests: Likewise.
24567         * modules/unistr/u8-strnlen-tests: Likewise.
24568         * modules/unistr/u8-to-u16-tests: Likewise.
24569         * modules/unistr/u8-to-u32-tests: Likewise.
24570         * modules/unistr/u8-uctomb-tests: Likewise.
24571         * modules/unistr/u16-check-tests: Likewise.
24572         * modules/unistr/u16-chr-tests: Likewise.
24573         * modules/unistr/u16-cmp-tests: Likewise.
24574         * modules/unistr/u16-cmp2-tests: Likewise.
24575         * modules/unistr/u16-cpy-alloc-tests: Likewise.
24576         * modules/unistr/u16-cpy-tests: Likewise.
24577         * modules/unistr/u16-mblen-tests: Likewise.
24578         * modules/unistr/u16-mbsnlen-tests: Likewise.
24579         * modules/unistr/u16-mbtouc-tests: Likewise.
24580         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
24581         * modules/unistr/u16-mbtoucr-tests: Likewise.
24582         * modules/unistr/u16-move-tests: Likewise.
24583         * modules/unistr/u16-next-tests: Likewise.
24584         * modules/unistr/u16-prev-tests: Likewise.
24585         * modules/unistr/u16-set-tests: Likewise.
24586         * modules/unistr/u16-stpcpy-tests: Likewise.
24587         * modules/unistr/u16-stpncpy-tests: Likewise.
24588         * modules/unistr/u16-strcat-tests: Likewise.
24589         * modules/unistr/u16-strcmp-tests: Likewise.
24590         * modules/unistr/u16-strcoll-tests: Likewise.
24591         * modules/unistr/u16-strcpy-tests: Likewise.
24592         * modules/unistr/u16-strdup-tests: Likewise.
24593         * modules/unistr/u16-strlen-tests: Likewise.
24594         * modules/unistr/u16-strmblen-tests: Likewise.
24595         * modules/unistr/u16-strmbtouc-tests: Likewise.
24596         * modules/unistr/u16-strncat-tests: Likewise.
24597         * modules/unistr/u16-strncmp-tests: Likewise.
24598         * modules/unistr/u16-strncpy-tests: Likewise.
24599         * modules/unistr/u16-strnlen-tests: Likewise.
24600         * modules/unistr/u16-to-u32-tests: Likewise.
24601         * modules/unistr/u16-to-u8-tests: Likewise.
24602         * modules/unistr/u16-uctomb-tests: Likewise.
24603         * modules/unistr/u32-check-tests: Likewise.
24604         * modules/unistr/u32-chr-tests: Likewise.
24605         * modules/unistr/u32-cmp-tests: Likewise.
24606         * modules/unistr/u32-cmp2-tests: Likewise.
24607         * modules/unistr/u32-cpy-alloc-tests: Likewise.
24608         * modules/unistr/u32-cpy-tests: Likewise.
24609         * modules/unistr/u32-mblen-tests: Likewise.
24610         * modules/unistr/u32-mbsnlen-tests: Likewise.
24611         * modules/unistr/u32-mbtouc-tests: Likewise.
24612         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
24613         * modules/unistr/u32-mbtoucr-tests: Likewise.
24614         * modules/unistr/u32-move-tests: Likewise.
24615         * modules/unistr/u32-next-tests: Likewise.
24616         * modules/unistr/u32-prev-tests: Likewise.
24617         * modules/unistr/u32-set-tests: Likewise.
24618         * modules/unistr/u32-stpcpy-tests: Likewise.
24619         * modules/unistr/u32-stpncpy-tests: Likewise.
24620         * modules/unistr/u32-strcat-tests: Likewise.
24621         * modules/unistr/u32-strcmp-tests: Likewise.
24622         * modules/unistr/u32-strcoll-tests: Likewise.
24623         * modules/unistr/u32-strcpy-tests: Likewise.
24624         * modules/unistr/u32-strdup-tests: Likewise.
24625         * modules/unistr/u32-strlen-tests: Likewise.
24626         * modules/unistr/u32-strmblen-tests: Likewise.
24627         * modules/unistr/u32-strmbtouc-tests: Likewise.
24628         * modules/unistr/u32-strncat-tests: Likewise.
24629         * modules/unistr/u32-strncmp-tests: Likewise.
24630         * modules/unistr/u32-strncpy-tests: Likewise.
24631         * modules/unistr/u32-strnlen-tests: Likewise.
24632         * modules/unistr/u32-to-u16-tests: Likewise.
24633         * modules/unistr/u32-to-u8-tests: Likewise.
24634         * modules/unistr/u32-uctomb-tests: Likewise.
24635         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
24636         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
24637         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
24638         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
24639         * modules/uniwidth/u8-strwidth-tests: Likewise.
24640         * modules/uniwidth/u8-width-tests: Likewise.
24641         * modules/uniwidth/u16-strwidth-tests: Likewise.
24642         * modules/uniwidth/u16-width-tests: Likewise.
24643         * modules/uniwidth/u32-strwidth-tests: Likewise.
24644         * modules/uniwidth/u32-width-tests: Likewise.
24645         * modules/uniwidth/width-tests: Likewise.
24646
24647 2010-05-18  Richard Jones  <rjones@redhat.com>
24648
24649         doc: users.txt: list hivex
24650         * users.txt: Add hivex.
24651
24652 2010-05-18  Richard Jones  <rjones@redhat.com>
24653
24654         doc: users.txt: list febootstrap
24655         * users.txt: Add febootstrap.
24656
24657 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
24658
24659         bootstrap: fix an error when gnulib is not used as a git submodule
24660         * build-aux/bootstrap (gnulib_path): If its length is zero then
24661         assign "gnulib" to it.
24662         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
24663
24664 2010-05-16  Bruno Haible  <bruno@clisp.org>
24665
24666         Avoid autoconf warnings about AM_ICONV.
24667         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
24668         2.64.
24669
24670 2010-05-16  Bruno Haible  <bruno@clisp.org>
24671
24672         absolute-header: Make the macro usable in more situations.
24673         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
24674         from gl_ABSOLUTE_HEADER.
24675         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
24676
24677 2010-05-16  James Youngman  <jay@gnu.org>
24678
24679         doc: update users.txt
24680         * users.txt: Add CSSC.
24681
24682 2010-05-16  Jim Meyering  <meyering@redhat.com>
24683
24684         init.sh: fix an error in the previous change; add more comments
24685         * tests/init.sh: Compare exit code in loop against 9, not 2.
24686         Patch by Bruno Haible.
24687         Make the two tests more similar by adding an empty "then" clause.
24688         Add comments.
24689
24690         init.sh: avoid unnecessary shell re-exec
24691         * tests/init.sh: Improve the re-exec-required check to first test the
24692         current shell.  If it passes the test, do not search for a shell that
24693         does pass, and do not re-exec.  This test is particularly contorted to
24694         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
24695         of $(...) evokes a syntax error and causes immediate shell exit with
24696         status 2.  Bruno Haible reported that the re-exec made it impossible
24697         to single-step through any init.sh-using script.
24698
24699 2010-05-16  Bruno Haible  <bruno@clisp.org>
24700
24701         Fix collision between gnulib's and libintl's printf replacements.
24702         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
24703         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
24704         (printf): When using GNU C, map the __printf__ function to rpl_printf
24705         via __asm__. When not using GNU C, define rpl_printf instead of
24706         __printf__.
24707         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
24708         commit.
24709         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
24710         commit.
24711         * m4/asm-underscore.m4: New file.
24712         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
24713         * modules/stdio (Files): Add m4/asm-underscore.m4.
24714         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
24715         Reported by Ben Pfaff.
24716
24717 2010-05-16  Bruno Haible  <bruno@clisp.org>
24718
24719         verify: Avoid skipping the test on openSUSE 11.0.
24720         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
24721
24722 2010-05-13  Bruno Haible  <bruno@clisp.org>
24723
24724         Avoid useless warnings from G++.
24725         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
24726         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
24727         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24728
24729 2010-05-11  Jim Meyering  <meyering@redhat.com>
24730
24731         maint.mk: tweak preceding change
24732         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
24733         regexps tighter by anchoring at EOL, and make the new group "shy"
24734         for slightly decreased overhead.
24735
24736 2010-05-11  Eric Blake  <eblake@redhat.com>
24737
24738         maint.mk: gnulib doesn't guarantee NSIG
24739         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
24740
24741 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24742
24743         test-pwrite.c: Remove unused variable declaration.
24744         * tests/test-pwrite.c (main): Remove read_buf declaration.
24745
24746         Remove useless test-pwrite.sh file.
24747         * tests/test-pwrite.sh: Delete file.
24748         * modules/pwrite-tests: Remove references.
24749         Reported by Bruno Haible.
24750
24751 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24752
24753         init.sh: fix a typo
24754         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
24755
24756 2010-05-10  Jim Meyering  <meyering@redhat.com>
24757
24758         maint.mk: avoid using a temporary file in the always-defined-macros check
24759         * top/maint.mk (.re-defmac): Remove rule.
24760         (gl_trap_): Remove definition.
24761         (sc_prohibit_always-defined_macros): Rewrite not to create and
24762         depend on a temporary file.  Instead, depend on GNU grep's ability
24763         to read a list of regular expressions from stdin when given "-f -".
24764
24765 2010-05-09  Bruno Haible  <bruno@clisp.org>
24766
24767         Update to GNU gettext 0.18, part 1.
24768         * m4/gettext.m4: Update to GNU gettext 0.18.
24769         * m4/intl.m4: Likewise.
24770         * m4/po.m4: Likewise.
24771         * modules/gettext (Files): Add m4/fcntl-o.m4.
24772         (configure.ac): Require gettext infrastructure from version 0.18.
24773
24774 2010-05-09  Jim Meyering  <meyering@redhat.com>
24775
24776         init.sh: enable MALLOC_PERTURB_
24777         * tests/init.sh: Enable glibc's malloc-perturbing option.
24778
24779         maint.mk: improve sc_cross_check_PATH_usage_in_tests
24780         With my recent change in init.sh from the two-line form:
24781             -#   : ${srcdir=.}
24782             -#   . "$srcdir/init.sh"; path_prepend_ .
24783             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
24784         I noticed that using the one-line form would cause this test
24785         to fail with a false-positive, or to stop working altogether,
24786         depending on whether help-version changed or all the tests did.
24787         * top/maint.mk (_hv_regex): Remove this definition.
24788         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
24789         (_hv_regex_strong): Use a stronger regex to check for conformance.
24790         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
24791         Give a separate diagnostic for lack of conforming use.
24792
24793         maint.mk: prohibit definition of symbols defined by gnulib
24794         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
24795         definition of symbols defined by gnulib.
24796
24797 2010-05-09  Bruno Haible  <bruno@clisp.org>
24798
24799         acl: Avoid test failure on Cygwin-hosted mingw.
24800         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
24801
24802 2010-05-09  Bruno Haible  <bruno@clisp.org>
24803
24804         error: Use system's fcntl function.
24805         * lib/error.c (fcntl): Undefine.
24806
24807 2010-05-09  Jim Meyering  <meyering@redhat.com>
24808
24809         verify: adjust formatting to be more consistent
24810         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
24811         argument-list '('s, and after one comma.
24812
24813 2010-05-09  Bruno Haible  <bruno@clisp.org>
24814
24815         error: More reliable output on mingw.
24816         * lib/error.c: Include <windows.h>.
24817         (is_open): New function.
24818         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
24819         defined.
24820
24821 2010-05-09  Bruno Haible  <bruno@clisp.org>
24822
24823         vasnprintf: Fix syntax errors in libintl build on mingw.
24824         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
24825         pad_ourselves and prec_ourselves after use.
24826
24827 2010-05-08  Bruno Haible  <bruno@clisp.org>
24828
24829         * lib/config.charset: Update comments for Cygwin 1.7.
24830         * lib/localcharset.c: Likewise.
24831
24832 2010-05-07  Jim Meyering  <meyering@redhat.com>
24833
24834         init.sh: improve comments
24835         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
24836         . "${srcdir=.}/init.sh"; path_prepend_ .
24837         Add a note about path_prepend_ and the alternative of using
24838         TESTS_ENVIRONMENT.
24839
24840 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24841
24842         exclude: Unescape hashed patterns in wildcard mode.
24843         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
24844         to the hash list.
24845         * tests/test-exclude8.sh: New test case.
24846         * modules/exclude-tests: Add new test.
24847
24848 2010-05-05  Eric Blake  <eblake@redhat.com>
24849
24850         verify: automate tests
24851         * modules/verify-tests: New module.
24852         * tests/test-verify.sh: New file.
24853         * tests/test-verify.c: Guard each negative test with a unique id.
24854         Also avoid warning about unused left hand of comma expressions.
24855
24856 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
24857
24858         Further improvements to verify.h, suggested by Eric Blake.
24859         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
24860         the GL_* versions, to avoid collision with OpenGL.
24861         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
24862         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
24863         than testing merely whether it's defined.
24864
24865         Modify verify.h to pacify gcc -Wredundant_decls.
24866         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
24867         These use the prefix "GL_" since they're likely to be useful elsewhere.
24868         We may need to break them out into a different .h file.
24869         (__COUNTER__): Define to 0 if the compiler doesn't support it.
24870         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
24871         of verify_function__.
24872
24873 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24874
24875         Tests for module pwrite.
24876         * modules/pwrite-tests: New file.
24877         * tests/test-pwrite.sh: New file.
24878         * tests/test-pwrite.c: New file.
24879
24880         New module pwrite.
24881         * lib/unistd.in.h (pwrite): New declaration.
24882         * lib/pwrite.c: New file, from glibc with modifications.
24883         * m4/pwrite.m4: New file.
24884         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
24885         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
24886         REPLACE_PWRITE.
24887         * modules/pwrite: New file.
24888         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
24889         REPLACE_PWRITE.
24890         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
24891         * doc/posix-functions/pwrite.texi: Mention the new module.
24892
24893 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24894
24895         pread: Update documentation.
24896         * doc/posix-functions/pread.texi: Mention the 'pread' module.
24897
24898 2010-05-04  Eric Blake  <eblake@redhat.com>
24899
24900         docs: update cygwin progress
24901         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
24902         this bug.
24903         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
24904         Added in cygwin 1.7.2.
24905         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
24906         Likewise.
24907         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
24908         Likewise.
24909         * doc/glibc-functions/dup3.texi (dup3): Likewise.
24910         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
24911         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24912         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
24913         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
24914         Mention nproc module.
24915         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
24916         bug in cygwin 1.7.5 addition.
24917         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
24918         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
24919         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
24920         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
24921         1.7.5.
24922         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
24923         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
24924         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
24925         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
24926         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
24927         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
24928         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
24929         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
24930         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
24931         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
24932         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
24933         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
24934         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
24935         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
24936         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
24937         Likewise.
24938         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
24939         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
24940         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
24941         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
24942         Likewise.
24943         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
24944         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
24945         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
24946         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
24947         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
24948         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
24949         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
24950         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
24951         Likewise.
24952         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
24953         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
24954         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
24955         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
24956         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
24957         Likewise.
24958         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
24959         Likewise.
24960         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
24961         Likewise.
24962         * doc/glibc-functions/xdrrec_endofrecord.texi
24963         (xdrrec_endofrecord): Likewise.
24964         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
24965         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
24966         Likewise.
24967         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
24968         Likewise.
24969
24970 2010-05-04  Jim Meyering  <meyering@redhat.com>
24971
24972         gendocs.sh: make its "-s FILE" option more useful
24973         * build-aux/gendocs.sh: When honoring the -s FILE option, update
24974         $PACKAGE to reflect the probably-different basename of "FILE".
24975
24976 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24977
24978         bootstrap: don't ignore download_po_files failure
24979         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
24980         failure.
24981
24982 2010-05-03  Jim Meyering  <meyering@redhat.com>
24983
24984         maint.mk: allow to pass options to gendocs.sh
24985         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
24986         (gendocs_options_): New overridable variable.
24987
24988         gnu-web-doc-update: don't ignore configure or build failure
24989         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
24990
24991         announce-gen: backslash-escape '@'s in --help output
24992         * build-aux/announce-gen: Fix syntax errors.
24993
24994         maint.mk, announce-gen: allow project-specific announcement mail headers
24995         * top/maint.mk (translation_project_): Define default.
24996         (announcement_Cc_, announcement_mail_headers_): Likewise.
24997         (announcement): Invoke announce-gen with new --mail-headers option.
24998         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
24999
25000         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
25001         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
25002         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
25003         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
25004         line in the "err2" output file when running "make check" in verbose
25005         mode (i.e., with set -x enabled).
25006
25007 2010-05-03  Bruno Haible  <bruno@clisp.org>
25008
25009         wctob: Fix for weird platforms.
25010         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
25011         argument value.
25012
25013 2010-05-03  Jim Meyering  <meyering@redhat.com>
25014
25015         maint.mk: prohibit unwarranted use of <strings.h>
25016         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
25017         strings.h in a file that does not also use strcasecmp, strncasecmp,
25018         ffs or ffsll.
25019
25020         maint.mk: remove obsolete comments
25021         * top/maint.mk: Remove stale, commented-out rules.
25022
25023 2010-05-02  Bruno Haible  <bruno@clisp.org>
25024
25025         wcwidth: Declare also when it's aliased.
25026         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
25027         macro.
25028
25029 2010-05-02  Bruno Haible  <bruno@clisp.org>
25030
25031         Fix regression from 2010-04-25.
25032         * gnulib-tool (func_modules_transitive_closure): Check the status of
25033         all modules, not only of the tests that are of the form foo-tests where
25034         foo is a module.
25035
25036 2010-05-02  Bruno Haible  <bruno@clisp.org>
25037
25038         wctob: Work around nasty Cygwin 1.7.2 bug.
25039         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
25040         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
25041
25042 2010-05-01  Bruno Haible  <bruno@clisp.org>
25043
25044         fpurge: Sharper test.
25045         * tests/test-fpurge.c (main): Add one more ftell check.
25046         * modules/fpurge-tests (Depends-on): Add ftell.
25047         Suggested by Eric Blake.
25048
25049 2010-05-01  Bruno Haible  <bruno@clisp.org>
25050
25051         ftello: Another test.
25052         * tests/test-ftello3.c: New file.
25053         * modules/ftello-tests (Files): Add it.
25054         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25055         MOSTLYCLEANFILES.
25056
25057         ftell: Another test.
25058         * tests/test-ftell3.c: New file.
25059         * modules/ftell-tests (Files): Add it.
25060         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25061         MOSTLYCLEANFILES.
25062
25063 2010-05-01  Bruno Haible  <bruno@clisp.org>
25064
25065         ftell, ftello: Work around Solaris bug.
25066         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
25067         * lib/ftello.c: Include stdio-impl.h.
25068         (ftello): On Solaris, when _IOWRT is set, compute the result without
25069         looking at _IOREAD.
25070         * modules/ftello (Files): Add lib/stdio-impl.h.
25071         * doc/posix-functions/ftell.texi: Mention Solaris bug.
25072         * doc/posix-functions/ftello.texi: Likewise.
25073         Reported by Eric Blake.
25074
25075 2010-05-01  Bruno Haible  <bruno@clisp.org>
25076
25077         freading: Adapt to special meaning of _IOREAD flag on Solaris.
25078         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
25079         the _IOWRT flag is also set.
25080
25081 2010-05-01  Bruno Haible  <bruno@clisp.org>
25082
25083         Fix doc about a HP-UX stdio bug.
25084         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
25085         * doc/posix-functions/ftello.texi: Likewise.
25086
25087 2010-05-01  Bruno Haible  <bruno@clisp.org>
25088
25089         lseek test: Fix failure on Solaris.
25090         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
25091         output.
25092
25093 2010-04-30  Jim Meyering  <meyering@redhat.com>
25094
25095         bootstrap: don't ignore failure to generate po*/Makevars
25096         * build-aux/bootstrap (with_gettext): Don't ignore failure
25097         to create po/Makevars or runtime-po/Makevars.
25098
25099 2010-04-29  Eric Blake  <eblake@redhat.com>
25100
25101         headers: relax license to LGPLv2+
25102         * modules/fcntl-h (License): Relax license.
25103         * modules/getopt-posix (License): Likewise.
25104         * modules/locale (License): Likewise.
25105         * modules/math (License): Likewise.
25106         * modules/pty (License): Likewise.
25107         * modules/sched (License): Likewise.
25108         * modules/search (License): Likewise.
25109         * modules/spawn (License): Likewise.
25110         * modules/stdarg (License): Likewise.
25111         * modules/sysexits (License): Likewise.
25112
25113 2010-04-29  Jim Meyering  <meyering@redhat.com>
25114
25115         inttypes: relax license to LGPLv2+
25116         * modules/inttypes (License): Relax license.
25117
25118 2010-04-29  Simon Josefsson  <simon@josefsson.org>
25119
25120         * top/maint.mk (indent): Run twice to produce idempotent results.
25121
25122 2010-04-28  Bruno Haible  <bruno@clisp.org>
25123
25124         getdate: Generate getdate.c in the source directory.
25125         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
25126         MOSTLYCLEANFILES.
25127         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
25128
25129 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
25130
25131         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
25132         is not declared as a const *; avoid warnings in that case.
25133
25134 2010-04-28  Eric Blake  <eblake@redhat.com>
25135
25136         canonicalize-lgpl: avoid compiler warning
25137         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
25138         declaration' / 'extraneous semicolon' warning with some compilers.
25139         Reported by Andreas Gruenbacher.
25140
25141 2010-04-28  Jim Meyering  <meyering@redhat.com>
25142
25143         init.sh: ensure a more reliable exit status when exiting via trap
25144         * tests/init.sh (setup_): Don't rely on $? in signal handler.
25145         Inspired by patches from Dmitry V. Levin.
25146         Also trap on signal 3 (SIGQUIT).
25147
25148 2010-04-27  Bruno Haible  <bruno@clisp.org>
25149
25150         Update doc about utimes().
25151         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
25152         'utimens' module.
25153         Reported by Andreas Gruenbacher <agruen@suse.de>.
25154
25155 2010-04-27  Eric Blake  <eblake@redhat.com>
25156
25157         full-read, full-write: relax license
25158         * modules/full-read (License): Drop to LGPLv2+.
25159         * modules/full-write (License): Likewise.
25160         * modules/safe-read (License): Likewise.
25161         * modules/safe-write (License): Likewise.
25162
25163         pthread: mention library for linking
25164         * modules/pthread (Link): Mention $(LIB_PTHREAD).
25165
25166 2010-04-27  Jim Meyering  <meyering@redhat.com>
25167
25168         maint.mk: fix a bug introduced in last change
25169         * top/maint.mk (gl_assured_headers_): Now that all names are on
25170         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
25171         is not anchored to end of word, it should be adequate.
25172
25173         maint.mk: avoid side-effect in latest syntax-check
25174         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
25175         to run commands via $(shell...), and hence to incur cost only when
25176         the new rule is actually run.
25177
25178         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
25179         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
25180         and use that to create a regexp used to detect all #if HAVE_..._H uses.
25181         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
25182         (gl_assured_headers_, az_, AZ_): Define.
25183         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
25184
25185 2010-04-26  Jim Meyering  <jim@meyering.net>
25186             Bruno Haible  <bruno@clisp.org>
25187
25188         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
25189         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
25190         Prompted by an exchange with Gilles Espinasse.
25191
25192 2010-04-26  Jim Meyering  <meyering@redhat.com>
25193
25194         git-version-gen: aesthetic tweak
25195         * build-aux/git-version-gen: Use "$nl" rather than a literal,
25196         so that the command remains on a single line.
25197
25198 2010-04-26  Eric Blake  <eblake@redhat.com>
25199
25200         git-version-gen: allow use on EBCDIC hosts
25201         * build-aux/git-version-gen (dirty): Use literal rather than tying
25202         ourselves to ascii.
25203         Reported by Steve Goetze.
25204
25205 2010-04-25  Bruno Haible  <bruno@clisp.org>
25206
25207         netdb: Add support for GNULIB_POSIXCHECK.
25208         * lib/netdb.in.h: Include warn-on-use.h.
25209         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
25210         functions are used when GNULIB_POSIXCHECK is defined and the
25211         getaddrinfo module is not in use.
25212         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
25213         freeaddrinfo, gai_strerror, getnameinfo are declared.
25214         * modules/netdb (Depends-on): Add warn-on-use.
25215         (Makefile.am): Include warn-on-use.h in netdb.h.
25216
25217 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
25218
25219         build: avoid "make check" failure without .git/ directory
25220         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
25221         there is no .git/ directory.
25222
25223 2010-04-25  Bruno Haible  <bruno@clisp.org>
25224
25225         ptsname: Fix misuse of ttyname_r.
25226         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
25227         of errno.
25228
25229 2010-04-25  Bruno Haible  <bruno@clisp.org>
25230
25231         ttyname_r: Make it work on Solaris 10.
25232         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
25233         if the system function has the POSIX declaration. Test whether the
25234         function fails if the buffer is less than 128 bytes large.
25235         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
25236         system's ttyname_r function. Provide a reasonably large buffer.
25237         * modules/ttyname_r (Depends-on): Add extensions.
25238         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
25239
25240 2010-04-25  Bruno Haible  <bruno@clisp.org>
25241
25242         Use the 'extensions' module for some more functions on Solaris.
25243         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
25244         module.
25245         * doc/posix-functions/ctime_r.texi: Likewise.
25246         * doc/posix-functions/getgrgid_r.texi: Likewise.
25247         * doc/posix-functions/getgrnam_r.texi: Likewise.
25248         * doc/posix-functions/getpwnam_r.texi: Likewise.
25249         * doc/posix-functions/getpwuid_r.texi: Likewise.
25250         * doc/posix-functions/readdir_r.texi: Likewise.
25251         * doc/posix-functions/sigwait.texi: Likewise.
25252         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
25253         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
25254
25255 2010-04-25  Bruno Haible  <bruno@clisp.org>
25256
25257         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
25258         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
25259         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
25260         * lib/ttyname_r.c: Include <limits.h>.
25261         (ttyname_r): Define using the system's ttyname_r function, if it exists
25262         and not on Solaris.
25263         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
25264         set.
25265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
25266         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
25267         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
25268         Reported by Simon Josefsson.
25269
25270 2010-04-25  Bruno Haible  <bruno@clisp.org>
25271
25272         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
25273         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
25274         * doc/posix-functions/ctime_r.texi: Likewise.
25275         * doc/posix-functions/getgrgid_r.texi: Likewise.
25276         * doc/posix-functions/getgrnam_r.texi: Likewise.
25277         * doc/posix-functions/getlogin_r.texi: Likewise.
25278         * doc/posix-functions/getpwnam_r.texi: Likewise.
25279         * doc/posix-functions/getpwuid_r.texi: Likewise.
25280         * doc/posix-functions/readdir_r.texi: Likewise.
25281         * doc/posix-functions/sigwait.texi: Likewise.
25282         * doc/posix-functions/ttyname_r.texi: Likewise.
25283         Reported by Simon Josefsson.
25284
25285 2010-04-25  Bruno Haible  <bruno@clisp.org>
25286
25287         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
25288         * gnulib-tool (func_usage): Document that --with-*-tests options apply
25289         also to --create-testdir.
25290         (func_acceptable): Don't consider the status of *-tests modules here.
25291         (func_modules_transitive_closure): Consider it here, before including a
25292         test module.
25293         (func_import, func_create_testdir): Set inc_all_direct_tests,
25294         inc_all_indirect_tests.
25295         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
25296         --create-testdir and --create-megatestdir.
25297
25298 2010-04-25  Bruno Haible  <bruno@clisp.org>
25299
25300         gnulib-tool: Add --without-*-tests options.
25301         * gnulib-tool (func_usage): Document the --without-*-tests options.
25302         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
25303         excl_unportable_tests): New variables.
25304         Fail if they are specified with --import or --update.
25305         (func_acceptable): Respect the excl_*_tests variables.
25306         (func_import): Set the excl_*_tests variables to empty.
25307
25308 2010-04-25  Simon Josefsson  <simon@josefsson.org>
25309             Bruno Haible  <bruno@clisp.org>
25310
25311         Work around a MacOS X 10.4 bug with openpty.
25312         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
25313         * tests/test-openpty.c (main): Close the master side explicitly.
25314
25315 2010-04-25  Bruno Haible  <bruno@clisp.org>
25316
25317         strnlen: Fix a C++ test error on MacOS X and Solaris.
25318         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
25319         the function is not declared.
25320         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
25321         Simon Josefsson.
25322
25323 2010-04-24  Bruno Haible  <bruno@clisp.org>
25324
25325         Avoid a gcc warning.
25326         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
25327         of correct type for %08lx directive.
25328         Reported by Eric Blake.
25329
25330 2010-04-24  Bruno Haible  <bruno@clisp.org>
25331
25332         vasnprintf: Correct errno value in case of out-of-memory.
25333         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
25334         or sprintf. Use the errno value from SNPRINTF or sprintf.
25335         Reported by Ian Beckwith <ianb@erislabs.net>.
25336
25337 2010-04-24  Bruno Haible  <bruno@clisp.org>
25338
25339         ansi-c++-opt: Find correct compiler when cross-compiling.
25340         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
25341         AC_CHECK_PROGS.
25342         Reported by Simon Josefsson.
25343
25344 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
25345
25346         vc-list-files: Add support for subversion
25347         * build-aux/vc-list-files: Use "svn list" to generate the list of
25348         files controlled by subversion.
25349
25350 2010-04-23  Jim Meyering  <meyering@redhat.com>
25351
25352         vc-list-files tests: convert to use init.sh
25353         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
25354         path_prepend_.
25355         Use Exit, not exit.
25356         Use skip_ rather than open coding it.
25357         Remove trap set-up and compare definitions.
25358         * tests/test-vc-list-files-git.sh: Likewise.
25359         * modules/vc-list-files-tests (Files): Add tests/init.sh.
25360
25361 2010-04-22  Simon Josefsson  <simon@josefsson.org>
25362
25363         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
25364         backup files.
25365
25366 2010-04-21  Simon Josefsson  <simon@josefsson.org>
25367
25368         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
25369
25370 2010-04-20  Eric Blake  <eblake@redhat.com>
25371
25372         tests: be robust to ignored SIGPIPE
25373         * tests/test-select-in.sh: Consume all output.
25374         * tests/test-lseek.sh: Check correct exit status, while avoiding
25375         EPIPE.
25376
25377 2010-04-20  Simon Josefsson  <simon@josefsson.org>
25378             Bruno Haible  <bruno@clisp.org>
25379
25380         visibility: Don't use -fvisibility if it leads to a warning.
25381         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
25382         yes, don't pretend that visibility works if it leads to a warning.
25383         Reported by Mike Gran <spk121@yahoo.com>.
25384
25385 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
25386
25387         * build-aux/bootstrap: Use "git -h" for testing for supported options
25388         instead of "git --help".  The short-form option only shows a summary,
25389         and doesn't layout the full man page.  Grep for the full option name
25390         in the summary, too.
25391
25392 2010-04-19  Bruno Haible  <bruno@clisp.org>
25393
25394         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
25395         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
25396         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
25397         mention of RELOCATABLE_STRIP.
25398         Reported by Sylvain Beucler <beuc@beuc.net>.
25399
25400 2010-04-19  Bruno Haible  <bruno@clisp.org>
25401
25402         * lib/diffseq.h: Fix typo in comment.
25403         Reported by Eric Blake.
25404
25405 2010-04-19  Bruno Haible  <bruno@clisp.org>
25406
25407         ioctl: Move autoconf macro to a .m4 file.
25408         * m4/ioctl.m4: New file, extracted from modules/ioctl.
25409         * modules/ioctl (Files): Add it.
25410         (configure.ac): Simply invoke gl_FUNC_IOCTL.
25411         Reported by Ian Beckwith <ianb@erislabs.net>.
25412
25413 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
25414             Bruno Haible  <bruno@clisp.org>
25415
25416         diffseq: Accommodate use-case with abstract arrays.
25417         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
25418         is not defined.
25419         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
25420         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
25421
25422 2010-04-18  Bruno Haible  <bruno@clisp.org>
25423
25424         * doc/posix-headers/stdbool.texi: More precise wording.
25425
25426 2010-04-17  Jim Meyering  <meyering@redhat.com>
25427
25428         maint.mk: use gnu-style indentation in an embedded perl script
25429         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
25430         Rename variable: s/two/last_two_bytes/
25431
25432 2010-04-16  Eric Blake  <eblake@redhat.com>
25433
25434         test-stdbool: skip test that fails with Solaris CC
25435         * tests/test-stdbool.c (f): Skip test that causes compilation
25436         error under buggy C++ compiler.
25437         * lib/stdbool.in.h: Document the limitation.
25438         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
25439
25440         setenv: allow compilation with C++
25441         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
25442         register keyword.
25443
25444         stdint: allow test to pass with C++
25445         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
25446
25447         getopt: allow compilation with C++
25448         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
25449         struct.
25450         * lib/getopt.c (_getopt_internal_r): Use correct type.
25451         Reported by Dagobert Michelson, via Joel E. Denny.
25452
25453 2010-04-16  Bruno Haible  <bruno@clisp.org>
25454
25455         Override netdb.h always.
25456         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
25457         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
25458         Reported by Ludovic Courtès <ludo@gnu.org>.
25459
25460 2010-04-15  Bruno Haible  <bruno@clisp.org>
25461
25462         openpty: Fix mistake from 2010-03-21.
25463         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
25464         Reported by Simon Josefsson.
25465
25466 2010-04-15  Eric Blake  <eblake@redhat.com>
25467
25468         test-forkpty: fix expected signature
25469         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
25470         Reported by Simon Josefsson.
25471
25472 2010-04-15  Jim Meyering  <meyering@redhat.com>
25473
25474         maint.mk: texinfo_suffix_re_: correct the default regexp
25475         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
25476
25477         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
25478         make it configurable via texinfo_suffix_re_.
25479
25480 2010-04-14  Eric Blake  <eblake@redhat.com>
25481
25482         strtok_r: relax license to LGPLv2+
25483         * modules/strtok_r (License): Relax license.
25484         Reported by Matthias Bolte.
25485
25486 2010-04-14  Simon Josefsson  <simon@josefsson.org>
25487
25488         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
25489         version 1.4.4 by default instead of requiring the libgcrypt
25490         version used during build.  This makes it possible to use the
25491         application with older but still binary compatible libgcrypt
25492         versions.
25493
25494 2010-04-13  Eric Blake  <eblake@redhat.com>
25495
25496         getopt-gnu: match recent glibc fixes and posix ruling
25497         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
25498         '+' handling, when requesting extensions.
25499         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
25500         'W;' handling.
25501         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
25502         * doc/posix-functions/getopt.texi (getopt): Document this.
25503         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25504         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25505         Likewise.
25506
25507         getopt: merge bug fixes from glibc
25508         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
25509         diagnostics.  Honor '+:' correctly.  Reject ';'.
25510
25511         getopt-posix: detect MacOS bug
25512         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
25513         optind when missing a required argument.
25514         * doc/posix-functions/getopt.texi (getopt): Document the bug.
25515         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25516         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25517         Likewise.
25518
25519         getopt-posix: avoid spurious failure on Solaris
25520         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
25521         an indicator that setting optind=1 is sufficient for reset.
25522
25523         getopt-posix: avoid spurious failure on FreeBSD
25524         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
25525         in POSIX mode, since the m4 test uses it.
25526
25527         gnulib-tool: silence warning on BSD sh
25528         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
25529
25530 2010-04-13  Jim Meyering  <meyering@redhat.com>
25531
25532         doc: users.txt: GNU patch now uses gnulib
25533         * users.txt: Add patch.
25534
25535 2010-04-12  Jim Meyering  <meyering@redhat.com>
25536
25537         maint.mk: generate more concise timing data for syntax-check rules
25538         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
25539         " done" from each line that reports a syntax-check test duration.
25540
25541 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
25542
25543         git-version-gen: use "git update-index..." rather than "git status"
25544         * build-aux/git-version-gen: Use git update-index --refresh, not
25545         "git status".  With some versions of git, "git status" would fail
25546         to update the index and result in an unwarranted "-dirty" suffix.
25547
25548 2010-04-11  Jim Meyering  <meyering@redhat.com>
25549
25550         openat: correct formatting (no semantic change)
25551         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
25552         Suggested by Bruno Haible.
25553
25554 2010-04-11  Bruno Haible  <bruno@clisp.org>
25555
25556         Stricter declaration checking in testdirs.
25557         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25558         If for_tests is true, augment AM_CPPFLAGS to define
25559         GNULIB_STRICT_CHECKING.
25560         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
25561         GNULIB_STRICT_CHECKING is defined, verify that the function is
25562         declared.
25563
25564 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
25565             Bruno Haible  <bruno@clisp.org>
25566
25567         libunistring: Improve configure output.
25568         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
25569         Don't say "consider installing GNU libunistring" when checking again
25570         with libiconv.
25571
25572 2010-04-11  Bruno Haible  <bruno@clisp.org>
25573
25574         libunistring: Correct value of $LTLIBUNISTRING.
25575         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
25576         correct the value of $LTLIBUNISTRING.
25577
25578 2010-04-11  Bruno Haible  <bruno@clisp.org>
25579
25580         havelib: Add static libraries to LIBS in the right order.
25581         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
25582         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
25583
25584 2010-04-11  Bruno Haible  <bruno@clisp.org>
25585
25586         libunistring: Detect libunistring also when it depends on libiconv.
25587         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
25588         the second AC_LIB_HAVE_LINKFLAGS invocation.
25589
25590 2010-04-11  James Youngman  <jay@gnu.org>
25591
25592         close-stream: declare local scalars to be "const"
25593         * lib/close-stream.c (close_stream): Make boolean variables const
25594         to document the fact that we set but do not change them.
25595
25596 2010-04-11  Bruno Haible  <bruno@clisp.org>
25597
25598         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
25599
25600 2010-04-11  Jim Meyering  <meyering@redhat.com>
25601
25602         maint.mk: don't include dist-check.mk
25603         * top/maint.mk: Remove bogus include directive.
25604
25605         maint.mk: improve empty-line-at-EOF check
25606         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
25607         solution, rather than tail+Perl-based one.  The latter would read
25608         a few kilobytes from the end of each file, and did not handle empty
25609         files properly.
25610
25611         maint.mk: print the elapsed time for each syntax-check rule
25612         * top/maint.mk (sc_m_rules_): Save start time in a file.
25613         (sc_z_rules_): New rules: remove temp file and print elapsed time.
25614         (local-check): Interpose the .z rules
25615
25616 2010-04-11  Jim Meyering  <meyering@redhat.com>
25617
25618         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
25619         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
25620         empty file with one that ends in an empty line.
25621
25622 2010-04-10  Bruno Haible  <bruno@clisp.org>
25623
25624         mkdir: Make it work on mingw64.
25625         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
25626         * lib/mkdir.c: Update comment.
25627         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
25628
25629 2010-04-10  Bruno Haible  <bruno@clisp.org>
25630
25631         Don't override improved macro from newer autoconf.
25632         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
25633         autoconf >= 2.62.
25634         Reported by Joel E. Denny <jdenny@clemson.edu>.
25635
25636 2010-04-10  Jim Meyering  <meyering@redhat.com>
25637
25638         maint.mk: new syntax-check rule: prohibit empty lines at end of file
25639         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
25640
25641         maint.mk: correct a diagnostic
25642         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
25643         in diagnostic; now use $prohibit.
25644
25645 2010-04-10  Bruno Haible  <address@hidden>
25646
25647         fchownat: Fix a C++ test error on Solaris 8.
25648         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
25649         the function does not exist.
25650
25651 2010-04-10  Bruno Haible  <bruno@clisp.org>
25652
25653         vasnprintf: Add more tests.
25654         * tests/test-vasnprintf-posix.c: Include <errno.h>.
25655         (test_function): Test converting an invalid wide string.
25656
25657         vasnprintf: Correct handling of unconvertible wide string arguments.
25658         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
25659         VASNPRINTF.
25660         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
25661         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
25662         smaller than the expected maximum need for the directive. Set errno to
25663         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
25664         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
25665         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
25666         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
25667         * modules/vasnprintf (Files): Add m4/printf.m4.
25668         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25669
25670 2010-04-10  Bruno Haible  <bruno@clisp.org>
25671
25672         vasnprintf: Fix crash in %ls directive.
25673         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
25674         string is passed as argument to %ls, with no precision and no width.
25675         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25676
25677 2010-04-10  Bruno Haible  <bruno@clisp.org>
25678
25679         vasnprintf: Fix multiple test failures on mingw.
25680         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
25681         _snprintf, or snwprintf, not _snwprintf.
25682
25683 2010-04-10  Bruno Haible  <bruno@clisp.org>
25684
25685         write: Fix a C++ test error on mingw.
25686         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
25687
25688 2010-04-10  Bruno Haible  <bruno@clisp.org>
25689
25690         vasnprintf test: Reduce code duplication.
25691         * tests/test-vasnprintf.c (test_function): New function, extracted from
25692         test_vasnprintf.
25693         (test_vasnprintf, test_asnprintf): Invoke it.
25694
25695 2010-04-10  Bruno Haible  <bruno@clisp.org>
25696
25697         strnlen: Fix warning in C++ mode on MacOS X.
25698         * lib/string.in.h (strnlen): Use the modern idiom.
25699         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
25700         defining strnlen as a macro already in <config.h>.
25701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25702         REPLACE_STRNLEN.
25703         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
25704         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25705
25706 2010-04-08  James Youngman  <jay@gnu.org>
25707
25708         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
25709         the example.
25710
25711 2010-04-09  Jim Meyering  <meyering@redhat.com>
25712
25713         maint.mk: print better diagnostic when there is no $(_hv_file)
25714         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
25715         announce that when $(_hv_file) (aka help-version) does not exist.
25716
25717         init.sh: run tr in the "C" locale to avoid multibyte interpretation
25718         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
25719         not try to interpret its random input bytes.  Jarno Rajahalme reported
25720         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
25721         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
25722         (mktempd_): Likewise, just in case.
25723
25724         ftruncate: add two years to projected module removal date: 2012
25725         * m4/ftruncate.m4: Adjust comments.
25726
25727         ftruncate: mark module as obsolete; even MinGW provides it, now
25728         * modules/ftruncate (Status): Obsolete.
25729         (Notice): Say that.
25730         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
25731         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
25732
25733 2010-04-08  Bruno Haible  <bruno@clisp.org>
25734
25735         Fix side effects from tests-related modules.
25736         * modules/dprintf-posix (Comment): New section.
25737         * modules/fprintf-posix (Comment): Likewise.
25738         * modules/obstack-printf-posix (Comment): Likewise.
25739         * modules/printf-posix (Comment): Likewise.
25740         * modules/snprintf-posix (Comment): Likewise.
25741         * modules/sprintf-posix (Comment): Likewise.
25742         * modules/vasnprintf-posix (Comment): Likewise.
25743         * modules/vasprintf-posix (Comment): Likewise.
25744         * modules/vdprintf-posix (Comment): Likewise.
25745         * modules/vfprintf-posix (Comment): Likewise.
25746         * modules/vprintf-posix (Comment): Likewise.
25747         * modules/vsnprintf-posix (Comment): Likewise.
25748         * modules/vsprintf-posix (Comment): Likewise.
25749         * modules/xprintf-posix (Comment): Likewise.
25750         * modules/xvasprintf-posix (Comment): Likewise.
25751         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
25752         * modules/floorf-tests (Depends-on): Likewise.
25753         * modules/round-tests (Depends-on): Likewise.
25754         * modules/roundf-tests (Depends-on): Likewise.
25755         * modules/trunc-tests (Depends-on): Likewise.
25756         * modules/truncf-tests (Depends-on): Likewise.
25757         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
25758         'fprintf-posix' module is not present.
25759         * tests/test-floorf2.c (check): Likewise.
25760         * tests/test-trunc2.c (check): Likewise.
25761         * tests/test-truncf2.c (check): Likewise.
25762         * tests/test-round2.c (equal): Likewise.
25763         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25764
25765 2010-04-07  Karl Berry  <karl@gnu.org>
25766
25767         * config/srclist.txt,
25768         * config/srclistvars.sh,
25769         * config/srclist-update: doc fixes.
25770
25771 2010-04-07  Jim Meyering  <meyering@redhat.com>
25772
25773         maint.mk: add a PATH crosschecking syntax-check rule
25774         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
25775         Useful if you use a test like the one in help-version (coreutils,
25776         diffutils, grep, gzip) that ensures $(VERSION) matches what is
25777         printed by prog --version.
25778
25779 2010-04-06  Bruno Haible  <bruno@clisp.org>
25780
25781         Fix link error on mingw.
25782         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
25783         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
25784
25785 2010-04-06  Bruno Haible  <bruno@clisp.org>
25786
25787         Assume rmdir exists.
25788         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
25789
25790 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
25791
25792         doc: update users.txt
25793         * users.txt: Add gcal.
25794
25795 2010-04-06  Jim Meyering  <meyering@redhat.com>
25796
25797         init.sh: simply unset TMPDIR rather than risking env -i
25798         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
25799         although it probably works fine on all Unix-based systems, some
25800         systems (Cygwin?) cannot tolerate a totally cleared environment.
25801         Suggestion from Eric Blake.
25802
25803 2010-04-06  Jim Meyering  <meyering@redhat.com>
25804
25805         init.sh: portability fix: use env's POSIX-specified -i option not -u
25806         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
25807         than unportable env -u.  Solaris 5.11's env lacks support for -u.
25808
25809 2010-04-05  Bruno Haible  <bruno@clisp.org>
25810
25811         btowc: Work around Cygwin 1.7.2 bug.
25812         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
25813         does not map NUL to 0.
25814         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
25815
25816 2010-04-05  Bruno Haible  <bruno@clisp.org>
25817
25818         Make the multithread modules work on Cygwin 1.7.2.
25819         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
25820         imported symbols can be declared weak, so that it returns "no" on
25821         Cygwin 1.7.2.
25822
25823 2010-04-05  Bruno Haible  <bruno@clisp.org>
25824
25825         Use the module 'strncat'.
25826         * modules/unistr/u8-strncat (Depends-on): Add strncat.
25827
25828         Tests for module 'strncat'.
25829         * modules/strncat-tests: New file.
25830         * tests/test-strncat.c: New file.
25831
25832         New module 'strncat'.
25833         * lib/string.in.h (strncat): New declaration.
25834         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
25835         * m4/strncat.m4: New file, based on m4/memchr.m4.
25836         * modules/strncat: New file.
25837         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
25838         is declared.
25839         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
25840         REPLACE_STRNCAT.
25841         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
25842         REPLACE_STRNCAT.
25843         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
25844         module.
25845         * tests/test-string-c++.cc: Check signature of strncat.
25846
25847 2010-04-05  Jim Meyering  <meyering@redhat.com>
25848
25849         xstrtoumax-tests: convert to use init.sh
25850         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
25851         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25852         Use Exit, not exit.
25853         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25854
25855         xstrtoimax-tests: convert to use init.sh
25856         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
25857         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25858         Use Exit, not exit.
25859         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25860
25861 2010-04-05  Bruno Haible  <bruno@clisp.org>
25862
25863         sys_socket: Avoid #define replacements in C++ mode.
25864         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
25865         warning to the function if possible, rather than #defining the symbol
25866         to a dysfunctional alias.
25867
25868 2010-04-05  Bruno Haible  <bruno@clisp.org>
25869
25870         fseeko: Fix C++ test error on mingw.
25871         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
25872         gl_FUNC_FSEEKO.
25873         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
25874         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
25875         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
25876         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
25877
25878 2010-04-05  Bruno Haible  <bruno@clisp.org>
25879
25880         duplocale: Improve test output.
25881         * tests/test-duplocale.c (main): Print reason for skipped test.
25882
25883 2010-04-05  Bruno Haible  <bruno@clisp.org>
25884
25885         Assume rmdir exists.
25886         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
25887         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
25888
25889 2010-04-05  Bruno Haible  <bruno@clisp.org>
25890
25891         Fix link error on Solaris 8 with cc.
25892         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
25893
25894 2010-04-05  Bruno Haible  <bruno@clisp.org>
25895
25896         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25897         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
25898
25899 2010-04-05  Bruno Haible  <bruno@clisp.org>
25900
25901         vasprintf: Update documentation.
25902         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
25903
25904 2010-04-05  Bruno Haible  <bruno@clisp.org>
25905
25906         ptsname: Improve test.
25907         * tests/test-ptsname.c (main): Also try the various master names of BSD
25908         systems.
25909
25910 2010-04-05  Bruno Haible  <bruno@clisp.org>
25911
25912         memchr: Avoid a possible C++ test error.
25913         * lib/string.in.h (memchr): Provide declaration if function is missing.
25914         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
25915         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
25916         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
25917         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
25918
25919 2010-04-05  Bruno Haible  <bruno@clisp.org>
25920
25921         strtok_r: Improve idiom.
25922         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
25923         AC_LIBOBJ is used.
25924
25925 2010-04-05  Bruno Haible  <bruno@clisp.org>
25926
25927         strdup: Improve idiom.
25928         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
25929         AC_LIBOBJ is used.
25930         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
25931         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
25932         when AC_LIBOBJ is used.
25933
25934 2010-04-05  Bruno Haible  <bruno@clisp.org>
25935
25936         mbsinit, mbrtowc, wcrtomb: Improve idioms.
25937         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
25938         don't set REPLACE_MBSINIT to 1.
25939         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
25940         don't set REPLACE_MBRTOWC to 1.
25941         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
25942         exist, don't set REPLACE_MBSRTOWCS to 1.
25943         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
25944         exist, don't set REPLACE_MBSNRTOWCS to 1.
25945         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
25946         don't set REPLACE_WCRTOMB to 1.
25947         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
25948         exist, don't set REPLACE_WCSRTOMBS to 1.
25949         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
25950         exist, don't set REPLACE_WCSNRTOMBS to 1.
25951
25952 2010-04-05  Bruno Haible  <bruno@clisp.org>
25953
25954         ldexpl: Improve idiom.
25955         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
25956         make sure to set HAVE_DECL_LDEXPL to 0.
25957
25958 2010-04-05  Jim Meyering  <meyering@redhat.com>
25959
25960         xstrtol-tests: convert to use init.sh
25961         * modules/xstrtol-tests (Files): Add tests/init.sh.
25962         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25963         Use Exit, not exit.
25964         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25965
25966         atexit-tests: convert to use init.sh
25967         * modules/atexit-tests (Files): Add tests/init.sh.
25968         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25969         Use Exit, not exit.
25970         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25971
25972         init.sh: fix typo
25973         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
25974
25975         init.sh: make it easier for a test script to write to the tty, ...
25976         when using automake's parallel-tests mode.
25977         * tests/init.sh (stderr_fileno_): Define overridable variable.
25978         (warn_): New function, to use it.
25979         (fail_, skip_, framework_failure_): Use warn_.
25980
25981 2010-04-04  Bruno Haible  <bruno@clisp.org>
25982
25983         btowc: Avoid warning.
25984         * lib/btowc.c: Include <stdlib.h>.
25985         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
25986
25987 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25988             Bruno Haible  <bruno@clisp.org>
25989
25990         wchar: Port to NetBSD 1.5.
25991         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
25992         * lib/wctype.in.h (WEOF): Likewise.
25993
25994 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25995             Bruno Haible  <bruno@clisp.org>
25996
25997         Port extended stdio to NetBSD 1.5.
25998         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
25999         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
26000         older.
26001
26002 2010-04-04  Bruno Haible  <bruno@clisp.org>
26003
26004         string: Remove unused substitution.
26005         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
26006         HAVE_DECL_STRERROR.
26007         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
26008
26009 2010-04-04  Bruno Haible  <bruno@clisp.org>
26010
26011         strtod: Avoid a possible C++ test error.
26012         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
26013         set REPLACE_STRTOD.
26014
26015 2010-04-04  Bruno Haible  <bruno@clisp.org>
26016
26017         strerror: Update documentation.
26018         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
26019
26020 2010-04-04  Bruno Haible  <bruno@clisp.org>
26021
26022         stdio: Fix some C++ test errors on Solaris 8 with GCC.
26023         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
26024         _GL_CXXALIAS_SYS_CAST.
26025
26026 2010-04-04  Bruno Haible  <bruno@clisp.org>
26027
26028         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
26029         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
26030         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
26031         REPLACE_FREXPL to 1.
26032         * doc/posix-functions/frexpl.texi: Update documentation.
26033
26034 2010-04-04  Bruno Haible  <bruno@clisp.org>
26035
26036         math: Fix some C++ test errors on Solaris 8 and Cygwin.
26037         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
26038
26039 2010-04-04  Bruno Haible  <bruno@clisp.org>
26040
26041         Implement nanosleep for native Windows.
26042         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
26043
26044 2010-04-04  Bruno Haible  <bruno@clisp.org>
26045
26046         math: Fix some C++ test errors on Solaris 8.
26047         * lib/math.in.h (truncf, trunc): Use simpler idiom.
26048
26049 2010-04-04  Bruno Haible  <bruno@clisp.org>
26050
26051         math: Fix some C++ test errors on Cygwin.
26052         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
26053         truncl): Provide declaration if the system does not have it.
26054         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
26055         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
26056         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
26057         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
26058         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
26059         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
26060         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
26061         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
26062         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
26063         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
26064         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
26065         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
26066         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
26067         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
26068         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
26069         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
26070         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
26071         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26072         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26073         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
26074         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26075         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26076
26077 2010-04-04  Bruno Haible  <bruno@clisp.org>
26078
26079         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
26080         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
26081         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
26082         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26083         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
26084         * m4/isinf.m4 (gl_ISINF): Likewise.
26085         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26086
26087 2010-04-04  Bruno Haible  <bruno@clisp.org>
26088
26089         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
26090         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26091
26092 2010-04-04  Bruno Haible  <bruno@clisp.org>
26093
26094         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
26095         * modules/tmpfile (configure.ac): Update.
26096
26097         tmpfile: Fix C++ test error on mingw.
26098         * lib/stdio.in.h (tmpfile): New declaration.
26099         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
26100         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
26101         * modules/tmpfile (Depends-on): Add stdio.
26102         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
26103         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
26104         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
26105         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
26106         REPLACE_TMPFILE.
26107         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
26108
26109 2010-04-04  Bruno Haible  <bruno@clisp.org>
26110
26111         ioctl: Fix C++ test error on mingw.
26112         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
26113         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
26114         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
26115
26116 2010-04-03  Bruno Haible  <bruno@clisp.org>
26117
26118         wcwidth: Fix C++ test error on mingw.
26119         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
26120         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
26121         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
26122
26123 2010-04-03  Bruno Haible  <bruno@clisp.org>
26124
26125         nanosleep: Fix C++ test error on mingw.
26126         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
26127         * lib/time.in.h (nanosleep): Use modern idiom.
26128         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
26129         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
26130         REPLACE_NANOSLEEP to 1.
26131         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
26132         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
26133
26134 2010-04-03  Bruno Haible  <bruno@clisp.org>
26135
26136         strptime: Fix C++ test error on mingw.
26137         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
26138         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
26139         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
26140         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
26141         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
26142         not REPLACE_STRPTIME.
26143         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
26144         REPLACE_STRPTIME.
26145
26146 2010-04-03  Bruno Haible  <bruno@clisp.org>
26147
26148         timegm: Fix C++ test error on mingw.
26149         * lib/time.in.h (timegm): Use modern idiom.
26150         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
26151         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
26152         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
26153         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
26154
26155 2010-04-03  Bruno Haible  <bruno@clisp.org>
26156
26157         timegm: Assume declaration if function exists.
26158         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
26159         if it exists. Don't clobber ac_cv_func_timegm.
26160
26161 2010-04-03  Bruno Haible  <bruno@clisp.org>
26162
26163         time_r: Fix C++ test error on mingw.
26164         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
26165         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
26166         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
26167         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
26168         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
26169
26170 2010-04-03  Bruno Haible  <bruno@clisp.org>
26171
26172         time_r: Minor updates.
26173         * modules/time_r (Description): Mention the provided functions.
26174         * lib/time_r.c: Don't include <string.h>.
26175         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
26176         * doc/posix-functions/localtime_r.texi: Likewise.
26177
26178 2010-04-03  Bruno Haible  <bruno@clisp.org>
26179
26180         time: Fix regression introduced on 2010-03-08.
26181         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
26182         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
26183
26184 2010-04-03  Jim Meyering  <meyering@redhat.com>
26185
26186         maint.mk: don't silently disable project-specific syntax-check rules
26187         * top/maint.mk (_prohibit_regexp): Define, to help people realize
26188         that they need to convert their project-specific syntax-check rules
26189         to use the new _sc_search_regexp.
26190
26191 2010-04-03  Bruno Haible  <bruno@clisp.org>
26192
26193         fchdir: Fix regression introduced on 2010-03-08.
26194         * lib/unistd.in.h (fchdir): Fix declaration.
26195         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
26196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
26197         REPLACE_FCHDIR.
26198         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
26199         REPLACE_FCHDIR.
26200
26201 2010-04-03  Bruno Haible  <bruno@clisp.org>
26202
26203         getpagesize: Fix C++ test error on mingw.
26204         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
26205         system does not declare the function.
26206         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
26207         declared.
26208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26209         HAVE_DECL_GETPAGESIZE.
26210         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
26211
26212 2010-04-03  Bruno Haible  <bruno@clisp.org>
26213
26214         stdio: Make C++ tests work on mingw.
26215         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
26216         does not declare the function.
26217
26218 2010-04-03  Bruno Haible  <bruno@clisp.org>
26219
26220         ftello: Fix C++ test error on mingw.
26221         * lib/stdio.in.h (ftello): Use modern idiom.
26222         * lib/ftello.c (ftello): Renamed from rpl_ftello.
26223         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
26224         is missing and that it needs to be replaced.
26225         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
26226         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
26227         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
26228
26229 2010-04-03  Bruno Haible  <bruno@clisp.org>
26230
26231         fseeko: Fix C++ test error on mingw.
26232         * lib/stdio.in.h (fseeko): Use modern idiom.
26233         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
26234         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
26235         is missing and that it needs to be replaced.
26236         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
26237         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
26238         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
26239
26240 2010-04-03  Bruno Haible  <bruno@clisp.org>
26241
26242         mkstemp: Fix C++ test error on mingw.
26243         * lib/stdlib.in.h (mkstemp): Use modern idiom.
26244         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
26245         function is missing and that it needs to be replaced.
26246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
26247         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
26248
26249 2010-04-03  Bruno Haible  <bruno@clisp.org>
26250
26251         stpncpy: Fix C++ test error on mingw.
26252         * lib/string.in.h (stpncpy): Use modern idiom.
26253         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
26254         function is missing and that it needs to be replaced.
26255         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26256         REPLACE_STPNCPY.
26257         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
26258
26259 2010-04-03  Bruno Haible  <bruno@clisp.org>
26260
26261         sys_stat: Fix C++ test error on mingw.
26262         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
26263         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
26264
26265 2010-04-03  Bruno Haible  <bruno@clisp.org>
26266
26267         pty: Update doc.
26268         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
26269
26270 2010-04-03  Bruno Haible  <bruno@clisp.org>
26271
26272         unistd: Fix C++ test error on mingw.
26273         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
26274
26275 2010-04-03  Bruno Haible  <bruno@clisp.org>
26276
26277         Update doc regarding mingw.
26278         * doc/glibc-functions/openpty.texi: Update regarding mingw.
26279         * doc/glibc-functions/login_tty.texi: Likewise.
26280         * doc/glibc-functions/forkpty.texi: Likewise.
26281
26282 2010-04-03  Bruno Haible  <bruno@clisp.org>
26283
26284         stdlib: Avoid compilation failure of c-strtold on mingw.
26285         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
26286
26287 2010-04-03  Bruno Haible  <bruno@clisp.org>
26288
26289         locale: Make C++ tests work on Cygwin and mingw.
26290         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
26291         cannot provide the function.
26292         Reported by Simon Josefsson.
26293
26294 2010-04-03  Bruno Haible  <bruno@clisp.org>
26295
26296         localename: Port to MacOS X 10.6.
26297         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
26298         memory layout of the locales in MacOS X 10.6 as well.
26299         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
26300
26301 2010-04-02  Bruno Haible  <bruno@clisp.org>
26302
26303         gnulib-tool: Ensure that long-running tests are executed last.
26304         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
26305         running tests after the one for the other tests.
26306
26307 2010-04-02  Bruno Haible  <bruno@clisp.org>
26308
26309         gnulib-tool: Ensure the tests in the main directory are executed first.
26310         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
26311         start with the current directory.
26312
26313 2010-04-02  Bruno Haible  <bruno@clisp.org>
26314
26315         Tests for module 'havelib', moved here from GNU gettext.
26316         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
26317         modifications.
26318         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
26319         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
26320         with modifications.
26321         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
26322         modifications.
26323         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
26324         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
26325         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
26326         with modifications.
26327         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
26328         with modifications.
26329         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
26330         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
26331         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
26332         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
26333         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
26334         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
26335         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
26336         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
26337         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
26338         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
26339         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
26340         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
26341         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
26342         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
26343         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
26344         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
26345         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
26346         with modifications.
26347         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
26348         with modifications.
26349         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
26350         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
26351         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
26352         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
26353         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
26354         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
26355         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
26356         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
26357         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
26358         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
26359         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
26360         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
26361         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
26362         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
26363         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
26364         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
26365         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
26366         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
26367         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
26368         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
26369         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
26370         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
26371         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
26372         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
26373         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
26374         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
26375         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
26376         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
26377         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
26378         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
26379         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
26380         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
26381         * tests/havelib/rpathx/rpathx.c: New file, from
26382         gettext/autoconf-lib-link.
26383         * tests/havelib/rpathx/Makefile.am: New file, from
26384         gettext/autoconf-lib-link.
26385         * tests/havelib/rpathx/configure.ac: New file, from
26386         gettext/autoconf-lib-link with modifications.
26387         * tests/havelib/rpathy/rpathy.c: New file, from
26388         gettext/autoconf-lib-link.
26389         * tests/havelib/rpathy/Makefile.am: New file, from
26390         gettext/autoconf-lib-link.
26391         * tests/havelib/rpathy/configure.ac: New file, from
26392         gettext/autoconf-lib-link with modifications.
26393         * tests/havelib/rpathz/rpathz.c: New file, from
26394         gettext/autoconf-lib-link.
26395         * tests/havelib/rpathz/Makefile.am: New file, from
26396         gettext/autoconf-lib-link.
26397         * tests/havelib/rpathz/configure.ac: New file, from
26398         gettext/autoconf-lib-link with modifications.
26399         * tests/havelib/rpathlx/usex.c: New file, from
26400         gettext/autoconf-lib-link.
26401         * tests/havelib/rpathlx/Makefile.am: New file, from
26402         gettext/autoconf-lib-link.
26403         * tests/havelib/rpathlx/configure.ac: New file, from
26404         gettext/autoconf-lib-link with modifications.
26405         * tests/havelib/rpathly/usey.c: New file, from
26406         gettext/autoconf-lib-link.
26407         * tests/havelib/rpathly/Makefile.am: New file, from
26408         gettext/autoconf-lib-link.
26409         * tests/havelib/rpathly/configure.ac: New file, from
26410         gettext/autoconf-lib-link with modifications.
26411         * tests/havelib/rpathlz/usez.c: New file, from
26412         gettext/autoconf-lib-link.
26413         * tests/havelib/rpathlz/Makefile.am: New file, from
26414         gettext/autoconf-lib-link.
26415         * tests/havelib/rpathlz/configure.ac: New file, from
26416         gettext/autoconf-lib-link with modifications.
26417         * tests/havelib/rpathlyx/usey.c: New file, from
26418         gettext/autoconf-lib-link.
26419         * tests/havelib/rpathlyx/Makefile.am: New file, from
26420         gettext/autoconf-lib-link.
26421         * tests/havelib/rpathlyx/configure.ac: New file, from
26422         gettext/autoconf-lib-link with modifications.
26423         * tests/havelib/rpathlzyx/usez.c: New file, from
26424         gettext/autoconf-lib-link.
26425         * tests/havelib/rpathlzyx/Makefile.am: New file, from
26426         gettext/autoconf-lib-link.
26427         * tests/havelib/rpathlzyx/configure.ac: New file, from
26428         gettext/autoconf-lib-link with modifications.
26429         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
26430         with modifications.
26431
26432 2010-04-02  Bruno Haible  <bruno@clisp.org>
26433
26434         gnulib-tool: Create distributed built sources also for the tests.
26435         * gnulib-tool (func_create_testdir): Also generate distributed built
26436         sources in the tests directory.
26437
26438 2010-04-02  Bruno Haible  <bruno@clisp.org>
26439
26440         gnulib-tool: Obey user's environment variables.
26441         * gnulib-tool (func_create_testdir): When creating built sources,
26442         respect the environment variables for autoconf, automake, etc. given by
26443         the user.
26444
26445 2010-04-02  Bruno Haible  <bruno@clisp.org>
26446
26447         gnulib-tool: Provide the value of --m4-base to modules.
26448         * gnulib-tool (func_import, func_create_testdir): Emit a definition
26449         of gl_m4_base.
26450
26451 2010-04-02  Eric Blake  <eblake@redhat.com>
26452
26453         maint.mk: fix some fallout
26454         * NEWS: Document the incompatible change, and its effect on cfg.mk.
26455         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
26456
26457 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26458
26459         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
26460         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
26461         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
26462         (sc_cast_of_x_alloc_return_value): Likewise.
26463         (sc_cast_of_alloca_return_value): Likewise.
26464         (sc_space_tab): Likewise.
26465         (sc_prohibit_atoi_atof): Likewise.
26466         (sc_prohibit_magic_number_exit): Likewise.
26467         (sc_error_exit_success): Likewise.
26468         (sc_file_system): Likewise.
26469         (sc_prohibit_have_config_h): Likewise.
26470         (sc_require_config_h): Likewise.
26471         (sc_prohibit_HAVE_MBRTOWC): Likewise.
26472         (sc_obsolete_symbols): Likewise.
26473         (sc_changelog): Likewise.
26474         (sc_program_name): Likewise.
26475         (sc_the_the): Likewise.
26476         (sc_trailing_blank): Likewise.
26477         (sc_two_space_separator_in_usage): Likewise.
26478         (sc_useless_cpp_parens): Likewise.
26479         (sc_GPL_version): Likewise.
26480         (sc_GFDL_version): Likewise.
26481         (sc_texinfo_acronym): Likewise.
26482         (sc_prohibit_cvs_keyword): Likewise.
26483         (sc_prohibit_stat_st_blocks): Likewise.
26484         (sc_prohibit_S_IS_definition): Likewise.
26485         (sc_redundant_const): Likewise.
26486         (sc_makefile_TAB_only_indentation): Likewise.
26487         (sc_m4_quote_check): Likewise.
26488         (sc_makefile_path_separator_check): Likewise.
26489         (sc_copyright_check): Likewise.
26490         (sc_Wundef_boolean): Likewise.
26491         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26492
26493         maint.mk: match 0 or more whitespace-before-function-call '('
26494         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
26495         that have zero or two-and-more spaces between the function name
26496         and the open parenthesis.
26497         (sc_error_message_warn_fatal): Likewise.
26498         (sc_error_message_uppercase): Likewise.
26499         (sc_error_message_period): Likewise.
26500
26501 2010-03-31  Eric Blake  <eblake@redhat.com>
26502
26503         maint.mk: check for [ as well as test
26504         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
26505         Based on a libvirt report by Matthias Bolte.
26506
26507         gnumakefile: don't squelch _version output
26508         * top/GNUmakefile (_version): Create one-shot dependency rather
26509         than using $(shell) when version must be regenerated.
26510         (_autoreconf): Run verbosely, by default.
26511
26512         sys_time: avoid compiler warnings
26513         * lib/sys_time.in.h (includes): Ensure gcc pragma is
26514         unconditional, fixing regression from 2010-03-29.
26515         Reported by Simon Josefsson.
26516
26517 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26518
26519         maint.mk: s/_header_without_use/_sc_header_without_use/
26520         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
26521         (sc_prohibit_assert_without_use): Use the new name.
26522         (sc_prohibit_close_stream_without_use): Likewise.
26523         (sc_prohibit_getopt_without_use): Likewise.
26524         (sc_prohibit_quotearg_without_use): Likewise.
26525         (sc_prohibit_quote_without_use): Likewise.
26526         (sc_prohibit_long_options_without_use): Likewise.
26527         (sc_prohibit_inttostr_without_use): Likewise.
26528         (sc_prohibit_ignore_value_without_use): Likewise.
26529         (sc_prohibit_error_without_use): Likewise.
26530         (sc_prohibit_xalloc_without_use): Likewise.
26531         (sc_prohibit_hash_without_use): Likewise.
26532         (sc_prohibit_hash_pjw_without_use): Likewise.
26533         (sc_prohibit_safe_read_without_use): Likewise.
26534         (sc_prohibit_argmatch_without_use): Likewise.
26535         (sc_prohibit_canonicalize_without_use): Likewise.
26536         (sc_prohibit_root_dev_ino_without_use): Likewise.
26537         (sc_prohibit_openat_without_use): Likewise.
26538         (sc_prohibit_c_ctype_without_use): Likewise.
26539         (sc_prohibit_signal_without_use): Likewise.
26540         (sc_prohibit_intprops_without_use): Likewise.
26541
26542 2010-03-30  Eric Blake  <eblake@redhat.com>
26543
26544         maint: improve module indicators
26545         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
26546         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
26547         columns, and avoid extra macro expansion.
26548
26549         fdopendir: work around FreeBSD bug
26550         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26551         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
26552         * modules/dirent (Makefile.am): Substitute it.
26553         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
26554         declaration.
26555         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
26556         fix.
26557         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26558
26559 2010-03-29  Bruno Haible  <bruno@clisp.org>
26560
26561         Emit #pragma system_header after the inclusion guard, not before.
26562         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
26563         guard that spans the entire file, not before. This enables an
26564         optimization in GCC's preprocessor.
26565         * lib/ctype.in.h: Likewise.
26566         * lib/dirent.in.h: Likewise.
26567         * lib/errno.in.h: Likewise.
26568         * lib/float.in.h: Likewise.
26569         * lib/getopt.in.h: Likewise.
26570         * lib/iconv.in.h: Likewise.
26571         * lib/langinfo.in.h: Likewise.
26572         * lib/locale.in.h: Likewise.
26573         * lib/math.in.h: Likewise.
26574         * lib/netdb.in.h: Likewise.
26575         * lib/netinet_in.in.h: Likewise.
26576         * lib/pty.in.h: Likewise.
26577         * lib/sched.in.h: Likewise.
26578         * lib/se-selinux.in.h: Likewise.
26579         * lib/search.in.h: Likewise.
26580         * lib/spawn.in.h: Likewise.
26581         * lib/stdarg.in.h: Likewise.
26582         * lib/stdint.in.h: Likewise.
26583         * lib/string.in.h: Likewise.
26584         * lib/strings.in.h: Likewise.
26585         * lib/sys_file.in.h: Likewise.
26586         * lib/sys_ioctl.in.h: Likewise.
26587         * lib/sys_time.in.h: Likewise.
26588         * lib/sys_times.in.h: Likewise.
26589         * lib/sys_utsname.in.h: Likewise.
26590         * lib/sys_wait.in.h: Likewise.
26591         * lib/sysexits.in.h: Likewise.
26592         * lib/wctype.in.h: Likewise.
26593
26594 2010-03-28  James Youngman  <jay@gnu.org>
26595
26596         save-cwd: don't leak a file descriptor when the caller execs.
26597         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
26598         saved file descriptor.
26599         * modules/save-cwd (Depends-on): Depend on cloexec.
26600
26601 2010-03-29  Bruno Haible  <bruno@clisp.org>
26602
26603         Remove vestiges of fts-lgpl module.
26604         * lib/fts_.h: Assume GNULIB_FTS is 1.
26605         * lib/fts.c: Likewise.
26606         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26607
26608 2010-03-28  Bruno Haible  <bruno@clisp.org>
26609
26610         Fix definition of tests witness macro.
26611         * gnulib-tool (func_import): Fix definition of witness macro.
26612
26613 2010-03-28  Bruno Haible  <bruno@clisp.org>
26614
26615         Fix ioctl's protoype on glibc systems.
26616         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
26617         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
26618         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
26619         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
26620         signature. If not, arrange to replace the ioctl function.
26621         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26622         REPLACE_IOCTL.
26623         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
26624         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
26625         Reported by Ludovic Courtès <ludo@gnu.org>.
26626
26627 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
26628
26629         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
26630         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
26631         made it so grep -r --include=GLOB* ... did not work.
26632
26633 2010-03-26  Jim Meyering  <meyering@redhat.com>
26634             Eric Blake  <eblake@redhat.com>
26635
26636         maint.mk: prohibit use of test's -o and -a operators
26637         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
26638
26639 2010-03-28  Bruno Haible  <bruno@clisp.org>
26640
26641         Remove unused GNULIB_XYZ macro definitions.
26642         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
26643         invocation.
26644
26645 2010-03-28  Bruno Haible  <bruno@clisp.org>
26646
26647         Mark privileged tests modules.
26648         * modules/idpriv-drop-tests (Status): New section.
26649         * modules/idpriv-droptemp-tests (Status): New section.
26650
26651 2010-03-28  Bruno Haible  <bruno@clisp.org>
26652
26653         Split C++ tests into separate tests modules.
26654         * modules/dirent-c++-tests: New file, extracted from
26655         modules/dirent-tests.
26656         * modules/dirent-tests: Depend on it.
26657         * modules/fcntl-h-c++-tests: New file, extracted from
26658         modules/fcntl-h-tests.
26659         * modules/fcntl-h-tests: Depend on it.
26660         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
26661         * modules/glob-tests: Depend on it.
26662         * modules/iconv-h-c++-tests: New file, extracted from
26663         modules/iconv-h-tests.
26664         * modules/iconv-h-tests: Depend on it.
26665         * modules/langinfo-c++-tests: New file, extracted from
26666         modules/langinfo-tests.
26667         * modules/langinfo-tests: Depend on it.
26668         * modules/locale-c++-tests: New file, extracted from
26669         modules/locale-tests.
26670         * modules/locale-tests: Depend on it.
26671         * modules/math-c++-tests: New file, extracted from modules/math-tests.
26672         * modules/math-tests: Depend on it.
26673         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
26674         * modules/pty-tests: Depend on it.
26675         * modules/search-c++-tests: New file, extracted from
26676         modules/search-tests.
26677         * modules/search-tests: Depend on it.
26678         * modules/signal-c++-tests: New file, extracted from
26679         modules/signal-tests.
26680         * modules/signal-tests: Depend on it.
26681         * modules/spawn-c++-tests: New file, extracted from
26682         modules/spawn-tests.
26683         * modules/spawn-tests: Depend on it.
26684         * modules/stdio-c++-tests: New file, extracted from
26685         modules/stdio-tests.
26686         * modules/stdio-tests: Depend on it.
26687         * modules/stdlib-c++-tests: New file, extracted from
26688         modules/stdlib-tests.
26689         * modules/stdlib-tests: Depend on it.
26690         * modules/string-c++-tests: New file, extracted from
26691         modules/string-tests.
26692         * modules/string-tests: Depend on it.
26693         * modules/sys_ioctl-c++-tests: New file, extracted from
26694         modules/sys_ioctl-tests.
26695         * modules/sys_ioctl-tests: Depend on it.
26696         * modules/sys_select-c++-tests: New file, extracted from
26697         modules/sys_select-tests.
26698         * modules/sys_select-tests: Depend on it.
26699         * modules/sys_socket-c++-tests: New file, extracted from
26700         modules/sys_socket-tests.
26701         * modules/sys_socket-tests: Depend on it.
26702         * modules/sys_stat-c++-tests: New file, extracted from
26703         modules/sys_stat-tests.
26704         * modules/sys_stat-tests: Depend on it.
26705         * modules/sys_time-c++-tests: New file, extracted from
26706         modules/sys_time-tests.
26707         * modules/sys_time-tests: Depend on it.
26708         * modules/time-c++-tests: New file, extracted from modules/time-tests.
26709         * modules/time-tests: Depend on it.
26710         * modules/unistd-c++-tests: New file, extracted from
26711         modules/unistd-tests.
26712         * modules/unistd-tests: Depend on it.
26713         * modules/wchar-c++-tests: New file, extracted from
26714         modules/wchar-tests.
26715         * modules/wchar-tests: Depend on it.
26716         * modules/wctype-c++-tests: New file, extracted from
26717         modules/wctype-tests.
26718         * modules/wctype-tests: Depend on it.
26719         Reported by Simon Josefsson.
26720
26721 2010-03-28  Bruno Haible  <bruno@clisp.org>
26722
26723         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
26724         * gnulib-tool (func_exists_module): New function, extracted from
26725         func_verify_module.
26726         (func_verify_module): Use it.
26727         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
26728         'foo' only if 'foo' exists.
26729         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
26730         module.
26731
26732 2010-03-28  Bruno Haible  <bruno@clisp.org>
26733
26734         gnulib-tool: Add support for special categories of tests.
26735         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
26736         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
26737         (func_usage): Document them.
26738         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
26739         inc_unportable_tests, inc_all_tests): New variables.
26740         (func_acceptable): Consider these variables.
26741         (func_modules_transitive_closure): Make it work when the 'Status' field
26742         consists of multiple words.
26743         (func_import): Store and restore the values of inc_cxx_tests,
26744         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
26745         inc_all_tests in gnulib-comp.m4.
26746         (func_create_testdir): Set inc_all_tests to true.
26747         * doc/gnulib.texi (Extra tests modules): New section.
26748         Suggested by Jim Meyering.
26749
26750 2010-03-28  Bruno Haible  <bruno@clisp.org>
26751
26752         ansi-c++-opt: Allow turning off the C++ build by default.
26753         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
26754         gl_CXX_CHOICE_DEFAULT_NO is defined.
26755         Requested by Eric Blake.
26756
26757 2010-03-28  Bruno Haible  <bruno@clisp.org>
26758
26759         unistd: Avoid #define replacements in C++ mode.
26760         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
26761         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
26762         setsockopt, shutdown, select): In C++, attach a warning to the function
26763         if possible, rather than #defining the symbol to a dysfunctional alias.
26764         Reported by John W. Eaton <jwe@gnu.org>.
26765
26766 2010-03-28  Bruno Haible  <bruno@clisp.org>
26767
26768         Fix link errors on mingw.
26769         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
26770         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
26771         $(LIBSOCKET).
26772         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
26773         $(LIBSOCKET).
26774
26775 2010-03-28  Bruno Haible  <bruno@clisp.org>
26776             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26777
26778         lib-ignore: Determine different options for different compilers.
26779         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
26780         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
26781         Add comments.
26782         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
26783         * NEWS: Mention the change.
26784
26785 2010-03-27  Bruno Haible  <bruno@clisp.org>
26786
26787         Remove unused GNULIB_XYZ macro definitions.
26788         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26789         * modules/fseek (configure.ac): Likewise.
26790         * modules/ioctl (configure.ac): Likewise.
26791         * modules/open (configure.ac): Likewise.
26792         * modules/stdlib-safer (configure.ac): Likewise.
26793
26794 2010-03-27  Bruno Haible  <bruno@clisp.org>
26795
26796         Add a remark about certain modules.
26797         * modules/malloc (Comment): New section.
26798         * modules/realloc (Comment): Likewise.
26799         * modules/sigpipe (Comment): Likewise.
26800
26801 2010-03-27  Bruno Haible  <bruno@clisp.org>
26802
26803         Resolve conflict between the two kinds of module indicators.
26804         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
26805         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
26806         * modules/canonicalize (configure.ac): Invoke
26807         gl_MODULE_INDICATOR_FOR_TESTS.
26808         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
26809         GNULIB_XYZ.
26810         * tests/test-dirent-c++.cc: Likewise.
26811         * tests/test-dirent-safer.c: Likewise.
26812         * tests/test-dup2.c: Likewise.
26813         * tests/test-fchdir.c: Likewise.
26814         * tests/test-fcntl-h-c++.cc: Likewise.
26815         * tests/test-getopt.c: Likewise.
26816         * tests/test-getopt.h: Likewise.
26817         * tests/test-langinfo-c++.cc: Likewise.
26818         * tests/test-locale-c++.cc: Likewise.
26819         * tests/test-math-c++.cc: Likewise.
26820         * tests/test-pty-c++.cc: Likewise.
26821         * tests/test-search-c++.cc: Likewise.
26822         * tests/test-signal-c++.cc: Likewise.
26823         * tests/test-spawn-c++.cc: Likewise.
26824         * tests/test-stdio-c++.cc: Likewise.
26825         * tests/test-stdlib-c++.cc: Likewise.
26826         * tests/test-string-c++.cc: Likewise.
26827         * tests/test-sys_ioctl-c++.cc: Likewise.
26828         * tests/test-sys_select-c++.cc: Likewise.
26829         * tests/test-sys_socket-c++.cc: Likewise.
26830         * tests/test-sys_stat-c++.cc: Likewise.
26831         * tests/test-sys_time-c++.cc: Likewise.
26832         * tests/test-time-c++.cc: Likewise.
26833         * tests/test-unistd-c++.cc: Likewise.
26834         * tests/test-wchar-c++.cc: Likewise.
26835         * tests/uninorm/test-u8-nfc.c: Likewise.
26836         * tests/uninorm/test-u8-nfd.c: Likewise.
26837         * tests/uninorm/test-u8-nfkc.c: Likewise.
26838         * tests/uninorm/test-u8-nfkd.c: Likewise.
26839         * tests/uninorm/test-u16-nfc.c: Likewise.
26840         * tests/uninorm/test-u16-nfd.c: Likewise.
26841         * tests/uninorm/test-u16-nfkc.c: Likewise.
26842         * tests/uninorm/test-u16-nfkd.c: Likewise.
26843         * tests/uninorm/test-u32-nfc.c: Likewise.
26844         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26845         * tests/uninorm/test-u32-nfd.c: Likewise.
26846         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26847         * tests/uninorm/test-u32-nfkc.c: Likewise.
26848         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26849         * tests/uninorm/test-u32-nfkd.c: Likewise.
26850         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26851         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26852
26853 2010-03-27  Bruno Haible  <bruno@clisp.org>
26854
26855         Distinguish two kinds of module indicators.
26856         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
26857         gl_MODULE_INDICATOR.
26858         (gl_MODULE_INDICATOR): New macro.
26859         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26860         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
26861         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26862         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26863         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26864         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26865         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26866         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26867         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26868         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26869         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26870         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26871         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26872         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26873         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26874         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26875         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26876         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26877         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26878         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26879         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26880         * modules/cloexec (configure.ac): Likewise.
26881         * modules/getopt-gnu (configure.ac): Likewise.
26882         * modules/uninorm/u8-normalize (configure.ac): Likewise.
26883         * modules/uninorm/u16-normalize (configure.ac): Likewise.
26884         * modules/uninorm/u32-normalize (configure.ac): Likewise.
26885         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
26886
26887 2010-03-27  Bruno Haible  <bruno@clisp.org>
26888
26889         New module description field 'Comment'.
26890         * gnulib-tool: New option --extract-comment.
26891         (func_usage): Document it.
26892         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
26893         (func_get_comment): New function.
26894         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
26895
26896 2010-03-27  Bruno Haible  <bruno@clisp.org>
26897
26898         Addendum to 2010-02-07 commit.
26899         * gnulib-tool (func_usage): Document --extract-applicability option.
26900
26901 2010-03-27  Bruno Haible  <bruno@clisp.org>
26902
26903         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
26904         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
26905         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
26906         rather than link errors.
26907
26908 2010-03-27  Bruno Haible  <bruno@clisp.org>
26909
26910         Avoid side effects from tests-related modules on the compilation of lib.
26911         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
26912         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
26913         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
26914         parameter. Emit into AM_CPPFLAGS a definition of the designated C
26915         macro.
26916         (func_import): Define a witness macro. Assign it a value that depends
26917         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
26918         tests-related modules.
26919         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
26920         Reported by Jim Meyering.
26921
26922 2010-03-27  Bruno Haible  <bruno@clisp.org>
26923
26924         Factorize common .m4 code.
26925         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
26926         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
26927         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
26928         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
26929         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26930         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
26931         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
26932         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26933         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26934         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26935         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
26936         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26937         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26938         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26939         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26940         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
26941         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26942         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26943         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26944         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
26945         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
26946         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26947         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26948         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26949         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26950         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26951         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
26952         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
26953         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
26954         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26955         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26956         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26957
26958 2010-03-27  Bruno Haible  <bruno@clisp.org>
26959
26960         Fix a compilation error on Cygwin with g++ >= 4.3.
26961         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
26962         if it is undefined or if we alias it to chmod.
26963         (lstat): Don't warn about the use of this function if it is undefined
26964         or if we alias it to stat.
26965         Reported by Simon Josefsson.
26966
26967 2010-03-27  Bruno Haible  <bruno@clisp.org>
26968
26969         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
26970         * modules/getlogin (configure.ac): Update.
26971
26972         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
26973         * modules/getlogin_r (configure.ac): Update.
26974
26975         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
26976         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
26977         * modules/inet_ntop (configure.ac): Update.
26978
26979         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
26980         * modules/inet_pton (configure.ac): Update.
26981
26982         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
26983         * modules/mbslen (configure.ac): Update.
26984
26985         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
26986         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
26987         * modules/forkpty (configure.ac): Update.
26988         * modules/openpty (configure.ac): Update.
26989
26990 2010-03-26  Simon Josefsson  <simon@josefsson.org>
26991
26992         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
26993         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
26994
26995 2010-03-25  Eric Blake  <eblake@redhat.com>
26996
26997         maint: use pragma consistently across replacement headers
26998         * lib/ctype.in.h (system_header): Hoist for consistent placement.
26999         * lib/dirent.in.h (system_header): Likewise.
27000         * lib/errno.in.h (system_header): Likewise.
27001         * lib/float.in.h (system_header): Likewise.
27002         * lib/getopt.in.h (system_header): Likewise.
27003         * lib/iconv.in.h (system_header): Likewise.
27004         * lib/inttypes.in.h (system_header): Likewise.
27005         * lib/langinfo.in.h (system_header): Likewise.
27006         * lib/locale.in.h (system_header): Likewise.
27007         * lib/math.in.h (system_header): Likewise.
27008         * lib/netdb.in.h (system_header): Likewise.
27009         * lib/netinet_in.in.h (system_header): Likewise.
27010         * lib/pty.in.h (system_header): Likewise.
27011         * lib/sched.in.h (system_header): Likewise.
27012         * lib/se-selinux.in.h (system_header): Likewise.
27013         * lib/search.in.h (system_header): Likewise.
27014         * lib/spawn.in.h (system_header): Likewise.
27015         * lib/stdarg.in.h (system_header): Likewise.
27016         * lib/stdint.in.h (system_header): Likewise.
27017         * lib/string.in.h (system_header): Likewise.
27018         * lib/strings.in.h (system_header): Likewise.
27019         * lib/sys_file.in.h (system_header): Likewise.
27020         * lib/sys_ioctl.in.h (system_header): Likewise.
27021         * lib/sys_socket.in.h (system_header): Likewise.
27022         * lib/sys_times.in.h (system_header): Likewise.
27023         * lib/sys_utsname.in.h (system_header): Likewise.
27024         * lib/sys_wait.in.h (system_header): Likewise.
27025         * lib/sysexits.in.h (system_header): Likewise.
27026         * lib/unistd.in.h (system_header): Likewise.
27027         * lib/wctype.in.h (system_header): Likewise.
27028
27029         arpa/inet: fix mingw compilation warning
27030         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
27031         Reported by Matthew Bolte.
27032
27033 2010-03-25  Bruno Haible  <bruno@clisp.org>
27034
27035         Avoid collision between gnulib wrapper and libintl wrapper.
27036         * lib/printf.c (printf): Don't define if a printf wrapper is already
27037         defined in intl/printf.c.
27038         Reported by Michel Boaventura <michel@michelboaventura.com>.
27039
27040 2010-03-25  Bruno Haible  <bruno@clisp.org>
27041
27042         Use ANSI C.
27043         * lib/readutmp.h (getutent): Provide ANSI C prototype.
27044
27045 2010-03-25  Bruno Haible  <bruno@clisp.org>
27046
27047         Minor formatting changes.
27048         * lib/acosl.c: Insert space before function argument list.
27049         * lib/argz.c: Likewise.
27050         * lib/asinl.c: Likewise.
27051         * lib/expl.c: Likewise.
27052         * lib/gen-uni-tables.c: Likewise.
27053         * lib/gettext.h: Likewise.
27054         * lib/glthread/lock.h: Likewise.
27055         * lib/tanl.c: Likewise.
27056         * lib/uniname/uniname.c: Likewise.
27057         * tests/test-idpriv-drop.c: Likewise.
27058         * tests/test-idpriv-droptemp.c: Likewise.
27059         * tests/test-lock.c: Likewise.
27060         * tests/test-tls.c: Likewise.
27061         * lib/argp-help.c: Insert space before function-like macro argument
27062         list.
27063         * lib/memcmp.c: Likewise.
27064         * tests/test-base64.c: Likewise.
27065         * lib/localename.c: Insert space before sizeof's argument list.
27066         * lib/safe-alloc.h: Likewise.
27067         * lib/file-set.h: Insert space before macro argument list.
27068         * tests/test-argp.c: Likewise.
27069         * lib/argp-namefrob.h: Insert space before function parameter list.
27070         * lib/getaddrinfo.c: Likewise.
27071         * lib/netdb.in.h: Likewise.
27072         * lib/parse-duration.h: Likewise.
27073         * lib/parse-duration.c: Likewise.
27074         * lib/poll.c: Likewise.
27075         * lib/select.c: Likewise.
27076         * lib/trim.h: Likewise.
27077         * tests/test-usleep.c: Likewise.
27078         * lib/ldexpl.c: Insert space before function parameter list and before
27079         function argument list.
27080         * lib/logl.c: Likewise.
27081         * lib/sqrtl.c: Likewise.
27082         * lib/trim.c: Likewise.
27083         * lib/cosl.c: Use GNU style indentation. Insert space before function
27084         argument list.
27085         * lib/sinl.c: Likewise.
27086         * lib/tsearch.c: Insert space after 'for'.
27087         Reported by Jim Meyering.
27088
27089 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
27090
27091         * maint.mk (sc_Wundef_boolean): Check for the presence of the
27092         config header before grepping, as it's not present before
27093         autoreconf/configure are run.  Reported by Simon Josefsson.
27094
27095 2010-03-23  Bruno Haible  <bruno@clisp.org>
27096
27097         pt_chown: Make it work with automake < 1.11.
27098         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
27099         Reported by Simon Josefsson.
27100
27101 2010-03-23  Bruno Haible  <bruno@clisp.org>
27102
27103         pt_chown: Don't depend on GPLed modules.
27104         * lib/pt_chown.c: Don't include idpriv.h.
27105         (main): Don't drop privileges.
27106         * modules/pt_chown (Depends-on): Remove idpriv-drop.
27107         Reported by Simon Josefsson.
27108
27109 2010-03-24  Simon Josefsson  <simon@josefsson.org>
27110
27111         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
27112         suggestions from karl@freefriends.org (Karl Berry).
27113
27114 2010-03-22  Eric Blake  <eblake@redhat.com>
27115
27116         gethostname: further tweaks
27117         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
27118         are overriding gethostname.
27119         Suggested by Bruno Haible.
27120
27121 2010-03-21  Bruno Haible  <bruno@clisp.org>
27122
27123         Fix comments.
27124         * lib/forkpty.c (rpl_forkpty): Fix comment.
27125         * lib/openpty.c (rpl_openpty): Likewise.
27126         Reported by Eric Blake.
27127
27128 2010-03-22  Eric Blake  <eblake@redhat.com>
27129
27130         gethostname: fix build on mingw
27131         * lib/unistd.in.h (includes): Work around fact that mingw
27132         <winsock2.h> re-includes <unistd.h>, by avoiding any
27133         redeclarations if we are being included by <winsock2.h>.
27134         Reported by Matthias Bolte.
27135
27136 2010-03-21  Bruno Haible  <bruno@clisp.org>
27137
27138         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27139         * lib/forkpty.c (forkpty): New replacement function, from glibc with
27140         modifications.
27141         * lib/pty.in.h (forkpty): Update declaration. Add comments.
27142         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
27143         provide the replacement.
27144         * modules/forkpty (Depends-on): Add openpty, login_tty.
27145         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
27146         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
27147         * doc/glibc-functions/forkpty.texi: More supported platforms.
27148         * config/srclist.txt: Add forkpty.c (commented).
27149
27150 2010-03-21  Bruno Haible  <bruno@clisp.org>
27151
27152         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
27153         (Makefile.am): Verify that PTY_LIB is defined.
27154
27155         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
27156
27157 2010-03-21  Bruno Haible  <bruno@clisp.org>
27158
27159         Tests for module 'login_tty'.
27160         * modules/login_tty-tests: New file.
27161         * tests/test-login_tty.c: New file.
27162
27163         New module 'login_tty'.
27164         * lib/login_tty.c: New file.
27165         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
27166         * modules/login_tty: New file.
27167         * doc/glibc-functions/login_tty.texi: Mention the new module.
27168
27169 2010-03-21  Bruno Haible  <bruno@clisp.org>
27170
27171         login_tty: Documentation.
27172         * doc/glibc-functions/login_tty.texi: New file.
27173         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
27174
27175 2010-03-21  Bruno Haible  <bruno@clisp.org>
27176
27177         pty: Consistent macro naming.
27178         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
27179         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
27180         * modules/pty (configure.ac): Update.
27181
27182 2010-03-21  Bruno Haible  <bruno@clisp.org>
27183
27184         Tests for openpty: Make stricter.
27185         * tests/test-openpty.c (main): Add test of canonical processing and
27186         erase.
27187         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
27188
27189         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27190         * lib/openpty.c (openpty): New replacement function.
27191         * lib/pty.in.h: Include <termios.h>.
27192         (openpty): Update declaration. Add comments.
27193         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
27194         is not declared, arrange to provide the replacement. Check for _getpty
27195         and posix_openpt.
27196         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
27197         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
27198         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
27199         * modules/pty-tests (test_pty_c___LDADD): New variable.
27200         * doc/glibc-functions/openpty.texi: More supported platforms.
27201
27202 2010-03-21  Bruno Haible  <bruno@clisp.org>
27203
27204         setenv: Tweaks.
27205         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
27206         the test program.
27207         * doc/posix-functions/setenv.texi: Update platforms list.
27208
27209 2010-03-21  Bruno Haible  <bruno@clisp.org>
27210
27211         New module 'unlockpt'.
27212         * lib/unlockpt.c: New file, from glibc with modifications.
27213         * m4/unlockpt.m4: New file.
27214         * modules/unlockpt: New file.
27215         * lib/stdlib.in.h (unlockpt): New declaration.
27216         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
27217         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
27218         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
27219         HAVE_UNLOCKPT.
27220         * doc/posix-functions/unlockpt.texi: Mention the new module.
27221         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
27222         * config/srclist.txt: Add unlockpt.c (commented).
27223
27224 2010-03-21  Jim Meyering  <meyering@redhat.com>
27225
27226         maint.mk: prohibit inclusion of "intprops.h" without use
27227         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
27228
27229 2010-03-21  Bruno Haible  <bruno@clisp.org>
27230
27231         New module 'grantpt'.
27232         * lib/grantpt.c: New file, from glibc with modifications.
27233         * m4/grantpt.m4: New file.
27234         * modules/grantpt: New file.
27235         * lib/stdlib.in.h (grantpt): New declaration.
27236         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
27237         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
27238         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
27239         HAVE_GRANTPT.
27240         * doc/posix-functions/grantpt.texi: Mention the new module.
27241         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
27242         * config/srclist.txt: Add grantpt.c (commented).
27243
27244 2010-03-21  Bruno Haible  <bruno@clisp.org>
27245
27246         New module 'pt_chown'.
27247         * lib/pt_chown.c: New file, from glibc with modifications.
27248         * lib/pty-private.h: New file, from glibc with modifications.
27249         * modules/pt_chown: New file.
27250         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
27251
27252 2010-03-21  Bruno Haible  <bruno@clisp.org>
27253
27254         Tests for module 'ptsname'.
27255         * modules/ptsname-tests: New file.
27256         * tests/test-ptsname.c: New file.
27257
27258         New module 'ptsname'.
27259         * lib/ptsname.c: New file, from glibc with modifications.
27260         * m4/ptsname.m4: New file.
27261         * modules/ptsname: New file.
27262         * lib/stdlib.in.h (ptsname): New declaration.
27263         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
27264         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
27265         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
27266         HAVE_PTSNAME.
27267         * doc/posix-functions/ptsname.texi: Mention the new module.
27268         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
27269         * config/srclist.txt: Add ptsname.c (commented).
27270
27271 2010-03-21  Bruno Haible  <bruno@clisp.org>
27272
27273         Tests for module 'ttyname_r'.
27274         * modules/ttyname_r-tests: New file.
27275         * tests/test-ttyname_r.c: New file.
27276
27277         New module 'ttyname_r'.
27278         * lib/ttyname_r.c: New file.
27279         * m4/ttyname_r.m4: New file.
27280         * modules/ttyname_r: New file.
27281         * lib/unistd.in.h (ttyname_r): New declaration.
27282         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
27283         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
27284         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
27285         HAVE_TTYNAME_R.
27286         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
27287         * doc/posix-functions/ttyname_r.texi: Mention the new module.
27288
27289 2010-03-20  Bruno Haible  <bruno@clisp.org>
27290
27291         signal: Undefine macro definitions in C++ mode.
27292         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
27293         sigfillset): Undefine macro definitions from the system header in C++
27294         mode.
27295         Reported by John W. Eaton <jwe@gnu.org>.
27296
27297 2010-03-20  Bruno Haible  <bruno@clisp.org>
27298
27299         Ensure no #include statements inside extern "C" { ... }.
27300         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
27301         contain #include statements.
27302         * lib/time.in.h: Likewise.
27303
27304 2010-03-20  Bruno Haible  <bruno@clisp.org>
27305
27306         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
27307         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
27308         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
27309         Reported by John W. Eaton <jwe@gnu.org>.
27310
27311 2010-03-20  Bruno Haible  <bruno@clisp.org>
27312
27313         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
27314         Reported by Jim Meyering.
27315
27316 2010-03-20  Bruno Haible  <bruno@clisp.org>
27317
27318         pipe: Set errno upon failure.
27319         * lib/pipe.h: Specify that when -1 is returned, errno is set.
27320         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
27321         errno value in error message.
27322
27323 2010-03-20  Bruno Haible  <bruno@clisp.org>
27324             Jim Meyering  <meyering@redhat.com>
27325
27326         lchown: Avoid "unused variable" warning.
27327         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
27328
27329 2010-03-20  Bruno Haible  <bruno@clisp.org>
27330
27331         Work around unlink() bug on MacOS X 10.5.6.
27332         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
27333         attempting to unlink a parent directory.
27334         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
27335         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
27336         activate for the replacement function.
27337         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
27338
27339 2010-03-20  Bruno Haible  <bruno@clisp.org>
27340
27341         Fix link errors on Solaris 8.
27342         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
27343         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
27344
27345 2010-03-19  Jim Meyering  <meyering@redhat.com>
27346
27347         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
27348         The _LIBC implementation of build_range_exp correctly honors the
27349         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
27350         However, the non-_LIBC implementation would ignore that syntax-bit
27351         flag and return REG_ERANGE unconditionally.
27352         This change makes it honor that flag.
27353         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
27354         Make two pointer parameters "const".
27355         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
27356         (parse_bracket_exp): Update caller.
27357
27358         regex.m4: correct the reversed range endpoint ([b-a]) test
27359         * m4/regex.m4: When requiring that [b-a] evoke failure,
27360         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
27361         test pass once again for x86-based systems.
27362
27363 2010-03-19  Bruno Haible  <bruno@clisp.org>
27364
27365         scandir: Fix link error on Solaris 8.
27366         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
27367         macros.
27368
27369 2010-03-19  Bruno Haible  <bruno@clisp.org>
27370
27371         getusershell: Fix documentation.
27372         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
27373         module.
27374         * doc/glibc-functions/setusershell.texi: Likewise.
27375
27376         getusershell: Provide declaration, missing on Solaris 9.
27377         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
27378         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
27379         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
27380         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
27381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27382         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
27383         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
27384         HAVE_GETUSERSHELL.
27385         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
27386
27387 2010-03-19  Bruno Haible  <bruno@clisp.org>
27388
27389         wctype: Provide iswblank function.
27390         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
27391         exists and is fine.
27392         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
27393         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
27394         * tests/test-wctype.c (main): Re-enable the iswblank tests.
27395         * doc/posix-functions/iswblank.texi: Update.
27396
27397 2010-03-19  Bruno Haible  <bruno@clisp.org>
27398
27399         Tests of module 'pty' in C++ mode.
27400         * modules/pty-tests: New file.
27401         * tests/test-pty-c++.cc: New file.
27402         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27403
27404 2010-03-19  Eric Blake  <eblake@redhat.com>
27405
27406         logb: fix documentation
27407         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
27408         1.5 declaration bug.
27409
27410         forkpty, openpty: prefer glibc's const-safe prototype
27411         * lib/forkpty.c (rpl_forkpty): New file.
27412         * lib/openpty.c (rpl_openpty): Likewise.
27413         * modules/forkpty (Files): Distribute it.
27414         * modules/openpty (Files): Likewise.
27415         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
27416         check...
27417         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
27418         replacement for for non-const BSD signature.
27419         * modules/pty (Makefile.am): Substitute witnesses.
27420         * lib/pty.in.h (forkpty, openpty): Declare replacements.
27421         * tests/test-forkpty.c: Update signature check.
27422         * tests/test-openpty.c: Likewise.
27423         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
27424         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27425
27426         forkpty, openpty: split functions into new modules
27427         * modules/pty (Makefile.am): Substitute new witnesses.
27428         (Libraries): Move library detection...
27429         * modules/forkpty: ...into new module.
27430         * modules/openpty: Another new module.
27431         * modules/pty-tests: Rename and split...
27432         * modules/forkpty-tests: ...to this...
27433         * modules/openpty-tests: ...and this.
27434         * tests/test-pty.c: Rename and split...
27435         * tests/test-forkpty.c: ...to this...
27436         * tests/test-openpty.c: ...and this.
27437         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
27438         (gl_PTY): Split library searching...
27439         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
27440         (gl_FORKPTY, gl_OPENPTY): New macros.
27441         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
27442         * NEWS: Mention the split.
27443         * MODULES.html.sh (Misc): Document the modules.
27444         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
27445         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27446
27447         pty: improve replacement header
27448         * lib/pty.in.h: New file.
27449         * modules/pty (Files): Ship it.
27450         (Makefile.am): Always build replacement.
27451         * m4/pty.m4: Rename...
27452         * m4/pty_h.m4: ...to this.
27453         (gl_PTY): Modernize setting of witness macros; update check of
27454         forkpty to take proper advantage of cache.
27455         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
27456
27457         getopt: avoid compiler warning
27458         * lib/getopt.c (attribute_hidden): Remove unused macro.
27459
27460 2010-03-18  Bruno Haible  <bruno@clisp.org>
27461
27462         Fix link errors on Solaris 8.
27463         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
27464         * modules/search-tests (test_search_c___LDADD): Likewise.
27465         * modules/signal-tests (test_signal_c___LDADD): Likewise.
27466         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
27467         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
27468         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
27469         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
27470         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
27471         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
27472
27473 2010-03-18  Bruno Haible  <bruno@clisp.org>
27474
27475         Fix bug introduced on 2010-03-14.
27476         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
27477         (gl_SPAWN_H): Require it.
27478         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
27479         Reported by Simon Josefsson.
27480
27481 2010-03-18  Bruno Haible  <bruno@clisp.org>
27482
27483         Fix typo introduced on 2009-12-31.
27484         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
27485         posix_spawn_file_actions_adddup2.
27486
27487 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
27488         and Eric Blake  <eblake@redhat.com>
27489
27490         test-vc-list-files-git: make more robust
27491         * tests/test-vc-list-files-git.sh: Unset problematic environment
27492         variables.  Chain commands together.
27493
27494 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
27495
27496         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
27497         `AC_CHECK_DECL' invocation.
27498
27499 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
27500
27501         * lib/inttostr.c (inttostr): Make sure the invocation of verify
27502         appears before executable statements. Suggested by Petr Sumbera
27503         <Petr.Sumbera@Sun.COM>.
27504
27505 2010-03-14  Bruno Haible  <bruno@clisp.org>
27506
27507         * tests/test-flock.c (test_exclusive): Comment out a test that causes
27508         portability problems. Instead use a simpler test.
27509         (main): Check that invalid arguments are rejected only on Linux.
27510
27511 2010-03-14  Bruno Haible  <bruno@clisp.org>
27512
27513         Fix bug introduced on 2009-12-31.
27514         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27515         gl_PREREQ_SYS_H_WINSOCK2 always.
27516         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
27517         SYS_SOCKET_H variable.
27518         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
27519         Update comments.
27520         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
27521         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27522         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27523         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27524         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
27525
27526 2010-03-14  Bruno Haible  <bruno@clisp.org>
27527
27528         Fix values returned by sinl, cosl.
27529         * lib/trigl.h: Add specification comments.
27530         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
27531         that combines the values from the precomputed table with the values of
27532         the Chebyshev polynomials.
27533
27534 2010-03-14  Bruno Haible  <bruno@clisp.org>
27535
27536         Fix compilation error when modules 'posix_spawn[p]' are not used.
27537         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
27538         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
27539
27540 2010-03-14  Bruno Haible  <bruno@clisp.org>
27541
27542         Fix compilation error on mingw when module 'time_r' is not used.
27543         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
27544         is 1.
27545         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
27546         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27547         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
27548         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
27549
27550 2010-03-14  Bruno Haible  <bruno@clisp.org>
27551
27552         Fix compilation error with Sun C.
27553         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
27554         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
27555         instead of GCC specific ULONG_LONG_MAX.
27556         * lib/xstrtoll.c: Likewise.
27557         * lib/xstrtoull.c: Likewise.
27558
27559 2010-03-13  Bruno Haible  <bruno@clisp.org>
27560
27561         Allow the user to disable C++ code and tests.
27562         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
27563         (gl_PROG_ANSI_CXX): Require it.
27564
27565 2010-03-13  Bruno Haible  <bruno@clisp.org>
27566
27567         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
27568         cases.
27569
27570 2010-03-13  Bruno Haible  <bruno@clisp.org>
27571
27572         Test that gnulib does not break the standard C++ headers.
27573         * tests/test-locale-c++2.cc: New file.
27574         * modules/locale-tests (Files): Add it.
27575         (Makefile.am): Compile it for test-locale-c++.
27576         * tests/test-math-c++2.cc: New file.
27577         * modules/math-tests (Files): Add it.
27578         (Makefile.am): Compile it for test-math-c++.
27579         * tests/test-signal-c++2.cc: New file.
27580         * modules/signal-tests (Files): Add it.
27581         (Makefile.am): Compile it for test-signal-c++.
27582         * tests/test-stdio-c++2.cc: New file.
27583         * modules/stdio-tests (Files): Add it.
27584         (Makefile.am): Compile it for test-stdio-c++.
27585         * tests/test-stdlib-c++2.cc: New file.
27586         * modules/stdlib-tests (Files): Add it.
27587         (Makefile.am): Compile it for test-stdlib-c++.
27588         * tests/test-string-c++2.cc: New file.
27589         * modules/string-tests (Files): Add it.
27590         (Makefile.am): Compile it for test-string-c++.
27591         * tests/test-time-c++2.cc: New file.
27592         * modules/time-tests (Files): Add it.
27593         (Makefile.am): Compile it for test-time-c++.
27594         Reported by John W. Eaton <jwe@gnu.org>.
27595
27596 2010-03-13  Bruno Haible  <bruno@clisp.org>
27597
27598         * gnulib-tool (func_usage): Clarify which options are available for
27599         --create-testdir and --create-megatestdir.
27600
27601 2010-03-13  Bruno Haible  <bruno@clisp.org>
27602
27603         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
27604         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
27605         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
27606         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27607         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
27608         when appropriate.
27609         Reported by Jim Meyering.
27610
27611 2010-03-12  Simon Josefsson  <simon@josefsson.org>
27612
27613         * gnulib-tool (func_import): Explain origin of code.
27614
27615 2010-03-12  Bruno Haible  <bruno@clisp.org>
27616
27617         Fix problem with automake's definition of CXXLINK.
27618         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
27619         Reported by Simon Josefsson and Ludovic Courtès.
27620
27621 2010-03-12  Bruno Haible  <bruno@clisp.org>
27622
27623         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
27624         stable releases.
27625
27626 2010-03-11  Bruno Haible  <bruno@clisp.org>
27627
27628         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
27629         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
27630         whether the system provides one variant or multiple variants of the
27631         function.
27632         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
27633         C++ compilers.
27634         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
27635         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
27636         Reported by Jim Meyering.
27637
27638 2010-03-09  Simon Josefsson  <simon@josefsson.org>
27639
27640         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
27641
27642 2010-03-08  Bruno Haible  <bruno@clisp.org>
27643
27644         gnulib-tool: Add support for --libtool in --create-testdir.
27645         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
27646         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
27647
27648 2010-03-08  Eric Blake  <eblake@redhat.com>
27649
27650         gnulib-tool.texi: mention possibility of git submodule
27651         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
27652         submodules.
27653         * doc/.gitignore: Ignore another generated file.
27654
27655 2010-03-08  Karl Berry  <karl@gnu.org>
27656
27657         * doc/gnulib-tool.texi (VCS Issues): Mention third option
27658         of committing gnulib files while skipping others.
27659
27660 2010-03-07  Bruno Haible  <bruno@clisp.org>
27661
27662         Tests of module 'wctype' in C++ mode.
27663         * tests/test-wctype-c++.cc: New file.
27664         * modules/wctype-tests (Files): Add it and tests/signature.h.
27665         (Depends-on): Add ansi-c++-opt.
27666         (Makefile.am): Arrange to compile and run test-wctype-c++.
27667
27668         Tests of module 'wchar' in C++ mode.
27669         * tests/test-wchar-c++.cc: New file.
27670         * modules/wchar-tests (Files): Add it and tests/signature.h.
27671         (Depends-on): Add ansi-c++-opt.
27672         (Makefile.am): Arrange to compile and run test-wchar-c++.
27673         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
27674         gl_MODULE_INDICATOR.
27675
27676         Tests of module 'unistd' in C++ mode.
27677         * tests/test-unistd-c++.cc: New file.
27678         * modules/unistd-tests (Files): Add it and tests/signature.h.
27679         (Depends-on): Add ansi-c++-opt.
27680         (Makefile.am): Arrange to compile and run test-unistd-c++.
27681         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
27682         gl_MODULE_INDICATOR.
27683
27684         Tests of module 'time' in C++ mode.
27685         * tests/test-time-c++.cc: New file.
27686         * modules/time-tests (Files): Add it and tests/signature.h.
27687         (Depends-on): Add ansi-c++-opt.
27688         (Makefile.am): Arrange to compile and run test-time-c++.
27689         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27690
27691         Tests of module 'sys_time' in C++ mode.
27692         * tests/test-sys_time-c++.cc: New file.
27693         * modules/sys_time-tests (Files): Add it and tests/signature.h.
27694         (Depends-on): Add ansi-c++-opt.
27695         (Makefile.am): Arrange to compile and run test-sys_time-c++.
27696         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
27697         gl_MODULE_INDICATOR.
27698
27699         Tests of module 'sys_stat' in C++ mode.
27700         * tests/test-sys_stat-c++.cc: New file.
27701         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
27702         (Depends-on): Add ansi-c++-opt.
27703         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
27704         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
27705         gl_MODULE_INDICATOR.
27706
27707         Tests of module 'sys_socket' in C++ mode.
27708         * tests/test-sys_socket-c++.cc: New file.
27709         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
27710         (Depends-on): Add ansi-c++-opt.
27711         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
27712         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
27713         gl_MODULE_INDICATOR.
27714
27715         Tests of module 'sys_select' in C++ mode.
27716         * tests/test-sys_select-c++.cc: New file.
27717         * modules/sys_select-tests (Files): Add it and tests/signature.h.
27718         (Depends-on): Add ansi-c++-opt.
27719         (Makefile.am): Arrange to compile and run test-sys_select-c++.
27720         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
27721         gl_MODULE_INDICATOR.
27722
27723         Tests of module 'sys_ioctl' in C++ mode.
27724         * tests/test-sys_ioctl-c++.cc: New file.
27725         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
27726         (Depends-on): Add ansi-c++-opt.
27727         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
27728         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
27729         gl_MODULE_INDICATOR.
27730
27731         Tests of module 'string' in C++ mode.
27732         * tests/test-string-c++.cc: New file.
27733         * modules/string-tests (Files): Add it and tests/signature.h.
27734         (Depends-on): Add ansi-c++-opt.
27735         (Makefile.am): Arrange to compile and run test-string-c++.
27736         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
27737         gl_MODULE_INDICATOR.
27738
27739         Tests of module 'stdlib' in C++ mode.
27740         * tests/test-stdlib-c++.cc: New file.
27741         * modules/stdlib-tests (Files): Add it and tests/signature.h.
27742         (Depends-on): Add ansi-c++-opt.
27743         (Makefile.am): Arrange to compile and run test-stdlib-c++.
27744         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
27745         gl_MODULE_INDICATOR.
27746
27747         Tests of module 'stdio' in C++ mode.
27748         * tests/test-stdio-c++.cc: New file.
27749         * modules/stdio-tests (Files): Add it and tests/signature.h.
27750         (Depends-on): Add ansi-c++-opt.
27751         (Makefile.am): Arrange to compile and run test-stdio-c++.
27752         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
27753         gl_MODULE_INDICATOR.
27754
27755         Tests of module 'spawn' in C++ mode.
27756         * tests/test-spawn-c++.cc: New file.
27757         * modules/spawn-tests (Files): Add it and tests/signature.h.
27758         (Depends-on): Add ansi-c++-opt.
27759         (Makefile.am): Arrange to compile and run test-spawn-c++.
27760         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
27761         gl_MODULE_INDICATOR.
27762
27763         Tests of module 'signal' in C++ mode.
27764         * tests/test-signal-c++.cc: New file.
27765         * modules/signal-tests (Files): Add it and tests/signature.h.
27766         (Depends-on): Add ansi-c++-opt.
27767         (Makefile.am): Arrange to compile and run test-signal-c++.
27768         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
27769         gl_MODULE_INDICATOR.
27770
27771         Tests of module 'search' in C++ mode.
27772         * tests/test-search-c++.cc: New file.
27773         * modules/search-tests (Files): Add it and tests/signature.h.
27774         (Depends-on): Add ansi-c++-opt.
27775         (Makefile.am): Arrange to compile and run test-search-c++.
27776         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
27777         gl_MODULE_INDICATOR.
27778
27779         Tests of module 'math' in C++ mode.
27780         * tests/test-math-c++.cc: New file.
27781         * modules/math-tests (Files): Add it and tests/signature.h.
27782         (Depends-on): Add ansi-c++-opt.
27783         (Makefile.am): Arrange to compile and run test-math-c++.
27784         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27785
27786         Tests of module 'locale' in C++ mode.
27787         * tests/test-locale-c++.cc: New file.
27788         * modules/locale-tests (Files): Add it and tests/signature.h.
27789         (Depends-on): Add ansi-c++-opt.
27790         (Makefile.am): Arrange to compile and run test-locale-c++.
27791         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
27792         gl_MODULE_INDICATOR.
27793
27794         Tests of module 'langinfo' in C++ mode.
27795         * tests/test-langinfo-c++.cc: New file.
27796         * modules/langinfo-tests (Files): Add it and tests/signature.h.
27797         (Depends-on): Add ansi-c++-opt.
27798         (Makefile.am): Arrange to compile and run test-langinfo-c++.
27799         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
27800         gl_MODULE_INDICATOR.
27801
27802         Tests of module 'iconv-h' in C++ mode.
27803         * tests/test-iconv-h-c++.cc: New file.
27804         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
27805         (Depends-on): Add ansi-c++-opt.
27806         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
27807
27808         Tests of module 'glob' in C++ mode.
27809         * tests/test-glob-c++.cc: New file.
27810         * modules/glob-tests (Files): Add it.
27811         (Depends-on): Add ansi-c++-opt.
27812         (Makefile.am): Arrange to compile and run test-glob-c++.
27813
27814         Tests of module 'fcntl-h' in C++ mode.
27815         * tests/test-fcntl-h-c++.cc: New file.
27816         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
27817         (Depends-on): Add ansi-c++-opt.
27818         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
27819         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
27820         gl_MODULE_INDICATOR.
27821
27822         Tests of module 'dirent' in C++ mode.
27823         * tests/test-dirent-c++.cc: New file.
27824         * modules/dirent-tests (Files): Add it and tests/signature.h.
27825         (Depends-on): Add ansi-c++-opt.
27826         (Makefile.am): Arrange to compile and run test-dirent-c++.
27827         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27828         gl_MODULE_INDICATOR.
27829
27830         New module 'ansi-c++-opt'.
27831         * modules/ansi-c++-opt: New file.
27832         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
27833
27834         Document C++ namespace mode.
27835         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
27836
27837         wctype: Avoid #define replacements in C++ mode.
27838         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
27839         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
27840         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
27841         In C++, define a namespaced alias symbol.
27842         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
27843         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
27844         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
27845         rule.
27846
27847         wchar: Avoid #define replacements in C++ mode.
27848         * lib/wchar.in.h: Include c++defs.h.
27849         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
27850         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
27851         symbol.
27852         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
27853         * modules/wchar (Depends-on): Add c++defs.
27854         (Makefile.am): Update wchar.h rule.
27855
27856         unistd: Avoid #define replacements in C++ mode.
27857         * lib/unistd.in.h: Include c++defs.h.
27858         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
27859         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
27860         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
27861         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
27862         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
27863         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
27864         symbol.
27865         (environ): Update.
27866         * modules/unistd (Depends-on): Add c++defs.
27867         (Makefile.am): Update unistd.h rule.
27868
27869         time: Avoid #define replacements in C++ mode.
27870         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
27871         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
27872         define a namespaced alias symbol.
27873         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
27874         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
27875         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
27876         * modules/time (Depends-on): Add c++defs, warn-on-use.
27877         (Makefile.am): Update time.h rule.
27878         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27879         * modules/nanosleep (configure.ac): Likewise.
27880         * modules/strptime (configure.ac): Likewise.
27881         * modules/timegm (configure.ac): Likewise.
27882
27883         sys_time: Avoid #define replacements in C++ mode.
27884         * lib/sys_time.in.h: Include c++defs.h.
27885         (gettimeofday): In C++, define a namespaced alias symbol.
27886         * modules/sys_time (Depends-on): Add c++defs.
27887         (Makefile.am): Update sys/time.h rule.
27888
27889         sys_stat: Avoid #define replacements in C++ mode.
27890         * lib/sys_stat.in.h: Include c++defs.h.
27891         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
27892         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
27893         namespaced alias symbol.
27894         In C++, define a namespaced alias symbol.
27895         * modules/sys_stat (Depends-on): Add c++defs.
27896         (Makefile.am): Update sys/stat.h rule.
27897
27898         sys_socket: Avoid #define replacements in C++ mode.
27899         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
27900         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
27901         definitions also when the system has a <sys/socket.h>.
27902         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27903         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
27904         In C++, define a namespaced alias symbol.
27905         * modules/sys_socket (Depends-on): Add c++defs.
27906         (Makefile.am): Update sys/socket.h rule.
27907
27908         sys_select: Avoid #define replacements in C++ mode.
27909         * lib/sys_select.in.h: Include c++defs.h. Enable the function
27910         definitions also when the system has a <sys/select.h>.
27911         (select): In C++, define a namespaced alias symbol.
27912         * modules/sys_select (Depends-on): Add c++defs.
27913         (Makefile.am): Update sys/select.h rule.
27914
27915         sys_ioctl: Avoid #define replacements in C++ mode.
27916         * lib/sys_ioctl.in.h: Include c++defs.h.
27917         (ioctl): In C++, define a namespaced alias symbol.
27918         * modules/sys_ioctl (Depends-on): Add c++defs.
27919         (Makefile.am): Update sys/ioctl.h rule.
27920
27921         string: Avoid #define replacements in C++ mode.
27922         * lib/string.in.h: Include c++defs.h.
27923         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
27924         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27925         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27926         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
27927         strsignal, strverscmp): In C++, define a namespaced alias symbol.
27928         * modules/string (Depends-on): Add c++defs.
27929         (Makefile.am): Update string.h rule.
27930
27931         stdlib: Avoid #define replacements in C++ mode.
27932         * lib/stdlib.in.h: Include c++defs.h.
27933         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
27934         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
27935         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
27936         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
27937         symbol.
27938         * modules/stdlib (Depends-on): Add c++defs.
27939         (Makefile.am): Update stdlib.h rule.
27940
27941         stdio: Avoid #define replacements in C++ mode.
27942         * lib/stdio.in.h: Include c++defs.h.
27943         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
27944         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
27945         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
27946         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
27947         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
27948         namespaced alias symbol.
27949         * modules/stdio (Depends-on): Add c++defs.
27950         (Makefile.am): Update stdio.h rule.
27951
27952         spawn: Avoid #define replacements in C++ mode.
27953         * lib/spawn.in.h: Include c++defs.h.
27954         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27955         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27956         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27957         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27958         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27959         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27960         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27961         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27962         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27963         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27964         In C++, define a namespaced alias symbol.
27965         * modules/spawn (Depends-on): Add c++defs.
27966         (Makefile.am): Update spawn.h rule.
27967
27968         signal: Avoid #define replacements in C++ mode.
27969         * lib/signal.in.h: Include c++defs.h.
27970         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27971         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
27972         namespaced alias symbol.
27973         * modules/signal (Depends-on): Add c++defs.
27974         (Makefile.am): Update signal.h rule.
27975
27976         search: Avoid #define replacements in C++ mode.
27977         * lib/search.in.h: Include c++defs.h.
27978         (_gl_search_compar_fn, _gl_search_action_fn): New types.
27979         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
27980         symbol.
27981         * modules/search (Depends-on): Add c++defs.
27982         (Makefile.am): Update search.h rule.
27983
27984         math: Avoid #define replacements in C++ mode.
27985         * lib/math.in.h: Include c++defs.h.
27986         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
27987         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
27988         trunc, truncl): In C++, define a namespaced alias symbol.
27989         * modules/math (Depends-on): Add c++defs.
27990         (Makefile.am): Update math.h rule.
27991
27992         locale: Avoid #define replacements in C++ mode.
27993         * lib/locale.in.h: Include c++defs.h.
27994         (duplocale): In C++, define a namespaced alias symbol.
27995         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
27996         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
27997         * modules/locale (Depends-on): Add c++defs.
27998         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
27999
28000         langinfo: Avoid #define replacements in C++ mode.
28001         * lib/langinfo.in.h: Include c++defs.h.
28002         (nl_langinfo): In C++, define a namespaced alias symbol.
28003         * modules/langinfo (Depends-on): Add c++defs.
28004         (Makefile.am): Update langinfo.h rule.
28005
28006         iconv-h: Avoid #define replacements in C++ mode.
28007         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
28008         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
28009         symbol.
28010         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
28011         whenever iconv is present.
28012         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
28013         (Makefile.am): Update iconv.h rule.
28014
28015         glob: Avoid #define replacements in C++ mode.
28016         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
28017         (_gl_glob_errfunc_fn): New type.
28018         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
28019         symbol.
28020         * modules/glob (Depends-on): Add c++defs, warn-on-use.
28021         (Makefile.am): Update glob.h rule.
28022
28023         fcntl-h: Avoid #define replacements in C++ mode.
28024         * lib/fcntl.in.h: Include c++defs.h.
28025         (fcntl, open, openat): In C++, define a namespaced alias symbol.
28026         * modules/fcntl-h (Depends-on): Add c++defs.
28027         (Makefile.am): Update fcntl.h rule.
28028
28029         dirent: Avoid #define replacements in C++ mode.
28030         * lib/dirent.in.h: Include c++defs.h.
28031         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
28032         namespaced alias symbol.
28033         (dirfd): Update declaration.
28034         * modules/dirent (Depends-on): Add c++defs.
28035         (Makefile.am): Update dirent.h rule.
28036
28037         ctype: Make it usable in C++ code.
28038         * lib/ctype.in.h: Include c++defs.h.
28039         (isblank): Declare as extern "C".
28040         * modules/ctype (Depends-on): Add c++defs.
28041         (Makefile.am): Update ctype.h rule.
28042
28043         New module 'c++defs'.
28044         * modules/c++defs: New file.
28045         * build-aux/c++defs.h: New file.
28046         Reported by John W. Eaton <jwe@gnu.org>.
28047
28048 2010-03-07  Bruno Haible  <bruno@clisp.org>
28049
28050         logb: Provide missing declaration for Cygwin.
28051         * lib/math.in.h (logb): New declaration.
28052         * m4/logb.m4: New file.
28053         * modules/logb (Files): Add m4/logb.m4.
28054         (Depends-on): Add math.
28055         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
28056         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
28057         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
28058         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
28059         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
28060
28061 2010-03-07  Bruno Haible  <bruno@clisp.org>
28062
28063         Fix test-cond link error.
28064         * tests/test-cond.c: Include <stdio.h>.
28065
28066 2010-03-07  Bruno Haible  <bruno@clisp.org>
28067
28068         Fix test-dirent-safer link error.
28069         * modules/dirent-safer-tests (Makefile.am): Define
28070         test_dirent_safer_LDADD.
28071
28072 2010-03-07  Bruno Haible  <bruno@clisp.org>
28073
28074         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
28075         among default module list.
28076
28077 2010-03-07  Bruno Haible  <bruno@clisp.org>
28078
28079         Fix link error on platforms with GNU libiconv.
28080         * modules/unistr/u8-strcoll-tests (Makefile): Define
28081         test_u8_strcoll_LDADD.
28082         * modules/unistr/u16-strcoll-tests (Makefile): Define
28083         test_u16_strcoll_LDADD.
28084         * modules/unistr/u32-strcoll-tests (Makefile): Define
28085         test_u32_strcoll_LDADD.
28086
28087 2010-03-07  Bruno Haible  <bruno@clisp.org>
28088
28089         Use POSIX declarations for socket functions.
28090         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
28091         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
28092         rpl_sendto): Change declaration to match POSIX.
28093         * lib/connect.c (rpl_connect): Likewise.
28094         * lib/accept.c (rpl_accept): Likewise.
28095         * lib/bind.c (rpl_bind): Likewise.
28096         * lib/getpeername.c (rpl_getpeername): Likewise.
28097         * lib/getsockname.c (rpl_getsockname): Likewise.
28098         * lib/recv.c (rpl_recv): Likewise.
28099         * lib/send.c (rpl_send): Likewise.
28100         * lib/recvfrom.c (rpl_recvfrom): Likewise.
28101         * lib/sendto.c (rpl_sendto): Likewise.
28102
28103 2010-03-06  Bruno Haible  <bruno@clisp.org>
28104
28105         Clarify access, euidaccess, faccessat.
28106         * doc/posix-functions/faccessat.texi: Mention security problem under
28107         "Other problems", not "Portability problems".
28108         * doc/posix-functions/access.texi: Likewise. Mention a related security
28109         problem.
28110         * doc/glibc-functions/euidaccess.texi: Mention security problems.
28111         * lib/euidaccess.c: Add comments about platforms.
28112         * lib/unistd.in.h (access, euidaccess): Add warnings.
28113
28114 2010-03-07  Bruno Haible  <bruno@clisp.org>
28115
28116         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
28117         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
28118         (POSIX_SPAWN_SETSCHEDULER): Likewise.
28119         (POSIX_SPAWN_USEVFORK): Define in a way that works when
28120         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28121         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
28122         declare when POSIX_SPAWN_SETSCHEDULER is zero.
28123         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
28124         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
28125         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
28126         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
28127         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
28128         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
28129         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
28130         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
28131         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
28132         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
28133         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
28134         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
28135         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
28136         Likewise.
28137         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
28138         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
28139         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
28140         Likewise.
28141         * tests/test-spawn.c (main): Make it work when
28142         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28143
28144 2010-03-07  Bruno Haible  <bruno@clisp.org>
28145
28146         Fix incorrect Makefile.am generation in German locale.
28147         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28148         Execute sed command with character range in C locale.
28149
28150 2010-03-06  Bruno Haible  <bruno@clisp.org>
28151
28152         Tests for module 'iconv-h'.
28153         * modules/iconv-h-tests: New file.
28154         * tests/test-iconv-h.c: New file.
28155
28156         New module 'iconv-h'.
28157         * modules/iconv-h: New file.
28158         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
28159         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
28160         (configure.ac): Remove gl_ICONV_H.
28161         (Makefile.am): Remove rule for iconv.h.
28162
28163 2010-03-06  Bruno Haible  <bruno@clisp.org>
28164
28165         More consistent naming of *.m4 files.
28166         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
28167         * modules/wctype (Files): Update.
28168
28169         More consistent naming of *.m4 files.
28170         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
28171         * modules/wchar (Files): Update.
28172
28173 2010-03-06  Jim Meyering  <meyering@redhat.com>
28174
28175         euidaccess: relax license to LGPLv2+
28176         * modules/euidaccess (License): Relax to LGPLv2+.
28177
28178 2010-03-06  Bruno Haible  <bruno@clisp.org>
28179
28180         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
28181         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
28182         (Makefile.am): Augment lib_SOURCES instead.
28183
28184 2010-03-04  Jim Meyering  <meyering@redhat.com>
28185
28186         utime: remove obsolete module
28187         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
28188         unnecessary for years, and has been marked as obsolete for 10 months.
28189         * modules/utime: Remove file.
28190         * lib/utime.c: Remove file.
28191         * m4/utime.m4: Remove file.
28192         * m4/utimes-null.m4: Remove file.
28193         * doc/posix-functions/utime.texi (utime): Remove reference to
28194         the module.  Move the sole "fixed by gnulib" item into the
28195         "problems not fixed by Gnulib" list.
28196         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
28197
28198 2010-03-05  Simon Josefsson  <simon@josefsson.org>
28199
28200         * modules/exit (License): Relax license to LGPLv2+.
28201         (Status): Mark as obsolete.
28202         * NEWS: Mention deprecated 'exit' module.
28203         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
28204         of now obsolete 'exit'.
28205
28206 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28207
28208         fts-lgpl: remove unused module
28209         * modules/fts-lgpl: Remove.
28210         * MODULES.html.sh (func_all_modules): Adjust.
28211         * check-module (find_included_lib_files): Adjust.
28212         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
28213
28214 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
28215
28216         copy-acl: enhance Solaris ACL error handling
28217         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
28218         * lib/set-mode-acl.c (qset_acl): Likewise.
28219
28220 2010-03-02  Bruno Haible  <bruno@clisp.org>
28221
28222         spawn: Don't override the system defined values on FreeBSD 8.
28223         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
28224         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
28225         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
28226         if HAVE_POSIX_SPAWN is 1.
28227         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
28228
28229 2010-03-01  Bruno Haible  <bruno@clisp.org>
28230
28231         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
28232         regarding Automake.
28233
28234 2010-02-25  Bruno Haible  <bruno@clisp.org>
28235
28236         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
28237         * gnulib-tool: Define 'echo' as a function only before the ksh alias
28238         setting, not afterwards.
28239         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
28240
28241 2010-02-24  Eric Blake  <eblake@redhat.com>
28242
28243         bootstrap, git-version-gen: use timestamp
28244         * build-aux/git-version-gen (scriptversion): Force UTC.
28245         * build-aux/bootstrap (scriptversion): New variable.
28246
28247         bootstrap: allow older git
28248         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
28249         older than 1.6.4.  Requested by the libvirt project.
28250
28251 2010-02-23  Eric Blake  <eblake@redhat.com>
28252
28253         warn-on-use: work with old autoconf
28254         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
28255         AS_VAR semantics of autoconf 2.60.
28256         Reported by Bruno Haible.
28257
28258         bootstrap: improve some comments
28259         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
28260         clarification comments.
28261
28262         gettimeofday: provide correct function
28263         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
28264         when replacement is declared, otherwise provide gettimeofday.
28265         Reported by Michael Goffioul.
28266
28267 2010-02-23  Jim Meyering  <meyering@redhat.com>
28268
28269         lib-ignore: relax license to "unlimited", not LGPLv2+
28270         * modules/lib-ignore (License): Relax to "unlimited".
28271
28272 2010-02-23  Jim Meyering  <meyering@redhat.com>
28273
28274         lib-ignore: relax license to LGPLv2+
28275         * modules/lib-ignore (License): Relax to LGPLv2+.
28276
28277 2010-02-22  Eric Blake  <eblake@redhat.com>
28278
28279         lseek: avoid bash 3.2 broken pipe bug
28280         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
28281         warning from bash 3.2.
28282         Reported by Ben Pfaff, with analysis from Bruno Haible.
28283
28284         bootstrap: support non-FSF copyright holder
28285         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
28286         bootstrap.conf override of COPYRIGHT_HOLDER.
28287         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
28288
28289         bootstrap: interoperate with gettext 0.14.1
28290         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
28291
28292         bootstrap: allow for alternate submodule location
28293         * build-aux/bootstrap (gnulib_path): New variable; use instead of
28294         hardcoding submodule location.
28295         (gnulib_mk): Allow direct use of Makefile.am.
28296
28297         bootstrap: use GNULIB_SRCDIR to reduce disk usage
28298         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
28299         rather than reconfiguring where the submodule points.
28300
28301         gettimeofday: restore support for platforms that lack function
28302         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
28303         replacement if function is missing.
28304         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
28305         * modules/sys_time (Makefile.am): Substitute it.
28306         * lib/sys_time.in.h (gettimeofday): Check it.
28307         Reported by Michael Goffioul.
28308
28309 2010-02-21  Bruno Haible  <bruno@clisp.org>
28310
28311         * lib/stdio.in.h (obstack_printf): Fix typo.
28312
28313 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
28314
28315         vc-list-files: use bzr ls's -R option
28316         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
28317         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
28318
28319 2010-02-21  Jim Meyering  <meyering@redhat.com>
28320
28321         init.sh: fix EXEEXT shims to work also for names like test-prog
28322         * tests/init.sh: Re-exec a better shell, when needed.
28323         If the current shell lacks support for posix $(...), an init.sh-using
28324         test will now try to find a shell that supports that.  If EXEEXT is
28325         nonempty, we also require support for hyphen-in-alias-name and shell
28326         substitutions like ${var#glob}.  Failure to find such a shell results
28327         in a skipped test.
28328
28329 2010-02-21  Bruno Haible  <bruno@clisp.org>
28330
28331         Really work around around "broken pipe" error message from bash 3.2.
28332         * gnulib-tool (func_reset_sigpipe): Remove function.
28333         (echo): In bash 3.2, define to a function that uses printf.
28334         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
28335
28336 2010-02-20  Bruno Haible  <bruno@clisp.org>
28337
28338         Restore support for automake 1.9.6 with autoconf 2.61.
28339         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
28340         Reported by James Youngman <jay@gnu.org>.
28341
28342 2010-02-20  Bruno Haible  <bruno@clisp.org>
28343
28344         Improve *printf warning condition.
28345         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
28346         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
28347         and the function is overridden due to SIGPIPE emulation.
28348
28349 2010-02-20  Bruno Haible  <bruno@clisp.org>
28350
28351         * lib/stdio.in.h: Tweak comments.
28352
28353 2010-02-19  Bruno Haible  <bruno@clisp.org>
28354
28355         Make it easier to find modules. New gnulib-tool option '--find'.
28356         * gnulib-tool: New option --find.
28357         (func_usage): Document it.
28358         (func_sanitize_modulelist): New function, extracted from
28359         func_all_modules.
28360         (func_all_modules): Invoke it.
28361         * doc/gnulib-tool.texi (Which modules?): New node.
28362
28363 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
28364
28365         * lib/sys_select.in.h: Provide select replacement even if
28366         sys/select.h exists on a system, for Interix.
28367
28368 2010-02-18  Jim Meyering  <meyering@redhat.com>
28369
28370         init.sh: don't use $(...) just yet
28371         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
28372         to accommodate e.g., Solaris' /bin/sh.
28373
28374 2010-02-17  Bruno Haible  <bruno@clisp.org>
28375
28376         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
28377         Reported by Ludovic Courtès <ludo@gnu.org>.
28378
28379 2010-02-16  Simon Josefsson  <simon@josefsson.org>
28380
28381         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
28382         linking with -lintl.
28383
28384 2010-02-17  Simon Josefsson  <simon@josefsson.org>
28385
28386         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
28387         if not provided by the system's netdb.h.  Reported by
28388         ludo@gnu.org (Ludovic Courtès).
28389
28390 2010-02-15  Jim Meyering  <meyering@redhat.com>
28391
28392         init.sh: improve portability and efficiency
28393         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
28394         "dummy" in a for loop.
28395         Use '!', not '^' to select the complement of a character set used
28396         in a "case" statement.
28397         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
28398         Suggestions from Eric Blake.
28399
28400         init.sh: automatically accommodate programs with the .exe suffix
28401         Automatically arrange for an invocation of "prog" to execute the
28402         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
28403         may use the simpler "prog", yet still work when built on a system
28404         that requires specifying the added suffix.
28405         Do this by constructing a function named "prog" that invokes
28406         "prog.exe" for each .exe file in selected directories.
28407         * tests/init.sh (find_exe_basenames_): New function.
28408         (create_exe_shim_functions_): New function.
28409         (path_prepend_): Use it.
28410
28411         maint.mk: mark syntax-check sc_*.m rules as .PHONY
28412         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
28413         "make -t syntax-check" doesn't create a ton of sc_*.m files.
28414
28415 2010-02-14  Jim Meyering  <meyering@redhat.com>
28416
28417         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
28418         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
28419         (sc_prohibit_hash_pjw_without_use): New rule.
28420
28421         maint.mk: allow the default upload destination dir to be overridden
28422         * top/maint.mk (upload_dest_dir_): Define with a default that
28423         preserves the status quo.
28424         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
28425         Reported by Peter Simons.
28426
28427         maint.mk: prohibit inclusion of "hash.h" without_use
28428         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
28429
28430 2010-02-10  Jim Meyering  <meyering@redhat.com>
28431
28432         maint.mk: prohibit inclusion of "ignore-value.h" without_use
28433         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
28434
28435 2010-02-09  Eric Blake  <ebb9@byu.net>
28436         and Bruno Haible  <bruno@clisp.org>
28437
28438         obstack-printf-posix: ensure declaration
28439         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
28440         extracted from gl_FUNC_OBSTACK_PRINTF.
28441         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
28442         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28443         Likewise.
28444         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
28445         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
28446         0.
28447
28448 2010-02-08  Bruno Haible  <bruno@clisp.org>
28449
28450         gnulib-tool: Fix typo in 2010-02-07 commit.
28451         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
28452         Reported by Eric Blake.
28453
28454 2010-02-07  Bruno Haible  <bruno@clisp.org>
28455
28456         gnulib-tool: Fix up caching patches.
28457         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
28458         option --no-cache. Use associative arrays when supported by the shell.
28459         (sed_comments): New variable.
28460         (modcache): Renamed from do_cache.
28461         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
28462         abbreviate unnecessarily.
28463         (have_associative): New variable.
28464         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
28465         way also for ksh and zsh.
28466         (func_init_sed_convert_to_cache_statements): New function, extracted
28467         from func_cache_lookup_module. Add support for associative arrays.
28468         Don't set the c_MODULE_cached variable here. Ignore all lines before
28469         the first field header. Remove only the final newline, not all trailing
28470         newlines. Support empty fields correctly. Limit the use of 'eval' to
28471         assignments.
28472         (func_get_description, func_get_status, func_get_notice,
28473         func_get_applicability, func_get_filelist, func_get_dependencies,
28474         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
28475         func_get_automake_snippet, func_get_include_directive,
28476         func_get_link_directive, func_get_license, func_get_maintainer):
28477         Update documentation. List the unoptimized code first. Add support for
28478         associative arrays. Limit the use of 'eval' to assignments.
28479         (func_get_applicability): Undo stylistic pessimisations.
28480         (func_get_automake_snippet, func_get_include_directive): Reduce code
28481         duplication.
28482         (func_modules_transitive_closure, func_modules_add_dummy,
28483         func_modules_notice, func_modules_to_filelist, func_add_file,
28484         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
28485         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
28486         func_create_testdir, func_create_megatestdir): Update documentation.
28487
28488 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28489
28490         * gnulib-tool (func_cache_lookup_module): Store the module name
28491         belonging to the cache variable; error out if two different
28492         module names map to the same cache variable name.
28493
28494 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28495
28496         gnulib-tool: Make caching optional.
28497         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
28498         Update matching short versions of --no-changelog.
28499         (func_usage): Update.
28500         (sed_extract_cache_prog): Renamed from ...
28501         (sed_extract_prog): ... this; revert to old extraction script.
28502         (func_get_description, func_get_status)
28503         (func_get_notice, func_get_applicability, func_get_filelist)
28504         (func_get_dependencies, func_get_autoconf_early_snippet)
28505         (func_get_autoconf_snippet, func_get_automake_snippet)
28506         (func_get_include_directive, func_get_link_directive)
28507         (func_get_license, func_get_maintainer): If $do_cache is false,
28508         use old, non-caching extraction scripts.
28509         Suggestion by Bruno Haible.
28510
28511 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28512
28513         gnulib-tool: cache module metainformation.
28514         * gnulib-tool (sed_extract_prog): Match newline before each
28515         header, and rewrite header to a shell variable suffix.
28516         (func_cache_var, func_cache_lookup_module): New functions,
28517         to turn a module name into a cache variable prefix, and to
28518         look up and cache module metainformation.
28519         (func_get_description, func_get_status)
28520         (func_get_notice, func_get_applicability, func_get_filelist)
28521         (func_get_dependencies, func_get_autoconf_early_snippet)
28522         (func_get_autoconf_snippet, func_get_automake_snippet)
28523         (func_get_include_directive, func_get_link_directive)
28524         (func_get_license, func_get_maintainer): Use
28525         func_cache_lookup_module.
28526
28527 2010-02-07  Bruno Haible  <bruno@clisp.org>
28528
28529         fnctl: Fix missing dependency.
28530         * modules/fcntl (Depends-on): Add getdtablesize.
28531         Reported by John W. Eaton <jwe@gnu.org>.
28532
28533 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28534
28535         Argp: fix recognition of short alias options.
28536
28537         * lib/argp-parse.c (convert_options): Fix improper use of
28538         `|' between character values.
28539         * tests/test-argp.c (group1_option): New alias option
28540         --read (-r).
28541         (group1_parser): Special handling for 'r'.
28542         (test15): New test case.
28543         (test_fun): Add test15.
28544         * tests/test-argp-2.sh: Update expected --help and --usage
28545         outputs.
28546
28547 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28548
28549         * tests/test-argp.c: Fix indentation.
28550
28551 2010-02-04  Eric Blake  <ebb9@byu.net>
28552
28553         gettimeofday: expose type of second argument
28554         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
28555         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
28556         * tests/test-gettimeofday.c: Use it to silence warning.
28557         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
28558         the issue.
28559
28560 2010-02-03  Jim Meyering  <meyering@redhat.com>
28561
28562         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
28563         * lib/regcomp.c (TYPE_SIGNED): Define.
28564         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
28565
28566         regcomp.c: avoid a new -Wshadow warning
28567         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
28568
28569 2010-02-01  Jim Meyering  <meyering@redhat.com>
28570
28571         removing useless parentheses in cpp #define directives
28572         For motivation, see commit c0221df4, "define STREQ(a,b)
28573         consistently, removing useless parentheses"
28574         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
28575         * lib/mountlist.c (MNT_IGNORE): Likewise.
28576         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
28577
28578 2010-02-01  Eric Blake  <ebb9@byu.net>
28579
28580         sys_time: use link-warning
28581         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
28582         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
28583         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
28584         * modules/sys_time (Depends-on): Add warn-on-use.
28585         (Makefile.am): Always build replacement.
28586         (configure.ac): Update substitutions.
28587         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
28588         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
28589         bother with SYS_TIME_H.
28590         * modules/gettimeofday (configure.ac): Declare indicator.
28591         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
28592         in use.
28593
28594         closein-tests: silence compiler warning
28595         * tests/test-closein.c (main): Ignore fread result.
28596         * modules/closein-tests (Depends-on): Add ignore-value.
28597
28598         tests: silence warning about system return
28599         * tests/test-areadlink-with-size.c (main): Ignore system result.
28600         * tests/test-areadlink.c (main): Likewise.
28601         * tests/test-areadlinkat-with-size.c (main): Likewise.
28602         * tests/test-areadlinkat.c (main): Likewise.
28603         * tests/test-canonicalize-lgpl.c (main): Likewise.
28604         * tests/test-canonicalize.c (main): Likewise.
28605         * tests/test-chown.c (main): Likewise.
28606         * tests/test-fchownat.c (main): Likewise.
28607         * tests/test-fdutimensat.c (main): Likewise.
28608         * tests/test-fstatat.c (main): Likewise.
28609         * tests/test-futimens.c (main): Likewise.
28610         * tests/test-lchown.c (main): Likewise.
28611         * tests/test-link.c (main): Likewise.
28612         * tests/test-linkat.c (main): Likewise.
28613         * tests/test-lstat.c (main): Likewise.
28614         * tests/test-mkdir.c (main): Likewise.
28615         * tests/test-mkdirat.c (main): Likewise.
28616         * tests/test-mkfifo.c (main): Likewise.
28617         * tests/test-mkfifoat.c (main): Likewise.
28618         * tests/test-mknod.c (main): Likewise.
28619         * tests/test-readlink.c (main): Likewise.
28620         * tests/test-remove.c (main): Likewise.
28621         * tests/test-rename.c (main): Likewise.
28622         * tests/test-renameat.c (main): Likewise.
28623         * tests/test-rmdir.c (main): Likewise.
28624         * tests/test-symlink.c (main): Likewise.
28625         * tests/test-symlinkat.c (main): Likewise.
28626         * tests/test-unlink.c (main): Likewise.
28627         * tests/test-unlinkat.c (main): Likewise.
28628         * tests/test-utimens.c (main): Likewise.
28629         * tests/test-utimensat.c (main): Likewise.
28630         * modules/areadlink-tests (Depends-on): Add ignore-value.
28631         * modules/areadlink-with-size-tests (Depends-on): Likewise.
28632         * modules/areadlinkat-tests (Depends-on): Likewise.
28633         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
28634         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28635         * modules/canonicalize-tests (Depends-on): Likewise.
28636         * modules/chown-tests (Depends-on): Likewise.
28637         * modules/fdutimensat-tests (Depends-on): Likewise.
28638         * modules/futimens-tests (Depends-on): Likewise.
28639         * modules/lchown-tests (Depends-on): Likewise.
28640         * modules/link-tests (Depends-on): Likewise.
28641         * modules/linkat-tests (Depends-on): Likewise.
28642         * modules/lstat-tests (Depends-on): Likewise.
28643         * modules/mkdir-tests (Depends-on): Likewise.
28644         * modules/mkfifo-tests (Depends-on): Likewise.
28645         * modules/mkfifoat-tests (Depends-on): Likewise.
28646         * modules/mknod-tests (Depends-on): Likewise.
28647         * modules/openat-tests (Depends-on): Likewise.
28648         * modules/readlink-tests (Depends-on): Likewise.
28649         * modules/remove-tests (Depends-on): Likewise.
28650         * modules/rename-tests (Depends-on): Likewise.
28651         * modules/renameat-tests (Depends-on): Likewise.
28652         * modules/rmdir-tests (Depends-on): Likewise.
28653         * modules/symlink-tests (Depends-on): Likewise.
28654         * modules/symlinkat-tests (Depends-on): Likewise.
28655         * modules/unlink-tests (Depends-on): Likewise.
28656         * modules/utimens-tests (Depends-on): Likewise.
28657         * modules/utimensat-tests (Depends-on): Likewise.
28658
28659 2010-01-31  Bruno Haible  <bruno@clisp.org>
28660
28661         Perform the same test for many <math.h> functions.
28662         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
28663         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
28664         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
28665         of gl_MATHFUNC.
28666         * modules/acos (configure.ac): Likewise.
28667         * modules/asin (configure.ac): Likewise.
28668         * modules/atan (configure.ac): Likewise.
28669         * modules/atan2 (configure.ac): Likewise.
28670         * modules/cbrt (configure.ac): Likewise.
28671         * modules/copysign (configure.ac): Likewise.
28672         * modules/cos (configure.ac): Likewise.
28673         * modules/cosh (configure.ac): Likewise.
28674         * modules/erf (configure.ac): Likewise.
28675         * modules/erfc (configure.ac): Likewise.
28676         * modules/exp (configure.ac): Likewise.
28677         * modules/fmod (configure.ac): Likewise.
28678         * modules/hypot (configure.ac): Likewise.
28679         * modules/j0 (configure.ac): Likewise.
28680         * modules/j1 (configure.ac): Likewise.
28681         * modules/jn (configure.ac): Likewise.
28682         * modules/lgamma (configure.ac): Likewise.
28683         * modules/log (configure.ac): Likewise.
28684         * modules/log10 (configure.ac): Likewise.
28685         * modules/log1p (configure.ac): Likewise.
28686         * modules/pow (configure.ac): Likewise.
28687         * modules/remainder (configure.ac): Likewise.
28688         * modules/sin (configure.ac): Likewise.
28689         * modules/sinh (configure.ac): Likewise.
28690         * modules/tan (configure.ac): Likewise.
28691         * modules/tanh (configure.ac): Likewise.
28692         * modules/y0 (configure.ac): Likewise.
28693         * modules/y1 (configure.ac): Likewise.
28694         * modules/yn (configure.ac): Likewise.
28695         Suggested by Paolo Bonzini.
28696
28697 2010-01-31  Bruno Haible  <bruno@clisp.org>
28698
28699         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
28700
28701 2010-01-31  Bruno Haible  <bruno@clisp.org>
28702
28703         Work around getdelim() bug on FreeBSD 8.0.
28704         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
28705         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
28706         not work.
28707         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
28708         is 1.
28709         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
28710         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
28711         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
28712         a non-zero size.
28713         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
28714
28715 2010-01-31  Bruno Haible  <bruno@clisp.org>
28716
28717         Work around getline() bug on FreeBSD 8.0.
28718         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
28719         and a non-zero size.
28720         * tests/test-getline.c (main): Likewise.
28721         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
28722         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
28723
28724 2010-01-28  Eric Blake  <ebb9@byu.net>
28725
28726         regex: fix build failure
28727         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
28728         platforms.
28729
28730 2010-01-28  Jim Meyering  <meyering@redhat.com>
28731
28732         regex: do not ignore memory allocation failure
28733         * lib/regex_internal.c (create_cd_newstate): Detect
28734         re_node_set_init_copy failure.   Extracted from glibc commit
28735         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28736
28737         regex: sync more white-space changes from libc
28738         * lib/regex_internal.c: White-space only changes.
28739         * lib/regexec.c: Likewise.
28740
28741         regex: add many uses of __attribute_warn_unused_result__
28742         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
28743         * lib/regexec.c: Likewise.
28744         Extracted from a messy glibc commit.
28745
28746         regcomp.c: spelling and merge-artifact from glibc
28747         * lib/regcomp.c: Merge remainder of glibc's
28748         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28749
28750         regcomp.c: sync white-space changes from glibc
28751         * lib/regcomp.c: Merge to accommodate white space
28752         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28753
28754         regcomp.c: do not ignore internal return values
28755         * lib/regcomp.c: Do not ignore internal return values.
28756         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
28757         but without its white-space changes and spelling fixes.
28758
28759         regex_internal.h: define __attribute_warn_unused_result__
28760         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
28761
28762         maint: add a syntax-check rule to check for vulnerable Makefile.in
28763         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
28764
28765 2010-01-27  Jim Meyering  <meyering@redhat.com>
28766
28767         ncftpput-ftp: clean up spaces
28768         * build-aux/ncftpput-ftp: Make Copyright line consistent.
28769         Remove trailing blanks.
28770
28771 2010-01-27  Simon Josefsson  <simon@josefsson.org>
28772
28773         * build-aux/git-version-gen: Fix copyright statement.
28774         * build-aux/gnupload: Likewise.
28775         * tests/test-arcfour.c: Likewise.
28776         * tests/test-arctwo.c: Likewise.
28777         * tests/test-count-one-bits.c: Likewise.
28778         * tests/test-crc.c: Likewise.
28779         * tests/test-des.c: Likewise.
28780         * tests/test-gc-arcfour.c: Likewise.
28781         * tests/test-gc-arctwo.c: Likewise.
28782         * tests/test-gc-des.c: Likewise.
28783         * tests/test-gc-hmac-md5.c: Likewise.
28784         * tests/test-gc-hmac-sha1.c: Likewise.
28785         * tests/test-gc-md2.c: Likewise.
28786         * tests/test-gc-md4.c: Likewise.
28787         * tests/test-gc-md5.c: Likewise.
28788         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28789         * tests/test-gc-rijndael.c: Likewise.
28790         * tests/test-gc-sha1.c: Likewise.
28791         * tests/test-gc.c: Likewise.
28792         * tests/test-gethostname.c: Likewise.
28793         * tests/test-gettimeofday.c: Likewise.
28794         * tests/test-hash.c: Likewise.
28795         * tests/test-hmac-md5.c: Likewise.
28796         * tests/test-hmac-sha1.c: Likewise.
28797         * tests/test-md2.c: Likewise.
28798         * tests/test-md4.c: Likewise.
28799         * tests/test-md5.c: Likewise.
28800         * tests/test-memchr.c: Likewise.
28801         * tests/test-memchr2.c: Likewise.
28802         * tests/test-memcmp.c: Likewise.
28803         * tests/test-memmem.c: Likewise.
28804         * tests/test-memrchr.c: Likewise.
28805         * tests/test-rawmemchr.c: Likewise.
28806         * tests/test-read-file.c: Likewise.
28807         * tests/test-rijndael.c: Likewise.
28808         * tests/test-sockets.c: Likewise.
28809         * tests/test-strchrnul.c: Likewise.
28810         * tests/test-strstr.c: Likewise.
28811         * tests/test-strtod.c: Likewise.
28812         * build-aux/ncftpput-ftp: Likewise.
28813
28814 2010-01-26  Eric Blake  <ebb9@byu.net>
28815
28816         ignore-value: update recommended header name
28817         * modules/ignore-value (Include): Only use <> for headers that
28818         exist in glibc.
28819
28820 2010-01-26  Jim Meyering  <meyering@redhat.com>
28821
28822         test-userspec.c: avoid compiler warnings
28823         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
28824         and "initialization discards qualifiers..." warnings.
28825         Put the first "uid" in its own scope, and make char* members "const".
28826
28827 2010-01-25  Bruno Haible  <bruno@clisp.org>
28828
28829         gnulib-tool: Make warning diagnostics consistent.
28830         * gnulib-tool (func_warning): New function.
28831         Use it everywhere where gnulib-tool produces output to stderr and it is
28832         not a fatal error.
28833
28834 2010-01-25  Bruno Haible  <bruno@clisp.org>
28835
28836         Fix test dependencies.
28837         * modules/xstrtol-tests (Depends-on): Add inttypes.
28838         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
28839
28840 2010-01-25 Pádraig Brady <P@draigBrady.com>
28841
28842         syntax-check: detect incorrect boolean macro values in config.h
28843         * modules/maintainer-makefile (configure.ac): Parameterize the location
28844         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
28845         The logic is from Eric Blake and the location indicated by Jim Meyering.
28846         Note the more natural CONFIG_HEADER name is prohibited by automake
28847         for backwards compatibility reasons.
28848         * top/maint.mk (sc_Wundef_boolean): New rule.
28849
28850 2010-01-25  Jim Meyering  <meyering@redhat.com>
28851
28852         bootstrap: detect MacOS 10.6's shasum, too
28853         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
28854         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
28855
28856 2010-01-23  Jim Meyering  <meyering@redhat.com>
28857
28858         xstrtoll: new module
28859         * modules/xstrtoll: New file.
28860         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
28861         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
28862         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
28863         ./configure fails if you use this module and lack "long long".
28864         * modules/xstrtoll-tests: New module.
28865         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
28866         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
28867         new init.sh-based test framework.
28868
28869 2010-01-24  Bruno Haible  <bruno@clisp.org>
28870
28871         Tests for module 'yn'.
28872         * modules/yn-tests: New file.
28873         * tests/test-yn.c: New file.
28874
28875         Tests for module 'y1'.
28876         * modules/y1-tests: New file.
28877         * tests/test-y1.c: New file.
28878
28879         Tests for module 'y0'.
28880         * modules/y0-tests: New file.
28881         * tests/test-y0.c: New file.
28882
28883         Tests for module 'tanh'.
28884         * modules/tanh-tests: New file.
28885         * tests/test-tanh.c: New file.
28886
28887         Tests for module 'tan'.
28888         * modules/tan-tests: New file.
28889         * tests/test-tan.c: New file.
28890
28891         Tests for module 'sqrt'.
28892         * modules/sqrt-tests: New file.
28893         * tests/test-sqrt.c: New file.
28894
28895         Tests for module 'sinh'.
28896         * modules/sinh-tests: New file.
28897         * tests/test-sinh.c: New file.
28898
28899         Tests for module 'sin'.
28900         * modules/sin-tests: New file.
28901         * tests/test-sin.c: New file.
28902
28903         Tests for module 'rint'.
28904         * modules/rint-tests: New file.
28905         * tests/test-rint.c: New file.
28906
28907         Tests for module 'remainder'.
28908         * modules/remainder-tests: New file.
28909         * tests/test-remainder.c: New file.
28910
28911         Tests for module 'pow'.
28912         * modules/pow-tests: New file.
28913         * tests/test-pow.c: New file.
28914
28915         Tests for module 'nextafter'.
28916         * modules/nextafter-tests: New file.
28917         * tests/test-nextafter.c: New file.
28918
28919         Tests for module 'modf'.
28920         * modules/modf-tests: New file.
28921         * tests/test-modf.c: New file.
28922
28923         Tests for module 'logb'.
28924         * modules/logb-tests: New file.
28925         * tests/test-logb.c: New file.
28926
28927         Tests for module 'log1p'.
28928         * modules/log1p-tests: New file.
28929         * tests/test-log1p.c: New file.
28930
28931         Tests for module 'log10'.
28932         * modules/log10-tests: New file.
28933         * tests/test-log10.c: New file.
28934
28935         Tests for module 'log'.
28936         * modules/log-tests: New file.
28937         * tests/test-log.c: New file.
28938
28939         Tests for module 'lgamma'.
28940         * modules/lgamma-tests: New file.
28941         * tests/test-lgamma.c: New file.
28942
28943         Tests for module 'ldexp'.
28944         * modules/ldexp-tests: New file.
28945         * tests/test-ldexp.c: New file.
28946
28947         Tests for module 'jn'.
28948         * modules/jn-tests: New file.
28949         * tests/test-jn.c: New file.
28950
28951         Tests for module 'j1'.
28952         * modules/j1-tests: New file.
28953         * tests/test-j1.c: New file.
28954
28955         Tests for module 'j0'.
28956         * modules/j0-tests: New file.
28957         * tests/test-j0.c: New file.
28958
28959         Tests for module 'hypot'.
28960         * modules/hypot-tests: New file.
28961         * tests/test-hypot.c: New file.
28962
28963         Tests for module 'fmod'.
28964         * modules/fmod-tests: New file.
28965         * tests/test-fmod.c: New file.
28966
28967         Tests for module 'fabs'.
28968         * modules/fabs-tests: New file.
28969         * tests/test-fabs.c: New file.
28970
28971         Tests for module 'exp'.
28972         * modules/exp-tests: New file.
28973         * tests/test-exp.c: New file.
28974
28975         Tests for module 'erfc'.
28976         * modules/erfc-tests: New file.
28977         * tests/test-erfc.c: New file.
28978
28979         Tests for module 'erf'.
28980         * modules/erf-tests: New file.
28981         * tests/test-erf.c: New file.
28982
28983         Tests for module 'cosh'.
28984         * modules/cosh-tests: New file.
28985         * tests/test-cosh.c: New file.
28986
28987         Tests for module 'cos'.
28988         * modules/cos-tests: New file.
28989         * tests/test-cos.c: New file.
28990
28991         Tests for module 'copysign'.
28992         * modules/copysign-tests: New file.
28993         * tests/test-copysign.c: New file.
28994
28995         Tests for module 'cbrt'.
28996         * modules/cbrt-tests: New file.
28997         * tests/test-cbrt.c: New file.
28998
28999         Tests for module 'atan2'.
29000         * modules/atan2-tests: New file.
29001         * tests/test-atan2.c: New file.
29002
29003         Tests for module 'atan'.
29004         * modules/atan-tests: New file.
29005         * tests/test-atan.c: New file.
29006
29007         Tests for module 'asin'.
29008         * modules/asin-tests: New file.
29009         * tests/test-asin.c: New file.
29010
29011         Tests for module 'acos'.
29012         * modules/acos-tests: New file.
29013         * tests/test-acos.c: New file.
29014
29015 2010-01-24  Bruno Haible  <bruno@clisp.org>
29016
29017         Fix tests for common <math.h> functions.
29018         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
29019         code snippet that references the function pointer, rather than merely
29020         calling the function. Substitute the FUNC_LIBM variable.
29021         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
29022         * modules/acos (configure.ac): Likewise.
29023         * modules/asin (configure.ac): Likewise.
29024         * modules/atan (configure.ac): Likewise.
29025         * modules/atan2 (configure.ac): Likewise.
29026         * modules/cbrt (configure.ac): Likewise.
29027         * modules/copysign (configure.ac): Likewise.
29028         * modules/cos (configure.ac): Likewise.
29029         * modules/cosh (configure.ac): Likewise.
29030         * modules/erf (configure.ac): Likewise.
29031         * modules/erfc (configure.ac): Likewise.
29032         * modules/exp (configure.ac): Likewise.
29033         * modules/fabs (configure.ac): Likewise.
29034         * modules/fmod (configure.ac): Likewise.
29035         * modules/hypot (configure.ac): Likewise.
29036         * modules/j0 (configure.ac): Likewise.
29037         * modules/j1 (configure.ac): Likewise.
29038         * modules/jn (configure.ac): Likewise.
29039         * modules/ldexp (configure.ac): Likewise.
29040         * modules/lgamma (configure.ac): Likewise.
29041         * modules/log (configure.ac): Likewise.
29042         * modules/log10 (configure.ac): Likewise.
29043         * modules/log1p (configure.ac): Likewise.
29044         * modules/logb (configure.ac): Likewise.
29045         * modules/modf (configure.ac): Likewise.
29046         * modules/nextafter (configure.ac): Likewise.
29047         * modules/pow (configure.ac): Likewise.
29048         * modules/remainder (configure.ac): Likewise.
29049         * modules/rint (configure.ac): Likewise.
29050         * modules/sin (configure.ac): Likewise.
29051         * modules/sinh (configure.ac): Likewise.
29052         * modules/tan (configure.ac): Likewise.
29053         * modules/tanh (configure.ac): Likewise.
29054         * modules/y0 (configure.ac): Likewise.
29055         * modules/y1 (configure.ac): Likewise.
29056         * modules/yn (configure.ac): Likewise.
29057
29058 2010-01-24  Bruno Haible  <bruno@clisp.org>
29059
29060         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
29061         * tests/test-acosl.c (x): New variable.
29062         (main): Store argument in x and fetch it from x.
29063         * tests/test-asinl.c (x): New variable.
29064         (main): Store argument in x and fetch it from x.
29065         * tests/test-atanl.c (x): New variable.
29066         (main): Store argument in x and fetch it from x.
29067         * tests/test-cosl.c (x): New variable.
29068         (main): Store argument in x and fetch it from x.
29069         * tests/test-expl.c (x): New variable.
29070         (main): Store argument in x and fetch it from x.
29071         * tests/test-logl.c (x): New variable.
29072         (main): Store argument in x and fetch it from x.
29073         * tests/test-sinl.c (x): New variable.
29074         (main): Store argument in x and fetch it from x.
29075         * tests/test-sqrtl.c (x): New variable.
29076         (main): Store argument in x and fetch it from x.
29077         * tests/test-tanl.c (x): New variable.
29078         (main): Store argument in x and fetch it from x.
29079
29080 2010-01-24  Bruno Haible  <bruno@clisp.org>
29081
29082         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
29083         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
29084         assignments to the initial TESTS_ENVIRONMENT.
29085         * doc/gnulib.texi (Unit test modules): Document it.
29086         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
29087         TESTS_ENVIRONMENT.
29088         * modules/btowc-tests (Makefile.am): Likewise.
29089         * modules/c-stack-tests (Makefile.am): Likewise.
29090         * modules/c-strcase-tests (Makefile.am): Likewise.
29091         * modules/copy-file-tests (Makefile.am): Likewise.
29092         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
29093         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
29094         * modules/mbrtowc-tests (Makefile.am): Likewise.
29095         * modules/mbscasecmp-tests (Makefile.am): Likewise.
29096         * modules/mbscasestr-tests (Makefile.am): Likewise.
29097         * modules/mbschr-tests (Makefile.am): Likewise.
29098         * modules/mbscspn-tests (Makefile.am): Likewise.
29099         * modules/mbsinit-tests (Makefile.am): Likewise.
29100         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
29101         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
29102         * modules/mbspbrk-tests (Makefile.am): Likewise.
29103         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29104         * modules/mbsrchr-tests (Makefile.am): Likewise.
29105         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
29106         * modules/mbsspn-tests (Makefile.am): Likewise.
29107         * modules/mbsstr-tests (Makefile.am): Likewise.
29108         * modules/nl_langinfo-tests (Makefile.am): Likewise.
29109         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
29110         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29111         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29112         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29113         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29114         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
29115         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29116         * modules/wcrtomb-tests (Makefile.am): Likewise.
29117         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
29118         * modules/wcsrtombs-tests (Makefile.am): Likewise.
29119         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
29120         assignments from TESTS_ENVIRONMENT.
29121         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
29122         augmentation.
29123         * modules/argp-version-etc-tests (Makefile.am): Likewise.
29124         * modules/atexit-tests (Makefile.am): Likewise.
29125         * modules/binary-io-tests (Makefile.am): Likewise.
29126         * modules/closein-tests (Makefile.am): Likewise.
29127         * modules/dprintf-posix-tests (Makefile.am): Likewise.
29128         * modules/exclude-tests (Makefile.am): Likewise.
29129         * modules/fflush-tests (Makefile.am): Likewise.
29130         * modules/fpending-tests (Makefile.am): Likewise.
29131         * modules/fprintf-posix-tests (Makefile.am): Likewise.
29132         * modules/freadahead-tests (Makefile.am): Likewise.
29133         * modules/freadptr-tests (Makefile.am): Likewise.
29134         * modules/freadseek-tests (Makefile.am): Likewise.
29135         * modules/fseek-tests (Makefile.am): Likewise.
29136         * modules/fseeko-tests (Makefile.am): Likewise.
29137         * modules/ftell-tests (Makefile.am): Likewise.
29138         * modules/ftello-tests (Makefile.am): Likewise.
29139         * modules/idpriv-drop-tests (Makefile.am): Likewise.
29140         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
29141         * modules/lseek-tests (Makefile.am): Likewise.
29142         * modules/parse-duration-tests (Makefile.am): Likewise.
29143         * modules/perror-tests (Makefile.am): Likewise.
29144         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
29145         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
29146         * modules/pipe-tests (Makefile.am): Likewise.
29147         * modules/pread-tests (Makefile.am): Likewise.
29148         * modules/printf-posix-tests (Makefile.am): Likewise.
29149         * modules/select-tests (Makefile.am): Likewise.
29150         * modules/sigpipe-tests (Makefile.am): Likewise.
29151         * modules/tsearch-tests (Makefile.am): Likewise.
29152         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
29153         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
29154         * modules/uniname/uniname-tests (Makefile.am): Likewise.
29155         * modules/uniwidth/width-tests (Makefile.am): Likewise.
29156         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
29157         * modules/version-etc-tests (Makefile.am): Likewise.
29158         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29159         * modules/vprintf-posix-tests (Makefile.am): Likewise.
29160         * modules/xalloc-die-tests (Makefile.am): Likewise.
29161         * modules/xprintf-posix-tests (Makefile.am): Likewise.
29162         * modules/xstrtoimax-tests (Makefile.am): Likewise.
29163         * modules/xstrtol-tests (Makefile.am): Likewise.
29164         * modules/xstrtoumax-tests (Makefile.am): Likewise.
29165         * modules/yesno-tests (Makefile.am): Likewise.
29166         Suggested by Jim Meyering.
29167
29168 2010-01-24  Bruno Haible  <bruno@clisp.org>
29169
29170         More documentation.
29171         * doc/gnulib.texi (Writing modules): New chapter.
29172         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
29173         the new chapter.
29174
29175 2010-01-24  Jim Meyering  <meyering@redhat.com>
29176
29177         maint.mk: do not prepend "./" after filtering
29178         * top/maint.mk (_prepend_srcdir_prefix): New variable
29179         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
29180         "./" when $(srcdir) is ".".
29181
29182         define STREQ(a,b) consistently, removing useless parentheses
29183         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
29184         since the only risk is that "a" or "b" contains an unparenthesized
29185         comma, but if either did that, STREQ would have 3 or more arguments.
29186         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
29187         * lib/fts.c (STREQ): Remove unnecessary parentheses.
29188         * lib/hash-triple.c (STREQ): Likewise.
29189         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
29190         * lib/getugroups.c (STREQ): Likewise.
29191
29192 2010-01-23  Jim Meyering  <meyering@redhat.com>
29193
29194         maint.mk: fix syntax-check in a non-srcdir build directory
29195         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
29196         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
29197
29198 2010-01-22  Jim Meyering  <meyering@redhat.com>
29199
29200         userspec: add unit tests
29201         * tests/test-userspec.c: New file.
29202         * modules/userspec-tests: Likewise.
29203
29204 2010-01-21  Jim Meyering  <meyering@redhat.com>
29205
29206         maint.mk: handle source file names containing "." robustly
29207         * top/maint.mk (_dot_escaped_srcdir): Define.
29208         (VC_LIST): Use it in LHS of sed substitution.
29209
29210 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
29211
29212         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
29213         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
29214         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
29215         from a non-srcdir build.
29216
29217 2010-01-20  Eric Blake  <ebb9@byu.net>
29218
29219         warn-on-use: use instead of link-warning
29220         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
29221         * modules/unistd (Depends-on, Makefile.am): Likewise.
29222         * modules/arpa_inet (Depends-on): Replace link-warning with
29223         warn-on-use.
29224         (Makefile.am): Update rules accordingly.
29225         * modules/ctype (Depends-on, Makefile.am): Likewise.
29226         * modules/dirent (Depends-on, Makefile.am): Likewise.
29227         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
29228         * modules/inttypes (Depends-on, Makefile.am): Likewise.
29229         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29230         * modules/locale (Depends-on, Makefile.am): Likewise.
29231         * modules/math (Depends-on, Makefile.am): Likewise.
29232         * modules/search (Depends-on, Makefile.am): Likewise.
29233         * modules/signal (Depends-on, Makefile.am): Likewise.
29234         * modules/spawn (Depends-on, Makefile.am): Likewise.
29235         * modules/stdlib (Depends-on, Makefile.am): Likewise.
29236         * modules/string (Depends-on, Makefile.am): Likewise.
29237         * modules/strings (Depends-on, Makefile.am): Likewise.
29238         * modules/sys_file (Depends-on, Makefile.am): Likewise.
29239         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
29240         * modules/sys_select (Depends-on, Makefile.am): Likewise.
29241         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
29242         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
29243         * modules/sys_times (Depends-on, Makefile.am): Likewise.
29244         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29245         * modules/wchar (Depends-on, Makefile.am): Likewise.
29246         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
29247         should be poisoned.
29248         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
29249         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
29250         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
29251         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29252         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29253         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29254         * m4/math_h.m4 (gl_MATH_H): Likewise.
29255         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29256         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29257         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29258         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
29259         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
29260         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
29261         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
29262         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
29263         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29264         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29265         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29266         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
29267         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29268         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
29269         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29270         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29271         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
29272         GL_LINK_WARNING.
29273         * lib/ctype.in.h: Likewise.
29274         * lib/dirent.in.h: Likewise.
29275         * lib/fcntl.in.h: Likewise.
29276         * lib/inttypes.in.h: Likewise.
29277         * lib/langinfo.in.h: Likewise.
29278         * lib/locale.in.h: Likewise.
29279         * lib/math.in.h: Likewise.
29280         * lib/search.in.h: Likewise.
29281         * lib/signal.in.h: Likewise.
29282         * lib/spawn.in.h: Likewise.
29283         * lib/stdio.in.h: Likewise.
29284         * lib/stdlib.in.h: Likewise.
29285         * lib/string.in.h: Likewise.
29286         * lib/strings.in.h: Likewise.
29287         * lib/sys_file.in.h: Likewise.
29288         * lib/sys_ioctl.in.h: Likewise.
29289         * lib/sys_select.in.h: Likewise.
29290         * lib/sys_socket.in.h: Likewise.
29291         * lib/sys_stat.in.h: Likewise.
29292         * lib/sys_times.in.h: Likewise.
29293         * lib/sys_utsname.in.h: Likewise.
29294         * lib/unistd.in.h: Likewise.
29295         * lib/wchar.in.h: Likewise.
29296
29297 2010-01-20  Bruno Haible  <bruno@clisp.org>
29298
29299         Avoid duplicate -lm.
29300         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
29301         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
29302         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
29303         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
29304         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
29305         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
29306         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
29307         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
29308         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
29309         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
29310         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
29311         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29312         Reported by Paolo Bonzini.
29313
29314 2010-01-19  Bruno Haible  <bruno@clisp.org>
29315
29316         langinfo, nl_langinfo: Relicense under LGPLv2+.
29317         * modules/langinfo (License): Change to LGPLv2+.
29318         * modules/nl_langinfo (License): Likewise.
29319         Patch by David Lutterkort <lutter@redhat.com>.
29320
29321 2010-01-19  Bruno Haible  <bruno@clisp.org>
29322
29323         Avoid compilation error with cc on OSF/1 5.1.
29324         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
29325         statement, not before.
29326         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29327
29328 2010-01-18  Bruno Haible  <bruno@clisp.org>
29329
29330         Avoid a link error due to the __printf__ symbol.
29331         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
29332         and 2.6.x.
29333         (__format__, __printf__): Remove definitions.
29334         * lib/argp-fmtstream.h: Likewise.
29335         * lib/argp.h: Likewise.
29336         * lib/error.h: Likewise.
29337         * lib/vasnprintf.h: Likewise.
29338         * lib/xprintf.h: Likewise.
29339         * lib/xvasprintf.h: Likewise.
29340         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29341
29342 2010-01-18  Bruno Haible  <bruno@clisp.org>
29343
29344         Tests for module 'tanl'.
29345         * modules/tanl-tests: New file.
29346         * tests/test-tanl.c: New file.
29347
29348         Tests for module 'sqrtl'.
29349         * modules/sqrtl-tests: New file.
29350         * tests/test-sqrtl.c: New file.
29351
29352         Tests for module 'sinl'.
29353         * modules/sinl-tests: New file.
29354         * tests/test-sinl.c: New file.
29355
29356         Tests for module 'logl'.
29357         * modules/logl-tests: New file.
29358         * tests/test-logl.c: New file.
29359
29360         Tests for module 'expl'.
29361         * modules/expl-tests: New file.
29362         * tests/test-expl.c: New file.
29363
29364         Tests for module 'cosl'.
29365         * modules/cosl-tests: New file.
29366         * tests/test-cosl.c: New file.
29367
29368         Tests for module 'atanl'.
29369         * modules/atanl-tests: New file.
29370         * tests/test-atanl.c: New file.
29371
29372         Tests for module 'asinl'.
29373         * modules/asinl-tests: New file.
29374         * tests/test-asinl.c: New file.
29375
29376         Tests for module 'acosl'.
29377         * modules/acosl-tests: New file.
29378         * tests/test-acosl.c: New file.
29379
29380         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29381         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
29382         tanl): Use the standard gnulib idiom.
29383         * lib/cosl.c: Don't include trigl.c and sincosl.c.
29384         * lib/sinl.c: Likewise.
29385         * lib/tanl.c: Don't include trigl.c.
29386         (kernel_tanl): Make static.
29387         * lib/sincosl.c: Include trigl.h first.
29388         * lib/trigl.c: Likewise.
29389         * m4/acosl.m4: New file.
29390         * m4/asinl.m4: New file.
29391         * m4/atanl.m4: New file.
29392         * m4/cosl.m4: New file.
29393         * m4/expl.m4: New file.
29394         * m4/logl.m4: New file.
29395         * m4/sinl.m4: New file.
29396         * m4/sqrtl.m4: New file.
29397         * m4/tanl.m4: New file.
29398         * m4/mathl.m4: Remove file.
29399         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
29400         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29401         Don't initialize GNULIB_MATHL.
29402         * modules/acosl: New file.
29403         * modules/asinl: New file.
29404         * modules/atanl: New file.
29405         * modules/cosl: New file.
29406         * modules/expl: New file.
29407         * modules/logl: New file.
29408         * modules/sinl: New file.
29409         * modules/sqrtl: New file.
29410         * modules/tanl: New file.
29411         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
29412         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
29413         substitute GNULIB_MATHL.
29414         * modules/mathl: Rewritten.
29415         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
29416         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
29417         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
29418         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
29419         * doc/posix-functions/expl.texi: Mention the 'expl' module.
29420         * doc/posix-functions/logl.texi: Mention the 'logl' module.
29421         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
29422         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
29423         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
29424
29425 2010-01-18  Bruno Haible  <bruno@clisp.org>
29426
29427         sqrt: Make gl_FUNC_SQRT requirable.
29428         * m4/sqrt.m4: New file.
29429         * modules/sqrt (Files): Add it.
29430         (configure.ac): Invoke gl_FUNC_SQRT.
29431
29432 2010-01-18  Bruno Haible  <bruno@clisp.org>
29433
29434         New modules for common <math.h> functions.
29435         * m4/mathfunc.m4: New file.
29436         * modules/acos: New file.
29437         * modules/asin: New file.
29438         * modules/atan: New file.
29439         * modules/atan2: New file.
29440         * modules/cbrt: New file.
29441         * modules/copysign: New file.
29442         * modules/cos: New file.
29443         * modules/cosh: New file.
29444         * modules/erf: New file.
29445         * modules/erfc: New file.
29446         * modules/exp: New file.
29447         * modules/fabs: New file.
29448         * modules/fmod: New file.
29449         * modules/hypot: New file.
29450         * modules/j0: New file.
29451         * modules/j1: New file.
29452         * modules/jn: New file.
29453         * modules/ldexp: New file.
29454         * modules/lgamma: New file.
29455         * modules/log: New file.
29456         * modules/log10: New file.
29457         * modules/log1p: New file.
29458         * modules/logb: New file.
29459         * modules/modf: New file.
29460         * modules/nextafter: New file.
29461         * modules/pow: New file.
29462         * modules/remainder: New file.
29463         * modules/rint: New file.
29464         * modules/sin: New file.
29465         * modules/sinh: New file.
29466         * modules/sqrt: New file.
29467         * modules/tan: New file.
29468         * modules/tanh: New file.
29469         * modules/y0: New file.
29470         * modules/y1: New file.
29471         * modules/yn: New file.
29472         * doc/posix-functions/acos.texi: Mention the 'acos' module.
29473         * doc/posix-functions/asin.texi: Mention the 'asin' module.
29474         * doc/posix-functions/atan.texi: Mention the 'atan' module.
29475         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
29476         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
29477         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
29478         * doc/posix-functions/cos.texi: Mention the 'cos' module.
29479         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
29480         * doc/posix-functions/erf.texi: Mention the 'erf' module.
29481         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
29482         * doc/posix-functions/exp.texi: Mention the 'exp' module.
29483         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
29484         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
29485         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
29486         * doc/posix-functions/j0.texi: Mention the 'j0' module.
29487         * doc/posix-functions/j1.texi: Mention the 'j1' module.
29488         * doc/posix-functions/jn.texi: Mention the 'jn' module.
29489         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
29490         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
29491         * doc/posix-functions/log.texi: Mention the 'log' module.
29492         * doc/posix-functions/log10.texi: Mention the 'log10' module.
29493         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
29494         * doc/posix-functions/logb.texi: Mention the 'logb' module.
29495         * doc/posix-functions/modf.texi: Mention the 'modf' module.
29496         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
29497         * doc/posix-functions/pow.texi: Mention the 'pow' module.
29498         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
29499         * doc/posix-functions/rint.texi: Mention the 'rint' module.
29500         * doc/posix-functions/sin.texi: Mention the 'sin' module.
29501         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
29502         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
29503         * doc/posix-functions/tan.texi: Mention the 'tan' module.
29504         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
29505         * doc/posix-functions/y0.texi: Mention the 'y0' module.
29506         * doc/posix-functions/y1.texi: Mention the 'y1' module.
29507         * doc/posix-functions/yn.texi: Mention the 'yn' module.
29508
29509 2010-01-18  Jim Meyering  <meyering@redhat.com>
29510
29511         ignore-value: relax license to LGPLv2+
29512         * modules/ignore-value (License): Relax to LGPLv2+.
29513
29514         getdate: don't leak when TZ contains two or more '"'s
29515         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
29516         double quote in TZ after the first one.
29517
29518         readtokens: do not leak internal token_lengths buffer
29519         * lib/readtokens.c (readtokens): Free the local, lengths,
29520         when the supplied "token_lengths" parameter is NULL.
29521
29522 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29523
29524         Fix a couple of missing LIBTHREAD link failures on AIX.
29525         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
29526         $(LIBTHREAD).
29527         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
29528
29529         Link test-poll against INET_PTON_LIB.
29530         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
29531         for inet_pton on Solaris 10.
29532
29533 2010-01-17  Bruno Haible  <bruno@clisp.org>
29534
29535         unistdio/*-sprintf: Fix typo in module description.
29536         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
29537         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
29538         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
29539         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
29540         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
29541         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
29542         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
29543         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29544
29545 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29546
29547         gnulib-tool: fix filelist for AIX, HP-UX ksh.
29548         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
29549         variables in shell case patterns, for AIX and HP-UX ksh.
29550
29551         Split large sed scripts, for HP-UX sed.
29552         * modules/stdio: Split sed scripts around 50 sed commands,
29553         to avoid HP-UX limit of 99 commands, in the near future.
29554         * modules/string: Likewise.
29555         * modules/unistd: Likewise.
29556
29557         gnulib-tool: avoid writing in the current directory.
29558         * gnulib-tool (func_emit_lib_Makefile_am)
29559         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
29560         not in the current directory, so concurrent gnulib-tool
29561         instances do not interfere.
29562
29563 2010-01-16  Jim Meyering  <meyering@redhat.com>
29564
29565         doc: update users.txt
29566         * users.txt: Add grep.
29567         (diffutils, gzip): Update URLs.
29568
29569 2010-01-12  Bruno Haible  <bruno@clisp.org>
29570
29571         posix_spawn: Avoid test failure on Cygwin.
29572         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
29573         characters.
29574         Reported by Simon Josefsson.
29575
29576 2010-01-12  Bruno Haible  <bruno@clisp.org>
29577
29578         * tests/test-cond.c (main): When skipping the test, show the reason.
29579
29580 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29581
29582         * lib/striconv.c (str_cd_iconv): Avoid if before free.
29583
29584 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29585
29586         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
29587         VC_LIST_ALWAYS_EXCLUDE_REGEX.
29588
29589 2010-01-12  Eric Blake  <ebb9@byu.net>
29590
29591         build: guarantee AS_VAR_IF
29592         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
29593         (gl_AS_VAR_IF): Move...
29594         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
29595         Reported by Simon Josefsson.
29596
29597 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29598
29599         * lib/stdio.in.h: Fix typo.
29600
29601 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29602
29603         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
29604         libgpg-error.
29605
29606 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29607
29608         * tests/test-xalloc-die.sh: Use $EXEEXT.
29609
29610 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29611             Bruno Haible  <bruno@clisp.org>
29612
29613         getlogin, getlogin_r: Avoid test failure.
29614         * tests/test-getlogin.c: Include <stdio.h>.
29615         (main): Skip the test when the function fails because stdin is not a
29616         tty.
29617         * tests/test-getlogin_r.c: Include <stdio.h>.
29618         (main): Skip the test when the function fails because stdin is not a
29619         tty.
29620
29621 2010-01-11  Eric Blake  <ebb9@byu.net>
29622
29623         tests: avoid more large file warnings
29624         * tests/test-fflush.c: Avoid warning about ftell use.
29625         * tests/test-fseek.c: Avoid warning about fseek use.
29626
29627 2010-01-10  Bruno Haible  <bruno@clisp.org>
29628
29629         nproc: Work better on Linux when /proc and /sys are not mounted.
29630         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
29631         as lower bound when, on glibc/Linux systems,
29632         sysconf (_SC_NPROCESSORS_CONF) returns 1.
29633         Suggested by Pádraig Brady <P@draigbrady.com>.
29634         Reported by Dmitry V. Levin <ldv@altlinux.org>.
29635
29636         nproc: Refactor.
29637         * lib/nproc.c (num_processors_via_affinity_mask): New function,
29638         extracted from num_processors.
29639         (num_processors): Call it.
29640
29641 2010-01-11  Jim Meyering  <meyering@redhat.com>
29642
29643         utimecmp: avoid new warning from upcoming gcc-4.5.0
29644         * lib/utimecmp.c (BILLION): Define using #define rather than an
29645         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
29646
29647 2010-01-11  Eric Blake  <ebb9@byu.net>
29648
29649         math: add portability warnings for classification macros
29650         * modules/math (Depends-on): Add warn-on-use.
29651         (Makefile.am): Provide new substitutions.
29652         * m4/math_h.m4 (gl_MATH_H): Require inline.
29653         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
29654         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
29655         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
29656         implement warnings.
29657
29658         unistd: warn on use of environ without module
29659         * modules/unistd (Depends-on): Add warn-on-use.
29660         (Makefile.am): Provide new substitutions.
29661         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
29662         * lib/unistd.in.h (environ): Wrap with a warning helper function.
29663
29664         stdio: warn on suspicious uses
29665         * modules/stdio (Depends-on): Add warn-on-use.
29666         (Makefile.am): Provide new substitutions.
29667         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
29668         fseeko.
29669         * lib/stdio.in.h (gets): Always warn on use.
29670         (fseek, ftell): Adjust when warnings are issued, and honor
29671         _GL_NO_LARGE_FILES as a way to silence the warning.
29672         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
29673         any warning about large file offsets.
29674         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
29675         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
29676         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
29677         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
29678         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
29679         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
29680         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
29681         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
29682
29683         warn-on-use: new module
29684         * modules/warn-on-use: New file.
29685         * build-aux/warn-on-use.h: Likewise.
29686         * m4/warn-on-use.m4: Likewise.
29687         * MODULES.html.sh (Support for building): Mention it.
29688
29689 2010-01-10  Bruno Haible  <bruno@clisp.org>
29690
29691         Tests for module 'unistr/u32-strdup'.
29692         * modules/unistr/u32-strdup-tests: New file.
29693         * tests/unistr/test-u32-strdup.c: New file.
29694
29695         Tests for module 'unistr/u16-strdup'.
29696         * modules/unistr/u16-strdup-tests: New file.
29697         * tests/unistr/test-u16-strdup.c: New file.
29698
29699         Tests for module 'unistr/u8-strdup'.
29700         * modules/unistr/u8-strdup-tests: New file.
29701         * tests/unistr/test-u8-strdup.c: New file.
29702         * tests/unistr/test-strdup.h: New file.
29703
29704         Tests for module 'unistr/u32-strncmp'.
29705         * modules/unistr/u32-strncmp-tests: New file.
29706         * tests/unistr/test-u32-strncmp.c: New file.
29707
29708         Tests for module 'unistr/u16-strncmp'.
29709         * modules/unistr/u16-strncmp-tests: New file.
29710         * tests/unistr/test-u16-strncmp.c: New file.
29711
29712         Tests for module 'unistr/u8-strncmp'.
29713         * modules/unistr/u8-strncmp-tests: New file.
29714         * tests/unistr/test-u8-strncmp.c: New file.
29715         * tests/unistr/test-strncmp.h: New file.
29716
29717         Tests for module 'unistr/u32-strcoll'.
29718         * modules/unistr/u32-strcoll-tests: New file.
29719         * tests/unistr/test-u32-strcoll.c: New file.
29720
29721         Tests for module 'unistr/u16-strcoll'.
29722         * modules/unistr/u16-strcoll-tests: New file.
29723         * tests/unistr/test-u16-strcoll.c: New file.
29724
29725         Tests for module 'unistr/u8-strcoll'.
29726         * modules/unistr/u8-strcoll-tests: New file.
29727         * tests/unistr/test-u8-strcoll.c: New file.
29728
29729         Tests for module 'unistr/u32-strcmp'.
29730         * modules/unistr/u32-strcmp-tests: New file.
29731         * tests/unistr/test-u32-strcmp.c: New file.
29732         * tests/unistr/test-u32-strcmp.h: New file.
29733
29734         Tests for module 'unistr/u16-strcmp'.
29735         * modules/unistr/u16-strcmp-tests: New file.
29736         * tests/unistr/test-u16-strcmp.c: New file.
29737         * tests/unistr/test-u16-strcmp.h: New file.
29738
29739         Tests for module 'unistr/u8-strcmp'.
29740         * modules/unistr/u8-strcmp-tests: New file.
29741         * tests/unistr/test-u8-strcmp.c: New file.
29742         * tests/unistr/test-u8-strcmp.h: New file.
29743         * tests/unistr/test-strcmp.h: New file.
29744
29745         Tests for module 'unistr/u32-strncat'.
29746         * modules/unistr/u32-strncat-tests: New file.
29747         * tests/unistr/test-u32-strncat.c: New file.
29748
29749         Tests for module 'unistr/u16-strncat'.
29750         * modules/unistr/u16-strncat-tests: New file.
29751         * tests/unistr/test-u16-strncat.c: New file.
29752
29753         Tests for module 'unistr/u8-strncat'.
29754         * modules/unistr/u8-strncat-tests: New file.
29755         * tests/unistr/test-u8-strncat.c: New file.
29756         * tests/unistr/test-strncat.h: New file.
29757
29758         Tests for module 'unistr/u32-strcat'.
29759         * modules/unistr/u32-strcat-tests: New file.
29760         * tests/unistr/test-u32-strcat.c: New file.
29761
29762         Tests for module 'unistr/u16-strcat'.
29763         * modules/unistr/u16-strcat-tests: New file.
29764         * tests/unistr/test-u16-strcat.c: New file.
29765
29766         Tests for module 'unistr/u8-strcat'.
29767         * modules/unistr/u8-strcat-tests: New file.
29768         * tests/unistr/test-u8-strcat.c: New file.
29769         * tests/unistr/test-strcat.h: New file.
29770
29771         Tests for module 'unistr/u32-stpncpy'.
29772         * modules/unistr/u32-stpncpy-tests: New file.
29773         * tests/unistr/test-u32-stpncpy.c: New file.
29774
29775         Tests for module 'unistr/u16-stpncpy'.
29776         * modules/unistr/u16-stpncpy-tests: New file.
29777         * tests/unistr/test-u16-stpncpy.c: New file.
29778
29779         Tests for module 'unistr/u8-stpncpy'.
29780         * modules/unistr/u8-stpncpy-tests: New file.
29781         * tests/unistr/test-u8-stpncpy.c: New file.
29782         * tests/unistr/test-stpncpy.h: New file.
29783
29784         Tests for module 'unistr/u32-strncpy'.
29785         * modules/unistr/u32-strncpy-tests: New file.
29786         * tests/unistr/test-u32-strncpy.c: New file.
29787
29788         Tests for module 'unistr/u16-strncpy'.
29789         * modules/unistr/u16-strncpy-tests: New file.
29790         * tests/unistr/test-u16-strncpy.c: New file.
29791
29792         Tests for module 'unistr/u8-strncpy'.
29793         * modules/unistr/u8-strncpy-tests: New file.
29794         * tests/unistr/test-u8-strncpy.c: New file.
29795         * tests/unistr/test-strncpy.h: New file.
29796
29797         Tests for module 'unistr/u32-stpcpy'.
29798         * modules/unistr/u32-stpcpy-tests: New file.
29799         * tests/unistr/test-u32-stpcpy.c: New file.
29800
29801         Tests for module 'unistr/u16-stpcpy'.
29802         * modules/unistr/u16-stpcpy-tests: New file.
29803         * tests/unistr/test-u16-stpcpy.c: New file.
29804
29805         Tests for module 'unistr/u8-stpcpy'.
29806         * modules/unistr/u8-stpcpy-tests: New file.
29807         * tests/unistr/test-u8-stpcpy.c: New file.
29808         * tests/unistr/test-stpcpy.h: New file.
29809
29810         Tests for module 'unistr/u32-strcpy'.
29811         * modules/unistr/u32-strcpy-tests: New file.
29812         * tests/unistr/test-u32-strcpy.c: New file.
29813
29814         Tests for module 'unistr/u16-strcpy'.
29815         * modules/unistr/u16-strcpy-tests: New file.
29816         * tests/unistr/test-u16-strcpy.c: New file.
29817
29818         Tests for module 'unistr/u8-strcpy'.
29819         * modules/unistr/u8-strcpy-tests: New file.
29820         * tests/unistr/test-u8-strcpy.c: New file.
29821         * tests/unistr/test-strcpy.h: New file.
29822
29823         Tests for module 'unistr/u32-strnlen'.
29824         * modules/unistr/u32-strnlen-tests: New file.
29825         * tests/unistr/test-u32-strnlen.c: New file.
29826
29827         Tests for module 'unistr/u16-strnlen'.
29828         * modules/unistr/u16-strnlen-tests: New file.
29829         * tests/unistr/test-u16-strnlen.c: New file.
29830
29831         Tests for module 'unistr/u8-strnlen'.
29832         * modules/unistr/u8-strnlen-tests: New file.
29833         * tests/unistr/test-u8-strnlen.c: New file.
29834         * tests/unistr/test-strnlen.h: New file.
29835
29836         Tests for module 'unistr/u32-strlen'.
29837         * modules/unistr/u32-strlen-tests: New file.
29838         * tests/unistr/test-u32-strlen.c: New file.
29839
29840         Tests for module 'unistr/u16-strlen'.
29841         * modules/unistr/u16-strlen-tests: New file.
29842         * tests/unistr/test-u16-strlen.c: New file.
29843
29844         Tests for module 'unistr/u8-strlen'.
29845         * modules/unistr/u8-strlen-tests: New file.
29846         * tests/unistr/test-u8-strlen.c: New file.
29847
29848         Tests for module 'unistr/u32-prev'.
29849         * modules/unistr/u32-prev-tests: New file.
29850         * tests/unistr/test-u32-prev.c: New file.
29851
29852         Tests for module 'unistr/u16-prev'.
29853         * modules/unistr/u16-prev-tests: New file.
29854         * tests/unistr/test-u16-prev.c: New file.
29855
29856         Tests for module 'unistr/u8-prev'.
29857         * modules/unistr/u8-prev-tests: New file.
29858         * tests/unistr/test-u8-prev.c: New file.
29859
29860         Tests for module 'unistr/u32-next'.
29861         * modules/unistr/u32-next-tests: New file.
29862         * tests/unistr/test-u32-next.c: New file.
29863
29864         Tests for module 'unistr/u16-next'.
29865         * modules/unistr/u16-next-tests: New file.
29866         * tests/unistr/test-u16-next.c: New file.
29867
29868         Tests for module 'unistr/u8-next'.
29869         * modules/unistr/u8-next-tests: New file.
29870         * tests/unistr/test-u8-next.c: New file.
29871
29872         Tests for module 'unistr/u32-strmbtouc'.
29873         * modules/unistr/u32-strmbtouc-tests: New file.
29874         * tests/unistr/test-u32-strmbtouc.c: New file.
29875
29876         Tests for module 'unistr/u16-strmbtouc'.
29877         * modules/unistr/u16-strmbtouc-tests: New file.
29878         * tests/unistr/test-u16-strmbtouc.c: New file.
29879
29880         Tests for module 'unistr/u8-strmbtouc'.
29881         * modules/unistr/u8-strmbtouc-tests: New file.
29882         * tests/unistr/test-u8-strmbtouc.c: New file.
29883
29884         Tests for module 'unistr/u32-strmblen'.
29885         * modules/unistr/u32-strmblen-tests: New file.
29886         * tests/unistr/test-u32-strmblen.c: New file.
29887
29888         Tests for module 'unistr/u16-strmblen'.
29889         * modules/unistr/u16-strmblen-tests: New file.
29890         * tests/unistr/test-u16-strmblen.c: New file.
29891
29892         Tests for module 'unistr/u8-strmblen'.
29893         * modules/unistr/u8-strmblen-tests: New file.
29894         * tests/unistr/test-u8-strmblen.c: New file.
29895
29896         Tests for module 'unistr/u32-cpy-alloc'.
29897         * modules/unistr/u32-cpy-alloc-tests: New file.
29898         * tests/unistr/test-u32-cpy-alloc.c: New file.
29899
29900         Tests for module 'unistr/u16-cpy-alloc'.
29901         * modules/unistr/u16-cpy-alloc-tests: New file.
29902         * tests/unistr/test-u16-cpy-alloc.c: New file.
29903
29904         Tests for module 'unistr/u8-cpy-alloc'.
29905         * modules/unistr/u8-cpy-alloc-tests: New file.
29906         * tests/unistr/test-u8-cpy-alloc.c: New file.
29907         * tests/unistr/test-cpy-alloc.h: New file.
29908
29909         Tests for module 'unistr/u32-mbsnlen'.
29910         * modules/unistr/u32-mbsnlen-tests: New file.
29911         * tests/unistr/test-u32-mbsnlen.c: New file.
29912
29913         Tests for module 'unistr/u16-mbsnlen'.
29914         * modules/unistr/u16-mbsnlen-tests: New file.
29915         * tests/unistr/test-u16-mbsnlen.c: New file.
29916
29917         Tests for module 'unistr/u8-mbsnlen'.
29918         * modules/unistr/u8-mbsnlen-tests: New file.
29919         * tests/unistr/test-u8-mbsnlen.c: New file.
29920
29921         Tests for module 'unistr/u32-chr'.
29922         * modules/unistr/u32-chr-tests: New file.
29923         * tests/unistr/test-u32-chr.c: New file.
29924
29925         Tests for module 'unistr/u16-chr'.
29926         * modules/unistr/u16-chr-tests: New file.
29927         * tests/unistr/test-u16-chr.c: New file.
29928
29929         Tests for module 'unistr/u8-chr'.
29930         * modules/unistr/u8-chr-tests: New file.
29931         * tests/unistr/test-u8-chr.c: New file.
29932         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
29933
29934         Tests for module 'unistr/u32-cmp2'.
29935         * modules/unistr/u32-cmp2-tests: New file.
29936         * tests/unistr/test-u32-cmp2.c: New file.
29937
29938         Tests for module 'unistr/u16-cmp2'.
29939         * modules/unistr/u16-cmp2-tests: New file.
29940         * tests/unistr/test-u16-cmp2.c: New file.
29941
29942         Tests for module 'unistr/u8-cmp2'.
29943         * modules/unistr/u8-cmp2-tests: New file.
29944         * tests/unistr/test-u8-cmp2.c: New file.
29945         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
29946
29947         Tests for module 'unistr/u32-cmp'.
29948         * modules/unistr/u32-cmp-tests: New file.
29949         * tests/unistr/test-u32-cmp.c: New file.
29950
29951         Tests for module 'unistr/u16-cmp'.
29952         * modules/unistr/u16-cmp-tests: New file.
29953         * tests/unistr/test-u16-cmp.c: New file.
29954
29955         Tests for module 'unistr/u8-cmp'.
29956         * modules/unistr/u8-cmp-tests: New file.
29957         * tests/unistr/test-u8-cmp.c: New file.
29958         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
29959
29960         Tests for module 'unistr/u32-set'.
29961         * modules/unistr/u32-set-tests: New file.
29962         * tests/unistr/test-u32-set.c: New file.
29963
29964         Tests for module 'unistr/u16-set'.
29965         * modules/unistr/u16-set-tests: New file.
29966         * tests/unistr/test-u16-set.c: New file.
29967
29968         Tests for module 'unistr/u8-set'.
29969         * modules/unistr/u8-set-tests: New file.
29970         * tests/unistr/test-u8-set.c: New file.
29971         * tests/unistr/test-set.h: New file.
29972
29973         Tests for module 'unistr/u32-move'.
29974         * modules/unistr/u32-move-tests: New file.
29975         * tests/unistr/test-u32-move.c: New file.
29976
29977         Tests for module 'unistr/u16-move'.
29978         * modules/unistr/u16-move-tests: New file.
29979         * tests/unistr/test-u16-move.c: New file.
29980
29981         Tests for module 'unistr/u8-move'.
29982         * modules/unistr/u8-move-tests: New file.
29983         * tests/unistr/test-u8-move.c: New file.
29984         * tests/unistr/test-move.h: New file.
29985
29986         Tests for module 'unistr/u32-cpy'.
29987         * modules/unistr/u32-cpy-tests: New file.
29988         * tests/unistr/test-u32-cpy.c: New file.
29989
29990         Tests for module 'unistr/u16-cpy'.
29991         * modules/unistr/u16-cpy-tests: New file.
29992         * tests/unistr/test-u16-cpy.c: New file.
29993
29994         Tests for module 'unistr/u8-cpy'.
29995         * modules/unistr/u8-cpy-tests: New file.
29996         * tests/unistr/test-u8-cpy.c: New file.
29997         * tests/unistr/test-cpy.h: New file.
29998
29999 2010-01-09  Bruno Haible  <bruno@clisp.org>
30000
30001         Tests for module 'unistr/u32-uctomb'.
30002         * modules/unistr/u32-uctomb-tests: New file.
30003         * tests/unistr/test-u32-uctomb.c: New file.
30004
30005         Tests for module 'unistr/u16-uctomb'.
30006         * modules/unistr/u16-uctomb-tests: New file.
30007         * tests/unistr/test-u16-uctomb.c: New file.
30008
30009         Tests for module 'unistr/u8-uctomb'.
30010         * modules/unistr/u8-uctomb-tests: New file.
30011         * tests/unistr/test-u8-uctomb.c: New file.
30012
30013         Tests for module 'unistr/u32-mbtoucr'.
30014         * modules/unistr/u32-mbtoucr-tests: New file.
30015         * tests/unistr/test-u32-mbtoucr.c: New file.
30016
30017         Tests for module 'unistr/u16-mbtoucr'.
30018         * modules/unistr/u16-mbtoucr-tests: New file.
30019         * tests/unistr/test-u16-mbtoucr.c: New file.
30020
30021         Tests for module 'unistr/u8-mbtoucr'.
30022         * modules/unistr/u8-mbtoucr-tests: New file.
30023         * tests/unistr/test-u8-mbtoucr.c: New file.
30024
30025         Tests for module 'unistr/u32-mbtouc'.
30026         * modules/unistr/u32-mbtouc-tests: New file.
30027         * tests/unistr/test-u32-mbtouc.c: New file.
30028
30029         Tests for module 'unistr/u16-mbtouc'.
30030         * modules/unistr/u16-mbtouc-tests: New file.
30031         * tests/unistr/test-u16-mbtouc.c: New file.
30032
30033         Tests for module 'unistr/u8-mbtouc'.
30034         * modules/unistr/u8-mbtouc-tests: New file.
30035         * tests/unistr/test-u8-mbtouc.c: New file.
30036
30037         Tests for module 'unistr/u32-mbtouc-unsafe'.
30038         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
30039         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
30040         * tests/unistr/test-u32-mbtouc.h: New file.
30041
30042         Tests for module 'unistr/u16-mbtouc-unsafe'.
30043         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
30044         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
30045         * tests/unistr/test-u16-mbtouc.h: New file.
30046
30047         Tests for module 'unistr/u8-mbtouc-unsafe'.
30048         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
30049         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
30050         * tests/unistr/test-u8-mbtouc.h: New file.
30051
30052         Tests for module 'unistr/u32-mblen'.
30053         * modules/unistr/u32-mblen-tests: New file.
30054         * tests/unistr/test-u32-mblen.c: New file.
30055
30056         Tests for module 'unistr/u16-mblen'.
30057         * modules/unistr/u16-mblen-tests: New file.
30058         * tests/unistr/test-u16-mblen.c: New file.
30059
30060         Tests for module 'unistr/u8-mblen'.
30061         * modules/unistr/u8-mblen-tests: New file.
30062         * tests/unistr/test-u8-mblen.c: New file.
30063
30064         Tests for module 'unistr/u32-to-u16'.
30065         * modules/unistr/u32-to-u16-tests: New file.
30066         * tests/unistr/test-u32-to-u16.c: New file.
30067
30068         Tests for module 'unistr/u32-to-u8'.
30069         * modules/unistr/u32-to-u8-tests: New file.
30070         * tests/unistr/test-u32-to-u8.c: New file.
30071
30072         Tests for module 'unistr/u16-to-u32'.
30073         * modules/unistr/u16-to-u32-tests: New file.
30074         * tests/unistr/test-u16-to-u32.c: New file.
30075
30076         Tests for module 'unistr/u16-to-u8'.
30077         * modules/unistr/u16-to-u8-tests: New file.
30078         * tests/unistr/test-u16-to-u8.c: New file.
30079
30080         Tests for module 'unistr/u8-to-u32'.
30081         * modules/unistr/u8-to-u32-tests: New file.
30082         * tests/unistr/test-u8-to-u32.c: New file.
30083
30084         Tests for module 'unistr/u8-to-u16'.
30085         * modules/unistr/u8-to-u16-tests: New file.
30086         * tests/unistr/test-u8-to-u16.c: New file.
30087
30088         Tests for module 'unistr/u32-check'.
30089         * modules/unistr/u32-check-tests: New file.
30090         * tests/unistr/test-u32-check.c: New file.
30091
30092         Tests for module 'unistr/u16-check'.
30093         * modules/unistr/u16-check-tests: New file.
30094         * tests/unistr/test-u16-check.c: New file.
30095
30096         Tests for module 'unistr/u8-check'.
30097         * modules/unistr/u8-check-tests: New file.
30098         * tests/unistr/test-u8-check.c: New file.
30099
30100         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
30101         (category_equals): New function.
30102         (main): Add more tests.
30103         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
30104
30105         * tests/unictype/test-bidi_byname.c (main): Add more tests.
30106
30107 2010-01-10  Bruno Haible  <bruno@clisp.org>
30108
30109         unistr/u*-strcoll: Try harder to distinguish different strings.
30110         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
30111         compare s1 and s2 to see if they are different.
30112
30113 2010-01-10  Bruno Haible  <bruno@clisp.org>
30114
30115         unistr/u*-stpncpy: Fix the return value.
30116         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
30117         description of the return value consistent with stpncpy in glibc.
30118         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
30119         written non-NUL unit.
30120
30121 2010-01-10  Bruno Haible  <bruno@clisp.org>
30122
30123         unistr/u*-next: Add missing dependencies.
30124         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
30125         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
30126         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
30127
30128 2010-01-10  Bruno Haible  <bruno@clisp.org>
30129
30130         unistr/u8-mbsnlen: Fix return value for incomplete character.
30131         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
30132         u8_mblen.
30133         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
30134         Remove unistr/u8-mblen.
30135         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
30136         u16_mblen.
30137         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
30138         Remove unistr/u16-mblen.
30139
30140 2010-01-10  Bruno Haible  <bruno@clisp.org>
30141
30142         wchar: Fix compilation error when <wchar.h> is used from coreutils.
30143         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
30144         Reported by Brian Gough <bjg@gnu.org> and
30145         Chris Clayton <chris2553@googlemail.com> via
30146         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
30147
30148 2010-01-09  Bruno Haible  <bruno@clisp.org>
30149
30150         unistr/u16-to-u32: Reject invalid input.
30151         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
30152         u16_mbtouc.
30153         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
30154         Remove unistr/u16-mbtouc.
30155
30156         unistr/u16-to-u8: Reject invalid input.
30157         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
30158         u16_mbtouc.
30159         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
30160         Remove unistr/u16-mbtouc.
30161
30162         unistr/u8-to-u32: Reject invalid input.
30163         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
30164         u8_mbtouc.
30165         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
30166         Remove unistr/u8-mbtouc.
30167
30168         unistr/u8-to-u16: Reject invalid input.
30169         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
30170         u8_mbtouc.
30171         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
30172         Remove unistr/u8-mbtouc.
30173
30174 2010-01-09  Bruno Haible  <bruno@clisp.org>
30175
30176         Tests for module 'getlogin'.
30177         * modules/getlogin-tests: New file.
30178         * tests/test-getlogin.c: New file.
30179
30180         New module 'getlogin'.
30181         * lib/unistd.in.h (getlogin): New declaration.
30182         * lib/getlogin.c: New file.
30183         * m4/getlogin.m4: New file.
30184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
30185         HAVE_GETLOGIN.
30186         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
30187         HAVE_GETLOGIN.
30188         * modules/getlogin: New file.
30189         * doc/posix-functions/getlogin.texi: Mention the new module.
30190         Reported by John W. Eaton <jwe@gnu.org>.
30191
30192 2010-01-09  Bruno Haible  <bruno@clisp.org>
30193
30194         getlogin_r: Support for native Windows.
30195         * lib/getlogin_r.c: Include <windows.h>
30196         (getlogin_r): Implement for native Windows.
30197         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
30198         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
30199         via John W. Eaton <jwe@gnu.org>.
30200
30201 2010-01-09  Bruno Haible  <bruno@clisp.org>
30202
30203         getlogin_r: Small fixes.
30204         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
30205         succeeds.
30206         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
30207         before testing whether getlogin_r is declared. No need to set
30208         HAVE_DECL_GETLOGIN_R to 1.
30209         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
30210
30211 2010-01-09  Bruno Haible  <bruno@clisp.org>
30212
30213         * lib/unistd.in.h (getlogin_r): Add comment.
30214
30215 2010-01-09  Bruno Haible  <bruno@clisp.org>
30216
30217         Tests for module 'getlogin_r'.
30218         * modules/getlogin_r-tests: New file.
30219         * tests/test-getlogin_r.c: New file.
30220
30221 2010-01-09  Jim Meyering  <meyering@redhat.com>
30222
30223         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
30224         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
30225         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
30226
30227 2010-01-08  Simon Josefsson  <simon@josefsson.org>
30228
30229         * lib/dup2.c (rpl_dup2): Improve comment.
30230
30231 2010-01-08  Eric Blake  <ebb9@byu.net>
30232
30233         maint.mk: allow packages to add makefile @@ exceptions
30234         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
30235         (sc_makefile_check): Rename...
30236         (sc_makefile_at_at_check): ...to this, and use hook.
30237
30238         dup2: work around mingw bug
30239         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
30240         Reported by Simon Josefsson.
30241
30242 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
30243
30244         glob: Fix C++ compilation.
30245         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
30246         C++.
30247
30248 2010-01-07  Bruno Haible  <bruno@clisp.org>
30249
30250         Fix indentation of wctype.in.h, broken since 2007-01-06.
30251         * lib/wctype.in.h: Fix indentation of preprocessor directives.
30252
30253 2010-01-07  Bruno Haible  <bruno@clisp.org>
30254
30255         mbslen: Avoid collision with system function.
30256         * lib/string.in.h [MirBSD]: Include <wchar.h>.
30257         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
30258         * m4/mbslen.m4: New file.
30259         * modules/mbslen (Files): Add it.
30260         (configure.ac): Invoke gl_MBSLEN.
30261         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
30262         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
30263         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
30264         via Ian Beckwith <ianb@erislabs.net>.
30265
30266 2010-01-07  Bruno Haible  <bruno@clisp.org>
30267
30268         dirent: Document the last fix.
30269         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
30270
30271 2010-01-07  Bruno Haible  <bruno@clisp.org>
30272
30273         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
30274         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
30275         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
30276         va_list are defined.
30277         * doc/posix-headers/stdio.texi: Document the bug of missing types.
30278         Reported by Eric Blake.
30279
30280 2010-01-07  Bruno Haible  <bruno@clisp.org>
30281
30282         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
30283         * modules/xlist (Depends-on): Add 'list',
30284         * modules/xoset (Depends-on): Add 'oset'.
30285         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30286
30287 2010-01-07  Bruno Haible  <bruno@clisp.org>
30288
30289         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
30290         * doc/posix-functions/strncasecmp.texi: Likewise.
30291
30292 2010-01-07  Bruno Haible  <bruno@clisp.org>
30293
30294         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
30295
30296 2010-01-07  John W. Eaton  <jwe@octave.org>
30297
30298         wctype: allow C++ use
30299         * lib/wctype.in.h: Add extern "C" block for C++.
30300
30301 2010-01-06  Eric Blake  <ebb9@byu.net>
30302
30303         maint.mk: detect incorrect GFDL usage
30304         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
30305
30306 2010-01-06  Jim Meyering  <meyering@redhat.com>
30307         and Eric Blake  <ebb9@byu.net>
30308
30309         maint.mk: ignore multi-line copyright in NEWS
30310         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
30311
30312 2010-01-06  Eric Blake  <ebb9@byu.net>
30313
30314         select: add missing dependency
30315         * modules/select-tests (Depends-on): Move sockets dependency...
30316         * modules/select (Depends-on): ...here.
30317         Reported by Ian Beckwith.
30318
30319         doc: regenerate INSTALL
30320         * doc/INSTALL: Reflect recent autoconf update.
30321         * doc/INSTALL.ISO: Likewise.
30322         * doc/INSTALL.UTF-8: Likewise.
30323
30324         pread: fix compilation on glibc
30325         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
30326         Reported by Ralf Wildenhues.
30327
30328         dirent: fix test failure
30329         * lib/dirent.in.h (includes): Guarantee ino_t.
30330         Reported by Ralf Wildenhues.
30331
30332 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
30333
30334         linkat, renameat: avoid bad free
30335         * lib/at-func2.c (at_func2): Fix typo.
30336         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
30337
30338 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30339
30340         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
30341         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
30342         to avoid failure of symlink test later.
30343
30344 2010-01-06  Eric Blake  <ebb9@byu.net>
30345
30346         stdio, unistd: guarantee ssize_t
30347         * lib/unistd.in.h (includes): Ensure that types required by POSIX
30348         2008 are exposed when needed.
30349         * lib/stdio.in.h (includes): Likewise.
30350         Reported by Ralf Wildenhues.
30351
30352 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
30353
30354         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
30355         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
30356         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
30357
30358 2010-01-06  Jim Meyering  <meyering@redhat.com>
30359
30360         readtokens: this module *does* require xalloc.h
30361         It uses only functions that were omitted by the old syntax-check rule.
30362         * lib/readtokens.c: Include "xalloc.h" once again.
30363         * modules/readtokens (Depends-on): Add xalloc.
30364         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
30365
30366 2010-01-05  Eric Blake  <ebb9@byu.net>
30367
30368         maint: support 'make announcement' from a VPATH build
30369         * top/maint.mk (announcement): Look for correct NEWS file.
30370
30371 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
30372
30373         utimens (fdutimens): ignore a negative FD, per contract
30374         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
30375         when we have a valid file descriptor.  Otherwise, using a brand
30376         new glibc (with just-patched futimens that now fails with EBADF)
30377         would cause this function to fail with ENOSYS.
30378         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
30379         See also http://bugzilla.redhat.com/552320.
30380
30381 2010-01-05  Eric Blake  <ebb9@byu.net>
30382
30383         strcase: document what it provides
30384         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
30385         gnulib module.
30386         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
30387         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
30388
30389 2010-01-05  Jim Meyering  <meyering@redhat.com>
30390
30391         maint: remove useless inclusions of "xalloc.h"
30392         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
30393         * lib/readtokens.c: Likewise.
30394         * lib/same.c: Likewise.
30395         * modules/getloadavg (Depends-on): Remove xalloc.
30396         * modules/readtokens: Likewise.
30397         * modules/same: Likewise.
30398
30399         maint.mk: include 4 more function names in alloca.h-checking regexp
30400         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
30401         regexp.  Before, we would give a false-positive (saying alloca.h
30402         is included unnecessarily) when the only uses involved omitted symbols.
30403
30404         xalloc.h: use consistent formatting
30405         * lib/xalloc.h: Move declarations to start in the first column.
30406
30407 2010-01-05  Eric Blake  <ebb9@byu.net>
30408
30409         mkdir: avoid xalloc
30410         * lib/mkdir.c (includes): Drop unused header.
30411         Reported by John W. Eaton.
30412
30413 2010-01-04  Jim Meyering  <meyering@redhat.com>
30414
30415         nl_langinfo: avoid configure-time syntax error
30416         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
30417         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
30418         the empty string.  Don't let that provoke a shell syntax error.
30419
30420         regcomp, regexec, fnmatch: avoid array bounds read error
30421         * lib/regcomp.c (build_equiv_class): From glibc:
30422         Use only the low 24 bits of a findidx return value as an index
30423         into the weights array.  Patch by Ulrich Drepper:
30424         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
30425         * lib/regexec.c (check_node_accept_bytes): Likewise.
30426         * lib/fnmatch_loop.c (FCT): Likewise.
30427
30428         regcomp: skip collseq lookup when there are no rules
30429         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
30430         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
30431
30432         regcomp: recognize ill-formed { } expressions
30433         * lib/regcomp.c (parse_dup_op): From glibc:
30434         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
30435
30436         regcomp: fix typo in comment
30437         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
30438         s/satisfy/satisfies/.
30439
30440         regcomp: sync from glibc: remove dead store
30441         * lib/regcomp.c (duplicate_node_closure): Remove useless
30442         search_duplicated_node call and dead store.
30443
30444         regcomp: sync from glibc; always use nl_langinfo
30445         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
30446         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
30447         * modules/regex (Depends-on): Add nl_langinfo.
30448
30449 2010-01-04  Eric Blake  <ebb9@byu.net>
30450
30451         fdopendir: fix configure test
30452         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
30453
30454 2010-01-01  Bruno Haible  <bruno@clisp.org>
30455
30456         wchar: Remove unused configure check.
30457         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
30458
30459 2010-01-01  Eric Blake  <ebb9@byu.net>
30460
30461         headers: make check of system header explicit
30462         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
30463         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
30464         ourselves.
30465         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30466         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30467         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30468         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
30469         internals.
30470         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
30471         missing.
30472         Suggested by Bruno Haible.
30473
30474 2010-01-01  Jim Meyering  <meyering@redhat.com>
30475
30476         ChangeLog: tweak to eliminate unnecessary copyright line
30477         * ChangeLog: Remove a copyright line that was mistakenly updated
30478         by today's update-copyright run.  Reported by Eric Blake.
30479
30480         test-update-copyright: don't let envvar setting cause test failure
30481         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30482
30483 2010-01-01  Bruno Haible  <bruno@clisp.org>
30484
30485         localename: Avoid gcc warning.
30486         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
30487         function if it is not used.
30488
30489 2010-01-01  Jim Meyering  <meyering@redhat.com>
30490
30491         update nearly all FSF copyright year lists to include 2010
30492         Use the same procedure as for 2009, outlined in
30493         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
30494
30495         version-etc: set COPYRIGHT_YEAR to 2010
30496         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
30497
30498 2009-12-31  Eric Blake  <ebb9@byu.net>
30499
30500         doc: correct availability of cygwin 1.5.x getopt
30501         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
30502         variables.
30503         * doc/posix-functions/opterr.texi (opterr): Likewise.
30504         * doc/posix-functions/optind.texi (optind): Likewise.
30505         * doc/posix-functions/optopt.texi (optopt): Likewise.
30506         * doc/posix-functions/tzname.texi (tzname): Likewise.
30507
30508         openat: update maintainer
30509         * modules/openat (Maintainer): Add myself.
30510
30511         utimens: avoid shadowing warning
30512         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
30513         buffers into one, to avoid shadowing, as well as avoiding a
30514         redundant stat.
30515         Reported by Jim Meyering.
30516
30517         test-dup2: avoid compiler warning
30518         * tests/test-dup2.c (is_inheritable): Only define if used.
30519
30520 2010-01-01  Bruno Haible  <bruno@clisp.org>
30521
30522         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
30523         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
30524         defined, use wctomb instead of wcrtomb.
30525
30526 2010-01-01  Bruno Haible  <bruno@clisp.org>
30527
30528         iconv: Reject native Solaris iconv.
30529         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
30530         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
30531
30532 2009-12-31  Bruno Haible  <bruno@clisp.org>
30533
30534         * tests/test-signal.c (main): Remove test of 'SIG'.
30535
30536 2009-12-31  Bruno Haible  <bruno@clisp.org>
30537
30538         spawn: Fix incomplete fix.
30539         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30540         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30541         warnings for GNULIB_POSIXCHECK again.
30542         Reported by Eric Blake.
30543
30544 2009-12-31  Bruno Haible  <bruno@clisp.org>
30545
30546         Avoid namespace pollution on glibc systems.
30547         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
30548         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
30549         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
30550         glibc systems.
30551
30552 2009-12-31  Bruno Haible  <bruno@clisp.org>
30553
30554         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
30555         (gl_REPLACE_WCHAR_H): Turn into a no-op.
30556         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
30557         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
30558         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
30559         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
30560         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
30561
30562 2009-12-31  Bruno Haible  <bruno@clisp.org>
30563
30564         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30565         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
30566         afterwards.
30567
30568 2009-12-31  Bruno Haible  <bruno@clisp.org>
30569
30570         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
30571         SYS_UTSNAME_H.
30572
30573 2009-12-31  Bruno Haible  <bruno@clisp.org>
30574
30575         spawn: Fix misapplied patch.
30576         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30577         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30578         warnings for GNULIB_POSIXCHECK.
30579
30580 2009-12-31  Bruno Haible  <bruno@clisp.org>
30581
30582         times: Update after sys_times changed.
30583         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
30584         * modules/times (Files): Add it.
30585         (configure.ac): Invoke gl_FUNC_TIMES.
30586
30587 2009-12-31  Bruno Haible  <bruno@clisp.org>
30588
30589         Use AC_C_INLINE where necessary.
30590         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
30591         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30592         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
30593         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30594         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30595         * m4/mbiter.m4 (gl_MBITER): Likewise.
30596         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30597         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30598         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
30599         * modules/u64 (configure.ac): Likewise.
30600
30601 2009-12-31  Bruno Haible  <bruno@clisp.org>
30602
30603         Use AC_C_INLINE instead of module 'inline' where possible.
30604         * modules/inline (Description): Clarify purpose.
30605         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
30606         * modules/count-one-bits (Depends-on): Remove inline.
30607         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
30608         * modules/openat (Depends-on): Remove inline.
30609         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
30610         instead of depending on module 'inline'.
30611         * modules/filevercmp (Depends-on, configure.ac): Likewise.
30612         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
30613         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
30614         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
30615         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
30616         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
30617         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
30618         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
30619         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
30620         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
30621         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
30622         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
30623         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
30624         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
30625         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
30626         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
30627         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
30628         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
30629         Likewise.
30630         * modules/unictype/property-ascii-hex-digit (Depends-on,
30631         configure.ac): Likewise.
30632         * modules/unictype/property-bidi-arabic-digit (Depends-on,
30633         configure.ac): Likewise.
30634         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
30635         configure.ac): Likewise.
30636         * modules/unictype/property-bidi-block-separator (Depends-on,
30637         configure.ac): Likewise.
30638         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
30639         configure.ac): Likewise.
30640         * modules/unictype/property-bidi-common-separator (Depends-on,
30641         configure.ac): Likewise.
30642         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
30643         Likewise.
30644         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
30645         configure.ac): Likewise.
30646         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
30647         configure.ac): Likewise.
30648         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
30649         configure.ac): Likewise.
30650         * modules/unictype/property-bidi-european-digit (Depends-on,
30651         configure.ac): Likewise.
30652         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
30653         configure.ac): Likewise.
30654         * modules/unictype/property-bidi-left-to-right (Depends-on,
30655         configure.ac): Likewise.
30656         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
30657         configure.ac): Likewise.
30658         * modules/unictype/property-bidi-other-neutral (Depends-on,
30659         configure.ac): Likewise.
30660         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
30661         Likewise.
30662         * modules/unictype/property-bidi-segment-separator (Depends-on,
30663         configure.ac): Likewise.
30664         * modules/unictype/property-bidi-whitespace (Depends-on,
30665         configure.ac): Likewise.
30666         * modules/unictype/property-combining (Depends-on, configure.ac):
30667         Likewise.
30668         * modules/unictype/property-composite (Depends-on, configure.ac):
30669         Likewise.
30670         * modules/unictype/property-currency-symbol (Depends-on,
30671         configure.ac): Likewise.
30672         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
30673         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
30674         Likewise.
30675         * modules/unictype/property-default-ignorable-code-point (Depends-on,
30676         configure.ac): Likewise.
30677         * modules/unictype/property-deprecated (Depends-on, configure.ac):
30678         Likewise.
30679         * modules/unictype/property-diacritic (Depends-on, configure.ac):
30680         Likewise.
30681         * modules/unictype/property-extender (Depends-on, configure.ac):
30682         Likewise.
30683         * modules/unictype/property-format-control (Depends-on, configure.ac):
30684         Likewise.
30685         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
30686         Likewise.
30687         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
30688         Likewise.
30689         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
30690         Likewise.
30691         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
30692         Likewise.
30693         * modules/unictype/property-hyphen (Depends-on, configure.ac):
30694         Likewise.
30695         * modules/unictype/property-id-continue (Depends-on, configure.ac):
30696         Likewise.
30697         * modules/unictype/property-id-start (Depends-on, configure.ac):
30698         Likewise.
30699         * modules/unictype/property-ideographic (Depends-on, configure.ac):
30700         Likewise.
30701         * modules/unictype/property-ids-binary-operator (Depends-on,
30702         configure.ac): Likewise.
30703         * modules/unictype/property-ids-trinary-operator (Depends-on,
30704         configure.ac): Likewise.
30705         * modules/unictype/property-ignorable-control (Depends-on,
30706         configure.ac): Likewise.
30707         * modules/unictype/property-iso-control (Depends-on, configure.ac):
30708         Likewise.
30709         * modules/unictype/property-join-control (Depends-on, configure.ac):
30710         Likewise.
30711         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
30712         Likewise.
30713         * modules/unictype/property-line-separator (Depends-on, configure.ac):
30714         Likewise.
30715         * modules/unictype/property-logical-order-exception (Depends-on,
30716         configure.ac): Likewise.
30717         * modules/unictype/property-lowercase (Depends-on, configure.ac):
30718         Likewise.
30719         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
30720         * modules/unictype/property-non-break (Depends-on, configure.ac):
30721         Likewise.
30722         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
30723         Likewise.
30724         * modules/unictype/property-numeric (Depends-on, configure.ac):
30725         Likewise.
30726         * modules/unictype/property-other-alphabetic (Depends-on,
30727         configure.ac): Likewise.
30728         * modules/unictype/property-other-default-ignorable-code-point
30729         (Depends-on, configure.ac): Likewise.
30730         * modules/unictype/property-other-grapheme-extend (Depends-on,
30731         configure.ac): Likewise.
30732         * modules/unictype/property-other-id-continue (Depends-on,
30733         configure.ac): Likewise.
30734         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
30735         Likewise.
30736         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
30737         Likewise.
30738         * modules/unictype/property-other-math (Depends-on, configure.ac):
30739         Likewise.
30740         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
30741         Likewise.
30742         * modules/unictype/property-paired-punctuation (Depends-on,
30743         configure.ac): Likewise.
30744         * modules/unictype/property-paragraph-separator (Depends-on,
30745         configure.ac): Likewise.
30746         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
30747         Likewise.
30748         * modules/unictype/property-pattern-white-space (Depends-on,
30749         configure.ac): Likewise.
30750         * modules/unictype/property-private-use (Depends-on, configure.ac):
30751         Likewise.
30752         * modules/unictype/property-punctuation (Depends-on, configure.ac):
30753         Likewise.
30754         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
30755         Likewise.
30756         * modules/unictype/property-radical (Depends-on, configure.ac):
30757         Likewise.
30758         * modules/unictype/property-sentence-terminal (Depends-on,
30759         configure.ac): Likewise.
30760         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
30761         Likewise.
30762         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
30763         * modules/unictype/property-terminal-punctuation (Depends-on,
30764         configure.ac): Likewise.
30765         * modules/unictype/property-titlecase (Depends-on, configure.ac):
30766         Likewise.
30767         * modules/unictype/property-unassigned-code-value (Depends-on,
30768         configure.ac): Likewise.
30769         * modules/unictype/property-unified-ideograph (Depends-on,
30770         configure.ac): Likewise.
30771         * modules/unictype/property-uppercase (Depends-on, configure.ac):
30772         Likewise.
30773         * modules/unictype/property-variation-selector (Depends-on,
30774         configure.ac): Likewise.
30775         * modules/unictype/property-white-space (Depends-on, configure.ac):
30776         Likewise.
30777         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
30778         Likewise.
30779         * modules/unictype/property-xid-start (Depends-on, configure.ac):
30780         Likewise.
30781         * modules/unictype/property-zero-width (Depends-on, configure.ac):
30782         Likewise.
30783         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
30784         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
30785         Likewise.
30786
30787 2009-12-31  Bruno Haible  <bruno@clisp.org>
30788
30789         Remove unnecessary AC_C_INLINE invocation.
30790         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
30791         since 2009-08-21.
30792
30793 2009-12-31  Jim Meyering  <meyering@redhat.com>
30794
30795         maint.mk: don't require explicit gpg_key_ID in cfg.mk
30796         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
30797         With this change, we can all remove the gpg_key_ID = ... definition
30798         from our respective cfg.mk files.
30799
30800         maint.mk: create announcement template in ~/, not in /tmp
30801         * top/maint.mk (emit_upload_commands): Adjust.
30802         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
30803         Remove temporary file, .ci-msg.
30804
30805 2009-12-31  Eric Blake  <ebb9@byu.net>
30806
30807         link-warning: always build headers with link warnings
30808         * modules/arpa_inet (Makefile.am): Always build replacement
30809         header.
30810         * modules/ctype (Makefile.am): Likewise.
30811         * modules/dirent (Makefile.am): Likewise.
30812         * modules/inttypes (Makefile.am): Likewise.
30813         * modules/langinfo (Makefile.am): Likewise.
30814         * modules/locale (Makefile.am): Likewise.
30815         * modules/spawn (Makefile.am): Likewise.
30816         * modules/sys_file (Makefile.am): Likewise.
30817         * modules/sys_ioctl (Makefile.am): Likewise.
30818         * modules/sys_select (Makefile.am): Likewise.
30819         * modules/sys_socket (Makefile.am): Likewise.
30820         * modules/sys_times (Makefile.am): Likewise.
30821         * modules/sys_utsname (Makefile.am): Likewise.
30822         * modules/sys_wait (Makefile.am): Likewise.
30823         * modules/wchar (Makefile.am): Likewise.
30824         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
30825         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
30826         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
30827         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
30828         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
30829         Likewise.
30830         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30831         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30832         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
30833         Likewise.
30834         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
30835         Likewise.
30836         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
30837         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
30838         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
30839         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30840         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30841         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30842         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30843         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
30844         (gl_WCHAR_H_DEFAULTS): Likewise.
30845
30846 2009-12-31  Eric Blake  <ebb9@byu.net>
30847
30848         signal, spawn: use link warnings
30849         * lib/signal.in.h (sigset_t): Make unconditional.
30850         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
30851         (sigpending, sigprocmask, sigaction): Add link warnings.
30852         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
30853         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
30854         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
30855         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
30856         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
30857         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
30858         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
30859         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
30860         (posix_spawn_file_actions_destroy)
30861         (posix_spawn_file_actions_addopen)
30862         (posix_spawn_file_actions_addclose)
30863         (posix_spawn_file_actions_adddup2): Likewise.
30864         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
30865         * tests/test-signal.c (main): Enhance test.
30866
30867         spawn: improve wrapper support
30868         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
30869         (gl_SPAWN_H_DEFAULTS): New defaults.
30870         * modules/spawn (Makefile.am): Substitute them.
30871         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
30872         Only declare if missing or broken.
30873
30874         sys_times, sys_utsname: use include_next
30875         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
30876         header.
30877         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
30878         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30879         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30880         * modules/sys_times (Depends-on): Add include_next.
30881         (Makefile.am): Substitute additional values.
30882         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30883         * lib/sys_times.in.h (includes): Include native header, if
30884         available.
30885         * lib/sys_utsname.in.h (includes): Likewise.
30886         * tests/test-sys_times.c (main): Enhance test.
30887
30888         fdutimensat: revert prior patch
30889         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
30890         utimens.h.
30891         Reported by Bruno Haible.
30892
30893 2009-12-30  Eric Blake  <ebb9@byu.net>
30894
30895         sys_wait: drop link-warning dependency
30896         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
30897         link-warning efforts.
30898         * lib/sys_wait.in.h: Likewise.
30899
30900         fdutimensat: remove bogus dependency
30901         * modules/fdutimensat (Depends-on): Drop inline.
30902
30903         unistd: fix typo
30904         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
30905
30906 2009-12-30  Bruno Haible  <bruno@clisp.org>
30907
30908         Fix compilation error with Solaris cc.
30909         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
30910         * lib/unicase/u16-is-invariant.c: Likewise.
30911         * lib/unicase/u32-is-invariant.c: Likewise.
30912         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30913
30914 2009-12-30  Bruno Haible  <bruno@clisp.org>
30915
30916         Fix test crash.
30917         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
30918         locales.
30919         Reported by Simon Josefsson <simon@josefsson.org>.
30920
30921 2009-12-30  Bruno Haible  <bruno@clisp.org>
30922
30923         Fix compilation error on most platforms.
30924         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
30925         Reported by Simon Josefsson <simon@josefsson.org>
30926         and Nelson H. F. Beebe <beebe@math.utah.edu>.
30927
30928 2009-12-30  Eric Blake  <ebb9@byu.net>
30929
30930         futimens, utimensat: work around ntfs-3g bug
30931         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
30932         a ctime bug is present, and expand workaround to cover ntfs-3g.
30933         * lib/utimens.c (fdutimens, lutimens): Likewise.
30934         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
30935         (validate_timespec): Adjust return value.
30936         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
30937         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30938         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
30939
30940 2009-12-29  Eric Blake  <ebb9@byu.net>
30941
30942         link-warning: make usage consistent
30943         * modules/ctype (Depends-on): Add link-warning.
30944         (Makefile.am): Update rules accordingly.
30945         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30946         * modules/locale (Depends-on, Makefile.am): Likewise.
30947         * modules/sys_file (Makefile.am): Likewise.
30948         * modules/getopt-posix (Makefile.am): Delete unused link warning
30949         efforts.
30950         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
30951         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
30952         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
30953         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
30954
30955         stdio: remove unused variables
30956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
30957         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
30958         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30959
30960         tests: test more substitute headers
30961         * modules/ctype-tests: New file.
30962         * modules/dirent-tests: Likewise.
30963         * modules/spawn-tests: Likewise.
30964         * modules/sys_file-tests: Likewise.
30965         * modules/sys_ioctl-tests: Likewise.
30966         * modules/sys_wait-tests: Likewise.
30967         * tests/test-ctype.c: Likewise.
30968         * tests/test-dirent.c: Likewise.
30969         * tests/test-spawn.c: Likewise.
30970         * tests/test-sys_file.c: Likewise.
30971         * tests/test-sys_ioctl.c: Likewise.
30972         * tests/test-sys_wait.c: Likewise.
30973         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
30974         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
30975         whether or not flock is in use.
30976
30977         tests: remove License section from module
30978         * modules/arpa_inet-tests: Remove unneeded section.
30979         * modules/byteswap-tests: Likewise.
30980         * modules/ceilf-tests: Likewise.
30981         * modules/ceill-tests: Likewise.
30982         * modules/crypto/des-tests: Likewise.
30983         * modules/crypto/gc-arcfour-tests: Likewise.
30984         * modules/crypto/gc-arctwo-tests: Likewise.
30985         * modules/crypto/gc-des-tests: Likewise.
30986         * modules/crypto/gc-hmac-md5-tests: Likewise.
30987         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30988         * modules/crypto/gc-md2-tests: Likewise.
30989         * modules/crypto/gc-md4-tests: Likewise.
30990         * modules/crypto/gc-md5-tests: Likewise.
30991         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30992         * modules/crypto/gc-rijndael-tests: Likewise.
30993         * modules/crypto/gc-sha1-tests: Likewise.
30994         * modules/crypto/gc-tests: Likewise.
30995         * modules/crypto/md2-tests: Likewise.
30996         * modules/crypto/md4-tests: Likewise.
30997         * modules/fcntl-h-tests: Likewise.
30998         * modules/floorf-tests: Likewise.
30999         * modules/floorl-tests: Likewise.
31000         * modules/frexp-nolibm-tests: Likewise.
31001         * modules/frexp-tests: Likewise.
31002         * modules/frexpl-nolibm-tests: Likewise.
31003         * modules/frexpl-tests: Likewise.
31004         * modules/getaddrinfo-tests: Likewise.
31005         * modules/inttypes-tests: Likewise.
31006         * modules/isfinite-tests: Likewise.
31007         * modules/isinf-tests: Likewise.
31008         * modules/ldexpl-tests: Likewise.
31009         * modules/locale-tests: Likewise.
31010         * modules/math-tests: Likewise.
31011         * modules/netdb-tests: Likewise.
31012         * modules/netinet_in-tests: Likewise.
31013         * modules/printf-frexp-tests: Likewise.
31014         * modules/printf-frexpl-tests: Likewise.
31015         * modules/priv-set-tests: Likewise.
31016         * modules/random_r-tests: Likewise.
31017         * modules/round-tests: Likewise.
31018         * modules/roundf-tests: Likewise.
31019         * modules/roundl-tests: Likewise.
31020         * modules/search-tests: Likewise.
31021         * modules/select-tests: Likewise.
31022         * modules/signal-tests: Likewise.
31023         * modules/stdbool-tests: Likewise.
31024         * modules/stddef-tests: Likewise.
31025         * modules/stdint-tests: Likewise.
31026         * modules/stdio-tests: Likewise.
31027         * modules/stdlib-tests: Likewise.
31028         * modules/string-tests: Likewise.
31029         * modules/strings-tests: Likewise.
31030         * modules/sys_select-tests: Likewise.
31031         * modules/sys_socket-tests: Likewise.
31032         * modules/sys_stat-tests: Likewise.
31033         * modules/sys_time-tests: Likewise.
31034         * modules/sys_utsname-tests: Likewise.
31035         * modules/sysexits-tests: Likewise.
31036         * modules/time-tests: Likewise.
31037         * modules/trunc-tests: Likewise.
31038         * modules/truncf-tests: Likewise.
31039         * modules/truncl-tests: Likewise.
31040         * modules/tsearch-tests: Likewise.
31041         * modules/unistd-tests: Likewise.
31042         * modules/wchar-tests: Likewise.
31043         * modules/wctype-tests: Likewise.
31044
31045         tests: fix license on several tests
31046         * tests/test-des.c: Update to GPLv3+.
31047         * tests/test-flock.c: Likewise.
31048         * tests/test-fsync.c: Likewise.
31049         * tests/test-futimens.h: Likewise.
31050         * tests/test-gc-arcfour.c: Likewise.
31051         * tests/test-gc-arctwo.c: Likewise.
31052         * tests/test-gc-des.c: Likewise.
31053         * tests/test-gc-hmac-md5.c: Likewise.
31054         * tests/test-gc-hmac-sha1.c: Likewise.
31055         * tests/test-gc-md2.c: Likewise.
31056         * tests/test-gc-md4.c: Likewise.
31057         * tests/test-gc-md5.c: Likewise.
31058         * tests/test-gc-pbkdf2-sha1.c: Likewise.
31059         * tests/test-gc-rijndael.c: Likewise.
31060         * tests/test-gc-sha1.c: Likewise.
31061         * tests/test-gc.c: Likewise.
31062         * tests/test-getcwd.c: Likewise.
31063         * tests/test-link.c: Likewise.
31064         * tests/test-link.h: Likewise.
31065         * tests/test-lutimens.h: Likewise.
31066         * tests/test-md2.c: Likewise.
31067         * tests/test-md4.c: Likewise.
31068         * tests/test-mkdir.h: Likewise.
31069         * tests/test-rename.c: Likewise.
31070         * tests/test-rename.h: Likewise.
31071         * tests/test-safe-alloc.c: Likewise.
31072         * tests/test-utimens-common.h: Likewise.
31073         * tests/test-utimens.h: Likewise.
31074
31075         maint: sync license texts
31076         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
31077         * doc/gpl-3.0.texi: Revert copyright year update.
31078         * doc/lgpl-3.0.texi: Likewise.
31079
31080 2009-12-29  Jim Meyering  <meyering@redhat.com>
31081
31082         update nearly all FSF copyright year lists to include 2009
31083         The files named by the following are exempted:
31084             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
31085               test -f "$dst" && { echo "$dst"; continue; }
31086               test -d "$dst" || continue
31087               echo "$dst"/$(basename "$src")
31088             done > exempt
31089             git ls-files tests/unictype >> exempt
31090         In the remaining files, convert to all-interval notation if
31091         - there is already at least one year interval like 2000-2003
31092         - the file is maintained by me
31093         - the file is in lib/uni*/, where that style already prevails
31094         Otherwise, use update-copyright's default.
31095
31096 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31097         and Eric Blake  <ebb9@byu.net>
31098
31099         tests: don't require debug system() to pass
31100         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
31101         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31102         * tests/test-unlink.h (test_unlink_func): Likewise.
31103         * tests/test-fstatat.c (main): ...into callers.
31104         * tests/test-lstat.c (main): Likewise.
31105         * tests/test-rmdir.c (main): Likewise.
31106         * tests/test-unlink.c (main): Likewise.
31107         * tests/test-unlinkat.c (main): Likewise.
31108         * tests/test-areadlink-with-size.c (main): Don't require a
31109         debug-only system call to pass, aiding cross-testing to mingw.
31110         * tests/test-areadlink.c (main): Likewise.
31111         * tests/test-areadlinkat-with-size.c (main): Likewise.
31112         * tests/test-areadlinkat.c (main): Likewise.
31113         * tests/test-canonicalize-lgpl.c (main): Likewise.
31114         * tests/test-canonicalize.c (main): Likewise.
31115         * tests/test-chown.c (main): Likewise.
31116         * tests/test-fchownat.c (main): Likewise.
31117         * tests/test-lchown.c (main): Likewise.
31118         * tests/test-fdutimensat.c (main): Likewise.
31119         * tests/test-futimens.c (main): Likewise.
31120         * tests/test-link.c (main): Likewise.
31121         * tests/test-linkat.c (main): Likewise.
31122         * tests/test-mkdir.c (main): Likewise.
31123         * tests/test-mkdirat.c (main): Likewise.
31124         * tests/test-mkfifo.c (main): Likewise.
31125         * tests/test-mkfifoat.c (main): Likewise.
31126         * tests/test-mknod.c (main): Likewise.
31127         * tests/test-readlink.c (main): Likewise.
31128         * tests/test-remove.c (main): Likewise.
31129         * tests/test-rename.c (main): Likewise.
31130         * tests/test-renameat.c (main): Likewise.
31131         * tests/test-symlink.c (main): Likewise.
31132         * tests/test-symlinkat.c (main): Likewise.
31133         * tests/test-utimens.c (main): Likewise.
31134         * tests/test-utimensat.c (main): Likewise.
31135
31136 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31137
31138         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
31139         on $(UNUSED_PARAMETER_H) to avoid build failure.
31140
31141 2009-12-28  Jim Meyering  <meyering@redhat.com>
31142
31143         update-copyright: you may specify a max. line length other than 72
31144         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31145
31146         maint: use consistent FSF copyright line syntax
31147         * lib/posixtm.c: Add missing comma in FSF copyright line.
31148         * lib/posixtm.h: Likewise.
31149         * lib/getugroups.c: Add missing ", Inc.".
31150
31151         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
31152         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
31153         FSF copyright line.  Remove trailing blanks.
31154
31155 2009-12-28  Eric Blake  <ebb9@byu.net>
31156
31157         test-dup2: reduce dependencies
31158         * modules/cloexec (Configure.ac): Set witness.
31159         * modules/dup2-tests (Depends-on): Drop cloexec.
31160         * tests/test-dup2.c (main): Skip portion of test if cloexec module
31161         not present.
31162         Suggested by Bruno Haible.
31163
31164 2009-12-26  Bruno Haible  <bruno@clisp.org>
31165
31166         Remove an unneeded dependency.
31167         * modules/fseterr (Depends-on): Remove dup2.
31168
31169 2009-12-26  Eric Blake  <ebb9@byu.net>
31170
31171         tests: use macros.h in more places
31172         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
31173         (ASSERT_STREAM): Provide default of stderr.
31174         * tests/test-dirent-safer.c: Include macros.h, using alternate
31175         stream for assertions.
31176         * tests/test-dup-safer.c: Likewise.
31177         * tests/test-freopen-safer.c: Likewise.
31178         * tests/test-getopt.c: Likewise.
31179         * tests/test-openat-safer.c: Likewise.
31180         * tests/test-pipe.c: Likewise.
31181         * tests/test-popen-safer.c: Likewise.
31182         * modules/dirent-safer-tests (Files): Include macros.h.
31183         * modules/unistd-safer-tests (Files): Likewise.
31184         * modules/freopen-safer-tests (Files): Likewise.
31185         * modules/getopt-posix-tests (Files): Likewise.
31186         * modules/openat-safer-tests (Files): Likewise.
31187         * modules/pipe-tests (Files): Likewise.
31188
31189 2009-12-26  Bruno Haible  <bruno@clisp.org>
31190
31191         javacomp: Portability fix.
31192         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
31193         that it also works on Solaris.
31194
31195 2009-12-26  Bruno Haible  <bruno@clisp.org>
31196
31197         localename: Fix storage allocation of gl_locale_name_thread's result.
31198         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
31199         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
31200         all platforms that have 'uselocale'.
31201         (gl_locale_name_thread_unsafe): New function, extracted from
31202         gl_locale_name_thread.
31203         (gl_locale_name_thread): Call struniq on all platforms that have
31204         'uselocale'.
31205         * tests/test-localename.c (test_locale_name_thread): Check that the
31206         resulting strings are permanently allocated.
31207         * modules/localename-tests (Depends-on): Add strdup.
31208
31209 2009-12-26  Bruno Haible  <bruno@clisp.org>
31210
31211         * tests/test-localename.c (categories): Fill in the strings.
31212
31213 2009-12-26  Jim Meyering  <meyering@redhat.com>
31214
31215         isdir: complete the removal of m4/isdir.m4
31216         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
31217
31218         isdir: clean up, since at least grep still uses it
31219         * lib/isdir.c: Include "isdir.h".
31220         (S_ISDIR): Remove now-unneeded definition.
31221         * modules/isdir (Files): Add lib/isdir.h.
31222         * lib/isdir.h: New file, with declaration.
31223         * m4/isdir.m4: Remove file -- unneeded.
31224
31225 2009-12-25  Bruno Haible  <bruno@clisp.org>
31226
31227         selinux-h: Make generated .h files standalone.
31228         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
31229         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
31230         * lib/se-selinux.in.h: Likewise.
31231         * modules/selinux-h (Depends-on): Add unused-parameter.
31232         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
31233         selinux/selinux.h and selinux/context.h.
31234         Suggested by Eric Blake.
31235
31236 2009-12-25  Bruno Haible  <bruno@clisp.org>
31237
31238         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
31239         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
31240         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
31241         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
31242         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
31243
31244 2009-12-24  Bruno Haible  <bruno@clisp.org>
31245
31246         openat: Fix warning.
31247         * lib/openat-proc.c: Include <unistd.h>.
31248
31249 2009-12-24  Bruno Haible  <bruno@clisp.org>
31250
31251         New module 'unused-parameter'.
31252         * build-aux/unused-parameter.h: New file, extracted from earlier
31253         gnulib-common.m4.
31254         * modules/unused-parameter: New file.
31255         * lib/unistr.h: Include unused-parameter.h.
31256         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
31257         _GL_UNUSED.
31258         * modules/unistr/base (Depends-on): Add unused-parameter.
31259
31260 2009-12-24  Bruno Haible  <bruno@clisp.org>
31261
31262         Add missing dependencies to 'extensions' module.
31263         * m4/extensions.m4: Add comment.
31264         * modules/accept4 (Depends-on): Add extensions.
31265         * modules/dup3 (Depends-on): Likewise.
31266         * modules/fcntl (Depends-on): Likewise.
31267         * modules/futimens (Depends-on): Likewise.
31268         * modules/mknod (Depends-on): Likewise.
31269         * modules/pipe2 (Depends-on): Likewise.
31270         * modules/stat-time (Depends-on): Likewise.
31271         * modules/strcasestr-simple (Depends-on): Likewise.
31272         * modules/strsignal (Depends-on): Likewise.
31273         * modules/utimensat (Depends-on): Likewise.
31274         * modules/localcharset (Depends-on): Likewise. Needed because of
31275         gl_FCNTL_O_FLAGS.
31276         * modules/wcrtomb (Depends-on): Likewise. Needed because of
31277         AC_TYPE_MBSTATE_T.
31278         * modules/wcsnrtombs (Depends-on): Likewise.
31279         * modules/wcsrtombs (Depends-on): Likewise.
31280
31281 2009-12-24  Bruno Haible  <bruno@clisp.org>
31282
31283         binary-io: Avoid gcc warning due to SET_BINARY.
31284         * lib/binary-io.h (SET_BINARY): Cast the result to void.
31285         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
31286
31287 2009-12-24  Bruno Haible  <bruno@clisp.org>
31288
31289         Avoid future namespace pollution on glibc systems.
31290         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
31291         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
31292         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
31293         glibc systems.
31294
31295 2009-12-24  Bruno Haible  <bruno@clisp.org>
31296
31297         Refactor common macros used in tests.
31298         * tests/macros.h: New file.
31299         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
31300         and/or <stdlib.h>, if appropriate.
31301         (ASSERT, SIZEOF): Remove macros.
31302         * tests/test-areadlink-with-size.c: Likewise.
31303         * tests/test-areadlinkat.c: Likewise.
31304         * tests/test-areadlinkat-with-size.c: Likewise.
31305         * tests/test-argmatch.c: Likewise.
31306         * tests/test-argv-iter.c: Likewise.
31307         * tests/test-array-mergesort.c: Likewise.
31308         * tests/test-array_list.c: Likewise.
31309         * tests/test-array_oset.c: Likewise.
31310         * tests/test-avltree_list.c: Likewise.
31311         * tests/test-avltree_oset.c: Likewise.
31312         * tests/test-avltreehash_list.c: Likewise.
31313         * tests/test-base64.c: Likewise.
31314         * tests/test-binary-io.c: Likewise.
31315         * tests/test-bitrotate.c: Likewise.
31316         * tests/test-btowc.c: Likewise.
31317         * tests/test-byteswap.c: Likewise.
31318         * tests/test-c-ctype.c: Likewise.
31319         * tests/test-c-stack.c: Likewise.
31320         * tests/test-c-strcasecmp.c: Likewise.
31321         * tests/test-c-strcasestr.c: Likewise.
31322         * tests/test-c-strncasecmp.c: Likewise.
31323         * tests/test-c-strstr.c: Likewise.
31324         * tests/test-canonicalize-lgpl.c: Likewise.
31325         * tests/test-canonicalize.c: Likewise.
31326         * tests/test-carray_list.c: Likewise.
31327         * tests/test-ceilf1.c: Likewise.
31328         * tests/test-ceilf2.c: Likewise.
31329         * tests/test-ceill.c: Likewise.
31330         * tests/test-chown.c: Likewise.
31331         * tests/test-cloexec.c: Likewise.
31332         * tests/test-copy-acl.c: Likewise.
31333         * tests/test-copy-file.c: Likewise.
31334         * tests/test-count-one-bits.c: Likewise.
31335         * tests/test-dprintf-posix.c: Likewise.
31336         * tests/test-dup2.c: Likewise.
31337         * tests/test-dup3.c: Likewise.
31338         * tests/test-duplocale.c: Likewise.
31339         * tests/test-fbufmode.c: Likewise.
31340         * tests/test-fchdir.c: Likewise.
31341         * tests/test-fchownat.c: Likewise.
31342         * tests/test-fcntl-safer.c: Likewise.
31343         * tests/test-fcntl.c: Likewise.
31344         * tests/test-fdopendir.c: Likewise.
31345         * tests/test-fdutimensat.c: Likewise.
31346         * tests/test-fflush2.c: Likewise.
31347         * tests/test-file-has-acl.c: Likewise.
31348         * tests/test-filevercmp.c: Likewise.
31349         * tests/test-flock.c: Likewise.
31350         * tests/test-floorf1.c: Likewise.
31351         * tests/test-floorf2.c: Likewise.
31352         * tests/test-floorl.c: Likewise.
31353         * tests/test-fnmatch.c: Likewise.
31354         * tests/test-fopen.h: Likewise.
31355         * tests/test-fpending.c: Likewise.
31356         * tests/test-fprintf-posix.c: Likewise.
31357         * tests/test-fpurge.c: Likewise.
31358         * tests/test-freadable.c: Likewise.
31359         * tests/test-freadahead.c: Likewise.
31360         * tests/test-freading.c: Likewise.
31361         * tests/test-freadptr.c: Likewise.
31362         * tests/test-freadptr2.c: Likewise.
31363         * tests/test-freadseek.c: Likewise.
31364         * tests/test-freopen.c: Likewise.
31365         * tests/test-frexp.c: Likewise.
31366         * tests/test-frexpl.c: Likewise.
31367         * tests/test-fseek.c: Likewise.
31368         * tests/test-fseeko.c: Likewise.
31369         * tests/test-fstatat.c: Likewise.
31370         * tests/test-fstrcmp.c: Likewise.
31371         * tests/test-fsync.c: Likewise.
31372         * tests/test-ftell.c: Likewise.
31373         * tests/test-ftello.c: Likewise.
31374         * tests/test-func.c: Likewise.
31375         * tests/test-futimens.c: Likewise.
31376         * tests/test-fwritable.c: Likewise.
31377         * tests/test-fwriting.c: Likewise.
31378         * tests/test-getcwd.c: Likewise.
31379         * tests/test-getdate.c: Likewise.
31380         * tests/test-getdelim.c: Likewise.
31381         * tests/test-getdtablesize.c: Likewise.
31382         * tests/test-getgroups.c: Likewise.
31383         * tests/test-getline.c: Likewise.
31384         * tests/test-getndelim2.c: Likewise.
31385         * tests/test-glob.c: Likewise.
31386         * tests/test-hash.c: Likewise.
31387         * tests/test-i-ring.c: Likewise.
31388         * tests/test-iconv-utf.c: Likewise.
31389         * tests/test-iconv.c: Likewise.
31390         * tests/test-idpriv-drop.c: Likewise.
31391         * tests/test-idpriv-droptemp.c: Likewise.
31392         * tests/test-inet_ntop.c: Likewise.
31393         * tests/test-inet_pton.c: Likewise.
31394         * tests/test-isblank.c: Likewise.
31395         * tests/test-isfinite.c: Likewise.
31396         * tests/test-isinf.c: Likewise.
31397         * tests/test-isnan.c: Likewise.
31398         * tests/test-isnand.h: Likewise.
31399         * tests/test-isnanf.h: Likewise.
31400         * tests/test-isnanl.h: Likewise.
31401         * tests/test-lchown.c: Likewise.
31402         * tests/test-ldexpl.c: Likewise.
31403         * tests/test-link.c: Likewise.
31404         * tests/test-linkat.c: Likewise.
31405         * tests/test-linked_list.c: Likewise.
31406         * tests/test-linkedhash_list.c: Likewise.
31407         * tests/test-localename.c: Likewise.
31408         * tests/test-lseek.c: Likewise.
31409         * tests/test-lstat.c: Likewise.
31410         * tests/test-mbmemcasecmp.c: Likewise.
31411         * tests/test-mbmemcasecoll.c: Likewise.
31412         * tests/test-mbrtowc.c: Likewise.
31413         * tests/test-mbscasecmp.c: Likewise.
31414         * tests/test-mbscasestr1.c: Likewise.
31415         * tests/test-mbscasestr2.c: Likewise.
31416         * tests/test-mbscasestr3.c: Likewise.
31417         * tests/test-mbscasestr4.c: Likewise.
31418         * tests/test-mbschr.c: Likewise.
31419         * tests/test-mbscspn.c: Likewise.
31420         * tests/test-mbsinit.c: Likewise.
31421         * tests/test-mbsncasecmp.c: Likewise.
31422         * tests/test-mbsnrtowcs.c: Likewise.
31423         * tests/test-mbspbrk.c: Likewise.
31424         * tests/test-mbspcasecmp.c: Likewise.
31425         * tests/test-mbsrchr.c: Likewise.
31426         * tests/test-mbsrtowcs.c: Likewise.
31427         * tests/test-mbsspn.c: Likewise.
31428         * tests/test-mbsstr1.c: Likewise.
31429         * tests/test-mbsstr2.c: Likewise.
31430         * tests/test-mbsstr3.c: Likewise.
31431         * tests/test-memchr.c: Likewise.
31432         * tests/test-memchr2.c: Likewise.
31433         * tests/test-memcmp.c: Likewise.
31434         * tests/test-memmem.c: Likewise.
31435         * tests/test-memrchr.c: Likewise.
31436         * tests/test-mkdir.c: Likewise.
31437         * tests/test-mkdirat.c: Likewise.
31438         * tests/test-mkfifo.c: Likewise.
31439         * tests/test-mkfifoat.c: Likewise.
31440         * tests/test-mknod.c: Likewise.
31441         * tests/test-nanosleep.c: Likewise.
31442         * tests/test-nl_langinfo.c: Likewise.
31443         * tests/test-obstack-printf.c: Likewise.
31444         * tests/test-open.c: Likewise.
31445         * tests/test-openat.c: Likewise.
31446         * tests/test-pipe-filter-gi1.c: Likewise.
31447         * tests/test-pipe-filter-gi2-main.c: Likewise.
31448         * tests/test-pipe-filter-ii1.c: Likewise.
31449         * tests/test-pipe-filter-ii2-main.c: Likewise.
31450         * tests/test-pipe2.c: Likewise.
31451         * tests/test-popen.h: Likewise.
31452         * tests/test-posixtm.c: Likewise.
31453         * tests/test-pread.c: Likewise.
31454         * tests/test-printf-frexp.c: Likewise.
31455         * tests/test-printf-frexpl.c: Likewise.
31456         * tests/test-printf-posix.c: Likewise.
31457         * tests/test-priv-set.c: Likewise.
31458         * tests/test-quotearg.c: Likewise.
31459         * tests/test-random_r.c: Likewise.
31460         * tests/test-rawmemchr.c: Likewise.
31461         * tests/test-rbtree_list.c: Likewise.
31462         * tests/test-rbtree_oset.c: Likewise.
31463         * tests/test-rbtreehash_list.c: Likewise.
31464         * tests/test-readlink.c: Likewise.
31465         * tests/test-remove.c: Likewise.
31466         * tests/test-rename.c: Likewise.
31467         * tests/test-renameat.c: Likewise.
31468         * tests/test-rmdir.c: Likewise.
31469         * tests/test-round1.c: Likewise.
31470         * tests/test-roundf1.c: Likewise.
31471         * tests/test-roundl.c: Likewise.
31472         * tests/test-safe-alloc.c: Likewise.
31473         * tests/test-sameacls.c: Likewise.
31474         * tests/test-set-mode-acl.c: Likewise.
31475         * tests/test-setenv.c: Likewise.
31476         * tests/test-sigaction.c: Likewise.
31477         * tests/test-signbit.c: Likewise.
31478         * tests/test-sleep.c: Likewise.
31479         * tests/test-snprintf-posix.c: Likewise.
31480         * tests/test-snprintf.c: Likewise.
31481         * tests/test-sprintf-posix.c: Likewise.
31482         * tests/test-stat-time.c: Likewise.
31483         * tests/test-stat.c: Likewise.
31484         * tests/test-strcasestr.c: Likewise.
31485         * tests/test-strchrnul.c: Likewise.
31486         * tests/test-strerror.c: Likewise.
31487         * tests/test-striconv.c: Likewise.
31488         * tests/test-striconveh.c: Likewise.
31489         * tests/test-striconveha.c: Likewise.
31490         * tests/test-strsignal.c: Likewise.
31491         * tests/test-strstr.c: Likewise.
31492         * tests/test-strtod.c: Likewise.
31493         * tests/test-strverscmp.c: Likewise.
31494         * tests/test-symlink.c: Likewise.
31495         * tests/test-symlinkat.c: Likewise.
31496         * tests/test-trunc1.c: Likewise.
31497         * tests/test-trunc2.c: Likewise.
31498         * tests/test-truncf1.c: Likewise.
31499         * tests/test-truncf2.c: Likewise.
31500         * tests/test-truncl.c: Likewise.
31501         * tests/test-uname.c: Likewise.
31502         * tests/test-unlink.c: Likewise.
31503         * tests/test-unlinkat.c: Likewise.
31504         * tests/test-unsetenv.c: Likewise.
31505         * tests/test-usleep.c: Likewise.
31506         * tests/test-utimens.c: Likewise.
31507         * tests/test-utimensat.c: Likewise.
31508         * tests/test-vasnprintf-posix.c: Likewise.
31509         * tests/test-vasnprintf-posix2.c: Likewise.
31510         * tests/test-vasnprintf.c: Likewise.
31511         * tests/test-vasprintf-posix.c: Likewise.
31512         * tests/test-vasprintf.c: Likewise.
31513         * tests/test-vdprintf-posix.c: Likewise.
31514         * tests/test-vfprintf-posix.c: Likewise.
31515         * tests/test-vprintf-posix.c: Likewise.
31516         * tests/test-vsnprintf-posix.c: Likewise.
31517         * tests/test-vsnprintf.c: Likewise.
31518         * tests/test-vsprintf-posix.c: Likewise.
31519         * tests/test-wcrtomb.c: Likewise.
31520         * tests/test-wcsnrtombs.c: Likewise.
31521         * tests/test-wcsrtombs.c: Likewise.
31522         * tests/test-wctype.c: Likewise.
31523         * tests/test-wcwidth.c: Likewise.
31524         * tests/test-xfprintf-posix.c: Likewise.
31525         * tests/test-xmemdup0.c: Likewise.
31526         * tests/test-xprintf-posix.c: Likewise.
31527         * tests/test-xvasprintf.c: Likewise.
31528         * tests/unicase/test-locale-language.c: Likewise.
31529         * tests/unicase/test-mapping-part1.h: Likewise.
31530         * tests/unicase/test-predicate-part1.h: Likewise.
31531         * tests/unicase/test-u8-casecmp.c: Likewise.
31532         * tests/unicase/test-u8-casecoll.c: Likewise.
31533         * tests/unicase/test-u8-casefold.c: Likewise.
31534         * tests/unicase/test-u8-is-cased.c: Likewise.
31535         * tests/unicase/test-u8-is-casefolded.c: Likewise.
31536         * tests/unicase/test-u8-is-lowercase.c: Likewise.
31537         * tests/unicase/test-u8-is-titlecase.c: Likewise.
31538         * tests/unicase/test-u8-is-uppercase.c: Likewise.
31539         * tests/unicase/test-u8-tolower.c: Likewise.
31540         * tests/unicase/test-u8-totitle.c: Likewise.
31541         * tests/unicase/test-u8-toupper.c: Likewise.
31542         * tests/unicase/test-u16-casecmp.c: Likewise.
31543         * tests/unicase/test-u16-casecoll.c: Likewise.
31544         * tests/unicase/test-u16-casefold.c: Likewise.
31545         * tests/unicase/test-u16-is-cased.c: Likewise.
31546         * tests/unicase/test-u16-is-casefolded.c: Likewise.
31547         * tests/unicase/test-u16-is-lowercase.c: Likewise.
31548         * tests/unicase/test-u16-is-titlecase.c: Likewise.
31549         * tests/unicase/test-u16-is-uppercase.c: Likewise.
31550         * tests/unicase/test-u16-tolower.c: Likewise.
31551         * tests/unicase/test-u16-totitle.c: Likewise.
31552         * tests/unicase/test-u16-toupper.c: Likewise.
31553         * tests/unicase/test-u32-casecmp.c: Likewise.
31554         * tests/unicase/test-u32-casecoll.c: Likewise.
31555         * tests/unicase/test-u32-casefold.c: Likewise.
31556         * tests/unicase/test-u32-is-cased.c: Likewise.
31557         * tests/unicase/test-u32-is-casefolded.c: Likewise.
31558         * tests/unicase/test-u32-is-lowercase.c: Likewise.
31559         * tests/unicase/test-u32-is-titlecase.c: Likewise.
31560         * tests/unicase/test-u32-is-uppercase.c: Likewise.
31561         * tests/unicase/test-u32-tolower.c: Likewise.
31562         * tests/unicase/test-u32-totitle.c: Likewise.
31563         * tests/unicase/test-u32-toupper.c: Likewise.
31564         * tests/unicase/test-ulc-casecmp.c: Likewise.
31565         * tests/unicase/test-ulc-casecoll.c: Likewise.
31566         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31567         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31568         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31569         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31570         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31571         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31572         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31573         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31574         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31575         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31576         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31577         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31578         * tests/unictype/test-bidi_byname.c: Likewise.
31579         * tests/unictype/test-bidi_name.c: Likewise.
31580         * tests/unictype/test-bidi_of.c: Likewise.
31581         * tests/unictype/test-bidi_test.c: Likewise.
31582         * tests/unictype/test-block_list.c: Likewise.
31583         * tests/unictype/test-block_of.c: Likewise.
31584         * tests/unictype/test-block_test.c: Likewise.
31585         * tests/unictype/test-categ_and.c: Likewise.
31586         * tests/unictype/test-categ_and_not.c: Likewise.
31587         * tests/unictype/test-categ_byname.c: Likewise.
31588         * tests/unictype/test-categ_name.c: Likewise.
31589         * tests/unictype/test-categ_none.c: Likewise.
31590         * tests/unictype/test-categ_of.c: Likewise.
31591         * tests/unictype/test-categ_or.c: Likewise.
31592         * tests/unictype/test-categ_test_withtable.c: Likewise.
31593         * tests/unictype/test-combining.c: Likewise.
31594         * tests/unictype/test-decdigit.c: Likewise.
31595         * tests/unictype/test-digit.c: Likewise.
31596         * tests/unictype/test-mirror.c: Likewise.
31597         * tests/unictype/test-numeric.c: Likewise.
31598         * tests/unictype/test-pr_byname.c: Likewise.
31599         * tests/unictype/test-pr_test.c: Likewise.
31600         * tests/unictype/test-predicate-part1.h: Likewise.
31601         * tests/unictype/test-scripts.c: Likewise.
31602         * tests/unictype/test-sy_c_ident.c: Likewise.
31603         * tests/unictype/test-sy_java_ident.c: Likewise.
31604         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
31605         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
31606         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
31607         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
31608         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
31609         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
31610         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
31611         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
31612         * tests/uninorm/test-canonical-decomposition.c: Likewise.
31613         * tests/uninorm/test-compat-decomposition.c: Likewise.
31614         * tests/uninorm/test-composition.c: Likewise.
31615         * tests/uninorm/test-decomposing-form.c: Likewise.
31616         * tests/uninorm/test-decomposition.c: Likewise.
31617         * tests/uninorm/test-u8-nfc.c: Likewise.
31618         * tests/uninorm/test-u8-nfd.c: Likewise.
31619         * tests/uninorm/test-u8-nfkc.c: Likewise.
31620         * tests/uninorm/test-u8-nfkd.c: Likewise.
31621         * tests/uninorm/test-u8-normcmp.c: Likewise.
31622         * tests/uninorm/test-u8-normcoll.c: Likewise.
31623         * tests/uninorm/test-u16-nfc.c: Likewise.
31624         * tests/uninorm/test-u16-nfd.c: Likewise.
31625         * tests/uninorm/test-u16-nfkc.c: Likewise.
31626         * tests/uninorm/test-u16-nfkd.c: Likewise.
31627         * tests/uninorm/test-u16-normcmp.c: Likewise.
31628         * tests/uninorm/test-u16-normcoll.c: Likewise.
31629         * tests/uninorm/test-u32-nfc.c: Likewise.
31630         * tests/uninorm/test-u32-nfd.c: Likewise.
31631         * tests/uninorm/test-u32-nfkc.c: Likewise.
31632         * tests/uninorm/test-u32-nfkd.c: Likewise.
31633         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31634         * tests/uninorm/test-u32-normcmp.c: Likewise.
31635         * tests/uninorm/test-u32-normcoll.c: Likewise.
31636         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
31637         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31638         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31639         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31640         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31641         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31642         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31643         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31644         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31645         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31646         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31647         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31648         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31649         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31650         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31651         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31652         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31653         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31654         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31655         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31656         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31657         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31658         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31659         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31660         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31661         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31662         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31663         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31664         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31665         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
31666         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
31667         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
31668         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
31669         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31670         * tests/uniwidth/test-u8-width.c: Likewise.
31671         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31672         * tests/uniwidth/test-u16-width.c: Likewise.
31673         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31674         * tests/uniwidth/test-u32-width.c: Likewise.
31675         * tests/uniwidth/test-uc_width.c: Likewise.
31676         * tests/uniwidth/test-uc_width2.c: Likewise.
31677         * modules/acl-tests (Files): Add tests/macros.h.
31678         * modules/areadlink-tests (Files): Likewise.
31679         * modules/areadlink-with-size-tests (Files): Likewise.
31680         * modules/areadlinkat-tests (Files): Likewise.
31681         * modules/areadlinkat-with-size-tests (Files): Likewise.
31682         * modules/argmatch-tests (Files): Likewise.
31683         * modules/argv-iter-tests (Files): Likewise.
31684         * modules/array-list-tests (Files): Likewise.
31685         * modules/array-mergesort-tests (Files): Likewise.
31686         * modules/array-oset-tests (Files): Likewise.
31687         * modules/avltree-list-tests (Files): Likewise.
31688         * modules/avltree-oset-tests (Files): Likewise.
31689         * modules/avltreehash-list-tests (Files): Likewise.
31690         * modules/base64-tests (Files): Likewise.
31691         * modules/binary-io-tests (Files): Likewise.
31692         * modules/bitrotate-tests (Files): Likewise.
31693         * modules/btowc-tests (Files): Likewise.
31694         * modules/byteswap-tests (Files): Likewise.
31695         * modules/c-ctype-tests (Files): Likewise.
31696         * modules/c-stack-tests (Files): Likewise.
31697         * modules/c-strcase-tests (Files): Likewise.
31698         * modules/c-strcasestr-tests (Files): Likewise.
31699         * modules/c-strstr-tests (Files): Likewise.
31700         * modules/canonicalize-lgpl-tests (Files): Likewise.
31701         * modules/canonicalize-tests (Files): Likewise.
31702         * modules/carray-list-tests (Files): Likewise.
31703         * modules/ceilf-tests (Files): Likewise.
31704         * modules/ceill-tests (Files): Likewise.
31705         * modules/chown-tests (Files): Likewise.
31706         * modules/cloexec-tests (Files): Likewise.
31707         * modules/copy-file-tests (Files): Likewise.
31708         * modules/count-one-bits-tests (Files): Likewise.
31709         * modules/dprintf-posix-tests (Files): Likewise.
31710         * modules/dup2-tests (Files): Likewise.
31711         * modules/dup3-tests (Files): Likewise.
31712         * modules/duplocale-tests (Files): Likewise.
31713         * modules/fbufmode-tests (Files): Likewise.
31714         * modules/fchdir-tests (Files): Likewise.
31715         * modules/fcntl-safer-tests (Files): Likewise.
31716         * modules/fcntl-tests (Files): Likewise.
31717         * modules/fdopendir-tests (Files): Likewise.
31718         * modules/fdutimensat-tests (Files): Likewise.
31719         * modules/fflush-tests (Files): Likewise.
31720         * modules/filevercmp-tests (Files): Likewise.
31721         * modules/flock-tests (Files): Likewise.
31722         * modules/floorf-tests (Files): Likewise.
31723         * modules/floorl-tests (Files): Likewise.
31724         * modules/fnmatch-tests (Files): Likewise.
31725         * modules/fopen-safer-tests (Files): Likewise.
31726         * modules/fopen-tests (Files): Likewise.
31727         * modules/fpending-tests (Files): Likewise.
31728         * modules/fprintf-posix-tests (Files): Likewise.
31729         * modules/fpurge-tests (Files): Likewise.
31730         * modules/freadable-tests (Files): Likewise.
31731         * modules/freadahead-tests (Files): Likewise.
31732         * modules/freading-tests (Files): Likewise.
31733         * modules/freadptr-tests (Files): Likewise.
31734         * modules/freadseek-tests (Files): Likewise.
31735         * modules/freopen-tests (Files): Likewise.
31736         * modules/frexp-nolibm-tests (Files): Likewise.
31737         * modules/frexp-tests (Files): Likewise.
31738         * modules/frexpl-nolibm-tests (Files): Likewise.
31739         * modules/frexpl-tests (Files): Likewise.
31740         * modules/fseek-tests (Files): Likewise.
31741         * modules/fseeko-tests (Files): Likewise.
31742         * modules/fstrcmp-tests (Files): Likewise.
31743         * modules/fsync-tests (Files): Likewise.
31744         * modules/ftell-tests (Files): Likewise.
31745         * modules/ftello-tests (Files): Likewise.
31746         * modules/func-tests (Files): Likewise.
31747         * modules/futimens-tests (Files): Likewise.
31748         * modules/fwritable-tests (Files): Likewise.
31749         * modules/fwriting-tests (Files): Likewise.
31750         * modules/getcwd-tests (Files): Likewise.
31751         * modules/getdate-tests (Files): Likewise.
31752         * modules/getdelim-tests (Files): Likewise.
31753         * modules/getdtablesize-tests (Files): Likewise.
31754         * modules/getgroups-tests (Files): Likewise.
31755         * modules/getline-tests (Files): Likewise.
31756         * modules/getndelim2-tests (Files): Likewise.
31757         * modules/glob-tests (Files): Likewise.
31758         * modules/hash-tests (Files): Likewise.
31759         * modules/i-ring-tests (Files): Likewise.
31760         * modules/iconv-tests (Files): Likewise.
31761         * modules/iconv_open-utf-tests (Files): Likewise.
31762         * modules/idpriv-drop-tests (Files): Likewise.
31763         * modules/idpriv-droptemp-tests (Files): Likewise.
31764         * modules/inet_ntop-tests (Files): Likewise.
31765         * modules/inet_pton-tests (Files): Likewise.
31766         * modules/isblank-tests (Files): Likewise.
31767         * modules/isfinite-tests (Files): Likewise.
31768         * modules/isinf-tests (Files): Likewise.
31769         * modules/isnan-tests (Files): Likewise.
31770         * modules/isnand-nolibm-tests (Files): Likewise.
31771         * modules/isnand-tests (Files): Likewise.
31772         * modules/isnanf-nolibm-tests (Files): Likewise.
31773         * modules/isnanf-tests (Files): Likewise.
31774         * modules/isnanl-nolibm-tests (Files): Likewise.
31775         * modules/isnanl-tests (Files): Likewise.
31776         * modules/lchown-tests (Files): Likewise.
31777         * modules/ldexpl-tests (Files): Likewise.
31778         * modules/link-tests (Files): Likewise.
31779         * modules/linkat-tests (Files): Likewise.
31780         * modules/linked-list-tests (Files): Likewise.
31781         * modules/linkedhash-list-tests (Files): Likewise.
31782         * modules/localename-tests (Files): Likewise.
31783         * modules/lseek-tests (Files): Likewise.
31784         * modules/lstat-tests (Files): Likewise.
31785         * modules/mbmemcasecmp-tests (Files): Likewise.
31786         * modules/mbmemcasecoll-tests (Files): Likewise.
31787         * modules/mbrtowc-tests (Files): Likewise.
31788         * modules/mbscasecmp-tests (Files): Likewise.
31789         * modules/mbscasestr-tests (Files): Likewise.
31790         * modules/mbschr-tests (Files): Likewise.
31791         * modules/mbscspn-tests (Files): Likewise.
31792         * modules/mbsinit-tests (Files): Likewise.
31793         * modules/mbsncasecmp-tests (Files): Likewise.
31794         * modules/mbsnrtowcs-tests (Files): Likewise.
31795         * modules/mbspbrk-tests (Files): Likewise.
31796         * modules/mbspcasecmp-tests (Files): Likewise.
31797         * modules/mbsrchr-tests (Files): Likewise.
31798         * modules/mbsrtowcs-tests (Files): Likewise.
31799         * modules/mbsspn-tests (Files): Likewise.
31800         * modules/mbsstr-tests (Files): Likewise.
31801         * modules/memchr-tests (Files): Likewise.
31802         * modules/memchr2-tests (Files): Likewise.
31803         * modules/memcmp-tests (Files): Likewise.
31804         * modules/memmem-tests (Files): Likewise.
31805         * modules/memrchr-tests (Files): Likewise.
31806         * modules/mkdir-tests (Files): Likewise.
31807         * modules/mkfifo-tests (Files): Likewise.
31808         * modules/mkfifoat-tests (Files): Likewise.
31809         * modules/mknod-tests (Files): Likewise.
31810         * modules/nanosleep-tests (Files): Likewise.
31811         * modules/nl_langinfo-tests (Files): Likewise.
31812         * modules/obstack-printf-tests (Files): Likewise.
31813         * modules/open-tests (Files): Likewise.
31814         * modules/openat-tests (Files): Likewise.
31815         * modules/pipe-filter-gi-tests (Files): Likewise.
31816         * modules/pipe-filter-ii-tests (Files): Likewise.
31817         * modules/pipe2-tests (Files): Likewise.
31818         * modules/popen-safer-tests (Files): Likewise.
31819         * modules/popen-tests (Files): Likewise.
31820         * modules/posixtm-tests (Files): Likewise.
31821         * modules/pread-tests (Files): Likewise.
31822         * modules/printf-frexp-tests (Files): Likewise.
31823         * modules/printf-frexpl-tests (Files): Likewise.
31824         * modules/printf-posix-tests (Files): Likewise.
31825         * modules/priv-set-tests (Files): Likewise.
31826         * modules/quotearg-tests (Files): Likewise.
31827         * modules/random_r-tests (Files): Likewise.
31828         * modules/rawmemchr-tests (Files): Likewise.
31829         * modules/rbtree-list-tests (Files): Likewise.
31830         * modules/rbtree-oset-tests (Files): Likewise.
31831         * modules/rbtreehash-list-tests (Files): Likewise.
31832         * modules/readlink-tests (Files): Likewise.
31833         * modules/remove-tests (Files): Likewise.
31834         * modules/rename-tests (Files): Likewise.
31835         * modules/renameat-tests (Files): Likewise.
31836         * modules/rmdir-tests (Files): Likewise.
31837         * modules/round-tests (Files): Likewise.
31838         * modules/roundf-tests (Files): Likewise.
31839         * modules/roundl-tests (Files): Likewise.
31840         * modules/safe-alloc-tests (Files): Likewise.
31841         * modules/setenv-tests (Files): Likewise.
31842         * modules/sigaction-tests (Files): Likewise.
31843         * modules/signbit-tests (Files): Likewise.
31844         * modules/sleep-tests (Files): Likewise.
31845         * modules/snprintf-posix-tests (Files): Likewise.
31846         * modules/snprintf-tests (Files): Likewise.
31847         * modules/sprintf-posix-tests (Files): Likewise.
31848         * modules/stat-tests (Files): Likewise.
31849         * modules/stat-time-tests (Files): Likewise.
31850         * modules/strcasestr-tests (Files): Likewise.
31851         * modules/strchrnul-tests (Files): Likewise.
31852         * modules/strerror-tests (Files): Likewise.
31853         * modules/striconv-tests (Files): Likewise.
31854         * modules/striconveh-tests (Files): Likewise.
31855         * modules/striconveha-tests (Files): Likewise.
31856         * modules/strsignal-tests (Files): Likewise.
31857         * modules/strstr-tests (Files): Likewise.
31858         * modules/strtod-tests (Files): Likewise.
31859         * modules/strverscmp-tests (Files): Likewise.
31860         * modules/symlink-tests (Files): Likewise.
31861         * modules/symlinkat-tests (Files): Likewise.
31862         * modules/trunc-tests (Files): Likewise.
31863         * modules/truncf-tests (Files): Likewise.
31864         * modules/truncl-tests (Files): Likewise.
31865         * modules/uname-tests (Files): Likewise.
31866         * modules/unicase/cased-tests (Files): Likewise.
31867         * modules/unicase/ignorable-tests (Files): Likewise.
31868         * modules/unicase/locale-language-tests (Files): Likewise.
31869         * modules/unicase/tolower-tests (Files): Likewise.
31870         * modules/unicase/totitle-tests (Files): Likewise.
31871         * modules/unicase/toupper-tests (Files): Likewise.
31872         * modules/unicase/u8-casecmp-tests (Files): Likewise.
31873         * modules/unicase/u8-casecoll-tests (Files): Likewise.
31874         * modules/unicase/u8-casefold-tests (Files): Likewise.
31875         * modules/unicase/u8-is-cased-tests (Files): Likewise.
31876         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
31877         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
31878         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
31879         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
31880         * modules/unicase/u8-tolower-tests (Files): Likewise.
31881         * modules/unicase/u8-totitle-tests (Files): Likewise.
31882         * modules/unicase/u8-toupper-tests (Files): Likewise.
31883         * modules/unicase/u16-casecmp-tests (Files): Likewise.
31884         * modules/unicase/u16-casecoll-tests (Files): Likewise.
31885         * modules/unicase/u16-casefold-tests (Files): Likewise.
31886         * modules/unicase/u16-is-cased-tests (Files): Likewise.
31887         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
31888         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
31889         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
31890         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
31891         * modules/unicase/u16-tolower-tests (Files): Likewise.
31892         * modules/unicase/u16-totitle-tests (Files): Likewise.
31893         * modules/unicase/u16-toupper-tests (Files): Likewise.
31894         * modules/unicase/u32-casecmp-tests (Files): Likewise.
31895         * modules/unicase/u32-casecoll-tests (Files): Likewise.
31896         * modules/unicase/u32-casefold-tests (Files): Likewise.
31897         * modules/unicase/u32-is-cased-tests (Files): Likewise.
31898         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
31899         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
31900         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
31901         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
31902         * modules/unicase/u32-tolower-tests (Files): Likewise.
31903         * modules/unicase/u32-totitle-tests (Files): Likewise.
31904         * modules/unicase/u32-toupper-tests (Files): Likewise.
31905         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
31906         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
31907         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
31908         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
31909         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
31910         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
31911         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
31912         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
31913         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
31914         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
31915         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
31916         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
31917         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
31918         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
31919         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
31920         * modules/unictype/bidicategory-name-tests (Files): Likewise.
31921         * modules/unictype/bidicategory-of-tests (Files): Likewise.
31922         * modules/unictype/bidicategory-test-tests (Files): Likewise.
31923         * modules/unictype/block-list-tests (Files): Likewise.
31924         * modules/unictype/block-of-tests (Files): Likewise.
31925         * modules/unictype/block-test-tests (Files): Likewise.
31926         * modules/unictype/category-C-tests (Files): Likewise.
31927         * modules/unictype/category-Cc-tests (Files): Likewise.
31928         * modules/unictype/category-Cf-tests (Files): Likewise.
31929         * modules/unictype/category-Cn-tests (Files): Likewise.
31930         * modules/unictype/category-Co-tests (Files): Likewise.
31931         * modules/unictype/category-Cs-tests (Files): Likewise.
31932         * modules/unictype/category-L-tests (Files): Likewise.
31933         * modules/unictype/category-Ll-tests (Files): Likewise.
31934         * modules/unictype/category-Lm-tests (Files): Likewise.
31935         * modules/unictype/category-Lo-tests (Files): Likewise.
31936         * modules/unictype/category-Lt-tests (Files): Likewise.
31937         * modules/unictype/category-Lu-tests (Files): Likewise.
31938         * modules/unictype/category-M-tests (Files): Likewise.
31939         * modules/unictype/category-Mc-tests (Files): Likewise.
31940         * modules/unictype/category-Me-tests (Files): Likewise.
31941         * modules/unictype/category-Mn-tests (Files): Likewise.
31942         * modules/unictype/category-N-tests (Files): Likewise.
31943         * modules/unictype/category-Nd-tests (Files): Likewise.
31944         * modules/unictype/category-Nl-tests (Files): Likewise.
31945         * modules/unictype/category-No-tests (Files): Likewise.
31946         * modules/unictype/category-P-tests (Files): Likewise.
31947         * modules/unictype/category-Pc-tests (Files): Likewise.
31948         * modules/unictype/category-Pd-tests (Files): Likewise.
31949         * modules/unictype/category-Pe-tests (Files): Likewise.
31950         * modules/unictype/category-Pf-tests (Files): Likewise.
31951         * modules/unictype/category-Pi-tests (Files): Likewise.
31952         * modules/unictype/category-Po-tests (Files): Likewise.
31953         * modules/unictype/category-Ps-tests (Files): Likewise.
31954         * modules/unictype/category-S-tests (Files): Likewise.
31955         * modules/unictype/category-Sc-tests (Files): Likewise.
31956         * modules/unictype/category-Sk-tests (Files): Likewise.
31957         * modules/unictype/category-Sm-tests (Files): Likewise.
31958         * modules/unictype/category-So-tests (Files): Likewise.
31959         * modules/unictype/category-Z-tests (Files): Likewise.
31960         * modules/unictype/category-Zl-tests (Files): Likewise.
31961         * modules/unictype/category-Zp-tests (Files): Likewise.
31962         * modules/unictype/category-Zs-tests (Files): Likewise.
31963         * modules/unictype/category-and-not-tests (Files): Likewise.
31964         * modules/unictype/category-and-tests (Files): Likewise.
31965         * modules/unictype/category-byname-tests (Files): Likewise.
31966         * modules/unictype/category-name-tests (Files): Likewise.
31967         * modules/unictype/category-none-tests (Files): Likewise.
31968         * modules/unictype/category-of-tests (Files): Likewise.
31969         * modules/unictype/category-or-tests (Files): Likewise.
31970         * modules/unictype/category-test-withtable-tests (Files): Likewise.
31971         * modules/unictype/combining-class-tests (Files): Likewise.
31972         * modules/unictype/ctype-alnum-tests (Files): Likewise.
31973         * modules/unictype/ctype-alpha-tests (Files): Likewise.
31974         * modules/unictype/ctype-blank-tests (Files): Likewise.
31975         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
31976         * modules/unictype/ctype-digit-tests (Files): Likewise.
31977         * modules/unictype/ctype-graph-tests (Files): Likewise.
31978         * modules/unictype/ctype-lower-tests (Files): Likewise.
31979         * modules/unictype/ctype-print-tests (Files): Likewise.
31980         * modules/unictype/ctype-punct-tests (Files): Likewise.
31981         * modules/unictype/ctype-space-tests (Files): Likewise.
31982         * modules/unictype/ctype-upper-tests (Files): Likewise.
31983         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
31984         * modules/unictype/decimal-digit-tests (Files): Likewise.
31985         * modules/unictype/digit-tests (Files): Likewise.
31986         * modules/unictype/mirror-tests (Files): Likewise.
31987         * modules/unictype/numeric-tests (Files): Likewise.
31988         * modules/unictype/property-alphabetic-tests (Files): Likewise.
31989         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
31990         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
31991         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
31992         Likewise.
31993         * modules/unictype/property-bidi-block-separator-tests (Files):
31994         Likewise.
31995         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
31996         Likewise.
31997         * modules/unictype/property-bidi-common-separator-tests (Files):
31998         Likewise.
31999         * modules/unictype/property-bidi-control-tests (Files): Likewise.
32000         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
32001         Likewise.
32002         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
32003         Likewise.
32004         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
32005         Likewise.
32006         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
32007         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
32008         Likewise.
32009         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
32010         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
32011         Likewise.
32012         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
32013         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
32014         * modules/unictype/property-bidi-segment-separator-tests (Files):
32015         Likewise.
32016         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
32017         * modules/unictype/property-byname-tests (Files): Likewise.
32018         * modules/unictype/property-combining-tests (Files): Likewise.
32019         * modules/unictype/property-composite-tests (Files): Likewise.
32020         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
32021         * modules/unictype/property-dash-tests (Files): Likewise.
32022         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
32023         * modules/unictype/property-default-ignorable-code-point-tests (Files):
32024         Likewise.
32025         * modules/unictype/property-deprecated-tests (Files): Likewise.
32026         * modules/unictype/property-diacritic-tests (Files): Likewise.
32027         * modules/unictype/property-extender-tests (Files): Likewise.
32028         * modules/unictype/property-format-control-tests (Files): Likewise.
32029         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
32030         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
32031         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
32032         * modules/unictype/property-hex-digit-tests (Files): Likewise.
32033         * modules/unictype/property-hyphen-tests (Files): Likewise.
32034         * modules/unictype/property-id-continue-tests (Files): Likewise.
32035         * modules/unictype/property-id-start-tests (Files): Likewise.
32036         * modules/unictype/property-ideographic-tests (Files): Likewise.
32037         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
32038         * modules/unictype/property-ids-trinary-operator-tests (Files):
32039         Likewise.
32040         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
32041         * modules/unictype/property-iso-control-tests (Files): Likewise.
32042         * modules/unictype/property-join-control-tests (Files): Likewise.
32043         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
32044         * modules/unictype/property-line-separator-tests (Files): Likewise.
32045         * modules/unictype/property-logical-order-exception-tests (Files):
32046         Likewise.
32047         * modules/unictype/property-lowercase-tests (Files): Likewise.
32048         * modules/unictype/property-math-tests (Files): Likewise.
32049         * modules/unictype/property-non-break-tests (Files): Likewise.
32050         * modules/unictype/property-not-a-character-tests (Files): Likewise.
32051         * modules/unictype/property-numeric-tests (Files): Likewise.
32052         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
32053         * modules/unictype/property-other-default-ignorable-code-point-tests
32054         (Files): Likewise.
32055         * modules/unictype/property-other-grapheme-extend-tests (Files):
32056         Likewise.
32057         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
32058         * modules/unictype/property-other-id-start-tests (Files): Likewise.
32059         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
32060         * modules/unictype/property-other-math-tests (Files): Likewise.
32061         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
32062         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
32063         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
32064         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
32065         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
32066         * modules/unictype/property-private-use-tests (Files): Likewise.
32067         * modules/unictype/property-punctuation-tests (Files): Likewise.
32068         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
32069         * modules/unictype/property-radical-tests (Files): Likewise.
32070         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
32071         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
32072         * modules/unictype/property-space-tests (Files): Likewise.
32073         * modules/unictype/property-terminal-punctuation-tests (Files):
32074         Likewise.
32075         * modules/unictype/property-test-tests (Files): Likewise.
32076         * modules/unictype/property-titlecase-tests (Files): Likewise.
32077         * modules/unictype/property-unassigned-code-value-tests (Files):
32078         Likewise.
32079         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
32080         * modules/unictype/property-uppercase-tests (Files): Likewise.
32081         * modules/unictype/property-variation-selector-tests (Files): Likewise.
32082         * modules/unictype/property-white-space-tests (Files): Likewise.
32083         * modules/unictype/property-xid-continue-tests (Files): Likewise.
32084         * modules/unictype/property-xid-start-tests (Files): Likewise.
32085         * modules/unictype/property-zero-width-tests (Files): Likewise.
32086         * modules/unictype/scripts-tests (Files): Likewise.
32087         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
32088         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
32089         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
32090         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
32091         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
32092         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
32093         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
32094         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
32095         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
32096         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
32097         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
32098         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
32099         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
32100         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
32101         * modules/uninorm/composition-tests (Files): Likewise.
32102         * modules/uninorm/decomposing-form-tests (Files): Likewise.
32103         * modules/uninorm/decomposition-tests (Files): Likewise.
32104         * modules/uninorm/filter-tests (Files): Likewise.
32105         * modules/uninorm/nfc-tests (Files): Likewise.
32106         * modules/uninorm/nfd-tests (Files): Likewise.
32107         * modules/uninorm/nfkc-tests (Files): Likewise.
32108         * modules/uninorm/nfkd-tests (Files): Likewise.
32109         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
32110         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
32111         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
32112         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
32113         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
32114         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
32115         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
32116         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32117         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
32118         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
32119         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
32120         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
32121         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32122         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
32123         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
32124         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
32125         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
32126         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32127         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
32128         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
32129         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
32130         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
32131         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32132         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
32133         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
32134         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
32135         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
32136         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
32137         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
32138         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
32139         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
32140         * modules/uniwidth/u8-width-tests (Files): Likewise.
32141         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
32142         * modules/uniwidth/u16-width-tests (Files): Likewise.
32143         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
32144         * modules/uniwidth/u32-width-tests (Files): Likewise.
32145         * modules/uniwidth/width-tests (Files): Likewise.
32146         * modules/unlink-tests (Files): Likewise.
32147         * modules/unsetenv-tests (Files): Likewise.
32148         * modules/usleep-tests (Files): Likewise.
32149         * modules/utimens-tests (Files): Likewise.
32150         * modules/utimensat-tests (Files): Likewise.
32151         * modules/vasnprintf-posix-tests (Files): Likewise.
32152         * modules/vasnprintf-tests (Files): Likewise.
32153         * modules/vasprintf-posix-tests (Files): Likewise.
32154         * modules/vasprintf-tests (Files): Likewise.
32155         * modules/vdprintf-posix-tests (Files): Likewise.
32156         * modules/vfprintf-posix-tests (Files): Likewise.
32157         * modules/vprintf-posix-tests (Files): Likewise.
32158         * modules/vsnprintf-posix-tests (Files): Likewise.
32159         * modules/vsnprintf-tests (Files): Likewise.
32160         * modules/vsprintf-posix-tests (Files): Likewise.
32161         * modules/wcrtomb-tests (Files): Likewise.
32162         * modules/wcsnrtombs-tests (Files): Likewise.
32163         * modules/wcsrtombs-tests (Files): Likewise.
32164         * modules/wctype-tests (Files): Likewise.
32165         * modules/wcwidth-tests (Files): Likewise.
32166         * modules/xmemdup0-tests (Files): Likewise.
32167         * modules/xprintf-posix-tests (Files): Likewise.
32168         * modules/xvasprintf-tests (Files): Likewise.
32169
32170 2009-12-24  Eric Blake  <ebb9@byu.net>
32171
32172         test-nanosleep: fix typo
32173         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
32174         patch.
32175         Reported by Bruno Haible.
32176
32177 2009-12-24  Bruno Haible  <bruno@clisp.org>
32178
32179         Reduce namespace pollution on glibc systems.
32180         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
32181         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
32182         systems.
32183         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
32184         <getopt.h> on glibc systems.
32185         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
32186         systems.
32187         * lib/fcntl.c: Include <unistd.h> here instead.
32188
32189 2009-12-24  Bruno Haible  <bruno@clisp.org>
32190
32191         * lib/stdlib.in.h (includes): Fix typo in today's commit.
32192
32193 2009-12-24  Eric Blake  <ebb9@byu.net>
32194
32195         tests: add signature checks
32196         * tests/signature.h (SIGNATURE_CHECK): New file.
32197         * modules/atexit-tests (Files): Use it.
32198         * modules/btowc-tests (Files): Likewise.
32199         * modules/canonicalize-lgpl-tests (Files): Likewise.
32200         * modules/ceilf-tests (Files): Likewise.
32201         * modules/ceill-tests (Files): Likewise.
32202         * modules/chown-tests (Files): Likewise.
32203         * modules/dprintf-posix-tests (Files): Likewise.
32204         * modules/dup2-tests (Files): Likewise.
32205         * modules/dup3-tests (Files): Likewise.
32206         * modules/duplocale-tests (Files): Likewise.
32207         * modules/fchdir-tests (Files): Likewise.
32208         * modules/fcntl-tests (Files): Likewise.
32209         * modules/fdopendir-tests (Files): Likewise.
32210         * modules/fflush-tests (Files): Likewise.
32211         * modules/flock-tests (Files): Likewise.
32212         * modules/floorf-tests (Files): Likewise.
32213         * modules/floorl-tests (Files): Likewise.
32214         * modules/fnmatch-tests (Files): Likewise.
32215         * modules/fopen-tests (Files): Likewise.
32216         * modules/fprintf-posix-tests (Files): Likewise.
32217         * modules/freopen-tests (Files): Likewise.
32218         * modules/frexp-nolibm-tests (Files): Likewise.
32219         * modules/frexp-tests (Files): Likewise.
32220         * modules/frexpl-nolibm-tests (Files): Likewise.
32221         * modules/frexpl-tests (Files): Likewise.
32222         * modules/fseek-tests (Files): Likewise.
32223         * modules/fseeko-tests (Files): Likewise.
32224         * modules/fsync-tests (Files): Likewise.
32225         * modules/ftell-tests (Files): Likewise.
32226         * modules/ftello-tests (Files): Likewise.
32227         * modules/futimens-tests (Files): Likewise.
32228         * modules/getaddrinfo-tests (Files): Likewise.
32229         * modules/getcwd-tests (Files): Likewise.
32230         * modules/getdelim-tests (Files): Likewise.
32231         * modules/getdtablesize-tests (Files): Likewise.
32232         * modules/getgroups-tests (Files): Likewise.
32233         * modules/gethostname-tests (Files): Likewise.
32234         * modules/getline-tests (Files): Likewise.
32235         * modules/getopt-posix-tests (Files): Likewise.
32236         * modules/gettimeofday-tests (Files): Likewise.
32237         * modules/glob-tests (Files): Likewise.
32238         * modules/iconv-tests (Files): Likewise.
32239         * modules/inet_ntop-tests (Files): Likewise.
32240         * modules/inet_pton-tests (Files): Likewise.
32241         * modules/isblank-tests (Files): Likewise.
32242         * modules/lchown-tests (Files): Likewise.
32243         * modules/ldexpl-tests (Files): Likewise.
32244         * modules/link-tests (Files): Likewise.
32245         * modules/linkat-tests (Files): Likewise.
32246         * modules/lseek-tests (Files): Likewise.
32247         * modules/lstat-tests (Files): Likewise.
32248         * modules/mbrtowc-tests (Files): Likewise.
32249         * modules/mbsinit-tests (Files): Likewise.
32250         * modules/mbsnrtowcs-tests (Files): Likewise.
32251         * modules/mbsrtowcs-tests (Files): Likewise.
32252         * modules/memchr-tests (Files): Likewise.
32253         * modules/memcmp-tests (Files): Likewise.
32254         * modules/memmem-tests (Files): Likewise.
32255         * modules/memrchr-tests (Files): Likewise.
32256         * modules/mkdir-tests (Files): Likewise.
32257         * modules/mkfifo-tests (Files): Likewise.
32258         * modules/mkfifoat-tests (Files): Likewise.
32259         * modules/mknod-tests (Files): Likewise.
32260         * modules/nanosleep-tests (Files): Likewise.
32261         * modules/nl_langinfo-tests (Files): Likewise.
32262         * modules/obstack-printf-tests (Files): Likewise.
32263         * modules/open-tests (Files): Likewise.
32264         * modules/openat-tests (Files): Likewise.
32265         * modules/perror-tests (Files): Likewise.
32266         * modules/pipe2-tests (Files): Likewise.
32267         * modules/poll-tests (Files): Likewise.
32268         * modules/popen-tests (Files): Likewise.
32269         * modules/posix_spawn-tests (Files): Likewise.
32270         * modules/posix_spawnp-tests (Files): Likewise.
32271         * modules/pread-tests (Files): Likewise.
32272         * modules/printf-posix-tests (Files): Likewise.
32273         * modules/pty-tests (Files): Likewise.
32274         * modules/random_r-tests (Files): Likewise.
32275         * modules/rawmemchr-tests (Files): Likewise.
32276         * modules/readlink-tests (Files): Likewise.
32277         * modules/remove-tests (Files): Likewise.
32278         * modules/rename-tests (Files): Likewise.
32279         * modules/renameat-tests (Files): Likewise.
32280         * modules/rmdir-tests (Files): Likewise.
32281         * modules/round-tests (Files): Likewise.
32282         * modules/roundf-tests (Files): Likewise.
32283         * modules/roundl-tests (Files): Likewise.
32284         * modules/select-tests (Files): Likewise.
32285         * modules/setenv-tests (Files): Likewise.
32286         * modules/sigaction-tests (Files): Likewise.
32287         * modules/sleep-tests (Files): Likewise.
32288         * modules/snprintf-posix-tests (Files): Likewise.
32289         * modules/snprintf-tests (Files): Likewise.
32290         * modules/sprintf-posix-tests (Files): Likewise.
32291         * modules/stat-tests (Files): Likewise.
32292         * modules/strcasestr-tests (Files): Likewise.
32293         * modules/strchrnul-tests (Files): Likewise.
32294         * modules/strerror-tests (Files): Likewise.
32295         * modules/strsignal-tests (Files): Likewise.
32296         * modules/strstr-tests (Files): Likewise.
32297         * modules/strtod-tests (Files): Likewise.
32298         * modules/strverscmp-tests (Files): Likewise.
32299         * modules/symlink-tests (Files): Likewise.
32300         * modules/symlinkat-tests (Files): Likewise.
32301         * modules/times-tests (Files): Likewise.
32302         * modules/trunc-tests (Files): Likewise.
32303         * modules/truncf-tests (Files): Likewise.
32304         * modules/truncl-tests (Files): Likewise.
32305         * modules/tsearch-tests (Files): Likewise.
32306         * modules/uname-tests (Files): Likewise.
32307         * modules/unlink-tests (Files): Likewise.
32308         * modules/unsetenv-tests (Files): Likewise.
32309         * modules/usleep-tests (Files): Likewise.
32310         * modules/utimensat-tests (Files): Likewise.
32311         * modules/vasprintf-tests (Files): Likewise.
32312         * modules/vdprintf-posix-tests (Files): Likewise.
32313         * modules/vfprintf-posix-tests (Files): Likewise.
32314         * modules/vprintf-posix-tests (Files): Likewise.
32315         * modules/vsnprintf-posix-tests (Files): Likewise.
32316         * modules/vsnprintf-tests (Files): Likewise.
32317         * modules/vsprintf-posix-tests (Files): Likewise.
32318         * modules/wcrtomb-tests (Files): Likewise.
32319         * modules/wcsnrtombs-tests (Files): Likewise.
32320         * modules/wcsrtombs-tests (Files): Likewise.
32321         * modules/wcwidth-tests (Files): Likewise.
32322         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
32323         * tests/test-isinf.c (isinf): Likewise.
32324         * tests/test-isnan.c (isnan): Likewise.
32325         * tests/test-signbit.c (signbit): Likewise.
32326         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
32327         declaration, either as macro or with correct signature.
32328         (select): Ensure function under test is declared with correct
32329         signature in correct header.
32330         * tests/test-atexit.c (atexit): Likewise.
32331         * tests/test-btowc.c (btowc): Likewise.
32332         * tests/test-canonicalize-lgpl.c (realpath)
32333         (canonicalize_file_name): Likewise.
32334         * tests/test-ceilf1.c (ceilf): Likewise.
32335         * tests/test-ceill.c (ceill): Likewise.
32336         * tests/test-chown.c (chown): Likewise.
32337         * tests/test-dprintf-posix.c (dprintf): Likewise.
32338         * tests/test-dup2.c (dup2): Likewise.
32339         * tests/test-dup3.c (dup3): Likewise.
32340         * tests/test-duplocale.c (duplocale): Likewise.
32341         * tests/test-fchdir.c (fchdir): Likewise.
32342         * tests/test-fchownat.c (fchownat): Likewise.
32343         * tests/test-fcntl.c (fcntl): Likewise.
32344         * tests/test-fdopendir.c (fdopendir): Likewise.
32345         * tests/test-fflush.c (fflush): Likewise.
32346         * tests/test-flock.c (flock): Likewise.
32347         * tests/test-floorf1.c (floorf): Likewise.
32348         * tests/test-floorl.c (floorl): Likewise.
32349         * tests/test-fnmatch.c (fnmatch): Likewise.
32350         * tests/test-fopen.c (fopen): Likewise.
32351         * tests/test-fprintf-posix.c (fprintf): Likewise.
32352         * tests/test-freopen.c (freopen): Likewise.
32353         * tests/test-frexp.c (frexp): Likewise.
32354         * tests/test-frexpl.c (frexpl): Likewise.
32355         * tests/test-fseek.c (fseek): Likewise.
32356         * tests/test-fseeko.c (fseeko): Likewise.
32357         * tests/test-fstatat.c (fstatat): Likewise.
32358         * tests/test-fsync.c (fsync): Likewise.
32359         * tests/test-ftell.c (ftell): Likewise.
32360         * tests/test-ftello.c (ftello): Likewise.
32361         * tests/test-futimens.c (futimens): Likewise.
32362         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
32363         (gai_strerror): Likewise.
32364         * tests/test-getcwd.c (getcwd): Likewise.
32365         * tests/test-getdelim.c (getdelim): Likewise.
32366         * tests/test-getdtablesize.c (getdtablesize): Likewise.
32367         * tests/test-getgroups.c (getgroups): Likewise.
32368         * tests/test-gethostname.c (gethostname): Likewise.
32369         * tests/test-getline.c (getline): Likewise.
32370         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
32371         Likewise.
32372         * tests/test-gettimeofday.c (gettimeofday): Likewise.
32373         * tests/test-glob.c (glob, globfree): Likewise.
32374         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
32375         * tests/test-inet_ntop.c (inet_ntop): Likewise.
32376         * tests/test-inet_pton.c (inet_pton): Likewise.
32377         * tests/test-isblank.c (isblank): Likewise.
32378         * tests/test-lchown.c (lchown): Likewise.
32379         * tests/test-ldexpl.c (ldexpl): Likewise.
32380         * tests/test-link.c (link): Likewise.
32381         * tests/test-linkat.c (linkat): Likewise.
32382         * tests/test-lseek.c (lseek): Likewise.
32383         * tests/test-lstat.c (lstat): Likewise.
32384         * tests/test-mbrtowc.c (mbrtowc): Likewise.
32385         * tests/test-mbsinit.c (mbsinit): Likewise.
32386         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
32387         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
32388         * tests/test-memchr.c (memchr): Likewise.
32389         * tests/test-memcmp.c (memcmp): Likewise.
32390         * tests/test-memmem.c (memmem): Likewise.
32391         * tests/test-memrchr.c (memrchr): Likewise.
32392         * tests/test-mkdir.c (mkdir): Likewise.
32393         * tests/test-mkdirat.c (mkdirat): Likewise.
32394         * tests/test-mkfifo.c (mkfifo): Likewise.
32395         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
32396         * tests/test-mknod.c (mknod): Likewise.
32397         * tests/test-nanosleep.c (nanosleep): Likewise.
32398         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
32399         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
32400         Likewise.
32401         * tests/test-open.c (open): Likewise.
32402         * tests/test-openat.c (openat): Likewise.
32403         * tests/test-perror.c (perror): Likewise.
32404         * tests/test-pipe2.c (pipe2): Likewise.
32405         * tests/test-poll.c (poll): Likewise.
32406         * tests/test-popen.c (popen, pclose): Likewise.
32407         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
32408         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
32409         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
32410         (posix_spawn_file_actions_destroy)
32411         (posix_spawn_file_actions_addclose)
32412         (posix_spawn_file_actions_addopen)
32413         (posix_spawn_file_actions_adddup2): Likewise.
32414         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
32415         * tests/test-pread.c (pread): Likewise.
32416         * tests/test-printf-posix.c (printf): Likewise.
32417         * tests/test-pty.c (openpty, forkpty): Likewise.
32418         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
32419         (random_r): Likewise.
32420         * tests/test-rawmemchr.c (rawmemchr): Likewise.
32421         * tests/test-readlink.c (readlink): Likewise.
32422         * tests/test-remove.c (remove): Likewise.
32423         * tests/test-rename.c (rename): Likewise.
32424         * tests/test-renameat.c (renameat): Likewise.
32425         * tests/test-rmdir.c (rmdir): Likewise.
32426         * tests/test-round1.c (round): Likewise.
32427         * tests/test-roundf1.c (roundf): Likewise.
32428         * tests/test-roundl.c (roundl): Likewise.
32429         * tests/test-setenv.c (setenv): Likewise.
32430         * tests/test-sigaction.c (sigaction): Likewise.
32431         * tests/test-sleep.c (sleep): Likewise.
32432         * tests/test-snprintf.c (snprintf): Likewise.
32433         * tests/test-sprintf-posix.c (sprintf): Likewise.
32434         * tests/test-stat.c (stat): Likewise.
32435         * tests/test-stpncpy.c (stpncpy): Likewise.
32436         * tests/test-strcasestr.c (strcasestr): Likewise.
32437         * tests/test-strchrnul.c (strchrnul): Likewise.
32438         * tests/test-strerror.c (strerror): Likewise.
32439         * tests/test-strsignal.c (strsignal): Likewise.
32440         * tests/test-strstr.c (strstr): Likewise.
32441         * tests/test-strtod.c (strtod): Likewise.
32442         * tests/test-strverscmp.c (strverscmp): Likewise.
32443         * tests/test-symlink.c (symlink): Likewise.
32444         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
32445         * tests/test-times.c (times): Likewise.
32446         * tests/test-trunc1.c (trunc): Likewise.
32447         * tests/test-truncf1.c (truncf): Likewise.
32448         * tests/test-truncl.c (truncl): Likewise.
32449         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
32450         Likewise.
32451         * tests/test-uname.c (uname): Likewise.
32452         * tests/test-unlink.c (unlink): Likewise.
32453         * tests/test-unlinkat.c (unlinkat): Likewise.
32454         * tests/test-unsetenv.c (unsetenv): Likewise.
32455         * tests/test-usleep.c (usleep): Likewise.
32456         * tests/test-utimensat.c (utimensat): Likewise.
32457         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
32458         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
32459         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
32460         * tests/test-vprintf-posix.c (vprintf): Likewise.
32461         * tests/test-vsnprintf.c (vsnprintf): Likewise.
32462         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
32463         * tests/test-wcrtomb.c (wcrtomb): Likewise.
32464         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
32465         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
32466         * tests/test-wcwidth.c (wcwidth): Likewise.
32467
32468         build: pull in conditional headers during GNULIB_POSIXCHECK
32469         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
32470         definitions from any conditionally-included headers.
32471         * lib/stdlib.in.h (includes): Likewise.
32472         * lib/unistd.in.h (includes): Likewise.
32473
32474 2009-12-24  Bruno Haible  <bruno@clisp.org>
32475
32476         * tests/test-argv-iter.c: Include header file being tested immediately
32477         after config.h.
32478         * tests/test-base64.c: Likewise.
32479         * tests/test-flock.c: Likewise.
32480         * tests/test-fsync.c: Likewise.
32481         * tests/test-getdate.c: Likewise.
32482         * tests/test-getndelim2.c: Likewise.
32483         * tests/test-isfinite.c: Likewise.
32484         * tests/test-isinf.c: Likewise.
32485         * tests/test-strerror.c: Likewise.
32486         * tests/test-strsignal.c: Likewise.
32487
32488 2009-12-23  Eric Blake  <ebb9@byu.net>
32489
32490         unistd: work around cygwin bug
32491         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
32492         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
32493         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32494
32495 2009-12-23  Bruno Haible  <bruno@clisp.org>
32496
32497         localename: More tests.
32498         * tests/test-localename.c (SIZEOF): New macro.
32499         (categories): New variable.
32500         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
32501         test_locale_name_default): Add test w.r.t. thread locale.
32502         (test_locale_name_thread): New function.
32503         (main): Invoke it.
32504
32505         localename: Make aware of thread locale.
32506         * lib/localename.h (gl_locale_name_thread): New declaration.
32507         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
32508         behaviour with respect to thread locale.
32509         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
32510         <langinfo.h>, glthread/lock.h.
32511         (SIZE_BITS): New macro.
32512         (string_hash): New function.
32513         (struct hash_node): New type.
32514         (HASH_TABLE_SIZE): New macro.
32515         (struniq_hash_table, struniq_lock): New variables.
32516         (struniq): New function.
32517         (gl_locale_name_thread): New function.
32518         (gl_locale_name): Invoke it.
32519         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
32520         * modules/localename (Depends-on): Add lock.
32521         Reported by Mike Gran <spk121@yahoo.com>.
32522
32523 2009-12-23  Eric Blake  <ebb9@byu.net>
32524
32525         va-args: new module
32526         * modules/va-args: New file.
32527         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
32528         * MODULES.html.sh (Core language properties): Mention it.
32529
32530         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
32531         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
32532         named alias for __attribute__((__unused__)).
32533         * lib/chown.c: Update client.
32534         * lib/fchmodat.c: Likewise.
32535         * lib/fts.c: Likewise.
32536         * lib/getdate.y: Likewise.
32537         * lib/getgroups.c: Likewise.
32538         * lib/getopt.c: Likewise.
32539         * lib/getugroups.c: Likewise.
32540         * lib/mkdir.c: Likewise.
32541         * lib/mkfifo.c: Likewise.
32542         * lib/mkfifoat.c: Likewise.
32543         * lib/mknod.c: Likewise.
32544         * lib/mknodat.c: Likewise.
32545         * lib/readlink.c: Likewise.
32546         * lib/se-context.in.h: Likewise.
32547         * lib/se-selinux.in.h: Likewise.
32548         * lib/sockets.c: Likewise.
32549         * lib/symlink.c: Likewise.
32550         * lib/symlinkat.c: Likewise.
32551         * lib/unicodeio.c: Likewise.
32552         * lib/unistr.h: Likewise.
32553         * tests/test-areadlink.c: Likewise.
32554         * tests/test-areadlinkat.c: Likewise.
32555         * tests/test-filenamecat.c: Likewise.
32556         * tests/test-fseeko.c: Likewise.
32557         * tests/test-ftello.c: Likewise.
32558         * tests/test-getdate.c: Likewise.
32559         * tests/test-getgroups.c: Likewise.
32560         * tests/test-gethostname.c: Likewise.
32561         * tests/test-quotearg.c: Likewise.
32562         * tests/test-version-etc.c: Likewise.
32563         * tests/test-xalloc-die.c: Likewise.
32564         * tests/test-xfprintf-posix.c: Likewise.
32565         * tests/test-xprintf-posix.c: Likewise.
32566         * tests/test-xvasprintf.c: Likewise.
32567
32568         tests: avoid compiler warnings
32569         * tests/test-fcntl.c (main): Delete unused parameters.
32570         * tests/test-freopen-safer.c (main): Likewise.
32571         * tests/test-xalloc-die.c (main): Mark unused parameters.
32572         * tests/test-fseeko.c (main): Likewise.
32573         * tests/test-ftello.c (main): Likewise.
32574         * tests/test-nanosleep.c (main): Avoid declaration warning.
32575         * tests/test-sleep.c (main): Likewise.
32576         * tests/test-unsetenv.c (main): Silence warning about string
32577         literal.
32578         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32579
32580 2009-12-23  Bruno Haible  <bruno@clisp.org>
32581
32582         * tests/test-localename.c (test_locale_name): New function, extracted
32583         from main. Also test mixed situations.
32584         (test_locale_name_posix, test_locale_name_environ,
32585         test_locale_name_default): New functions.
32586         (main): Invoke them all.
32587         * modules/localename-tests (configure.ac): Test for newlocale.
32588
32589 2009-12-23  Bruno Haible  <bruno@clisp.org>
32590
32591         unistd: Ensure getcwd gets declared before being overridden.
32592         * lib/unistd.in.h: Conditionally include <io.h>.
32593
32594 2009-12-22  Bruno Haible  <bruno@clisp.org>
32595
32596         wchar: Diagnose broken combination of glibc and gcc versions and flags.
32597         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
32598         (gl_WCHAR_H): Invoke it.
32599         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
32600         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
32601         Reported by Karl Berry <karl@freefriends.org>.
32602
32603 2009-12-22  Eric Blake  <ebb9@byu.net>
32604
32605         math, unistd: avoid redundant includes
32606         * lib/math.in.h (isnan): No need to re-include <math.h>.
32607         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
32608
32609         getsubopt: work around cygwin bug
32610         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
32611         avoid conflicting with system getsubopt.
32612         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
32613         bug.
32614
32615         getopt: synchronize from glibc
32616         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
32617         parameter order.  Adjust all callers.
32618         (_getopt_internal_r, main): Adjust quoting in error messages.
32619         Drop considerations for outdated POSIX 1003.2 error message.
32620         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
32621         callers.
32622         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
32623
32624         test-getopt: test stderr behavior
32625         * modules/getopt-posix-tests (Depends-on): Add dup2.
32626         * tests/test-getopt.c (ASSERT): Avoid stderr.
32627         (main): Move stderr to a temporary file.
32628         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
32629         Instead, add parameter to inform caller if output occurred.
32630         (test_getopt): Adjust all existing tests to expect silence, and
32631         add new tests of leading ":".
32632         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32633         glibc shortcomings with leading "-:" or "+:" in optstring.
32634         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32635         Likewise.
32636         * doc/posix-functions/getopt.texi (getopt): Likewise.
32637
32638         test-getopt: enhance test
32639         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
32640         supports optind=0.
32641         * tests/test-getopt.c (OPTIND_MIN): Move...
32642         * tests/test-getopt.h (OPTIND_MIN): ...here.
32643         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
32644         Require that optind=0 works, since modern BSD supports it in
32645         addition to optreset, and since coreutils expects it.
32646         (test_getopt_long_only): New test.
32647         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32648         glibc shortcomings with 'W;', and enforcement of optind=0.
32649         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32650         Likewise.
32651
32652 2009-12-21  Bruno Haible  <bruno@clisp.org>
32653
32654         localename: Improvements for MacOS X and Cygwin.
32655         * lib/localename.h (gl_locale_name_environ): New declaration.
32656         * lib/localename.c (gl_locale_name_environ): New function, extracted from
32657         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
32658         (gl_locale_name_posix): Invoke it.
32659         (gl_locale_name_default): Add comments. Use Windows native API also on
32660         Cygwin.
32661
32662 2009-12-21  Bruno Haible  <bruno@clisp.org>
32663
32664         Update list of Win32 locale ids.
32665         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
32666         (LANG_SAMI): Renamed from LANG_SAAMI.
32667         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
32668         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
32669         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
32670         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
32671         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
32672         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
32673         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
32674         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
32675         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
32676         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
32677         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
32678         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
32679         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
32680         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
32681         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
32682         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
32683         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
32684         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
32685         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
32686         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
32687         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
32688         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
32689         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
32690         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
32691         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
32692         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
32693         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
32694         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
32695         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
32696         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
32697         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
32698         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
32699         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
32700         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
32701         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
32702         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
32703         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
32704         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
32705         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
32706         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
32707         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
32708         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
32709         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
32710         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
32711         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
32712         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
32713         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
32714         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
32715         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
32716         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
32717         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
32718         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
32719         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
32720         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
32721         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
32722         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
32723         Add more languages and countries for Sami, Sorbian. Add more countries
32724         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
32725         for Pashto. Change country for Syriac, Tswana.
32726
32727 2009-12-21  Eric Blake  <ebb9@byu.net>
32728
32729         test-utimens: avoid spurious failure
32730         * tests/test-chown.h (nap): Factor...
32731         * tests/nap.h: ...into new file.
32732         * tests/test-lchown.h (nap): Avoid duplication.
32733         * tests/test-utimens-common.h (nap): Use shared implementation,
32734         necessary on file systems with 1-second resolution.
32735         * modules/chown-tests (Files): Include new file.
32736         * modules/fdutimensat-tests (Files): Likewise.
32737         * modules/futimens-tests (Files): Likewise.
32738         * modules/lchown-tests (Files): Likewise.
32739         * modules/openat-tests (Files): Likewise.
32740         * modules/utimens-tests (Files): Likewise.
32741         * modules/utimensat-tests (Files): Likewise.
32742
32743 2009-12-19  Eric Blake  <ebb9@byu.net>
32744
32745         futimens, utimensat: work around Linux bug
32746         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
32747         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32748         * lib/utimensat.c (rpl_utimensat): Work around it.
32749         * lib/futimens.c (rpl_futimens): Adjust comment.
32750
32751         utimens: work around Linux ctime bug
32752         * lib/utimens.c (detect_ctime_bug): New helper function.
32753         (update_timespec): Differentiate between workaround needed for
32754         this bug vs. what is needed for systems that lack utimensat.
32755         (fdutimens, lutimens): Work around bug.
32756
32757         utimens: check for ctime update
32758         * tests/test-utimens-common.h (check_ctime): Define.
32759         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
32760         * tests/test-futimens.h (test_futimens): Likewise.
32761         * tests/test-lutimens.h (test_lutimens): Likewise.
32762         * doc/posix-functions/futimens.texi (futimens): Document the bug.
32763         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32764
32765 2009-12-19  Bruno Haible  <bruno@clisp.org>
32766
32767         dprintf-posix: Check against memory leak fixed on 2009-12-15.
32768         * tests/test-dprintf-posix2.sh: New file.
32769         * tests/test-dprintf-posix2.c: New file.
32770         * modules/dprintf-posix-tests (Files): Add them.
32771         (configure.ac): Check for getrlimit and setrlimit.
32772         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32773
32774 2009-12-19  Bruno Haible  <bruno@clisp.org>
32775
32776         fprintf-posix: Check against memory leak fixed on 2009-12-15.
32777         * tests/test-fprintf-posix3.sh: New file.
32778         * tests/test-fprintf-posix3.c: New file.
32779         * modules/fprintf-posix-tests (Files): Add them.
32780         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32781
32782 2009-12-19  Eric Blake  <ebb9@byu.net>
32783
32784         dirfd: fix prototype
32785         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
32786         * lib/dirfd.c (dirfd): Likewise.
32787
32788         canonicalize: reduce memory usage
32789         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
32790         allocation to size.
32791         Reported by Solar Designer <solar@openwall.com>.
32792
32793 2009-12-19  Bruno Haible  <bruno@clisp.org>
32794
32795         New module attribute 'Applicability'.
32796         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
32797         * gnulib-tool: New option --extract-applicability.
32798         (func_usage): Document it.
32799         (sed_extract_prog): Recognize it.
32800         (func_get_applicability): New function.
32801         (func_import): Generalize handling of 'link-warning' module.
32802         * modules/link-warning (Applicability): New section.
32803         * modules/arg-nonnull (Applicability): New section.
32804         Repoted by Simon Josefsson <simon@josefsson.org>.
32805
32806 2009-12-19  Bruno Haible  <bruno@clisp.org>
32807
32808         fflush: tweak
32809         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
32810         * lib/fseeko.c (rpl_fseeko): Likewise.
32811
32812 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
32813
32814         * lib/gl_list.h: Fix typo in comment.
32815
32816 2009-12-16  Eric Blake  <ebb9@byu.net>
32817
32818         fcntl: use to simplify other modules
32819         * modules/cloexec (Depends-on): Add fcntl.
32820         * modules/fchdir (Depends-on): Likewise.
32821         * modules/fd-safer-flag (Depends-on): Likewise.
32822         * modules/unistd-safer (Depends-on): Likewise.
32823         * modules/dup3 (configure.ac): Set module indicator.
32824         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
32825         missing.
32826         * lib/fchdir.c (_gl_register_dup): Fix comment.
32827         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
32828         * lib/dup-safer.c (dup_safer): Likewise.
32829         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
32830         * lib/dup3.c (dup3): Likewise.
32831         * tests/test-fchdir.c (main): Enhance test.
32832         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
32833
32834         fcntl: port portions of fcntl to mingw
32835         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
32836         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
32837         replacement for mingw.
32838         * modules/fcntl (Description): Update.
32839         (Depends-on): Add dup2.
32840         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
32841         * modules/fcntl-h (Makefile.am): Substitute it.
32842         * lib/fcntl.in.h (fcntl): Update declaration.
32843         (F_DUPFD, F_GETFD): New macros, when needed.
32844         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32845         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
32846         * tests/test-fcntl.c (check_flags, main): Enhance test for items
32847         we now guarantee.
32848
32849         fcntl: work around cygwin bug in F_DUPFD
32850         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
32851         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
32852         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
32853         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
32854         * doc/posix-functions/fcntl.texi (fcntl): Document it.
32855
32856         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
32857         * modules/fcntl (Files): List new files.
32858         (configure.ac): Run a test.
32859         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
32860         * lib/fcntl.c (rpl_fcntl): Likewise.
32861         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
32862         (gl_FCNTL_H): Always replace fcntl.h.
32863         * modules/fcntl-h (Makefile.am): Substitute witnesses.
32864         * lib/fcntl.in.h (fcntl): Declare replacement.
32865         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
32866         needed, plus a witness.
32867         * doc/posix-functions/fcntl.texi (fcntl): Document this.
32868         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32869         * tests/test-fcntl.c: New file.
32870         * modules/fcntl-tests: Likewise.
32871
32872         binary-io: avoid potential compilation warning
32873         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
32874         directives.
32875
32876         fflush: avoid compilation error on NetBSD
32877         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
32878         between off_t and fpos_t, since the latter is sometimes a struct.
32879         * lib/fseeko.c (rpl_fseeko): Likewise.
32880         Reported by Alexander Nasonov <alnsn@yandex.ru>.
32881
32882 2009-12-15  Eric Blake  <ebb9@byu.net>
32883
32884         fcntl-h, stdio, sys_ioctl: fix declarations
32885         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
32886         function must not take arguments.
32887         * lib/sys_ioctl.in.h (ioctl): Likewise.
32888         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
32889         (open): Add a link warning.
32890
32891 2009-12-15  Jim Meyering  <meyering@redhat.com>
32892
32893         areadlink, areadlink-with-size: relax license to LGPLv2+
32894         * modules/areadlink (License): Relax to LGPLv2+.
32895         * modules/areadlink-with-size (License): Likewise.
32896
32897 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
32898             Bruno Haible  <bruno@clisp.org>
32899
32900         *printf: Fix memory leak.
32901         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
32902         * lib/vfprintf.c (vfprintf): Likewise.
32903         * lib/dprintf.c (dprintf): Likewise.
32904         * lib/vdprintf.c (vdprintf): Likewise.
32905
32906 2009-12-14  Eric Blake  <ebb9@byu.net>
32907
32908         accept4: adjust module dependencies
32909         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
32910
32911         utimens: one more try at avoiding compiler warning
32912         * lib/utimens.c (lutimens): Lower scope of result.
32913
32914 2009-12-13  Bruno Haible  <bruno@clisp.org>
32915
32916         Move the malloc checking from module 'list' to new module 'xlist'.
32917         * modules/xlist: New file.
32918         * lib/gl_xlist.h: New file.
32919         * lib/gl_xlist.c: New file.
32920         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
32921         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
32922         gl_list_add_last, gl_list_add_before, gl_list_add_after,
32923         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
32924         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
32925         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
32926         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
32927         gl_sortedlist_nx_add): New declarations.
32928         (struct gl_list_implementation): Rename and change methods accordingly.
32929         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
32930         (gl_list_nx_create): Renamed from gl_list_create.
32931         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32932         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32933         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32934         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32935         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32936         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32937         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32938         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32939         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
32940         gl_list_create_empty.
32941         (gl_list_nx_create): Renamed from gl_list_create.
32942         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32943         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32944         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32945         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32946         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32947         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32948         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32949         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32950         * lib/gl_array_list.c: Don't include xalloc.h.
32951         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
32952         NULL upon out-of-memory.
32953         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
32954         out-of-memory.
32955         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
32956         Change return type to 'int'.
32957         (gl_array_nx_set_at): Renamed from gl_array_set_at.
32958         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32959         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
32960         upon out-of-memory.
32961         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
32962         upon out-of-memory.
32963         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
32964         upon out-of-memory.
32965         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
32966         upon out-of-memory.
32967         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
32968         out-of-memory.
32969         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
32970         Update.
32971         (gl_array_list_implementation): Update.
32972         * lib/gl_carray_list.c: Don't include xalloc.h.
32973         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
32974         Return NULL upon out-of-memory.
32975         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
32976         out-of-memory.
32977         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
32978         Change return type to 'int'.
32979         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
32980         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32981         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
32982         upon out-of-memory.
32983         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
32984         upon out-of-memory.
32985         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
32986         out-of-memory.
32987         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
32988         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
32989         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
32990         Update.
32991         (gl_carray_list_implementation): Update.
32992         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
32993         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
32994         gl_linked_create_empty. Return NULL upon out-of-memory.
32995         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
32996         out-of-memory.
32997         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
32998         Change return type to 'int'. Return -1 upon out-of-memory.
32999         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
33000         out-of-memory.
33001         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
33002         upon out-of-memory.
33003         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
33004         upon out-of-memory.
33005         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
33006         NULL upon out-of-memory.
33007         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
33008         upon out-of-memory.
33009         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
33010         out-of-memory.
33011         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
33012         Update.
33013         * lib/gl_linked_list.c: Don't include xalloc.h.
33014         (gl_linked_list_implementation): Update.
33015         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
33016         (add_to_bucket): Change return type to 'int'.
33017         (gl_linkedhash_list_implementation): Update.
33018         * lib/gl_anytree_list1.h (free_subtree): New function.
33019         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
33020         gl_tree_create_empty. Return NULL upon out-of-memory.
33021         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
33022         Change return type to 'int'. Return -1 upon out-of-memory.
33023         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
33024         out-of-memory.
33025         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
33026         (gl_tree_remove_node): New function, moved here from
33027         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
33028         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
33029         Update.
33030         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
33031         malloc, not xmalloc. Return NULL upon out-of-memory.
33032         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33033         out-of-memory.
33034         (gl_tree_remove_node_from_tree): New function, extracted from
33035         gl_tree_remove_node.
33036         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33037         upon out-of-memory.
33038         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33039         out-of-memory.
33040         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33041         upon out-of-memory.
33042         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33043         upon out-of-memory.
33044         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33045         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
33046         not xmalloc. Return NULL upon out-of-memory.
33047         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33048         out-of-memory.
33049         (gl_tree_remove_node_from_tree): New function, extracted from
33050         gl_tree_remove_node.
33051         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33052         upon out-of-memory.
33053         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33054         out-of-memory.
33055         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33056         upon out-of-memory.
33057         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33058         upon out-of-memory.
33059         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33060         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
33061         gl_anytree_list1.h before gl_anyavltree_list2.h.
33062         (gl_avltree_list_implementation): Update.
33063         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
33064         gl_anytree_list1.h before gl_anyavltree_list2.h.
33065         (gl_rbtree_list_implementation): Update.
33066         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
33067         Change return type to 'int'. Return -1 upon out-of-memory. Use
33068         __builtin_expect.
33069         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
33070         (gl_avltreehash_list_implementation): Update.
33071         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
33072         (gl_rbtreehash_list_implementation): Update.
33073         * modules/array-list (Depends-on): Remove xalloc.
33074         * modules/carray-list (Depends-on): Likewise.
33075         * modules/linked-list (Depends-on): Likewise.
33076         * modules/linkedhash-list (Depends-on): Likewise.
33077         * modules/avltree-list (Depends-on): Likewise.
33078         * modules/rbtree-list (Depends-on): Likewise.
33079         * modules/avltreehash-list (Depends-on): Likewise.
33080         * modules/rbtreehash-list (Depends-on): Likewise.
33081
33082         * modules/xsublist: New file.
33083         * lib/gl_xsublist.h: New file.
33084         * lib/gl_xsublist.c: New file.
33085         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
33086         (gl_sublist_nx_create): New declaration.
33087         * lib/gl_sublist.c: Don't include xalloc.h.
33088         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
33089         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
33090         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
33091         Change return type to 'int'. Return -1 upon out-of-memory.
33092         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
33093         upon out-of-memory.
33094         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
33095         NULL upon out-of-memory.
33096         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
33097         upon out-of-memory.
33098         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
33099         NULL upon out-of-memory.
33100         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
33101         NULL upon out-of-memory.
33102         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
33103         upon out-of-memory.
33104         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
33105         (gl_sublist_list_implementation): Update.
33106         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
33107         upon out-of-memory.
33108         * modules/sublist (Depends-on): Remove xalloc.
33109
33110         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
33111         * tests/test-carray_list.c: Likewise.
33112         * tests/test-linked_list.c: Likewise.
33113         * tests/test-linkedhash_list.c: Likewise.
33114         * tests/test-avltree_list.c: Likewise.
33115         * tests/test-rbtree_list.c: Likewise.
33116         * tests/test-avltreehash_list.c: Likewise.
33117         * tests/test-rbtreehash_list.c: Likewise.
33118         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
33119         * modules/carray-list-tests (Makefile.am): Likewise.
33120         * modules/linked-list-tests (Makefile.am): Likewise.
33121         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33122         * modules/avltree-list-tests (Makefile.am): Likewise.
33123         * modules/rbtree-list-tests (Makefile.am): Likewise.
33124         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33125         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33126
33127         * NEWS: Mention the changes.
33128
33129         * lib/clean-temp.c: Include gl_xlist.h.
33130         * modules/clean-temp (Depends-on): Add xlist.
33131
33132         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
33133         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
33134
33135         * tests/test-array_oset.c: Include gl_xlist.h.
33136         * modules/array-oset-tests (Depends-on): Add xlist.
33137
33138         Reported by José E. Marchesi <jemarch@gnu.org>.
33139
33140 2009-12-13  Bruno Haible  <bruno@clisp.org>
33141
33142         Move the malloc checking from module 'oset' to new module 'xoset'.
33143         * modules/xoset: New file.
33144         * lib/gl_xoset.h: New file.
33145         * lib/gl_xoset.c: New file.
33146         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
33147         declarations.
33148         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
33149         (struct gl_oset_implementation): Rename and change methods accordingly.
33150         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
33151         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33152         'int'. Mark as __warn_unused_result__.
33153         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
33154         gl_oset_create_empty.
33155         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33156         'int'.
33157         * lib/gl_array_oset.c: Don't include xalloc.h.
33158         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
33159         malloc, not xmalloc.
33160         (grow): Change return type to 'int'. Don't call xalloc_die.
33161         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
33162         to 'int'.
33163         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
33164         'int'.
33165         (gl_array_oset_implementation): Update.
33166         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
33167         gl_tree_create_empty.
33168         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
33169         'int'.
33170         * lib/gl_avltree_oset.c: Don't include xalloc.h.
33171         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33172         xmalloc.
33173         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33174         not xmalloc.
33175         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33176         xmalloc.
33177         (gl_avltree_oset_implementation): Update.
33178         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
33179         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33180         xmalloc.
33181         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33182         not xmalloc.
33183         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33184         xmalloc.
33185         (gl_rbtree_oset_implementation): Update.
33186         * modules/array-oset (Depends-on): Remove xalloc.
33187         * modules/avltree-oset (Depends-on): Likewise.
33188         * modules/rbtree-oset (Depends-on): Likewise.
33189         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
33190         * tests/test-avltree_oset.c: Likewise.
33191         * tests/test-rbtree_oset.c: Likewise.
33192         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
33193         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
33194         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33195         * NEWS: Mention the change.
33196
33197 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
33198
33199         maint.mk: allow a project to override release-prep commands
33200         * top/maint.mk (alpha, beta, stable): Move release-preparatory
33201         commands into a new rule.
33202         (release-prep): New rule.
33203         (release-prep-hook): New overridable variable.
33204
33205 2009-12-13  Bruno Haible  <bruno@clisp.org>
33206
33207         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
33208
33209 2009-12-13  Jim Meyering  <meyering@redhat.com>
33210
33211         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
33212         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
33213
33214 2009-12-12  Bruno Haible  <bruno@clisp.org>
33215
33216         duplocale: Tweak.
33217         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
33218
33219 2009-12-12  Karl Berry  <karl@gnu.org>
33220
33221         * config/srclist.txt (strtoll.c): tab changes, no more sync.
33222
33223 2009-12-12  Bruno Haible  <bruno@clisp.org>
33224
33225         * m4/po.m4: Undo incorrect untabification.
33226
33227 2009-12-12  Bruno Haible  <bruno@clisp.org>
33228
33229         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
33230         * modules/c-strtod (Depends-on): Add locale.
33231         * modules/c-strtold (Depends-on): Likewise.
33232
33233 2009-12-12  Bruno Haible  <bruno@clisp.org>
33234
33235         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
33236
33237 2009-12-11  Eric Blake  <ebb9@byu.net>
33238
33239         setenv: relax requirement in light of POSIX ruling
33240         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
33241         not NULL.
33242         * tests/test-setenv.c (main): Relax test.
33243         * tests/test-unsetenv.c (main): Likewise.
33244         * doc/posix-functions/setenv.texi (setenv): Document this.
33245         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33246
33247 2009-12-11  Bruno Haible  <bruno@clisp.org>
33248
33249         New module 'fd-safer-flag'.
33250         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
33251         * lib/dup-safer.c (dup_safer_flag): Remove function.
33252         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
33253         * lib/fd-safer.c (fd_safer_flag): Remove function.
33254         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
33255         * modules/cloexec (configure.ac): Drop indicator macro.
33256         * modules/fd-safer-flag: New file.
33257         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
33258         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
33259         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
33260
33261 2009-12-11  Bruno Haible  <bruno@clisp.org>
33262
33263         Tests for module 'nl_langinfo'.
33264         * modules/nl_langinfo-tests: New file.
33265         * tests/test-nl_langinfo.sh: New file.
33266         * tests/test-nl_langinfo.c: New file.
33267
33268         New module 'nl_langinfo'.
33269         * lib/nl_langinfo.c: New file.
33270         * m4/nl_langinfo.m4: New file.
33271         * modules/nl_langinfo: New file.
33272         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
33273
33274 2009-12-11  Bruno Haible  <bruno@clisp.org>
33275
33276         Tests for module 'langinfo'.
33277         * modules/langinfo-tests: New file.
33278         * tests/test-langinfo.c: New file.
33279
33280         New module 'langinfo'.
33281         * lib/langinfo.in.h: New file.
33282         * m4/langinfo_h.m4: New file.
33283         * modules/langinfo: New file.
33284         * doc/posix-headers/langinfo.texi: Mention the new module.
33285
33286 2009-12-11  Bruno Haible  <bruno@clisp.org>
33287
33288         * lib/config.charset: Untabify.
33289
33290 2009-12-11  Bruno Haible  <bruno@clisp.org>
33291
33292         * modules/unistd-safer (configure.ac): Drop indicator macro.
33293
33294 2009-12-11  Bruno Haible  <bruno@clisp.org>
33295
33296         Move pipe2-safer code to its own file.
33297         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
33298         * lib/pipe-safer.c (pipe2_safer): Remove function.
33299         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
33300         (Makefile.am): Add it to lib_SOURCES.
33301
33302 2009-12-10  Bruno Haible  <bruno@clisp.org>
33303
33304         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
33305
33306 2009-12-10  Bruno Haible  <bruno@clisp.org>
33307
33308         Declare which arguments expect non-NULL values, for GCC and clang.
33309         * build-aux/arg-nonnull.h: New file.
33310         * modules/arg-nonnull: New file.
33311         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
33312         (inet_ntop, inet_pton): Use it.
33313         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
33314         (closedir, dirfd, opendir, scandir, alphasort): Use it.
33315         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
33316         (open, openat): Use it.
33317         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
33318         (fnmatch): Use it.
33319         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
33320         (getopt, getopt_long, getopt_long_only): Use it.
33321         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
33322         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
33323         Use it.
33324         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
33325         (iconv_open): Use it.
33326         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
33327         (strtoimax, strtoumax): Use it.
33328         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
33329         (duplocale): Use it.
33330         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
33331         (frexp, frexpl): Use it.
33332         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
33333         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
33334         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
33335         (tsearch, tfind, tdelete, twalk): Use it.
33336         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
33337         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33338         sigpending): Use it.
33339         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
33340         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33341         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33342         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33343         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33344         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33345         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33346         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33347         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33348         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33349         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33350         Use it.
33351         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
33352         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
33353         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
33354         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
33355         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
33356         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
33357         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
33358         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
33359         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
33360         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
33361         strtoull, unsetenv): Use it.
33362         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
33363         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33364         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33365         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
33366         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
33367         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
33368         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
33369         (strcasecmp, strncasecmp): Use it.
33370         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
33371         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
33372         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
33373         rpl_setsockopt): Use it.
33374         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
33375         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
33376         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
33377         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
33378         (gettimeofday): Use it.
33379         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
33380         (times): Use it.
33381         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
33382         (uname): Use it.
33383         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
33384         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
33385         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
33386         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
33387         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
33388         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
33389         unlinkat, write): Use it.
33390         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
33391         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
33392         * lib/argv-iter.h: Include arg-nonnull.h.
33393         (_ATTRIBUTE_NONNULL_): Remove macro.
33394         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
33395         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
33396         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
33397         optimization.
33398         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
33399         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
33400         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
33401         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
33402         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
33403         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
33404         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
33405         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
33406         * modules/arpa_inet (Depends-on): Add arg-nonnull.
33407         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
33408         * modules/dirent (Depends-on): Add arg-nonnull.
33409         (Makefile.am): Insert arg-nonnull.h into dirent.h.
33410         * modules/fcntl-h (Depends-on): Add arg-nonnull.
33411         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
33412         * modules/fnmatch (Depends-on): Add arg-nonnull.
33413         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
33414         * modules/getopt-posix (Depends-on): Add arg-nonnull.
33415         (Makefile.am): Insert arg-nonnull.h into getopt.h.
33416         * modules/glob (Depends-on): Add arg-nonnull.
33417         (Makefile.am): Insert arg-nonnull.h into glob.h.
33418         * modules/iconv_open (Depends-on): Add arg-nonnull.
33419         (Makefile.am): Insert arg-nonnull.h into iconv.h.
33420         * modules/inttypes (Depends-on): Add arg-nonnull.
33421         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
33422         * modules/locale (Depends-on): Add arg-nonnull.
33423         (Makefile.am): Insert arg-nonnull.h into locale.h.
33424         * modules/math (Depends-on): Add arg-nonnull.
33425         (Makefile.am): Insert arg-nonnull.h into math.h.
33426         * modules/netdb (Depends-on): Add arg-nonnull.
33427         (Makefile.am): Insert arg-nonnull.h into netdb.h.
33428         * modules/search (Depends-on): Add arg-nonnull.
33429         (Makefile.am): Insert arg-nonnull.h into search.h.
33430         * modules/signal (Depends-on): Add arg-nonnull.
33431         (Makefile.am): Insert arg-nonnull.h into signal.h.
33432         * modules/spawn (Depends-on): Add arg-nonnull.
33433         (Makefile.am): Insert arg-nonnull.h into spawn.h.
33434         * modules/stdio (Depends-on): Add arg-nonnull.
33435         (Makefile.am): Insert arg-nonnull.h into stdio.h.
33436         * modules/stdlib (Depends-on): Add arg-nonnull.
33437         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
33438         * modules/string (Depends-on): Add arg-nonnull.
33439         (Makefile.am): Insert arg-nonnull.h into string.h.
33440         * modules/strings (Depends-on): Add arg-nonnull.
33441         (Makefile.am): Insert arg-nonnull.h into strings.h.
33442         * modules/sys_socket (Depends-on): Add arg-nonnull.
33443         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
33444         * modules/sys_stat (Depends-on): Add arg-nonnull.
33445         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
33446         * modules/sys_time (Depends-on): Add arg-nonnull.
33447         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
33448         * modules/sys_times (Depends-on): Add arg-nonnull.
33449         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
33450         * modules/sys_utsname (Depends-on): Add arg-nonnull.
33451         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
33452         * modules/time (Depends-on): Add arg-nonnull.
33453         (Makefile.am): Insert arg-nonnull.h into time.h.
33454         * modules/unistd (Depends-on): Add arg-nonnull.
33455         (Makefile.am): Insert arg-nonnull.h into unistd.h.
33456         * modules/wchar (Depends-on): Add arg-nonnull.
33457         (Makefile.am): Insert arg-nonnull.h into wchar.h.
33458         * modules/argv-iter (Depends-on): Add arg-nonnull.
33459         * tests/test-canonicalize.c (null_ptr): New function.
33460         (main): Use it.
33461         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
33462         (main): Use it.
33463         * tests/test-memmem.c (null_ptr): New function.
33464         (main): Use it.
33465         Reported by Jim Meyering.
33466
33467 2009-12-10  Bruno Haible  <bruno@clisp.org>
33468
33469         Use spaces for indentation, not tabs.
33470         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
33471         * m4/*.m4: Untabify.
33472         * build-aux/*.h: Untabify.
33473         * tests/**/*.[hc]: Untabify.
33474         * README: New section "Indent with spaces, not TABs", based on
33475         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
33476         * NEWS: Mention the change.
33477
33478 2009-12-10  Bruno Haible  <bruno@clisp.org>
33479
33480         pty test: Fix link error.
33481         * modules/pty-tests (Makefile.am): Add the default LDADD value to
33482         test_pty_LDADD.
33483
33484 2009-12-07  Simon Josefsson  <simon@josefsson.org>
33485
33486         * modules/pty: New file.
33487         * modules/pty-tests: New file.
33488         * m4/pty.m4: New file.
33489         * tests/test-pty.c: New file.
33490         * doc/glibc-headers/pty.texi: Modified.
33491         * doc/glibc-functions/forkpty.texi: Modified.
33492         * doc/glibc-functions/openpty.texi: Modified.
33493
33494 2009-12-10  Bruno Haible  <bruno@clisp.org>
33495
33496         Avoid syntax error in C++ mode.
33497         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
33498
33499 2009-12-10  Bruno Haible  <bruno@clisp.org>
33500
33501         Use sed with option -e.
33502         * gnulib-tool (func_version, func_emit_copyright_notice,
33503         func_emit_initmacro_end, func_import, func_create_testdir): Pass
33504         option -e to sed.
33505         * modules/link-warning (Makefile.am): Likewise.
33506
33507 2009-12-10  Jim Meyering  <meyering@redhat.com>
33508
33509         mgetgroups: do not write bytes beyond end of malloc'd buffer
33510         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
33511         username, we call getgroups with a one-element-shorter buffer,
33512         but still told it the length was original, max_n_groups.
33513
33514 2009-12-09  Eric Blake  <ebb9@byu.net>
33515
33516         cloexec: relax license
33517         * modules/cloexec (Maintainer): Add myself.
33518         (License): Use LGPL, not GPL.
33519
33520         link-warning: optimize generation
33521         * modules/link-warning (Makefile.am): Reduce process usage.
33522
33523 2009-12-09  Bruno Haible  <bruno@clisp.org>
33524
33525         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
33526         workaround was added on 2009-11-17.
33527
33528 2009-12-09  Jim Meyering  <meyering@redhat.com>
33529             Bruno Haible  <bruno@clisp.org>
33530
33531         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
33532         * modules/link-warning (Makefile.am): Make the comment-removing sed
33533         command more robust in the face of bootstrap-prepended comment lines.
33534
33535 2009-12-09  Bruno Haible  <bruno@clisp.org>
33536
33537         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
33538         most one group.
33539
33540 2009-12-09  Simon Josefsson <simon@josefsson.org>
33541             Bruno Haible  <bruno@clisp.org>
33542
33543         * build-aux/link-warning.h: Add copyright notice.
33544         * modules/link-warning (Makefile.am): Generate link-warning.h from
33545         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
33546         * NEWS: Mention change in link-warning module.
33547         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
33548         * modules/dirent (Makefile.am): Add dependency to dirent.h.
33549         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
33550         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
33551         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
33552         * modules/math (Makefile.am): Add dependency to math.h.
33553         * modules/search (Makefile.am): Add dependency to search.h.
33554         * modules/signal (Makefile.am): Add dependency to signal.h.
33555         * modules/spawn (Makefile.am): Add dependency to spawn.h.
33556         * modules/stdio (Makefile.am): Add dependency to stdio.h.
33557         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
33558         * modules/string (Makefile.am): Add dependency to string.h.
33559         * modules/strings (Makefile.am): Add dependency to strings.h.
33560         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
33561         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
33562         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
33563         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
33564         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
33565         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
33566         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
33567         * modules/unistd (Makefile.am): Add dependency to unistd.h.
33568         * modules/wchar (Makefile.am): Add dependency to wchar.h.
33569
33570 2009-12-09  Bruno Haible  <bruno@clisp.org>
33571
33572         fchdir: Optimize away rpl_fstat when possible.
33573         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
33574         REPLACE_OPEN_DIRECTORY.
33575         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
33576
33577 2009-12-09  Bruno Haible  <bruno@clisp.org>
33578
33579         * lib/fchdir.c: Update comment.
33580
33581 2009-12-09  Bruno Haible  <bruno@clisp.org>
33582
33583         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
33584
33585 2009-12-08  Eric Blake  <ebb9@byu.net>
33586
33587         fchdir: avoid memory leak on re-registration.
33588         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
33589
33590 2009-12-08  Jim Meyering  <meyering@redhat.com>
33591
33592         init.sh: avoid Solaris 10 /bin/sh portability problem
33593         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
33594         sourced script:
33595           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
33596           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
33597           bar
33598         tests/init.sh relied on that, accepting a --set-path=DIR argument,
33599         and two tests used that idiom.
33600         * tests/init.sh: Update suggested usage comments.
33601         (path_prepend_): New function, to be used in place
33602         of the --src-path=DIR option.
33603         (setup_): Move PATH-prepending code into path_prepend_.
33604         * tests/test-pread.sh: Adapt to new usage.
33605         * tests/test-xalloc-die.sh: Likewise.
33606
33607 2009-12-08  Simon Josefsson  <simon@josefsson.org>
33608
33609         * doc/gnulib.texi (Glibc pty.h): Add.
33610         * doc/glibc-functions/forkpty.texi: Add.
33611         * doc/glibc-functions/openpty.texi: Add.
33612         Suggested by Bruno Haible.
33613
33614 2009-12-08  Eric Blake  <ebb9@byu.net>
33615
33616         fchdir: fix logic bugs
33617         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
33618         * tests/test-fchdir.c (main): Enhance test.
33619         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
33620         is in use.
33621
33622         dup2: fix logic bugs
33623         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
33624         REPLACE_DUP2 to decide when rpl_dup2 is needed.
33625         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
33626         exists.
33627         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
33628
33629 2009-12-07  Eric Blake  <ebb9@byu.net>
33630
33631         unlink: fix m4 detection
33632         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
33633
33634         unistd-safer: add unit test
33635         * modules/unistd-safer-tests: New file.
33636         * tests/test-dup-safer.c: Likewise.
33637         * tests/test-cloexec.c (setmode): Avoid compiler warning.
33638         * tests/test-dup2.c (setmode): Likewise.
33639         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
33640
33641         cloexec: preserve text vs. binary across dup_cloexec
33642         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
33643         mode.
33644         * modules/dup2-tests (Depends-on): Add binary-io.
33645         * modules/cloexec-tests (Depends-on): Likewise.
33646         * tests/test-dup2.c (setmode, is_mode): New helpers.
33647         (main): Add tests that translation mode is preserved.
33648         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
33649         Reported by Bruno Haible.
33650
33651         mgetgroups: reduce duplicate listings
33652         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
33653         resulting array.
33654         * tests/test-chown.h (test_chown): Simplify client.
33655         * tests/test-lchown.h (test_lchown): Likewise.
33656
33657 2009-12-06  Bruno Haible  <bruno@clisp.org>
33658
33659         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
33660         value.
33661
33662 2009-12-06  Bruno Haible  <bruno@clisp.org>
33663
33664         * lib/progname.c: Include stdio.h, stdlib.h.
33665         (set_program_name): Reject a NULL argument.
33666
33667 2009-12-05  Eric Blake  <ebb9@byu.net>
33668
33669         pipe2-safer: new module
33670         * modules/pipe2-safer: New file.
33671         * lib/unistd-safer.h (pipe2_safer): New prototype.
33672         * lib/unistd--.h (pipe2): New wrapper.
33673         * lib/pipe-safer.c (pipe2_safer): New function.
33674         * modules/pipe (Depends-on): Add pipe2-safer.
33675         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
33676
33677         stdlib-safer: preserve cloexec flag for mkostemp[s]
33678         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
33679         fd_safer_flag.
33680
33681         unistd-safer: allow preservation of cloexec status via flag
33682         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
33683         prototypes.
33684         * lib/dup-safer.c (dup_safer_flag): New function.
33685         * lib/fd-safer.c (fd_safer_flag): Likewise.
33686         * modules/cloexec (configure.ac): Set witness.
33687
33688         test-dup2: enhance test
33689         * modules/dup2-tests (Depends-on): Add cloexec.
33690         * tests/test-dup2.c (main): Enhance test.
33691
33692         cloexec: add dup_cloexec
33693         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
33694         header and comments.
33695         * lib/cloexec.c (set_cloexec_flag): Add comments.
33696         (dup_cloexec): New function, with mingw implementation borrowed
33697         from...
33698         * lib/w32spawn.h (dup_noinherit): ...here.
33699         * modules/execute (Depends-on): Add cloexec.
33700         * modules/pipe (Depends-on): Likewise.
33701         * modules/cloexec (Depends-on): Add dup2.
33702         * modules/cloexec-tests (Files): New file.
33703         * tests/test-cloexec.c: Likewise.
33704
33705         test-xalloc-die: fix test for mingw
33706         * modules/xalloc-die-tests (Files): Add tests/init.sh.
33707         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
33708         directory and .exe suffix off argv[0] output.
33709
33710         test-fseeko: fix test for mingw
33711         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
33712         than undefining fseek, so test will pass on mingw.
33713
33714 2009-12-05  Bruno Haible  <bruno@clisp.org>
33715
33716         * lib/progname.h (set_program_name): Clarify specification.
33717         * lib/progname.c (set_program_name): Likewise.
33718         Reported by Jim Meyering.
33719
33720 2009-12-05  Jim Meyering  <meyering@redhat.com>
33721
33722         maint.mk: backslash-escape parens in default regexp
33723         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
33724         backslash-escape the literal parentheses.
33725
33726         maint.mk: news-date-check: use grep -E
33727         * top/maint.mk (today): Define a Make variable, not a...
33728         (news-date-check): ...shell variable.
33729         (news-date-regexp): Use the Make variable.
33730         Use grep's -E option.  Change the failing diagnostic to mention
33731         the variable, $(news-date-regexp).
33732
33733 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
33734
33735         maintainer-makefile: allow customization of NEWS entry format
33736         * top/maint.mk (news-date-regexp): New overridable variable.
33737         (news-date-check): Use it.
33738
33739 2009-12-04  Eric Blake  <ebb9@byu.net>
33740
33741         mgetgroups: add xgetgroups, and avoid ENOSYS failures
33742         * lib/mgetgroups.h (xgetgroups): New prototype.
33743         * lib/mgetgroups.c (xgetgroups): New wrapper.
33744         (mgetgroups): Handle ENOSYS.
33745         * modules/mgetgroups (Depends-on): Add realloc.
33746         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
33747
33748         mgetgroups: avoid argument promotion issues with -1
33749         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
33750         for invalid gid_t.
33751         * tests/test-chown.h (getegid, test_chown): Likewise.
33752         * tests/test-lchown.h (getegid, test_lchown): Likewise.
33753
33754 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
33755
33756         exclude: Fix header file problems.
33757         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
33758
33759 2009-12-01  Jim Meyering  <meyering@redhat.com>
33760
33761         fts: fts_open: do not let an empty string cause immediate failure
33762         This is required in support of GNU rm, for which the command
33763         "rm A '' B" must process and remove both A and B, in spite of
33764         the empty string argument.
33765         * lib/fts.c (fts_open): Do not let the presence of an empty string
33766         cause fts_open to fail immediately.  Most fts-using tools must be
33767         able to process all arguments, in order, and can be expected to
33768         diagnose such arguments themselves.
33769
33770 2009-11-30  Eric Blake  <ebb9@byu.net>
33771
33772         utimens: fix compilation error
33773         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
33774         Declare variable at right scope.
33775
33776 2009-11-29  Jim Meyering  <meyering@redhat.com>
33777
33778         bootstrap: handle perl-5.11's changed --version output
33779         * build-aux/bootstrap (get_version): Handle perl separately,
33780         since perl-5.11's --version output is different.
33781
33782 2009-11-28  Jim Meyering  <meyering@redhat.com>
33783
33784         userspec: depend on the inttostr module, too
33785         * modules/userspec (Depends-on): Add inttostr.
33786
33787         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
33788         * lib/userspec.c (parse_with_separator): Do not accept a user ID
33789         number of MAXUID when it evaluates to (uid_t) -1.
33790         Likewise for group ID.  Reported by Matt McCutchen in
33791         <http://savannah.gnu.org/bugs/?28113>
33792
33793         userspec: reformat to use spaces, not TABs
33794         * lib/userspec.c: Expand TABs to spaces.
33795         Add Emacs' "indent-tabs-mode: nil" hint.
33796
33797 2009-11-27  Eric Blake  <ebb9@byu.net>
33798
33799         getopt-gnu: flush out another BSD bug
33800         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
33801         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
33802         flush out BSD bug.
33803         * tests/test-getopt.h (test_getopt): End lists with NULL.
33804         * tests/test-getopt_long.h (test_getopt_long): Likewise.
33805         (test_getopt_long_posix): Enhance test.
33806         * modules/getopt-posix-tests (Depends-on): Add stdbool.
33807         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
33808         getopt-gnu.
33809         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33810         Likewise.
33811
33812 2009-11-27  Simon Josefsson  <simon@josefsson.org>
33813
33814         * modules/idpriv-droptemp-tests (Notice): Fix text.
33815
33816 2009-11-27  Jim Meyering  <meyering@redhat.com>
33817
33818         test-xalloc-die: avoid spurious failure due to libtool argv difference
33819         In a libtool-enabled project, this test would fail due to a difference
33820         in the emitted program name, e.g.,
33821         -test-xalloc-die: memory exhausted
33822         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
33823         Use program to avoid that.
33824         * modules/xalloc-die-tests (Depends-on): Add progname.
33825         * tests/test-xalloc-die.c: Include progname.h".
33826         (program_name): Remove decl.
33827         (main): Call set_program_name.
33828         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
33829
33830 2009-11-26  Richard Jones  <rjones@redhat.com>
33831
33832         w32sock: leave win32 error in place.
33833         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
33834
33835 2009-11-26  Eric Blake  <ebb9@byu.net>
33836
33837         init.sh: suggest to use skip_ and fail_ functions in comments
33838         * tests/init.sh: Add a sentence.
33839
33840 2009-11-25  Bruno Haible  <bruno@clisp.org>
33841
33842         init.sh: add documentation in comments
33843         * tests/init.sh: Add some developer and user documentation.
33844
33845 2009-11-26  Jim Meyering  <meyering@redhat.com>
33846
33847         init.sh: accommodate even those who specify bogus srcdir manually
33848         * tests/init.sh: Normally, srcdir is guaranteed by automake and
33849         configure-time tests to be sanitized, so that there is no need to
33850         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
33851         (with no double quotes) suffices.  However, since tests may be
33852         invoked manually, and since you may explicitly set srcdir to the
33853         name of a directory containing spaces, do quote its uses here.
33854         * tests/test-pread.sh: Likewise.
33855         Suggested by Bruno Haible.
33856
33857         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
33858         * tests/test-pread.sh: Write no data into the pipe, because
33859         test-pread actually reads none.  This avoids a diagnostic,
33860         "bash: echo: write error: Broken pipe", that arises in the unusual
33861         event something is ignoring SIGPIPE, and might be interpreted
33862         as some sort of failure.  Reported by Bruno Haible.
33863
33864 2009-11-25  Jim Meyering  <meyering@redhat.com>
33865
33866         test-pread: cover failure with ESPIPE and EINVAL
33867         * tests/test-pread.c (main): Test for failure, too.
33868         * tests/test-pread.sh: Invoke with stdin on a pipe.
33869         Suggested by Eric Blake.
33870
33871         pread: improvement and fix
33872         * modules/pread (Depends-on): Depend on lseek, for portability to
33873         e.g., mingw.  Suggested by Eric Blake.
33874         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
33875
33876         unistd.in.h: correct declaration of pread
33877         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
33878         Reported by Richard W.M. Jones.
33879
33880         test-pread.sh: distribute the test script
33881         * modules/pread-tests (Files): Include test-pread.sh.
33882
33883         test-pread.sh: clean up
33884         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
33885         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
33886         That is unnecessary, since it's always ".".
33887         Suggestion from Eric Blake.
33888
33889         test-pread.sh: make executable
33890         * tests/test-pread.sh: Set executable bit.
33891         Reported by Eric Blake.
33892
33893         correct typo in test-pread.sh
33894         * tests/test-pread.sh: Add #! line.
33895
33896         test pread
33897         * tests/test-pread.c: New file.
33898         * tests/test-pread.sh: Likewise.
33899         * modules/pread-tests: Likewise.
33900
33901         pread: new module
33902         * modules/pread: New file.
33903         * lib/unistd.in.h (pread): Define/declare.
33904         * lib/pread.c (pread): New file.
33905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
33906         * modules/unistd (Makefile.am): Substitute witnesses.
33907         * doc/posix-functions/pread.texi (pread): Update.
33908         * MODULES.html.sh: Add pread.
33909
33910 2009-11-25  Jim Meyering  <meyering@redhat.com>
33911
33912         tests/init.sh: new file to be used via most *.sh tests
33913         * tests/init.sh: New file.
33914
33915 2009-11-25  Eric Blake  <ebb9@byu.net>
33916
33917         utimens: work around older Linux failure with symlinks
33918         * lib/utimens.c (lutimensat_works_really): New variable.
33919         (fdutimens, lutimens): Use it to manage kernels that support
33920         nanosecond times on files, but not on symlinks.
33921         Reported by OndÅ™ej Vašík.
33922
33923         utimes: fix configure grammar
33924         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
33925
33926 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
33927
33928         regex: Fix fastmap for multibyte character ranges.
33929         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
33930         characters when a multibyte character range is included.
33931
33932 2009-11-22  Andy Wingo  <wingo@pobox.com>
33933
33934         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
33935         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
33936
33937 2009-11-24  Bruno Haible  <bruno@clisp.org>
33938
33939         doc: Most *_l functions exist in MacOS X 10.5.
33940         * doc/posix-functions/duplocale.texi: Update platforms list.
33941         * doc/posix-functions/freelocale.texi: Likewise.
33942         * doc/posix-functions/newlocale.texi: Likewise.
33943         * doc/posix-functions/uselocale.texi: Likewise.
33944         * doc/posix-functions/isalnum_l.texi: Likewise.
33945         * doc/posix-functions/isalpha_l.texi: Likewise.
33946         * doc/posix-functions/isblank_l.texi: Likewise.
33947         * doc/posix-functions/iscntrl_l.texi: Likewise.
33948         * doc/posix-functions/isdigit_l.texi: Likewise.
33949         * doc/posix-functions/isgraph_l.texi: Likewise.
33950         * doc/posix-functions/islower_l.texi: Likewise.
33951         * doc/posix-functions/isprint_l.texi: Likewise.
33952         * doc/posix-functions/ispunct_l.texi: Likewise.
33953         * doc/posix-functions/isspace_l.texi: Likewise.
33954         * doc/posix-functions/isupper_l.texi: Likewise.
33955         * doc/posix-functions/iswalnum_l.texi: Likewise.
33956         * doc/posix-functions/iswalpha_l.texi: Likewise.
33957         * doc/posix-functions/iswblank_l.texi: Likewise.
33958         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33959         * doc/posix-functions/iswctype_l.texi: Likewise.
33960         * doc/posix-functions/iswdigit_l.texi: Likewise.
33961         * doc/posix-functions/iswgraph_l.texi: Likewise.
33962         * doc/posix-functions/iswlower_l.texi: Likewise.
33963         * doc/posix-functions/iswprint_l.texi: Likewise.
33964         * doc/posix-functions/iswpunct_l.texi: Likewise.
33965         * doc/posix-functions/iswspace_l.texi: Likewise.
33966         * doc/posix-functions/iswupper_l.texi: Likewise.
33967         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33968         * doc/posix-functions/isxdigit_l.texi: Likewise.
33969         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
33970         * doc/posix-functions/strcasecmp_l.texi: Likewise.
33971         * doc/posix-functions/strcoll_l.texi: Likewise.
33972         * doc/posix-functions/strfmon_l.texi: Likewise.
33973         * doc/posix-functions/strftime_l.texi: Likewise.
33974         * doc/posix-functions/strncasecmp_l.texi: Likewise.
33975         * doc/posix-functions/strxfrm_l.texi: Likewise.
33976         * doc/posix-functions/tolower_l.texi: Likewise.
33977         * doc/posix-functions/toupper_l.texi: Likewise.
33978         * doc/posix-functions/towctrans_l.texi: Likewise.
33979         * doc/posix-functions/towlower_l.texi: Likewise.
33980         * doc/posix-functions/towupper_l.texi: Likewise.
33981         * doc/posix-functions/wcscoll_l.texi: Likewise.
33982         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33983         * doc/posix-functions/wctrans_l.texi: Likewise.
33984         * doc/posix-functions/wctype_l.texi: Likewise.
33985         * doc/glibc-functions/strptime_l.texi: Likewise.
33986         * doc/glibc-functions/strtod_l.texi: Likewise.
33987         * doc/glibc-functions/strtof_l.texi: Likewise.
33988         * doc/glibc-functions/strtol_l.texi: Likewise.
33989         * doc/glibc-functions/strtold_l.texi: Likewise.
33990         * doc/glibc-functions/strtoll_l.texi: Likewise.
33991         * doc/glibc-functions/strtoul_l.texi: Likewise.
33992         * doc/glibc-functions/strtoull_l.texi: Likewise.
33993         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33994         * doc/glibc-functions/wcstod_l.texi: Likewise.
33995         * doc/glibc-functions/wcstof_l.texi: Likewise.
33996         * doc/glibc-functions/wcstol_l.texi: Likewise.
33997         * doc/glibc-functions/wcstold_l.texi: Likewise.
33998         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33999         * doc/glibc-functions/wcstoul_l.texi: Likewise.
34000         * doc/glibc-functions/wcstoull_l.texi: Likewise.
34001
34002 2009-11-24  Bruno Haible  <bruno@clisp.org>
34003
34004         duplocale: Fix logic bug.
34005         * lib/duplocale.c: Don't include <langinfo.h>.
34006         (_NL_LOCALE_NAME): Remove macro.
34007         (rpl_duplocale): Use setlocale instead of nl_langinfo.
34008         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
34009
34010 2009-11-23  Jim Meyering  <meyering@redhat.com>
34011
34012         test-update-copyright: don't hard-code /usr/bin/perl
34013         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
34014         perl to print the current year.  Gilles Espinasse reported that
34015         the replaced use of perl was hard-coded as /usr/bin/perl.
34016
34017 2009-11-23  Bruno Haible  <bruno@clisp.org>
34018
34019         duplocale: Add support for glibc 2.3.x.
34020         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
34021
34022 2009-11-22  Bruno Haible  <bruno@clisp.org>
34023
34024         vasnprintf: Tiny optimization.
34025         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
34026         MacOS X.
34027
34028 2009-11-22  Bruno Haible  <bruno@clisp.org>
34029
34030         Tests for module 'duplocale'.
34031         * modules/duplocale-tests: New file.
34032         * tests/test-duplocale.c: New file.
34033
34034         New module 'duplocale'.
34035         * m4/duplocale.m4: New file.
34036         * lib/locale.in.h (duplocale): New declaration.
34037         * lib/duplocale.c: New file.
34038         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
34039         gl_LOCALE_H_DEFAULTS): New macros.
34040         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
34041         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
34042         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
34043         REPLACE_DUPLOCALE.
34044         * modules/duplocale: New file.
34045         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
34046
34047 2009-11-22  Bruno Haible  <bruno@clisp.org>
34048
34049         * modules/locale-tests (configure.ac): Test for newlocale function.
34050         * tests/test-locale.c: When the system has extended locale functions,
34051         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
34052
34053         locale: Make locale_t available when possible.
34054         * lib/locale.in.h: Include <xlocale.h> when it exists.
34055         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
34056         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
34057         * modules/locale (Depends-on): Add extensions.
34058         (Makefile.am): Also substitute HAVE_XLOCALE_H.
34059         * doc/posix-headers/locale.texi: Document the problem with locale_t.
34060
34061 2009-11-22  Bruno Haible  <bruno@clisp.org>
34062
34063         Add comments.
34064         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
34065         invocation.
34066         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
34067         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34068         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34069
34070 2009-11-22  Bruno Haible  <bruno@clisp.org>
34071
34072         error: account for the possibility of freopen (stdout).
34073         * lib/error.c: Include <unistd.h>.
34074         (flush_stdout): New function, extracted from error and error_at_line.
34075         Determine stdout's fd dynamically.
34076         (error, error_at_line): Invoke flush_stdout.
34077         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
34078         * modules/error (Depends-on): Add unistd.
34079
34080 2009-11-22  Bruno Haible  <bruno@clisp.org>
34081
34082         diffseq: Add comment.
34083         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
34084
34085 2009-11-22  Jim Meyering  <meyering@redhat.com>
34086
34087         c-stack: avoid defining an unused static function
34088         * lib/c-stack.c (find_stack_direction): Do not define this function
34089         when it will not be used.
34090
34091         diffseq: avoid spurious gcc warnings
34092         * lib/diffseq.h (IF_LINT2): Define.
34093         (compareseq): Use it to initialize two members of "part".
34094         This avoids two used-uninitialized warnings.
34095
34096 2009-11-21  Jim Meyering  <meyering@redhat.com>
34097
34098         c-stack: avoid "ignoring return value of `write'" warning
34099         * lib/c-stack.c: Include "ignore-value.h".
34100         (die): Explicitly ignore each write return value.
34101         * modules/c-stack (Depends-on): Add ignore-value.
34102
34103 2009-11-21  Bruno Haible  <bruno@clisp.org>
34104
34105         diffseq: reduce scope of variable 'best'.
34106         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
34107         variable, earlier used for two different purposes.
34108
34109 2009-11-21  Jim Meyering  <meyering@redhat.com>
34110
34111         diffseq: remove useless assignment to "best"
34112         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
34113         assignment.  At that point "best" is already guaranteed to be zero.
34114
34115 2009-11-20  Eric Blake  <ebb9@byu.net>
34116
34117         build: mention ftp redirector in release announcements
34118         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
34119         values that used to come from cfg.mk; mention FTP redirect URL.
34120         * build-aux/announce-gen: Mention the mirror list.
34121         Suggested by Karl Berry.
34122
34123         nanosleep: improve port to mingw
34124         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
34125         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
34126         LIB_NANOSLEEP, but only when needed.
34127         * modules/select (Link): Document LIBSOCKET.
34128         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
34129         enough.
34130
34131         nanosleep: work around cygwin bug
34132         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
34133         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
34134         bug.
34135         (getnow): Delete, not needed.
34136         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
34137         LIB_CLOCK_GETTIME.
34138         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
34139         clock-time, gettime.
34140         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
34141         bug.
34142         * modules/nanosleep-tests: New test.
34143         * tests/test-nanosleep.c: New file.
34144
34145         sleep: work around cygwin bug
34146         * lib/sleep.c (rpl_sleep): Work around the bug.
34147         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
34148         (gl_PREREQ_SLEEP): Delete unused macro.
34149         * modules/sleep (Depends-on): Add verify.
34150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34151         * modules/unistd (Makefile.am): Substitute witness.
34152         * lib/unistd.in.h (sleep): Update prototype.
34153         * doc/posix-functions/sleep.texi (sleep): Document the bug.
34154         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
34155         * modules/sleep-tests (Depends-on): Check for alarm.
34156
34157 2009-11-20  Jim Meyering  <meyering@redhat.com>
34158
34159         maint.mk: improve sc_prohibit_magic_number_exit
34160         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
34161         so it does not match uses like System.exit(1).
34162         Add comments showing how to correct all offenders.
34163
34164 2009-11-19  Eric Blake  <ebb9@byu.net>
34165
34166         xalloc-die-tests: add missing library
34167         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
34168
34169         test-xvasprintf: silence compiler warnings
34170         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
34171         empty string from gcc.
34172
34173 2009-11-19  Jim Meyering  <meyering@redhat.com>
34174
34175         xfreopen: new module, from coreutils
34176         * modules/xfreopen: New module.
34177         * lib/xfreopen.c: New file.
34178         * lib/xfreopen.h: New file.
34179         * MODULES.html.sh (File stream based Input/Output"): Add it.
34180
34181 2009-11-19  Eric Blake  <ebb9@byu.net>
34182
34183         manywarnings: depend on warnings
34184         * modules/manywarnings (Depends-on): Add warnings.
34185
34186         build: avoid compiler warnings
34187         * lib/select.c (rpl_select): Delete unused variable.
34188         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
34189
34190 2009-11-18  Eric Blake  <ebb9@byu.net>
34191
34192         tests: avoid false negative with --with-packager
34193         * tests/test-version-etc.sh: Discard packager information.
34194         * tests/test-argp-version-etc-1.sh: Likewise.
34195         Reported by Mike Frysinger.
34196
34197         utimens: fix regression on Solaris
34198         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
34199         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
34200         can only change fd timestamps via futimesat.  Instead, use an
34201         additional witness macro to avoid BSD bug.
34202         Reported by Jim Meyering.
34203
34204 2009-11-17  Eric Blake  <ebb9@byu.net>
34205
34206         usleep: use it to simplify tests
34207         * modules/stat-time-tests (Depends-on): Add usleep.
34208         (configure.ac): Drop usleep check.
34209         * modules/chown-tests (Depends-on, configure.ac): Likewise.
34210         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
34211         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
34212         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
34213         * modules/openat-tests (Depends-on, configure.ac): Likewise.
34214         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
34215         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
34216         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
34217         Likewise.
34218         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
34219         * tests/test-lchown.h (nap): Likewise.
34220         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
34221         * tests/test-stat-time.c (nap): Likewise.
34222         * tests/test-utimens-common.h (nap): Update comments.
34223
34224         usleep: new module
34225         * modules/usleep: New file.
34226         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
34227         * lib/usleep.c (usleep): Likewise.
34228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34229         * modules/unistd (Makefile.am): Substitute witnesses.
34230         * lib/unistd.in.h (usleep): Add declaration.
34231         * doc/pastposix-functions/usleep.texi (usleep): Document this.
34232         * MODULES.html.sh (Date and time): Likewise.
34233         * modules/usleep-tests (Depends-on): New test.
34234         * tests/test-usleep.c: New file.
34235
34236         chown: work around OpenBSD bug
34237         * lib/chown.c (rpl_chown): Work around the bug.
34238         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
34239         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
34240         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
34241         * modules/chown (Depends-on): Add stdbool.
34242         * modules/lchown (Depends-on): Likewise.
34243         * doc/posix-functions/chown.texi (chown): Document the bug.
34244         * doc/posix-functions/lchown.texi (lchown): Likewise.
34245         * tests/test-lchown.h (test_chown): Relax test.
34246
34247         mkstemp: avoid conflict with C++ keyword template
34248         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
34249         * lib/mkostemp.c (mkostemp): Likewise.
34250         * lib/mkostemps.c (mkostemps): Likewise.
34251         * lib/mkstemp.c (mkstemp): Likewise.
34252         * lib/mkstemps.c (mkstemps): Likewise.
34253
34254         xalloc-die-tests: optimize
34255         * tests/test-xalloc-die.sh: Reduce number of processes.
34256
34257 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34258
34259         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
34260         patch from ludo@gnu.org (Ludovic Courtès).
34261
34262 2009-11-17  Jim Meyering  <meyering@redhat.com>
34263
34264         version-etc: use proper license string
34265         * modules/version-etc (License): Use LGPL, not LGPLv3+.
34266         * modules/version-etc-fsf: Likewise.
34267
34268 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34269
34270         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
34271         printed to stdout.  Deal with EOL differences.
34272
34273 2009-11-17  Eric Blake  <ebb9@byu.net>
34274
34275         unsetenv: work around Solaris bug
34276         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
34277         * lib/unsetenv.c (rpl_unsetenv): Work around it.
34278         Reported by Jim Meyering.
34279
34280         vasnprintf: avoid compiler warnings
34281         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
34282         variables.
34283         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
34284
34285 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34286
34287         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
34288         settings since xalloc-die is no longer the self test,
34289         xalloc-die.sh is.
34290
34291 2009-11-17  Jim Meyering  <meyering@redhat.com>
34292
34293         test-xalloc-die.sh: make the code agree with the commit log
34294         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
34295         at the end, just in case you happen to have a test-xalloc-die
34296         program in some other PATH directory.
34297
34298         test-xalloc-die.sh: fix a portability bug
34299         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
34300         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
34301         Otherwise, argv[0] (as often seen in diagnostics) would be too
34302         system-dependent, sometimes with, and sometimes without the leading "./".
34303
34304         version-etc-fsf: relax license to LGPLv3+
34305         * modules/version-etc-fsf (License): Relax license.
34306
34307 2009-11-16  Eric Blake  <ebb9@byu.net>
34308
34309         xalloc-die-tests: avoid printing null pointer
34310         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
34311         shell script.
34312         * tests/test-xalloc-die.c (program_name): Declare.
34313         * tests/test-xalloc-die.sh (tmpfiles): New file.
34314
34315         setenv, unsetenv: work around various bugs
34316         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
34317         (setenv) [HAVE_SETENV]: Work around bugs.
34318         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
34319         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
34320         for bugs.
34321         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
34322         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
34323         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
34324         * modules/stdlib (Makefile.am): Update substitutions.
34325         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
34326         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
34327         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34328         * modules/setenv-tests: New test.
34329         * modules/unsetenv-tests: Likewise.
34330         * tests/test-setenv.c: New file.
34331         * tests/test-unsetenv.c: Likewise.
34332
34333 2009-11-16  Jim Meyering  <meyering@redhat.com>
34334
34335         version-etc: relax license to LGPLv3+
34336         * modules/version-etc (License): Relax license.
34337
34338         better AC_REQUIRE expanded-before-required-warning avoidance
34339         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
34340         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
34341         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
34342         which is no longer needed.
34343
34344 2009-11-16  Eric Blake  <ebb9@byu.net>
34345
34346         test-freading: clean up temporary file
34347         * tests/test-freading.c (main): Remove file on success, and use
34348         ASSERT more liberally.
34349         Reported by Jim Meyering.
34350
34351 2009-11-16  Jim Meyering  <meyering@redhat.com>
34352
34353         avoid new AC_REQUIRE expanded-before-required warnings
34354         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
34355         merely using it.
34356         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
34357         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
34358
34359 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34360
34361         * tests/test-xalloc-die.c: New file.
34362         * modules/xalloc-die-tests: New file.
34363         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
34364         XFAIL_TESTS so it can be appended by modules.
34365
34366 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34367
34368         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
34369         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
34370
34371 2009-11-14  Eric Blake  <ebb9@byu.net>
34372
34373         fnmatch: avoid compiler warning
34374         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
34375         to silence compiler warning about mismatch signedness in ?:.
34376         Reported by Robert Millan.
34377
34378         intprops: add double-inclusion guard
34379         * lib/intprops.h: Allow idempotent includes.
34380         Suggested by Bruce Korb.
34381
34382         openat: detect Solaris fchownat bug
34383         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
34384         penalizing glibc chownat when only lchownat is broken.
34385         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
34386         trailing slash bugs.
34387         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
34388         * modules/openat-tests (Files): Include more files.
34389         (Depends-on): Add mgetgroups, sleep, stat-time.
34390         (configure.ac): Add additional checks.
34391         (Makefile.am): Build new test.
34392         * tests/test-fchownat.c: New file.
34393
34394         lchown: detect Solaris and FreeBSD bug
34395         * lib/lchown.c (rpl_lchown): Work around bug.
34396         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
34397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34398         * modules/unistd (Makefile.am): Populate it.
34399         * lib/unistd.in.h (lchown): Update declaration.
34400         * doc/posix-functions/lchown.texi (lchown): Document the bug.
34401         * modules/lchown-tests: New file.
34402         * tests/test-lchown.h (test_lchown): Likewise.
34403         * tests/test-lchown.c (main): Likewise.
34404
34405         chown: detect Solaris and FreeBSD bug
34406         * lib/chown.c (rpl_chown): Work around bug.
34407         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
34408         (gl_PREREQ_CHOWN): Delete.
34409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34410         * modules/unistd (Makefile.am): Populate it.
34411         * lib/unistd.in.h (chown): Update declaration.
34412         * lib/lchown.c (chown): Update client.
34413         * modules/lchown (Depends-on): Add lstat.
34414         * doc/posix-functions/chown.texi (chown): Document the bug.
34415         * doc/posix-functions/getgroups.texi (getgroups): Document
34416         getgroups pitfall.
34417         * modules/chown-tests: New file.
34418         * tests/test-chown.h (test_chown): Likewise.
34419         * tests/test-chown.c (main): Likewise.
34420
34421 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
34422
34423         gnulib-tool: correctly detect absence of m4 directories
34424         * gnulib-tool: Avoid extra newline on data passed to wc -l.
34425
34426 2009-11-14  Jim Meyering  <meyering@redhat.com>
34427
34428         maint.mk: Prohibit inclusion of "xalloc.h" without use.
34429         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34430
34431 2009-11-14  John W. Eaton  <jwe@gnu.org>
34432
34433         strftime.h: wrap funtion declaration in extern "C" block
34434         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
34435
34436 2009-11-13  Eric Blake  <ebb9@byu.net>
34437
34438         getgroups: avoid compiler warning
34439         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
34440
34441         getgroups: work around FreeBSD bug
34442         * lib/getgroups.c (rpl_getgroups): Work around the bug.
34443         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
34444         * doc/posix-functions/getgroups.texi (getgroups): Document it.
34445         * tests/test-getgroups.c (main): Fix buffer overrun.
34446
34447         getgroups: avoid compilation failure
34448         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
34449         * modules/getgroups (Depends-on): Add stdint.
34450
34451 2009-11-13  Jim Meyering  <meyering@redhat.com>
34452
34453         test-getgroups: avoid compilation failure
34454         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
34455
34456 2009-11-13  Eric Blake  <ebb9@byu.net>
34457
34458         mgetgroups: new module, taken from coreutils
34459         * modules/mgetgroups: New file.
34460         * lib/mgetgroups.h: Likewise.
34461         * lib/mgetgroups.c (mgetgroups): Likewise.
34462         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
34463         * MODULES.html.sh (Users and groups): Mention it.
34464
34465         getgroups: don't expose GETGROUPS_T to user
34466         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
34467         an element at a time if GETGROUPS_T is wrong size.
34468         * lib/getugroups.h (getugroups): Change signature.
34469         * lib/unistd.in.h (getgroups): Likewise.
34470         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
34471         signature needs fixing.
34472         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
34473         AC_TYPE_GETGROUPS.
34474         * modules/group-member (Depends-on): Add getgroups.
34475         * lib/group-member.c (group_info, get_group_info): Use gid_t.
34476         (group_member): Rely on getgroups replacement.
34477         * lib/getugroups.c (getugroups): Use gid_t.
34478         * tests/test-getgroups.c (main): Likewise.
34479         * NEWS: Mention the signature change.
34480         * doc/posix-functions/getgroups.texi (getgroups): Mention the
34481         problem with signature.
34482         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
34483         GETGROUPS_T is still useful for setgroups.
34484
34485         getgroups, getugroups: provide stubs for mingw
34486         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
34487         * lib/getugroups.c (getugroups): Likewise.
34488         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
34489         function.  Modernize replacement scheme.
34490         (gl_PREREQ_GETGROUPS): Delete.
34491         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
34492         * modules/getgroups (configure.ac): Declare witness.
34493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34494         * modules/unistd (Depends-on): Substitute witness.
34495         * lib/unistd.in.h (getgroups): Declare replacement.
34496
34497         getgroups: avoid calling exit
34498         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
34499         drop xalloc.
34500         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
34501         dependencies.
34502         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
34503         exiting, in the rare case of malloc failure.
34504
34505         getgroups: fix logic error
34506         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
34507         has more than 20 groups.
34508         * modules/getgroups-tests: New test.
34509         * tests/test-getgroups.c: New file.
34510
34511 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34512
34513         * tests/test-base64.c: Improve.
34514
34515 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34516
34517         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
34518         Blake <ebb9@byu.net>.
34519
34520 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34521
34522         * tests/test-xvasprintf.c: Add %s%s related checks.
34523
34524 2009-11-12  Eric Blake  <ebb9@byu.net>
34525
34526         version-etc: match standards.texi style
34527         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
34528         and use <> only for URLs.
34529
34530 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
34531
34532         fts: do not fail on a submount during traversal
34533         * lib/fts.c (fts_build): Read the stat info again after opening
34534         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
34535         Original report at http://bugzilla.redhat.com/501848.
34536
34537 2009-11-12  Jim Meyering  <meyering@redhat.com>
34538
34539         bootstrap: sync from coreutils
34540         * build-aux/bootstrap (bootstrap_epilogue): New function.
34541         Use git_modules_config in one more place.  This make bootstrap's
34542         --gnulib-srcdir option more useful for testing.
34543
34544         bootstrap: generalize autoheader check
34545         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
34546         AC_CONFIG_HEADERS.
34547
34548 2009-11-11  Eric Blake  <ebb9@byu.net>
34549
34550         mkfifoat: use new modules for Solaris and BSD bugs
34551         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
34552         * lib/mkfifoat.c (mknodat): Split...
34553         * lib/mknodat.c (mknodat): ...into new file.
34554         * modules/mkfifoat (Files): Ship new file.
34555         (Depends-on): Add mkfifo, mknod.
34556         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
34557         (Depends-on): Add symlink.
34558         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
34559         redundant with test_mkfifo.h.
34560         (do_mkfifoat, do_mknodat): New helpers.
34561
34562         mknod: new module
34563         * modules/mknod: New file.
34564         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
34565         * lib/mknod.c (mknod): Likewise.
34566         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34567         defaults.
34568         * modules/sys_stat (Makefile.am): Substitute them.
34569         * lib/sys_stat.in.h (mknod): Declare replacement.
34570         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34571         Document it.
34572         * doc/posix-functions/mknod.texi (mknod): Likewise.
34573         * modules/mknod-tests: New test.
34574         * tests/test-mknod.c: Likewise.
34575
34576         mkfifo: new module
34577         * modules/mkfifo: New file.
34578         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
34579         * lib/mkfifo.c (mkfifo): Likewise.
34580         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34581         defaults.
34582         * modules/sys_stat (Makefile.am): Substitute them.
34583         * lib/sys_stat.in.h (mkfifo): Declare replacement.
34584         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34585         Document it.
34586         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
34587         * modules/mkfifo-tests: New test.
34588         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
34589         from test-mkfifoat.c.
34590         * tests/test-mkfifo.c: New file.
34591
34592         readlink: detect FreeBSD bug
34593         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
34594         slash on symlink.
34595         * doc/posix-functions/readlink.texi (readlink): Document the bug.
34596         * tests/test-readlink.h (test_readlink): Enhance test.
34597
34598         symlink: detect FreeBSD bug
34599         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
34600         slash on symlink.
34601         * doc/posix-functions/symlink.texi (symlink): Document the bug.
34602         * tests/test-symlink.h (test_symlink): Enhance test.
34603
34604 2009-11-10  Eric Blake  <ebb9@byu.net>
34605
34606         link: detect FreeBSD bug
34607         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
34608         symlink.
34609         * doc/posix-functions/link.texi (link): Document the bug.
34610         * tests/test-link.h (test_link): Enhance test.
34611         * tests/test-linkat.c (main): Update caller.
34612
34613         unlink, remove: detect FreeBSD bug
34614         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
34615         slash on symlink.
34616         * doc/posix-functions/unlink.texi (unlink): Document the bug.
34617         * doc/posix-functions/remove.texi (remove): Likewise.
34618         * tests/test-unlink.h (test_unlink): Enhance test.
34619         * tests/test-remove.c (main): Likewise.
34620
34621 2009-11-09  Eric Blake  <ebb9@byu.net>
34622
34623         rename: detect FreeBSD bug
34624         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
34625         slash on symlink.
34626         * modules/renameat-tests (Depends-on): Add filenamecat.
34627         * tests/test-rename.h (test_rename): Allow one more errno.
34628         * tests/test-renameat.c (main): Likewise.
34629         * doc/posix-functions/rename.texi (rename): Document the bug.
34630
34631         open: detect FreeBSD bug
34632         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
34633         symlink.
34634         * doc/posix-functions/open.texi (open): Document the bug.
34635         * doc/posix-functions/utimes.texi (utimes): Likewise.
34636         * tests/test-open.h (test_open): Add parameters, and test symlink
34637         handling.
34638         * tests/test-open.c (main): Adjust caller.
34639         * tests/test-fcntl-safer.c (main): Likewise.
34640         * modules/open-tests (Depends-on): Add stdbool, symlink.
34641         * modules/fcntl-safer-tests (Depends-on): Likewise.
34642         * tests/test-openat.c (main): Add test-open tests.
34643
34644         stat: detect FreeBSD bug
34645         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
34646         symlink.
34647         * doc/posix-functions/stat.texi (stat): Document the bug.
34648         * tests/test-stat.h (test_stat_func): Add argument.
34649         * tests/test-stat.c (main): Adjust caller.
34650         * tests/test-fstatat.c (main): Likewise.
34651         * modules/stat-tests (Depends-on): Add stdbool, symlink.
34652         Reported by Jim Meyering.
34653
34654 2009-11-09  James Youngman  <jay@gnu.org>
34655
34656         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
34657         * lib/strftime.c: Correct placement of #include "ignore-value.h".
34658
34659 2009-11-08  Jim Meyering  <meyering@redhat.com>
34660
34661         utimens: remove invalid futimesat call
34662         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
34663         It used the file descriptor of the target file as the DIR_FD
34664         parameter and NULL as the file name.  That caused failure with
34665         errno == EFAULT on FreeBSD-8.0-rc2
34666
34667 2009-11-07  Eric Blake  <ebb9@byu.net>
34668
34669         fflush, freadseek: use fseeko, not fseek
34670         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
34671         (clear_ungetc_buffer): Avoid potential problems on large files.
34672         * lib/freadseek.c (freadseek): Likewise.
34673         * modules/freadseek (Depends-on): Add fseeko.
34674         * modules/fseek (configure.ac): Set a witness.
34675         * tests/test-fflush.c (main): Use fseeko.
34676         * tests/test-fpurge.c (fseek): Disable link warning.
34677         * tests/test-freadable.c (fseek): Likewise.
34678         * tests/test-freading.c (fseek): Likewise.
34679         * tests/test-fseeko.c (fseek): Likewise.
34680         * tests/test-ftell.c (fseek): Likewise.
34681         * tests/test-ftello.c (fseek): Likewise.
34682         * tests/test-fwritable.c (fseek): Likewise.
34683         * tests/test-fwriting.c (fseek): Likewise.
34684
34685 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34686
34687         * modules/memchr (Depends-on): Drop getpagesize dependency.
34688
34689 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34690
34691         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
34692         Reported by Ludovic Courtès.
34693         * build-aux/pmccabe2html: Improve example usage.
34694         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
34695
34696 2009-11-06  Jim Meyering  <meyering@redhat.com>
34697
34698         do-release-commit-and-tag: New module.
34699         Automate the release-commit and tag process.
34700         * build-aux/do-release-commit-and-tag: New script, from coreutils.
34701         * modules/do-release-commit-and-tag: New file.
34702         * MODULES.html.sh (Support for maintaining and releasing): Add it.
34703
34704 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34705
34706         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
34707         because test-select.c uses inet_pton.
34708
34709 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34710
34711         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
34712         GETADDRINFO_LIB.  Bump serial number.
34713         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
34714         Suggested by Eric Blake <ebb9@byu.net>.
34715
34716 2009-11-05  Eric Blake  <ebb9@byu.net>
34717
34718         strtod: detect darwin bug
34719         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
34720         Reported by Leo Davis.
34721
34722         freopen-safer: new module
34723         * modules/freopen-safer: New module.
34724         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
34725         * lib/freopen-safer.c (freopen_safer): New file.
34726         * lib/stdio-safer.h (freopen_safer): New declaration.
34727         * lib/stdio--.h (freopen): New override.
34728         * MODULES.html.sh (File stream based Input/Output): Mention it.
34729         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
34730         freopen-safer module.
34731         * doc/posix-functions/stderr.texi (stderr): Likewise.
34732         * doc/posix-functions/stdin.texi (stdin): Likewise.
34733         * doc/posix-functions/stdout.texi (stdout): Likewise.
34734         * modules/freopen-safer-tests: New test.
34735         * tests/test-reopen-safer.c: New file.
34736
34737 2009-11-05  Jim Meyering  <meyering@redhat.com>
34738
34739         maint.mk: Prohibit inclusion of "close-stream.h" without use.
34740         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34741
34742 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34743
34744         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
34745
34746 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34747
34748         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
34749
34750 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34751
34752         Fix link error.
34753         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34754         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34755
34756 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34757
34758         * tests/test-func.c: Also test value of __func__.
34759
34760 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34761
34762         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
34763         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
34764
34765 2009-11-05  Bruno Haible  <bruno@clisp.org>
34766
34767         Fix link error.
34768         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34769         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34770         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
34771
34772 2009-11-05  Bruno Haible  <bruno@clisp.org>
34773
34774         Tests for module 'inet_pton'.
34775         * modules/inet_pton-tests: New file.
34776         * tests/test-inet_pton.c: New file.
34777
34778 2009-11-05  Bruno Haible  <bruno@clisp.org>
34779
34780         Tests for module 'inet_ntop'.
34781         * modules/inet_ntop-tests: New file.
34782         * tests/test-inet_ntop.c: New file.
34783
34784 2009-11-04  Eric Blake  <ebb9@byu.net>
34785
34786         stdlib-safer: wrap all mkstemp variants
34787         * modules/mkostemp (configure.ac): Set witness.
34788         * modules/mkostemps (configure.ac): Likewise.
34789         * modules/mkstemps (configure.ac): Likewise.
34790         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
34791         (mkstemps_safer): Wrap more functions.
34792         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
34793         wrapping.
34794         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
34795         (mkstemps_safer): Implement the wrappers.
34796
34797         mkstemps, mkostemps: new modules
34798         * modules/mkostemps: New module.
34799         * modules/mkstemps: Likewise.
34800         * lib/mkostemps.c (mkostemps): New file.
34801         * lib/mkstemps.c (mkstemps): Likewise.
34802         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
34803         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
34804         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
34805         * modules/stdlib (Makefile.am): Substitute them.
34806         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
34807         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
34808         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
34809         * doc/gnulib.texi (Glibc stdlib.h): Include them.
34810         * MODULES.html.sh (File system functions): Mention them.
34811
34812         tempname: resync from glibc
34813         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
34814         same values for __GT_FILE as glibc.  Abort even when assertions
34815         are disabled.
34816         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
34817         match its value otherwise.  Allow idempotent inclusion.
34818         * lib/mkdtemp.c (mkdtemp): Adjust caller.
34819         * lib/mkostemp.c (mkostemp): Likewise.
34820         * lib/mkstemp.c (mkstemp): Likewise.
34821         * lib/tmpfile.c (tmpfile): Likewise.
34822         * NEWS: Document this.
34823
34824         utimens: fix use of futimens on older Linux
34825         * lib/utimens.c (fdutimens): Use updated, rather than original,
34826         timespec to avoid bug in older Linux kernel.
34827         Reported by Simon Josefsson.
34828
34829 2009-11-04  Bruno Haible  <bruno@clisp.org>
34830
34831         Make num_processors more flexible and consistent.
34832         * lib/nproc.h (enum nproc_query): New type.
34833         (num_processors): Add a 'query' argument.
34834         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
34835         (num_processors): Add a 'query' argument. Test the value of the
34836         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
34837         mingw, count the number of CPUs available for the current process.
34838         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
34839         Check for sched_getaffinity and sched_getaffinity_np.
34840         * modules/nproc (Depends-on): Add c-ctype, extensions.
34841         * NEWS: Mention the change.
34842
34843 2009-11-03  Bruno Haible  <bruno@clisp.org>
34844
34845         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
34846
34847 2009-11-03  Jim Meyering  <meyering@redhat.com>
34848
34849         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
34850         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
34851         if it is defined.
34852
34853 2009-11-02  Eric Blake  <ebb9@byu.net>
34854
34855         mktime, timegm: share common declaration
34856         * lib/mktime-internal.h: New file.
34857         * lib/mktime.c: Use it rather than open-coding a declaration.
34858         * lib/timegm.c: Likewise.
34859         * modules/mktime (Files): Ship it.
34860         * modules/timegm (Files): Likewise.
34861         Suggested by Bruno Haible.
34862
34863         test-update-copyright: update test to match script changes
34864         * tests/test-update-copyright.sh: Avoid hard-coding perl
34865         location.  Don't update *.bak created by earlier runs.
34866
34867 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34868             Simon Josefsson  <simon@josefsson.org>
34869             Bruno Haible  <bruno@clisp.org>
34870
34871         Fix link error on Solaris 8.
34872         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
34873         also in libnsl. Define also INET_PTON_LIB.
34874         * modules/inet_pton (Link): New section.
34875
34876 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34877             Bruno Haible  <bruno@clisp.org>
34878
34879         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
34880         * modules/inet_ntop (Link): New section.
34881         Reported by Boyan Kasarov <bkasarov@gmail.com>.
34882
34883 2009-11-02  Eric Blake  <ebb9@byu.net>
34884
34885         maint: avoid compiler warnings in m4 macros
34886         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
34887         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
34888
34889 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34890
34891         * m4/pmccabe2html.m4: Remove file.
34892         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
34893         function.  Change maintainer.
34894         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
34895         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
34896         Courtès).
34897
34898 2009-10-31  Eric Blake  <ebb9@byu.net>
34899
34900         fseeko: fix m4 regression
34901         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
34902         regression from 2009-10-27.
34903         Reported by Ralf Wildenhues.
34904
34905 2009-10-31  Jim Meyering  <meyering@redhat.com>
34906
34907         inttostr: aesthetics and improved (compile-time) safety
34908         Define inttype_is_signed rather than inttype_is_unsigned,
34909         since the sole use is via "#if inttype_is_signed".
34910         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
34911         inttype_is_unsigned.
34912         * lib/offtostr.c (inttype_is_signed): Likewise.
34913         * lib/uinttostr.c (inttype_is_signed): Likewise.
34914         * lib/umaxtostr.c (inttype_is_signed): Likewise.
34915         * lib/inttostr.c (inttostr): Use verify to cross-check the
34916         inttype_is_signed value and the signedness of the actual type.
34917         * modules/inttostr (Depends-on): Add verify.
34918
34919 2009-10-30  Eric Blake  <ebb9@byu.net>
34920
34921         build: avoid compiler warnings
34922         * lib/fchmodat.c (lchmod): Mark unused variables.
34923         * lib/getopt.c (_getopt_initialize): Likewise.
34924         * lib/mktime.c (__mktime_internal): Provide prototype.
34925         * lib/inttostr.c (inttostr): Avoid compiler warning even with
34926         older gcc that do not understand #pragma GCC diagnostic.
34927         * lib/uinttostr.c (inttype_is_unsigned): Define.
34928         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
34929
34930 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34931
34932         stat: fix compilation on AIX
34933         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
34934         only see struct stat64.
34935
34936 2009-10-30  Eric Blake  <ebb9@byu.net>
34937
34938         exclude: make more robust
34939         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
34940         rather than masking a coding bug.
34941         Suggested by Bruno Haible.
34942
34943 2009-10-30  Jim Meyering  <meyering@redhat.com>
34944
34945         perl scripts: remove #!/usr/bin/perl in favor of more portable...
34946         Rather than putting #!/usr/bin/perl on the first line,
34947         start with a variant of what's recommended by "man perlrun" that
34948         invokes the first "perl" program from your shell's search path.
34949         * build-aux/gitlog-to-changelog: Replace #!... as above.
34950         Add a "Local Variables" perl mode setting.
34951         Prompted by a patch from Ludovic Courtès.
34952         Improved by Eric Blake.
34953         * build-aux/useless-if-before-free: Likewise.
34954         * build-aux/announce-gen: Likewise.
34955         * build-aux/update-copyright: Likewise.
34956
34957 2009-10-29  Eric Blake  <ebb9@byu.net>
34958
34959         filenamecat-lgpl: adjust clients
34960         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
34961         filenamecat.
34962         * modules/renameat (Depends-on): Likewise.
34963
34964         filenamecat: split into filenamecat-lgpl
34965         * modules/filenamecat-lgpl: New module.
34966         * modules/filenamecat (Files): Move library-safe files into
34967         filenamecat-lgpl.
34968         (Depends-on): Add filenamecat-lgpl.
34969         (configure.ac): Declare witness.
34970         * lib/filenamecat.h (file_name_concat): Only declare when using
34971         GPL module.
34972         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
34973         Move...
34974         * lib/filenamecat-lgpl.c: ...into new file.
34975         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
34976         (gl_FILE_NAME_CONCAT): Use it.
34977         * MODULES.html.sh (File system functions): Mention new module.
34978
34979         argp: avoid memory leak
34980         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
34981         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
34982         base_name, since the latter malloc()s and can call exit().
34983         Leak introduced 2006-07-03.
34984
34985         dirname-lgpl: adjust clients that don't need full dirname
34986         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
34987         * modules/filenamecat (Depends-on): Likewise.
34988         * modules/linkat (Depends-on): Likewise.
34989         * modules/mkancesdirs (Depends-on): Likewise.
34990         * modules/mkdir (Depends-on): Likewise.
34991         * modules/openat (Depends-on): Likewise.
34992         * modules/savewd (Depends-on): Likewise.
34993         * modules/rename (Depends-on): Likewise.
34994         (License): Relax license.
34995         * modules/mkdir-tests (Depends-on): Drop progname.
34996         (Makefile.am): Delete unneeded LDADD.
34997         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
34998
34999         dirname: split into dirname-lgpl
35000         * modules/dirname-lgpl: New module.
35001         * modules/dirname (Files): Move library-safe files into
35002         dirname-lgpl.
35003         (Depends-on): Add dirname-lgpl.
35004         (configure.ac): Declare witness.
35005         * modules/double-slash-root (License): Relax license.
35006         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
35007         module.
35008         * lib/dirname.c (dir_len, mdir_name): Move...
35009         * lib/dirname-lgpl.c: ...into new file.
35010         * lib/basename.c (last_component, base_len): Move...
35011         * lib/basename-lgpl.c: ...into new file.
35012         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
35013         (gl_DIRNAME): Use it.
35014         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
35015         Mention new module.
35016         * modules/dirname-tests (Depends-on): Add progname.
35017         * tests/test-dirname.c (program_name): Delete.
35018
35019         mkdir: make safe for libraries
35020         * modules/mkdir (Depends-on): Drop xalloc.
35021         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
35022         exit.
35023
35024         tests: avoid some compiler warnings
35025         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
35026         literals.
35027         * tests/test-memchr.c (main): Avoid type mismatch.
35028         * tests/test-arpa_inet.c (main): Avoid unused parameters.
35029         * tests/test-base64.c (main): Likewise.
35030         * tests/test-getdelim.c (main): Likewise.
35031         * tests/test-gethostname.c (main): Likewise.
35032         * tests/test-getline.c (main): Likewise.
35033         * tests/test-netinet_in.c (main): Likewise.
35034         * tests/test-select.c (open_server_socket, main): Likewise.
35035         * tests/test-select-stdin.c (main): Likewise.
35036         * tests/test-sockets.c (main): Likewise.
35037         * tests/test-strsignal.c (main): Likewise.
35038         * tests/test-sys_select.c (main): Likewise.
35039         * tests/test-sys_socket.c (main): Likewise.
35040         * tests/test-u64.c (main): Likewise.
35041         * tests/test-xfprintf-posix.c (main): Likewise.
35042         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
35043
35044         sockets: avoid compiler warning
35045         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
35046
35047         maint: detect usage(1) and other suspicious exits
35048         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
35049
35050 2009-10-29  Jim Meyering  <meyering@redhat.com>
35051
35052         timespec: long-to-int truncation could make timespec_cmp malfunction
35053         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
35054         a multiple of 2^32 nanoseconds as no difference.
35055
35056 2009-10-28  Jim Meyering  <meyering@redhat.com>
35057
35058         fprintftime: wrap macro code argument in "do {...} while(0)"
35059         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
35060         cpy macro must be a statement that can be followed by a semicolon.
35061         Now that the else clause contains a comment and is hence longer
35062         than one line, I require curly braces.  That in turn requires
35063         that we wrap this code block in the standard do...while(0).
35064
35065         fprintftime: remove stray semicolon from previous change
35066         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
35067
35068         fprintftime: avoid a warning about ignored fwrite return value
35069         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
35070         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
35071         that is unsafe.
35072         * modules/fprintftime (Depends-on): Add ignore-value.
35073
35074         exclude: avoid an unwarranted warning
35075         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
35076
35077 2009-10-27  Eric Blake  <ebb9@byu.net>
35078
35079         fseek: avoid compilation failure when fflush is replaced
35080         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
35081         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
35082         module is in use.
35083         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
35084         module is not in use; since REPLACE_FSEEK worked otherwise.
35085         (GNULIB_FTELLO): Likewise for ftell.
35086         Reported by Ian Beckwith and others.
35087
35088 2009-10-27  Bruno Haible  <bruno@clisp.org>
35089
35090         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
35091         Reported by Jim Meyering.
35092
35093 2009-10-27  Jim Meyering  <jim@meyering.net>
35094             Bruno Haible  <bruno@clisp.org>
35095
35096         Avoid warning despite dropping the return value of fwrite.
35097         * lib/unicodeio.c: Include ignore-value.h.
35098         (fwrite_success_callback): Explicitly ignore fwrite's return value.
35099         * modules/unicodeio (Depends-on): Add ignore-value.
35100
35101 2009-10-26  Eric Blake  <ebb9@byu.net>
35102
35103         areadlinkat: fix fallback path
35104         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
35105         pointer and zero.
35106
35107 2009-10-22  Pádraig Brady  <P@draigBrady.com>
35108
35109         Use a better IO block size for modern systems
35110         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
35111         * lib/md2.c: Likewise.
35112         * lib/md4.c: Likewise.
35113         * lib/md5.c: Likewise.
35114         * lib/sha1.c: Likewise.
35115         * lib/sha256.c: Likewise.
35116         * lib/sha512.c: Likewise.
35117
35118 2009-10-22  Eric Blake  <ebb9@byu.net>
35119
35120         tests: avoid several compiler warnings
35121         * tests/test-getcwd.c (main): Avoid buffer underflow.
35122         * tests/test-getdate.c (main): String literals are not safe with
35123         putenv, so use setenv.  Declare unused argument.
35124         * modules/getdate-tests (Depends-on): Add setenv.
35125         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
35126         problems with string literals in char *.
35127         * tests/test-hash.c (main): Avoid shadowing declaration.
35128         (insert_new): Treat string literals as char const *.
35129         * tests/test-getopt.h (test_getopt): Likewise.
35130         (getopt_loop): Alter types to minimize casting elsewhere.
35131         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
35132         (test_getopt_long_posix): Likewise.
35133         (do_getopt_long): Add wrapper to minimize casting.
35134         * tests/test-atexit.c (clear_temp_file): Use void.
35135         * tests/test-areadlink-with-size.c (main): Declare unused
35136         arguments.
35137         * tests/test-areadlink.c (main): Likewise.
35138         * tests/test-areadlinkat-with-size.c (main): Likewise.
35139         * tests/test-areadlinkat.c (main): Likewise.
35140         * tests/test-canonicalize-lgpl.c (main): Likewise.
35141         * tests/test-canonicalize.c (main): Likewise.
35142         * tests/test-dirent-safer.c (main): Likewise.
35143         * tests/test-dirname.c (main): Likewise.
35144         * tests/test-dup2.c (main): Likewise.
35145         * tests/test-fchdir.c (main): Likewise.
35146         * tests/test-fcntl-h.c (main): Likewise.
35147         * tests/test-fcntl-safer.c (main): Likewise.
35148         * tests/test-fdopendir.c (main): Likewise.
35149         * tests/test-fdutimensat.c (main): Likewise.
35150         * tests/test-fflush.c (main): Likewise.
35151         * tests/test-filenamecat.c (main): Likewise.
35152         * tests/test-filevercmp.c (main): Likewise.
35153         * tests/test-fopen-safer.c (main): Likewise.
35154         * tests/test-fopen.c (main): Likewise.
35155         * tests/test-fpending.c (main): Likewise.
35156         * tests/test-fpurge.c (main): Likewise.
35157         * tests/test-freading.c (main): Likewise.
35158         * tests/test-fstatat.c (main): Likewise.
35159         * tests/test-fsync.c (main): Likewise.
35160         * tests/test-futimens.c (main): Likewise.
35161         * tests/test-getndelim2.c (main): Likewise.
35162         * tests/test-gettimeofday.c (main): Likewise.
35163         * tests/test-getopt.c (main): Likewise.
35164         * tests/test-i-ring.c (main): Likewise.
35165         * tests/test-inttypes.c (main): Likewise.
35166         * tests/test-link.c (main): Likewise.
35167         * tests/test-lstat.c (main): Likewise.
35168         * tests/test-math.c (main): Likewise.
35169         * tests/test-md5.c (main): Likewise.
35170         * tests/test-memchr2.c (main): Likewise.
35171         * tests/test-memrchr.c (main): Likewise.
35172         * tests/test-mkdir.c (main): Likewise.
35173         * tests/test-mkdirat.c (main): Likewise.
35174         * tests/test-mkfifoat.c (main): Likewise.
35175         * tests/test-open.c (main): Likewise.
35176         * tests/test-openat-safer.c (main): Likewise.
35177         * tests/test-openat.c (main): Likewise.
35178         * tests/test-quotearg.c (main): Likewise.
35179         * tests/test-rawmemchr.c (main): Likewise.
35180         * tests/test-readlink.c (main): Likewise.
35181         * tests/test-remove.c (main): Likewise.
35182         * tests/test-rename.c (main): Likewise.
35183         * tests/test-renameat.c (main): Likewise.
35184         * tests/test-rmdir.c (main): Likewise.
35185         * tests/test-sha1.c (main): Likewise.
35186         * tests/test-signal.c (main): Likewise.
35187         * tests/test-sigaction.c (main): Likewise.
35188         * tests/test-stat.c (main): Likewise.
35189         * tests/test-stat-time.c (main): Likewise.
35190         * tests/test-stddef.c (main): Likewise.
35191         * tests/test-stdint.c (main): Likewise.
35192         * tests/test-stdio.c (main): Likewise.
35193         * tests/test-stdlib.c (main): Likewise.
35194         * tests/test-strchrnul.c (main): Likewise.
35195         * tests/test-strerror.c (main): Likewise.
35196         * tests/test-string.c (main): Likewise.
35197         * tests/test-strtod.c (main): Likewise.
35198         * tests/test-strverscmp.c (main): Likewise.
35199         * tests/test-symlink.c (main): Likewise.
35200         * tests/test-symlinkat.c (main): Likewise.
35201         * tests/test-sys_stat.c (main): Likewise.
35202         * tests/test-sys_time.c (main): Likewise.
35203         * tests/test-time.c (main): Likewise.
35204         * tests/test-unistd.c (main): Likewise.
35205         * tests/test-unlink.c (main): Likewise.
35206         * tests/test-unlinkat.c (main): Likewise.
35207         * tests/test-utimens.c (main): Likewise.
35208         * tests/test-utimensat.c (main): Likewise.
35209         * tests/test-version-etc.c (main): Likewise.
35210         * tests/test-wchar.c (main): Likewise.
35211         * tests/test-wctype.c (main): Likewise.
35212         * tests/test-xprintf-posix.c (main): Likewise.
35213         * tests/test-posixtm.c (main): Likewise.
35214         (STREQ): Delete unused macro.
35215         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
35216         shadowed variables.
35217         * tests/test-memchr.c (main): Likewise.
35218
35219 2009-10-21  Eric Blake  <ebb9@byu.net>
35220
35221         areadlinkat: avoid failure on older glibc
35222         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
35223         rather than mis-comparing 0 against FUNC_RESULT of char*.
35224
35225 2009-10-21  Bruno Haible  <bruno@clisp.org>
35226
35227         * modules/stpncpy (License): Relicense under LGPLv2+.
35228         Reported by David Lutterkort <lutter@redhat.com>.
35229
35230 2009-10-20  Eric Blake  <ebb9@byu.net>
35231
35232         utimensat: work around Solaris 9 bug
35233         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
35234         has trailing slash bugs.
35235         * tests/test-lutimens.h (test_lutimens): Enhance test.
35236         * tests/test-utimens.h (test_utimens): Likewise.
35237         * doc/posix-functions/utime.texi (utime): Enhance documentation.
35238         * doc/posix-functions/utimes.texi (utimes): Likewise.
35239         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35240         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
35241         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
35242         * doc/posix-functions/futimens.texi (futimens): Likewise.
35243
35244         fdutimensat: new module
35245         * modules/fdutimensat: New file.
35246         * lib/fdutimensat.c (fdutimensat): Likewise.
35247         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
35248         * MODULES.html.sh (File system functions): Mention module.
35249         * modules/fdutimensat-tests: New test.
35250         * tests/test-fdutimensat.c: Likewise.
35251
35252         doc: regenerate INSTALL
35253         * doc/INSTALL: Reflect recent autoconf update.
35254         * doc/INSTALL.ISO: Likewise.
35255         * doc/INSTALL.UTF-8: Likewise.
35256
35257 2009-10-20  Pádraig Brady  <P@draigBrady.com>
35258
35259         acl: warn if ACL support is not detected
35260         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
35261
35262 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
35263
35264         * lib/nproc.h: Add extern "C" block for C++.
35265
35266 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
35267             Bruno Haible  <bruno@clisp.org>
35268
35269         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
35270         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
35271         * doc/posix-functions/isalpha.texi: Likewise.
35272         * doc/posix-functions/isblank.texi: Likewise.
35273         * doc/posix-functions/iscntrl.texi: Likewise.
35274         * doc/posix-functions/isdigit.texi: Likewise.
35275         * doc/posix-functions/isgraph.texi: Likewise.
35276         * doc/posix-functions/islower.texi: Likewise.
35277         * doc/posix-functions/isprint.texi: Likewise.
35278         * doc/posix-functions/ispunct.texi: Likewise.
35279         * doc/posix-functions/isspace.texi: Likewise.
35280         * doc/posix-functions/isupper.texi: Likewise.
35281         * doc/posix-functions/isxdigit.texi: Likewise.
35282
35283 2009-10-18  Bruno Haible  <bruno@clisp.org>
35284
35285         Tests for module 'isblank'.
35286         * modules/isblank-tests: New file.
35287         * tests/test-isblank.c: New file.
35288
35289         New module 'isblank'.
35290         * lib/isblank.c: New file.
35291         * m4/isblank.m4: New file.
35292         * modules/isblank: New file.
35293         * doc/posix-functions/isblank.texi: Mention the new module.
35294
35295 2009-10-18  Bruno Haible  <bruno@clisp.org>
35296
35297         New module 'ctype'.
35298         * lib/ctype.in.h: New file.
35299         * m4/ctype.m4: New file.
35300         * modules/ctype: New file.
35301         * doc/posix-headers/ctype.texi: Mention the new module.
35302
35303 2009-10-18  Jim Meyering  <meyering@redhat.com>
35304
35305         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
35306         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
35307         right after its initialization, rather than farther down.
35308         Keeping these in close proximity makes it easier to ensure
35309         that each such variable is initialized.  E.g.,
35310
35311             LIB_CLOCK_GETTIME=
35312             AC_SUBST([LIB_CLOCK_GETTIME])
35313
35314         This change also increments these serial numbers.
35315         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
35316         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35317         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35318
35319 2009-10-18  Bruno Haible  <bruno@clisp.org>
35320
35321         Don't let environment variables perturb build.
35322         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
35323         (gl_PREREQ_GETHRXTIME): ... not here.
35324
35325 2009-10-18  Bruno Haible  <bruno@clisp.org>
35326
35327         Avoid symlink attack in localcharset module.
35328         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
35329         (O_NOFOLLOW): Define fallback.
35330         (get_charset_aliases): Don't open the file if it is a symbolic link.
35331         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
35332         gl_FCNTL_H.
35333         (gl_FCNTL_H): Require it.
35334         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
35335         * modules/localcharset (Files): Add m4/fcntl_h.m4.
35336         Reported by Fergal Glynn <fglynn@veracode.com>.
35337
35338 2009-10-18  Bruno Haible  <bruno@clisp.org>
35339
35340         Implement nproc for mingw.
35341         * lib/nproc.c: Include <windows.h>
35342         (num_processors): On native Windows platforms, try GetSystemInfo.
35343
35344 2009-10-18  Bruno Haible  <bruno@clisp.org>
35345
35346         Implement nproc for IRIX.
35347         * lib/nproc.c: Include <sys/sysmp.h>.
35348         (num_processors): On IRIX systems, try sysmp.
35349         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
35350
35351 2009-10-18  Bruno Haible  <bruno@clisp.org>
35352
35353         Implement nproc for HP-UX.
35354         * lib/nproc.c: Include <sys/pstat.h>
35355         (num_processors): On HP-UX systems, try pstat_getdynamic.
35356         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
35357         pstat_getdynamic.
35358
35359 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
35360             Bruno Haible  <bruno@clisp.org>
35361
35362         Implement nproc for NetBSD, OpenBSD.
35363         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
35364         (ARRAY_SIZE): New macro.
35365         (num_processors): On BSD systems, try sysctl of HW_NCPU.
35366         * m4/nproc.m4: New file.
35367         * modules/nproc (Files): Add m4/nproc.m4.
35368         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
35369         (Makefile.am): Instead, augment lib_SOURCES.
35370
35371 2009-10-18  Bruno Haible  <bruno@clisp.org>
35372
35373         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
35374         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
35375         sys/param.h.
35376
35377 2009-10-16  Eric Blake  <ebb9@byu.net>
35378
35379         utimensat: new module
35380         * modules/utimensat: New file.
35381         * lib/utimensat.c (utimensat): Likewise.
35382         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35383         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
35384         so we can work around Linux bugs.
35385         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35386         * modules/sys_stat (Makefile.am): Substitute them.
35387         * lib/sys_stat.in.h (utimensat): Declare it.
35388         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35389         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35390         * modules/utimensat-tests: New test.
35391         * tests/test-utimensat.c: Likewise.
35392
35393         utimens: let lutimens work on non-symlinks
35394         * lib/utimens.c (lutimens): Fall back to utimens rather than
35395         failing with ENOSYS, when file is not a symlink.
35396         (utimens): Reduce redirection.
35397         * tests/test-lutimens.h (test_lutimens): Update test to cover
35398         non-symlinks.
35399         * tests/test-utimens.h (test_utimens): Update test to cover
35400         symlinks.
35401         * tests/test-utimens.c (main): Update caller.
35402
35403         utimens: cache whether utimensat syscall works
35404         * lib/utimens.c (utimensat_works_really): New cache variable.
35405         (fdutimens, lutimens): Use it to avoid failing syscall.
35406
35407         test-stat-time, test-utimens: improve portability
35408         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
35409         ext4 on alpha, and for cygwin.
35410         * tests/test-utimens-common.h: New file.
35411         (nap): Factor delays into single function.
35412         * tests/test-lutimens.h (test_lutimens): Use new header.
35413         * tests/test-futimens.h (test_futimens): Likewise.
35414         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
35415         timestamps to occur from same machine, as was done previously for
35416         test_utimens.
35417         * modules/utimens-tests (Files): Ship new file.
35418         * modules/futimens-tests (Files): Likewise.
35419         Reported in part by Jim Meyering.
35420
35421         sys_stat: sort replacement declarations
35422         * lib/sys_stat.in.h: Sort declarations.
35423         * lib/futimens.c (futimens): Fix typo.
35424
35425 2009-10-15  Jim Meyering  <meyering@redhat.com>
35426
35427         don't let environment settings perturb build
35428         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
35429         could cause a configure-time and/or build-time malfunction.
35430         Typically, a configure-time function-in-library test is performed
35431         via code like this:
35432
35433           LIB_VAR=
35434           AC_SUBST([LIB_VAR])
35435           prefix_saved_LIBS=$LIBS
35436             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
35437                        [test "$ac_cv_search_FUNC" = "none required" ||
35438                         LIB_VAR=$ac_cv_search_FUNC])
35439           LIBS=$prefix_saved_LIBS
35440
35441         However, in each of the files affected by this change, the LIB_VAR=
35442         initialization was omitted.  Thus, when set in the environment, its
35443         value would propagate into generated Makefiles when FUNC is not found
35444         in LIB_NAME.
35445         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
35446         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35447         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35448
35449 2009-10-14  Eric Blake  <ebb9@byu.net>
35450
35451         fchdir: avoid infinite recursion in mingw
35452         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
35453         recursing.
35454
35455         test-stat-time: port to mingw
35456         * tests/test-stat-time.c (force_unlink): Return a value.
35457         (test_ctime) [W32]: Fix compilation error.
35458         (nap): Don't call usleep with too large an argument.  Use
35459         force_unlink.
35460         * doc/pastposix-functions/usleep.texi (usleep): Document the
35461         portability issue.
35462
35463 2009-10-13  Jim Meyering  <meyering@redhat.com>
35464
35465         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
35466         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
35467         * modules/pipe-filter-ii: Likewise.
35468         * modules/sys_socket-tests: Likewise.
35469         * modules/tsearch-tests: Likewise.
35470         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
35471         (check): Depend on it.
35472
35473 2009-10-12  Eric Blake  <ebb9@byu.net>
35474
35475         utimens-tests: port to NFS file systems
35476         * tests/test-utimens.h (test_utimens): Refactor utimecmp
35477         comparisons to avoid spurious failures from timestamp drift
35478         between NFS machines.
35479
35480 2009-10-12  Eric Blake  <ebb9@byu.net>
35481
35482         stat-time-tests: minor cleanups
35483         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
35484         * tests/test-stat-time.c (nap): Separate assignment from call.
35485         Suggested by Paolo Bonzini and Bruno Haible.
35486
35487         sys_stat: guarantee struct timespec
35488         * lib/sys_stat.in.h (includes): Always include <time.h>
35489         * modules/sys_stat (Depends-on): Add time.
35490         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
35491         mode_t permission values.
35492         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
35493         get at subsecond timestamps.
35494
35495 2009-10-10  Eric Blake  <ebb9@byu.net>
35496
35497         futimens: new module
35498         * modules/futimens: New file.
35499         * lib/futimens.c (futimens): Likewise.
35500         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
35501         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
35502         we can work around Linux bugs.
35503         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35504         * modules/sys_stat (Makefile.am): Substitute them.
35505         * lib/sys_stat.in.h (futimens): Declare it.
35506         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35507         * doc/posix-functions/futimens.texi (futimens): Likewise.
35508         * modules/futimens-tests: New test.
35509         * tests/test-futimens.c: Likewise.
35510
35511         utimens: introduce fdutimens
35512         * lib/utimens.h (fdutimens): New prototype.
35513         * lib/utimens.c (gl_futimens): Move guts...
35514         (fdutimens): ...to new interface.
35515         * tests/test-utimens.c (do_fdutimens): Use it.
35516
35517         utimens: add UTIME_NOW and UTIME_OMIT support
35518         * lib/utimens.c (validate_timespec, update_timespec): New helper
35519         functions.
35520         (gl_futimens, lutimens): Use them.
35521         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
35522         stdbool, sys_stat.
35523         (Link): Mention resulting library dependency.
35524         * modules/utimecmp (Link): Likewise.
35525         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
35526         (Makefile.am): Pick up library dependency.
35527         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
35528         definition.
35529         * tests/test-sys_stat.c: Test the definitions.
35530         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
35531         * NEWS: Document library dependency.
35532
35533         utimecmp: support symlink timestamps
35534         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
35535         hashing when possible.  Use pathconf when available.
35536         (SYSCALL_RESOLUTION): Recognize tighter resolution.
35537         * modules/utimecmp (Depends-on): Add lstat.
35538
35539         utimens: add lutimens interface
35540         * lib/utimens.c (lutimens): New function.
35541         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
35542         * lib/utimens.h (lutimens): Declare new interface.
35543         * tests/test-utimens.c (main): Enhance test.
35544         * tests/test-lutimens.h (test_lutimens): New file.
35545         * modules/utimens-tests (Files): Distribute it.
35546         (Depends-on): Add symlink.
35547         (configure.ac): Check for usleep.
35548
35549         utimens: validate futimens usage
35550         * lib/utimens.c (gl_futimens): Require valid fd up front, using
35551         fewer syscalls on failure later on.  Avoid compiler warning on
35552         mingw.
35553         * modules/utimens (Depends-on): Add dup2.
35554
35555         utimens: add test
35556         * modules/utimens-tests: New test.
35557         * tests/test-utimens.h: New file.
35558         * tests/test-futimens.h: Likewise.
35559         * tests/test-utimens.c: Likewise.
35560
35561         doc: mention timestamp portability issues
35562         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
35563         instead.
35564         * doc/posix-functions/utime.texi (utime): Likewise.
35565         * doc/posix-functions/utimes.texi (utimes): Likewise.
35566         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
35567         instead.
35568         * doc/posix-functions/futimens.texi (futimens): Mention utimens
35569         module.
35570         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35571         Mention weakness with symlink timestamps.
35572         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
35573         to utimensat/futimens instead.
35574         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
35575
35576         test-dup2: enhance test
35577         * tests/test-dup2.c (main): Also check AT_FDCWD.
35578
35579         test-stat-time: avoid more spurious failures
35580         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
35581         xfs; and avoid race if the two timestamps cross quantization edge.
35582
35583         relocatable: prefer 'file system' over 'filesystem'
35584         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
35585         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
35586         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
35587         * doc/relocatable.texi (Enabling Relocatability): Likewise.
35588         * lib/relocatable.c (compute_curr_prefix): Likewise.
35589
35590 2009-10-10  Jim Meyering  <meyering@redhat.com>
35591
35592         stat-time-tests: check for the usleep function
35593         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
35594
35595 2009-10-10  Bruno Haible  <bruno@clisp.org>
35596
35597         * modules/xnanosleep: Put the Link section after the Include section.
35598
35599 2009-10-09  Eric Blake  <ebb9@byu.net>
35600
35601         dup2: work around FreeBSD 6.1 bug
35602         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
35603         * doc/posix-functions/dup2.texi (dup2): Document it.
35604         Reported by Nelson H. F. Beebe and Jim Meyering.
35605
35606         test-stat-time: port to buggy NFS clients
35607         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
35608         (test_ctime): Also skip test if mtime and ctime are skewed.
35609
35610         maint: prefer 'file system' over 'filesystem'
35611         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35612         * doc/posix-functions/lstat.texi (lstat): Likewise.
35613         * lib/file-has-acl.c (file_has_acl): Likewise.
35614         * lib/fwriteerror.c [TEST]: Likewise.
35615         * tests/test-areadlink.h (test_areadlink): Likewise.
35616         * tests/test-areadlinkat-with-size.c (main): Likewise.
35617         * tests/test-areadlinkat.c (main): Likewise.
35618         * tests/test-canonicalize-lgpl.c (main): Likewise.
35619         * tests/test-canonicalize.c (main): Likewise.
35620         * tests/test-fstatat.c (main): Likewise.
35621         * tests/test-linkat.c (main): Likewise.
35622         * tests/test-lstat.h (test_lstat_func): Likewise.
35623         * tests/test-mkdir.h (test_mkdir): Likewise.
35624         * tests/test-readlink.h (test_readlink): Likewise.
35625         * tests/test-remove.c (main): Likewise.
35626         * tests/test-rename.h (test_rename): Likewise.
35627         * tests/test-renameat.c (main): Likewise.
35628         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35629         * tests/test-symlink.h (test_symlink): Likewise.
35630         * tests/test-symlinkat.c (main): Likewise.
35631         * tests/test-unlink.h (test_unlink_func): Likewise.
35632         * tests/test-unlinkat.c (main): Likewise.
35633
35634         maint: make realtime library usage explicit
35635         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
35636         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
35637         * modules/settime (Link): Likewise.
35638         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
35639
35640         test-stat-time: speed up execution
35641         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
35642         warning on mingw.
35643         (nap): New helper function.
35644         (prepare_test): Use it to reduce sleep time.
35645         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
35646         execution.
35647         * modules/stat-time-tests (configure.ac): Check for usleep.
35648
35649 2009-10-09  Jim Meyering  <meyering@redhat.com>
35650
35651         selinux-h: always use getfilecon wrappers
35652         * lib/getfilecon.c: New file.
35653         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
35654         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
35655         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
35656         (fgetfilecon): Provide a stub.
35657         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
35658         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
35659         file unconditionally.
35660         When <selinux/selinux.h> is found, arrange to use wrappers.
35661         * modules/selinux-h (Files): Add getfilecon.c.
35662         (Makefile.am): Substitute include-next-related bits
35663         into the now-always-generated selinux/selinux.h file.
35664         * doc/glibc-functions/lgetfilecon.texi: New file.
35665         * doc/glibc-functions/fgetfilecon.texi: New file.
35666         * doc/glibc-functions/getfilecon.texi: New file.
35667         * doc/glibc-functions/getfilecon-desc.texi: New file.
35668         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
35669         which to pull in the new files.
35670         * MODULES.html.sh (Misc): Add selinux-h.
35671
35672 2009-10-08  Jim Meyering  <meyering@redhat.com>
35673
35674         unistd: fix comment typo
35675         * lib/unistd.in.h (euidaccess): Fix a comment typo.
35676
35677 2009-10-08  Eric Blake  <ebb9@byu.net>
35678
35679         areadlink: use SIZE_MAX consistently
35680         * modules/areadlink (Depends-on): Add stdint.
35681         * modules/areadlink-with-size (Depends-on): Likewise.
35682         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
35683         gives NULL; drop sys/types, since unistd gives size_t; and add
35684         stdint for SIZE_MAX.
35685         (SIZE_MAX): Rely on headers.
35686         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
35687         and add stdint.
35688         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
35689         (SIZE_MAX): Likewise.
35690         (INITIAL_BUF_SIZE): Turn into enum.
35691         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
35692
35693 2009-10-08  Jim Meyering  <meyering@redhat.com>
35694
35695         areadlinkat: avoid compilation failure
35696         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
35697         Fix typo in comment.
35698
35699 2009-10-07  Eric Blake  <ebb9@byu.net>
35700
35701         areadlinkat-with-size: new module
35702         * modules/areadlinkat-with-size: New module.
35703         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
35704         * lib/areadlink.h (areadlinkat): Declare it.
35705         * MODULES.html.sh (File system functions): Mention it.
35706         * modules/areadlinkat-with-size-tests: New test.
35707         * tests/test-areadlinkat-with-size.c: New file.
35708
35709         xreadlinkat: new module
35710         * modules/xreadlinkat: New module.
35711         * lib/xreadlinkat.c (xreadlinkat): New file.
35712         * lib/xreadlink.h (xreadlinkat): Declare it.
35713         * MODULES.html.sh (File system functions): Mention it.
35714
35715         areadlinkat: new module
35716         * lib/at-func.c (FUNC_FAIL): New define.
35717         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
35718         * modules/areadlinkat: New module.
35719         * lib/linkat.c (areadlinkat): Move...
35720         * lib/areadlinkat.c (areadlinkat): ...to new file.
35721         * lib/areadlink.h (areadlinkat): Declare it.
35722         * modules/linkat (Depends-on): Add areadlinkat.
35723         * MODULES.html.sh (File system functions): Mention it.
35724         * modules/areadlinkat-tests: New test.
35725         * tests/test-areadlinkat.c: New file.
35726
35727         areadlink, areadlink-with-size: add tests
35728         * modules/areadlink-tests: New test.
35729         * modules/areadlink-with-size-tests: Likewise.
35730         * tests/test-areadlink.h: New file.
35731         * tests/test-areadlink.c: Likewise.
35732         * tests/test-areadlink-with-size.c: Likewise.
35733
35734         maint: minor cleanups
35735         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
35736         _UNUSED_PARAMETER_ instead.
35737         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
35738         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
35739         * modules/linkat-tests (Files): Distribute test-link.h.
35740
35741         openat, utimens: whitespace cleanup
35742         * lib/openat.c: Prefer space throughout, rather than mix of 8
35743         spaces vs. tabs.
35744         * lib/at-func.c: Likewise.
35745         * lib/utimens.c: Likewise.
35746
35747         openat: avoid using wrong fd
35748         * lib/openat.c (openat_permissive): Reject user's fd if saving the
35749         working directory chooses same fd.
35750         * lib/at-func.c (AT_FUNC_NAME): Likewise.
35751
35752         mkdir, mkdirat: fix cygwin 1.5.x bug
35753         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
35754         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
35755         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
35756         bug.
35757         (gl_PREREQ_MKDIR): Delete unused macro.
35758         * modules/mkdir (Files): Track file rename.
35759         (configure.ac): Update macro name.
35760         * modules/openat (Depends-on): Add mkdir.
35761         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
35762
35763         mkdir, mkdirat: add tests
35764         * modules/mkdir-tests: New test.
35765         * tests/test-mkdir.h: New file.
35766         * tests/test-mkdir.c: Likewise.
35767         * tests/test-mkdirat.c: Likewise.
35768         * modules/openat-tests (Files): Add new files.
35769         (Makefile.am): Run new test.
35770
35771 2009-10-06  Eric Blake  <ebb9@byu.net>
35772
35773         doc: tweak *at function documentation
35774         * doc/posix-functions/faccessat.texi (faccessat): Mention
35775         known issue with replacement.
35776         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
35777         * doc/posix-functions/linkat.texi (linkat): Likewise.
35778         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35779         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35780         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35781         * doc/posix-functions/renameat.texi (renameat): Likewise.
35782         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35783
35784         openat: fix GNU/Hurd bug in unlinkat
35785         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
35786         broken.
35787         * doc/posix-functions/unlink.texi (unlink): Document this.
35788         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
35789
35790         fdopendir: fix GNU/Hurd bug
35791         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
35792         allowing non-directory fds.
35793         * lib/fdopendir.c (rpl_fdopendir): Work around it.
35794         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35795         * modules/dirent (Makefile.am): Substitute it.
35796         * lib/dirent.in.h (fdopendir): Declare replacement.
35797         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
35798         * tests/test-fdopendir.c (main): Test something other than
35799         /dev/null, since on Hurd that behaves like a directory.
35800
35801         test-symlink: port to GNU/Hurd
35802         * tests/test-symlink.h (test_symlink): Relax expected errno.
35803
35804         doc: tweak more cygwin information
35805         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
35806         now compatible with glibc.
35807         * doc/posix-functions/getopt.texi (getopt): Likewise.
35808
35809         getopt-gnu: add another test
35810         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
35811         guarantee behavior relied on by m4.
35812         * tests/test-getopt.c (main): Use it.
35813         * modules/getopt-posix-tests (Depends-on): Add setenv.
35814         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
35815
35816         getopt: fix compilation on darwin
35817         * lib/getopt.in.h (includes): Leave breadcrumbs during system
35818         include.
35819         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
35820         Reported by Ludovic Courtès.
35821
35822 2009-10-06  Bruno Haible  <bruno@clisp.org>
35823
35824         * modules/size_max (Description): Discourage its use.
35825         Reported by Simon Josefsson.
35826
35827 2009-10-06  Jim Meyering  <meyering@redhat.com>
35828
35829         linkat: avoid compilation failure
35830         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
35831
35832 2009-10-05  Eric Blake  <ebb9@byu.net>
35833
35834         linkat: support Linux 2.6.17
35835         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
35836         linkat on Linux, but allow cache variable override.
35837         * lib/linkat.c (rpl_linkat): Define override.
35838         * modules/linkat (Depends-on): Add symlinkat.
35839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
35840         * modules/unistd (Makefile.am): Substitute it.
35841         * lib/unistd.in.h (linkat): Declare replacement.
35842         Reported by Pádraig Brady.
35843
35844         quotearg: port test to systems with C.UTF-8 locale
35845         * tests/test-quotearg.c (struct result_strings): Add another
35846         member, differentiating between C.ASCII and C.UTF-8 handling.
35847         (compare_strings): Add parameter.
35848         (main): Adjust all callers.
35849
35850         getopt: avoid clash with FreeBSD _getopt_internal
35851         * lib/getopt.in.h (_getopt_internal): Override the name.
35852         * lib/getopt_int.h (includes): Pick up any overrides.
35853         Reported by Reuben Thomas.
35854
35855         hash: allow C89 compilation
35856         * lib/hash.c (check_tuning): Move declaration before statement.
35857         Reported by Reuben Thomas.
35858
35859 2009-10-05  Karl Berry  <karl@gnu.org>
35860
35861         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
35862
35863 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
35864             Bruno Haible  <bruno@clisp.org>
35865
35866         * lib/uname.c (uname): Use a table-driven algorithm to compute
35867         Windows NT versions.
35868
35869 2009-10-04  Bruno Haible  <bruno@clisp.org>
35870
35871         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
35872         program_invocation_short_name.
35873         * modules/progname (configure.ac): Test for presence of
35874         program_invocation_short_name.
35875         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35876
35877 2009-10-04  Bruno Haible  <bruno@clisp.org>
35878
35879         * lib/progname.c (set_program_name): Fix comment.
35880         Reported by Jim Meyering.
35881
35882 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35883             Bruno Haible  <bruno@clisp.org>
35884
35885         * lib/uname.c: Include <string.h>.
35886         (uname): Do only one call to GetVersionEx in the common case.
35887
35888 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35889             Bruno Haible  <bruno@clisp.org>
35890
35891         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
35892         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
35893         (uname): Add support for Windows CE and various non-x86 CPU types.
35894
35895 2009-10-03  Bruno Haible  <bruno@clisp.org>
35896
35897         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
35898         invocation to tests/configure.ac.
35899         Reported by Ian Beckwith <ianb@erislabs.net>.
35900
35901 2009-10-02  Eric Blake  <ebb9@byu.net>
35902
35903         fchdir: avoid compiler warning
35904         * lib/fchdir.c (canonicalize_file_name)
35905         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
35906
35907         test-open: support mingw errno values
35908         * tests/test-open.h (test_open): Relax test.
35909         * tests/test-fopen.h (test_fopen): Likewise.
35910         * tests/test-openat-safer.c (main): Likewise.
35911
35912         open: fix opening directory on mingw
35913         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
35914
35915         test-open: on GNU/Hurd, /dev/null is a directory
35916         * tests/test-fopen.h (main): Rename...
35917         (test_fopen): ...to this.  Use a guaranteed non-directory when
35918         confirming open behavior on trailing slash.
35919         * tests/test-openat-safer.c (main): Likewise.
35920         * tests/test-open.h (main): Likewise....
35921         (test_open): ...to this.
35922         * tests/test-fopen.c (main): Adjust caller.
35923         * tests/test-fopen-safer.c (main): Likewise.
35924         * tests/test-open.c (main): Likewise.
35925         * tests/test-fcntl-safer.c (main): Likewise.
35926         Reported by Samuel Thibault.
35927
35928         rename, fchdir: don't ignore chdir failure
35929         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
35930         * lib/rename.c (rpl_rename) [W32]: Likewise.
35931         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
35932         an empty destination directory if source cannot be renamed,
35933         although there is still possibility for failure.
35934         * doc/posix-functions/rename.texi (rename): Document the race.
35935         Reported by Jim Meyering.
35936
35937         maint: cleanup whitespace in recent commits
35938         * lib/rename.c (rpl_rename): Remove tabs.
35939         * tests/test-link.h (test_link): Likewise.
35940         * lib/fchdir.c (get_name): Likewise.
35941         Reported by Jim Meyering.
35942
35943 2009-10-02  Ben Pfaff  <blp@gnu.org>
35944
35945         relocatable-prog-wrapper: Add missing dependency on
35946         double-slash-root.
35947         * modules/relocatable-prog-wrapper: Add dependency.
35948         Reported by Ian Beckwith <ianb@erislabs.net>.
35949
35950 2009-10-02  Eric Blake  <ebb9@byu.net>
35951
35952         renameat: fix Solaris bugs
35953         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
35954         needed fixing.
35955         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
35956         * modules/stdio (Makefile.am): Substitute it.
35957         * lib/stdio.in.h (renameat): Declare replacement.
35958         * lib/renameat.c (rpl_renameat): Implement fix.
35959
35960         renameat: new module
35961         * modules/renameat: New file.
35962         * lib/renameat.c (renameat): Likewise.
35963         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
35964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35965         * modules/stdio (Makefile.am): Substitute them.
35966         * lib/stdio.in.h (renameat): Declare it.
35967         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35968         * doc/posix-functions/renameat.texi (renameat): Likewise.
35969         * modules/renameat-tests: New test.
35970         * tests/test-renameat.c: Likewise.
35971
35972         rename: fix mingw bugs
35973         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
35974         directory overwrite bugs.
35975
35976         rename: fix another cygwin 1.5 bug
35977         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
35978         checks.
35979         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
35980         unnecessary cygwin workarounds.  Also work around bug with moving
35981         full directory onto an empty one.
35982         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
35983
35984         rename-dest-slash: merge into rename module
35985         * modules/rename-dest-slash (Status): Mark obsolete.
35986         (Depends-on): Add rename.
35987         (Files): Let rename do it all.
35988         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
35989         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
35990         * m4/rename-dest-slash.m4: ...so this file can be deleted.
35991         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
35992         * lib/rename.c (rpl_rename): Update comments.
35993
35994         rename: fix cygwin 1.5.x bugs
35995         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
35996         * lib/rename.c (rpl_rename): Work around them.
35997         * modules/rename (Depends-on): Add same-inode.
35998
35999         rename: fix Solaris 10 bug
36000         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36001         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
36002         was the only bug.
36003
36004         rename: fix Solaris 9 bug
36005         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
36006         on non-directory.  Avoid calling exit.
36007         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
36008         strdup.
36009         * modules/rename-tests (Depends-on): Drop lstat.
36010         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36011         (gl_PREREQ_RENAME): Delete unused macro.
36012
36013         rename-dest-slash: fix NetBSD bug
36014         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
36015         links.
36016         * modules/rename-dest-slash (Depends-on): Add same-inode.
36017
36018         rename-tests: new test, exposes several platform bugs
36019         * modules/rename-tests: New file.
36020         * tests/test-rename.h: Likewise.
36021         * tests/test-rename.c: Likewise.
36022         * doc/posix-functions/rename.texi (rename): Improve documentation,
36023         including bugs that will eventually be fixed in gnulib.
36024
36025 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
36026
36027         * lib/uname.c: Include <stdlib.h>
36028         (uname): Assume version info is available.
36029
36030 2009-10-02  Jim Meyering  <meyering@redhat.com>
36031
36032         gnu-web-doc-update: correct --help output
36033         * build-aux/gnu-web-doc-update: Make --help output relevant.
36034
36035         gnu-web-doc-update: add standard options
36036         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
36037
36038         gnu-web-doc-update: New module.
36039         Use this script to automatically update the on-line web documentation
36040         for your GNU project at http://www.gnu.org/software/$pkg/manual/
36041         * modules/gnu-web-doc-update: New file, from coreutils.
36042         * build-aux/gnu-web-doc-update: New script.
36043
36044 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
36045
36046         link: LoadLibrary is not needed.
36047         * lib/link.c: Use GetModuleHandle.
36048
36049 2009-10-01  Eric Blake  <ebb9@byu.net>
36050
36051         getopt: bump serial number
36052         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
36053         change.
36054
36055         tests: tighten link, rmdir, and remove tests
36056         * tests/test-link.h (includes): No need to use <config.h> here.
36057         Clean up if directory hard link was created, otherwise test for
36058         trailing '.'.
36059         * tests/test-linkat.c (main): Simplify.
36060         * tests/test-remove.c (main): Enhance test for trailing '.'.
36061         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36062
36063 2009-10-01  Jim Meyering  <meyering@redhat.com>
36064
36065         maint.mk: requiring "make major" was annoying, for a "minor" release.
36066         What is intended is "stable", to contrast with alpha and beta,
36067         so require "make stable", not "make major".
36068         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
36069         (get_tool_versions): Likewise.
36070         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
36071
36072 2009-09-30  Ben Pfaff  <blp@gnu.org>
36073
36074         Fix broken build of replacement for Windows tmpfile().
36075         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
36076         flags argument added along with the 'mkostemp' module.
36077
36078 2009-09-28  Bruno Haible  <bruno@clisp.org>
36079
36080         Avoid identifier clash with POSIX function 'remove' defined as a macro.
36081         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
36082         to 'remove_elt'.
36083         (gl_list_remove): Update.
36084         * lib/gl_list.c (gl_list_remove): Update.
36085         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
36086         to 'remove_elt'.
36087         (gl_oset_remove): Update.
36088         * lib/gl_list.c (gl_oset_remove): Update.
36089         Reported by Eric Blake.
36090
36091 2009-09-28  Eric Blake  <ebb9@byu.net>
36092
36093         doc: mention yet more cygwin 1.7 status
36094         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
36095         cygwin.
36096         * doc/glibc-functions/execvpe.texi (execvpe): New file.
36097         * doc/gnulib.texi (Glibc unistd.h): Mention it.
36098
36099         argp: fix test failure
36100         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
36101         that are not upper-case.  Pass correct range to tolower.
36102
36103 2009-09-27  Jim Meyering  <meyering@redhat.com>
36104
36105         test-yesno: work around sparc-dash here-document infelicity
36106         Without this change, the literal \177 byte in a here document
36107         would make dash 0.5.5.1-3 access uninitialized memory.
36108         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
36109         Instead, use a marker, "@", and filter through tr to create the desired
36110         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
36111
36112 2009-09-27  Bruno Haible  <bruno@clisp.org>
36113
36114         Disable untested support for new flavours of ACLs on AIX.
36115         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
36116         progress.
36117         * lib/set-mode-acl.c (qset_acl): Likewise.
36118
36119 2008-12-07  Bruno Haible  <bruno@clisp.org>
36120
36121         Add support for new flavours of ACLs on AIX. (Untested.)
36122         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
36123         (file_has_acl): Add support for newer AIX.
36124         * lib/set-mode-acl.c (qset_acl): Likewise.
36125         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
36126         Rainer Tammer <tammer@tammer.net>.
36127
36128 2009-09-26  Eric Blake  <ebb9@byu.net>
36129
36130         argp: fix compilation of getopt
36131         * lib/getopt.in.h (includes): Use different guard than glibc.
36132         Reported by Sergey Poznyakoff.
36133
36134         doc: mention more cygwin 1.7 status
36135         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
36136         bug.
36137         * doc/posix-functions/execl.texi (execl): Likewise.
36138         * doc/posix-functions/execle.texi (execle): Likewise.
36139         * doc/posix-functions/execlp.texi (execlp): Likewise.
36140         * doc/posix-functions/execv.texi (execv): Likewise.
36141         * doc/posix-functions/execve.texi (execve): Likewise.
36142         * doc/posix-functions/execvp.texi (execvp): Likewise.
36143         * doc/glibc-functions/canonicalize_file_name.texi
36144         (canonicalize_file_name): Cygwin 1.7 now provides this.
36145         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
36146         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
36147         on AT_SYMLINK_NOFOLLOW.
36148
36149 2009-09-24  Eric Blake  <ebb9@byu.net>
36150
36151         test-linkat: make test more robust
36152         * tests/test-linkat.c (main): Avoid collision with EEXIST.
36153
36154         getopt: fix inclusion guards for cygwin
36155         * modules/getopt-posix (Depends-on): Add include-next.
36156         (Makefile.am): Substitute more items in replacement header.
36157         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
36158         <getopt.h>.
36159         * lib/getopt.in.h (includes): Use split inclusion guard, and
36160         prefer <getopt.h> over include <unistd.h> when one is present.
36161         (option): Also override name of 'struct option'.
36162
36163         same-inode: revert prior change; it is not yet ready
36164         * NEWS: Undo mention of this change.
36165         * lib/same-inode.h (same-inode.h): Undo tri-state change.
36166         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36167         * lib/cycle-check.c (cycle_check): Likewise.
36168         * lib/same.c (same_name): Likewise.
36169         * lib/at-func2.c (at_func2): Likewise.
36170
36171 2009-09-23  Eric Blake  <ebb9@byu.net>
36172
36173         linkat: new module
36174         * modules/linkat: New file.
36175         * lib/at-func2.c (at_func2): Likewise.
36176         * lib/linkat.c (linkat): Likewise.
36177         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
36178         * lib/openat-priv.h (at_func2): Add declaration.
36179         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36180         * modules/unistd (Makefile.am): Substitute them.
36181         * lib/unistd.in.h (linkat): Declare it.
36182         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36183         * doc/posix-functions/linkat.texi (linkat): Likewise.
36184         * doc/posix-functions/link.texi (link): Tweak wording.
36185         * tests/test-link.c (main): Move guts...
36186         * tests/test-link.h (test_link): ...into new file.
36187         * modules/linkat-tests: New test.
36188         * tests/test-linkat.c: Likewise.
36189         * modules/link-tests (Files): Ship new file.
36190         (Depends-on): Add stdbool.
36191
36192         dirname: add library-safe mdir_name
36193         * lib/dirname.h (mdir_name): New prototype.
36194         * lib/dirname.c (dir_name): Move guts...
36195         (mdir_name): ...to new function that avoids xalloc_die.
36196
36197         fchdir: another mingw fix
36198         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
36199         * lib/fchdir.c (get_name): New helper method; skips canonicalize
36200         on mingw (where it has not yet been ported), and make it optional
36201         elsewhere.
36202         (_gl_register_fd): Use it.
36203
36204         same-inode: make SAME_INODE tri-state, to port to mingw
36205         * NEWS: Mention this change.
36206         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
36207         st_ino always being 0.
36208         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36209         * lib/cycle-check.c (cycle_check): Likewise.
36210         * lib/same.c (same_name): Likewise.
36211
36212         lstat: avoid mingw compilation error
36213         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
36214         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
36215         lstat ourselves.
36216         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
36217         was adequate.
36218         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
36219         the checks for lstat.
36220         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
36221
36222         link: fix test failure on Solaris 9
36223         * lib/link.c (rpl_link): Don't assume link will catch bogus
36224         trailing slash on source.
36225
36226         test-symlinkat: enhance test
36227         * tests/test-readlink.c (main): Move guts...
36228         * tests/test-readlink.h (test_readlink): ...into new file.
36229         * tests/test-symlink.c (main): Move guts...
36230         * tests/test-symlink.h (test_symlink): ...into new file.
36231         * tests/test-symlinkat.c (main): Use new files for further
36232         coverage.
36233         (do_symlink, do_readlink): New helper functions.
36234         * modules/symlink-tests (Files): Ship new file.
36235         (Depends-on): Add stdbool.
36236         * modules/readlink-tests (Files): Ship new file.
36237         (Depends-on): Add stdbool.
36238         * modules/symlinkat-tests (Files): Use new files.
36239
36240 2009-09-23  Eric Blake  <ebb9@byu.net>
36241
36242         readlink: document portability issue with symlink length
36243         * doc/posix-functions/lstat.texi (lstat): Mention that some file
36244         systems have bogus st_size on symlinks, and mention the
36245         areadlink-with-size module.
36246         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36247         * doc/posix-functions/readlink.texi (readlink): Mention the
36248         areadlink module, and ERANGE failure.
36249         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36250         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
36251
36252         readlink: fix Solaris 9 bug with trailing slash
36253         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
36254         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
36255         * doc/posix-functions/readlink.texi (readlink): Document this.
36256         * modules/readlink-tests: New test.
36257         * tests/test-readlink.c: Likewise.
36258
36259         readlink: fix cygwin 1.5.x bug with return type
36260         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
36261         * lib/unistd.in.h (readlink): Use ssize_t.
36262         * lib/readlink.c (readlink): Likewise.
36263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36264         * modules/unistd (Makefile.am): Substitute it.
36265         * lib/unistd.in.h (readlink): Declare replacement.
36266         * doc/posix-functions/readlink.texi (readlink): Document this.
36267
36268         symlink: use throughout gnulib
36269         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
36270         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
36271         symlink is not used.
36272         * modules/symlinkat (Depends-on): Add symlink.
36273         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36274         * modules/canonicalize-tests (Depends-on): Likewise.
36275         * modules/lstat-tests (Depends-on): Likewise.
36276         * modules/openat-tests (Depends-on): Likewise.
36277         * modules/remove-tests (Depends-on): Likewise.
36278         * modules/rmdir-tests (Depends-on): Likewise.
36279         * modules/unlink-tests (Depends-on): Likewise.
36280         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
36281         * tests/test-canonicalize.c (symlink): Likewise.
36282         * tests/test-fstatat.c (symlink): Likewise.
36283         * tests/test-lstat.c (symlink): Likewise.
36284         * tests/test-remove.c (symlink): Likewise.
36285         * tests/test-rmdir.c (symlink): Likewise.
36286         * tests/test-unlink.c (symlink): Likewise.
36287         * tests/test-unlinkat.c (symlink): Likewise.
36288
36289         symlink: new module, for Solaris 9 bug
36290         * modules/symlink: New file.
36291         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
36292         * lib/symlink.c: Likewise.
36293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
36294         * modules/unistd (Makefile.am): Substitute them.
36295         * lib/unistd.in.h (symlink): Declare replacement.
36296         * MODULES.html.sh (File system functions): Mention it.
36297         * doc/posix-functions/symlink.texi (symlink): Likewise.
36298         * modules/symlink-tests: New test.
36299         * tests/test-symlink.c: Likewise.
36300
36301 2009-09-23  Bruno Haible  <bruno@clisp.org>
36302
36303         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
36304         when needed.
36305         Test case: gnulib-tool --import --with-tests atexit inttypes.
36306         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
36307
36308 2009-09-23  Bruno Haible  <bruno@clisp.org>
36309
36310         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
36311         subcommand, not in a subshell.
36312
36313 2009-09-22  Eric Blake  <ebb9@byu.net>
36314
36315         unistd: sort replacement declarations
36316         * lib/unistd.in.h: Sort declarations.
36317
36318         open, openat: minor optimization
36319         * lib/open.c (open): If open succeeded, len is non-zero.
36320         * lib/openat.c (rpl_openat): Likewise.
36321
36322         link-follow: ensure correct result
36323         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
36324         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
36325         distinguish between possible failures.
36326
36327 2009-09-21  Eric Blake  <ebb9@byu.net>
36328
36329         fts: avoid compiler warning
36330         * lib/fts.c (dirent_inode_sort_may_be_useful)
36331         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
36332
36333 2009-09-19  Bruno Haible  <bruno@clisp.org>
36334
36335         * lib/progreloc.c (canonicalize_file_name): New declaration.
36336
36337 2009-09-19  Eric Blake  <ebb9@byu.net>
36338
36339         link: fix quoting
36340         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
36341
36342         openat: fix openat bugs on Solaris 9
36343         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
36344         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
36345         * modules/openat (Depends-on): Add open.
36346         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
36347         * modules/fcntl-h (Makefile.am): Substitute it.
36348         * lib/fcntl.in.h (openat): Declare replacement.
36349         * doc/posix-functions/openat.texi (openat): Document this.
36350
36351         openat: move fstatat and unlinkat into correct files
36352         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
36353         compiled.
36354         * lib/openat.c (fstatat, unlinkat): Move...
36355         * lib/fstatat.c (fstatat): ...into correct files.
36356         * lib/unlinkat.c (unlinkat): Likewise.
36357
36358         openat: fix unlinkat bugs on Solaris 9
36359         * lib/unlinkat.c (unlinkat): New file.
36360         * modules/openat (Depends-on): Add unlink.
36361         (Files): Distribute it.
36362         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
36363         trailing slash behavior is broken.
36364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36365         * modules/unistd (Makefile.am): Substitute it.
36366         * lib/unistd.in.h (unlinkat): Declare replacement.
36367         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
36368
36369         openat: fix fstatat bugs on Solaris 9
36370         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
36371         stat.
36372         * doc/posix-functions/fstatat.texi (fstatat): Document this.
36373
36374         test-unlinkat: enhance test, to expose Solaris 9 bug
36375         * tests/test-unlink.c (main): Factor guts...
36376         * tests/test-unlink.h (test_rmdir_func): ...into new file.
36377         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
36378         * tests/test-rmdir.c (main): Adjust caller.
36379         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
36380         (unlinker): New helper function.
36381         (rmdirat): Enhance check.
36382         * modules/rmdir-tests (Depends-on): Add stdbool.
36383         * modules/unlink-tests (Depends-on): Likewise.
36384         (Files): Add test-unlink.h.
36385         * modules/openat-tests (Files): Likewise.
36386         (Depends-on): Add unlinkdir.
36387
36388         test-fstatat: new test, to expose Solaris 9 bugs
36389         * tests/test-stat.c (main): Factor guts...
36390         * tests/test-stat.h (test_stat_func): ...into new file.
36391         * tests/test-lstat.c (main): Factor guts...
36392         * tests/test-lstat.h (test_lstat_func): ...into new file.
36393         * tests/test-fstatat.c: New file.
36394         * modules/stat-tests (Files): Add test-stat.h.
36395         * modules/lstat-tests (Files): Add test-lstat.h.
36396         (Depends-on): Add stdbool.
36397         * modules/openat-tests (Depends-on): Add pathmax.
36398         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
36399         (Makefile.am): Run new test.
36400
36401         remove: new module, for mingw and Solaris 9 bugs
36402         * modules/remove: New file.
36403         * lib/remove.c: Likewise.
36404         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
36405         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36406         * modules/stdio (Makefile.am): Use them.
36407         * lib/stdio.in.h (remove): Declare replacement.
36408         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36409         * doc/posix-functions/remove.texi (remove): Likewise.
36410         * modules/remove-tests: New test.
36411         * tests/test-remove.c: Likewise.
36412
36413         unlink: new module, for Solaris 9 bug
36414         * modules/unlink: New file.
36415         * lib/unlink.c: Likewise.
36416         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
36417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36418         * modules/unistd (Makefile.am): Use them.
36419         * lib/unistd.in.h (stat): Declare replacement.
36420         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36421         * doc/posix-functions/unlink.texi (unlink): Likewise.
36422         * modules/unlink-tests: New test.
36423         * tests/test-unlink.c: Likewise.
36424
36425         lstat: fix Solaris 9 bug
36426         * lib/lstat.c (lstat): Also check for trailing slash on
36427         non-symlink, non-directories.  Use stat module to simplify logic.
36428         * doc/posix-functions/lstat.texi (lstat): Document it.
36429         * modules/lstat-tests (Depends-on): Add errno, same-inode.
36430         (configure.ac): Check for symlink.
36431         * tests/test-lstat.c (main): Add more tests.
36432
36433         stat: add as dependency to other modules
36434         * modules/chown (Depends-on): Add stat.
36435         * modules/euidaccess (Depends-on): Likewise.
36436         * modules/fchdir (Depends-on): Likewise.
36437         * modules/isdir (Depends-on): Likewise.
36438         * modules/link (Depends-on): Likewise.
36439         * modules/lstat (Depends-on): Likewise.
36440         * modules/mkdir-p (Depends-on): Likewise.
36441         * modules/modechange (Depends-on): Likewise.
36442         * modules/open (Depends-on): Likewise.
36443         * modules/readlink (Depends-on): Likewise.
36444         * modules/same (Depends-on): Likewise.
36445
36446         stat: fix Solaris 9 bug
36447         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
36448         slash.
36449         * lib/stat.c (rpl_stat): Work around it.
36450         * doc/posix-functions/stat.texi (stat): Update documentation.
36451
36452         stat: new module, for mingw bug
36453         * modules/stat: New file.
36454         * lib/stat.c: Likewise.
36455         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36456         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36457         * modules/sys_stat (Makefile.am): Use them.
36458         * lib/sys_stat.in.h (stat): Declare replacement.
36459         * lib/openat.c (fstatat): Deal with lstat and stat being function
36460         macros.
36461         * modules/openat (Depends-on): Add inline.
36462         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36463         * doc/posix-functions/stat.texi (stat): Likewise.
36464         * modules/stat-tests: New test.
36465         * tests/test-stat.c: Likewise.
36466
36467 2009-09-19  Jim Meyering  <meyering@redhat.com>
36468
36469         syntax-check: detect unnecessary inclusion of canonicalize.h
36470         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
36471
36472 2009-09-19  Eric Blake  <ebb9@byu.net>
36473
36474         canonicalize-lgpl: adjust clients to use correct header
36475         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36476         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
36477         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
36478         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
36479         * lib/progreloc.c (includes): Likewise.
36480
36481 2009-09-19  Jim Meyering  <meyering@redhat.com>
36482
36483         test-posixtm.c: correct a comment
36484         * tests/test-posixtm.c: Correct first-line comment.
36485         Spotted by Eric Blake.
36486
36487 2009-09-16  Jim Meyering  <meyering@redhat.com>
36488
36489         posixtm-tests: make T const-correct; add a test case
36490         * tests/test-posixtm.c (T): Declare const.
36491         Add a test for -(2^31+1).
36492         Remove useless can-succeed-only-in-2002 test.
36493
36494         posixtm-tests: adjust the sole failing test
36495         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
36496         expected output matches what mktime now produces.  Cross-checked via
36497         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
36498
36499         posixtm: move #ifdef'd tests into a new module
36500         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
36501         * tests/test-posixtm.c: ... this new file.
36502         * modules/posixtm-tests: New module.
36503
36504 2009-09-19  Eric Blake  <ebb9@byu.net>
36505
36506         openat: simplify use of at-func.c
36507         * lib/at-func.c (includes): Include prerequisites here, to
36508         simplify requirements on client files.
36509         * lib/openat-priv.h: Add double-inclusion guard.
36510         * lib/faccessat.c (includes): Simplify.
36511         * lib/fchmodat.c (includes): Likewise.
36512         * lib/fchownat.c (includes): Likewise.
36513         * lib/mkdirat.c (includes): Likewise.
36514         * lib/mkfifoat.c (includes): Likewise.
36515         * lib/symlinkat.c (includes): Likewise.
36516
36517         openat: allow return of fd 0
36518         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
36519         * modules/save-cwd (Depends-on): Replace fcntl-safer with
36520         unistd-safer.
36521         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
36522         <fcntl.h>; this module does not leak fds.
36523         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
36524         must be allowed to return 0, leaving openat_safer to add the
36525         safety.
36526         (openat_permissive): Avoid writing to just-opened fd 2 if
36527         restoring the current directory fails.
36528         * lib/openat-die.c (openat_restore_fail): Add comment.
36529         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
36530         (save_cwd): Guarantee safe fd, but without use of open_safer.
36531         * tests/test-openat.c: New test.
36532         * modules/openat-tests (Files, Makefile.am): Distribute and build
36533         new file.
36534
36535         relocatable-prog-wrapper: fix build
36536         * modules/relocatable-prog-wrapper (Files): Update name of
36537         canonicalize m4 file, broken on 2009-09-17.
36538         Reported by emad hajjar <aleppos@hotmail.com>.
36539
36540 2009-09-19  Bruno Haible  <bruno@clisp.org>
36541
36542         * lib/safe-alloc.h: Use the standard header with GPL copyright.
36543         * lib/safe-alloc.c: Likewise.
36544         Reported by Ian Beckwith <ianb@erislabs.net>.
36545
36546 2009-09-18  Bruno Haible  <bruno@clisp.org>
36547
36548         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
36549         Reported by <erobles@sensacd.com.mx>.
36550
36551 2009-09-17  Eric Blake  <ebb9@byu.net>
36552
36553         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
36554         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
36555         slashes when checking if last component is missing.
36556         * tests/test-canonicalize.c (main): Test this.
36557
36558         canonicalize, canonicalize-lgpl: honor // if distinct from /
36559         * modules/canonicalize (Files): Add double-slash-root.m4.
36560         * modules/canonicalize-lgpl (Files): Likewise.
36561         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36562         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
36563         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
36564         fallback definition.
36565         (canonicalize_filename_mode): Use it to protect //.
36566         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
36567         (__realpath): Likewise.
36568         * tests/test-canonicalize.c (main): Test this.
36569         * tests/test-canonicalize-lgpl.c (main): Likewise.
36570         * modules/canonicalize-tests (Depends-on): Add same-inode.
36571         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36572
36573         canonicalize-lgpl: fix glibc bug with trailing slash
36574         * m4/canonicalize-lgpl.m4: Move contents...
36575         * m4/canonicalize.m4: ...here.
36576         (gl_CANONICALIZE_LGPL): Factor realpath check...
36577         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
36578         glibc 2.3.5 bug, fixed 2005-04-27.
36579         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
36580         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
36581         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
36582         * modules/canonicalize-lgpl (Files): Manage file rename.
36583         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36584         * modules/stdlib (Makefile.am): Substitute witness.
36585         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
36586         is needed.
36587         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
36588         replacement is required.
36589         * lib/canonicalize.c (canonicalize_file_name): Likewise.
36590         * doc/glibc-functions/canonicalize_file_name.texi
36591         (canonicalize_file_name): Document this.
36592         * doc/posix-functions/realpath.texi (realpath): Likewise.
36593
36594         canonicalize-lgpl: reject non-directory with trailing slash
36595         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
36596         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
36597         catches failures in glibc 2.3.5.
36598         * tests/test-canonicalize.c (main): Likewise.
36599
36600         canonicalize-lgpl: use native realpath if it works
36601         * lib/canonicalize-lgpl.c (realpath): Guard with
36602         FUNC_REALPATH_WORKS.
36603         * lib/stdlib.in.h (realpath): Make declaration optional based on
36604         HAVE_REALPATH.
36605         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
36606         native realpath works.
36607         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36608         * modules/stdlib (Makefile.am): Substitute witness.
36609
36610         canonicalize, canonicalize-lgpl: use <stdlib.h>
36611         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
36612         (Include): Mention <stdlib.h>.
36613         (configure.ac): Mention functions we provide.
36614         * modules/canonicalize (configure.ac): Likewise.
36615         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
36616         realpath if canonicalize_file_name is missing.
36617         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
36618         * modules/stdlib (Makefile.am): Substitute witnesses.
36619         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
36620         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
36621         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
36622         * NEWS: Document this.
36623         * doc/glibc-functions/canonicalize_file_name.texi
36624         (canonicalize_file_name): Likewise.
36625         * doc/posix-functions/realpath.texi (realpath): Likewise.
36626         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
36627
36628         test-canonicalize: consolidate into single C program
36629         * tests/test-canonicalize.sh: Delete; move setup into...
36630         * tests/test-canonicalize.c (main): ...the program, making it
36631         easier to run in debugger.  Add some tests.
36632         * modules/canonicalize-tests (Files): Remove unused file.
36633         (Depends-on): Add progname.
36634         (configure.ac, Makefile.am): Simplify.
36635
36636         test-canonicalize-lgpl: consolidate into single C program
36637         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
36638         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
36639         easier to run in debugger.  Add some tests.
36640         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
36641         (configure.ac, Makefile.am): Simplify.
36642
36643         canonicalize: avoid resolvepath
36644         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
36645         unnecessary checks.
36646         * lib/canonicalize.c (includes): Simplify.
36647         (canonicalize_file_name): Drop resolvepath implementation.
36648         * modules/canonicalize (Depends-on): Drop filenamecat.
36649
36650         canonicalize: don't lose errno
36651         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
36652         over calls to free.
36653
36654         canonicalize: simplify errno handling
36655         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
36656         assignment.
36657
36658         canonicalize, canonicalize-lgpl: update module dependencies
36659         * modules/canonicalize (Depends-on): Add extensions, lstat,
36660         pathmax, stdlib.
36661         (Files): Drop pathmax.h.
36662         (configure.ac): Adjust macro name.
36663         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
36664         lstat, stdlib, sys_stat.
36665         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
36666         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
36667         extensions.
36668         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
36669         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
36670         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
36671         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
36672         declaration, if available.
36673         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
36674         we can rely on the readlink module.
36675         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
36676         (includes): Use <unistd.h> unconditionally.
36677
36678 2009-09-17  Eric Blake  <ebb9@byu.net>
36679
36680         maint: make Include sections of modules consistent
36681         * modules/alloca: Use only header name; no need to list #include.
36682         * modules/alloca-opt: Likewise.
36683         * modules/arpa_inet: Likewise.
36684         * modules/canon-host: Likewise.
36685         * modules/configmake: Likewise.
36686         * modules/dirent: Likewise.
36687         * modules/eealloc: Likewise.
36688         * modules/environ: Likewise.
36689         * modules/fchdir: Likewise.
36690         * modules/fcntl: Likewise.
36691         * modules/fcntl-h: Likewise.
36692         * modules/gethrxtime: Likewise.
36693         * modules/gettime: Likewise.
36694         * modules/ignore-value: Likewise.
36695         * modules/inet_ntop: Likewise.
36696         * modules/inet_pton: Likewise.
36697         * modules/inttypes: Likewise.
36698         * modules/isnand-nolibm: Likewise.
36699         * modules/isnanf-nolibm: Likewise.
36700         * modules/mbchar: Likewise.
36701         * modules/mbfile: Likewise.
36702         * modules/mbiter: Likewise.
36703         * modules/mbuiter: Likewise.
36704         * modules/netdb: Likewise.
36705         * modules/netinet_in: Likewise.
36706         * modules/nproc: Likewise.
36707         * modules/pagealign_alloc: Likewise.
36708         * modules/poll: Likewise.
36709         * modules/printf-frexp: Likewise.
36710         * modules/pthread: Likewise.
36711         * modules/putenv: Likewise.
36712         * modules/random_r: Likewise.
36713         * modules/relocatable-prog: Likewise.
36714         * modules/search: Likewise.
36715         * modules/select: Likewise.
36716         * modules/selinux-h: Likewise.
36717         * modules/settime: Likewise.
36718         * modules/signal: Likewise.
36719         * modules/size_max: Likewise.
36720         * modules/socklen: Likewise.
36721         * modules/ssize_t: Likewise.
36722         * modules/stdarg: Likewise.
36723         * modules/stdbool: Likewise.
36724         * modules/stddef: Likewise.
36725         * modules/stdint: Likewise.
36726         * modules/stdio: Likewise.
36727         * modules/stdlib: Likewise.
36728         * modules/string: Likewise.
36729         * modules/strings: Likewise.
36730         * modules/sys_file: Likewise.
36731         * modules/sys_ioctl: Likewise.
36732         * modules/sys_select: Likewise.
36733         * modules/sys_socket: Likewise.
36734         * modules/sys_stat: Likewise.
36735         * modules/sys_time: Likewise.
36736         * modules/sys_times: Likewise.
36737         * modules/sys_utsname: Likewise.
36738         * modules/sys_wait: Likewise.
36739         * modules/sysexits: Likewise.
36740         * modules/time: Likewise.
36741         * modules/times: Likewise.
36742         * modules/tmpfile: Likewise.
36743         * modules/trim: Likewise.
36744         * modules/unistd: Likewise.
36745         * modules/wchar: Likewise.
36746         * modules/wctype: Likewise.
36747
36748 2009-09-17  Bruno Haible  <bruno@clisp.org>
36749
36750         Make getdate.y compile on QNX and NetBSD 5 / i386.
36751         * m4/getdate.m4 (gl_GETDATE): Conditionally define
36752         TIME_T_FITS_IN_LONG_INT.
36753         * lib/getdate.y (long_time_t): New type.
36754         (relative_time): Change type of 'seconds' field to long_time_t.
36755         (get_date): Update types of local variables. Check against overflow
36756         during conversion from long_time_t to time_t.
36757         Reported by Matt Kraai <kraai@ftbfs.org>
36758         and Hasso Tepper <hasso@netbsd.org>.
36759
36760 2009-09-17  Bruno Haible  <bruno@clisp.org>
36761
36762         * modules/COPYING: Update copyright years.
36763         * modules/README: Likeiwse.
36764         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
36765         Reported by Ian Beckwith <ianb@erislabs.net>.
36766
36767 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36768
36769         * users.txt: Update references for gnuit package.
36770
36771 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36772
36773         * m4/getdelim.m4: Fix typo in copyright line.
36774
36775 2009-09-17  Bruno Haible  <bruno@clisp.org>
36776
36777         * lib/atoll.c: Use the standard header with GPL copyright.
36778         * lib/argz.in.h: Likewise.
36779         * lib/glob.c: Likewise.
36780         * lib/glob-libc.h: Likewise.
36781         * lib/random_r.c: Likewise.
36782         * lib/siglist.h: Likewise.
36783         * lib/strsignal.c: Likewise.
36784         Reported by Ian Beckwith <ianb@erislabs.net>.
36785
36786 2009-09-17  Eric Blake  <ebb9@byu.net>
36787
36788         rmdir: ensure correct dependency order
36789         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
36790
36791 2009-09-17  Bruno Haible  <bruno@clisp.org>
36792
36793         Disable assertion that fails on NetBSD 5 / i386.
36794         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
36795         Reported by Sam Steingold <sds@gnu.org>
36796         and Hasso Tepper <hasso@netbsd.org>.
36797
36798 2009-09-16  Eric Blake  <ebb9@byu.net>
36799
36800         unlinkdir: port to mingw
36801         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
36802         on which no one can unlink a directory.
36803
36804         stdlib: sort witness names
36805         * modules/stdlib (Makefile.am): Sort replacements.
36806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36807         * lib/stdlib.in.h: Likewise.
36808
36809         parse-duration-tests: avoid link failure
36810         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
36811         LIBINTL.
36812         Reported by Tom G. Christensen.
36813
36814         openat-tests: ensure unlinkat behaves like rmdir
36815         * tests/test-rmdir.c (main): Factor guts...
36816         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
36817         * modules/rmdir-tests (Files): Ship new file.
36818         * modules/openat-tests: New test.
36819         * tests/test-unlinkat.c: Likewise.
36820
36821         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
36822         * modules/rmdir-errno (Status, Notice): Now obsolete.
36823
36824         rmdir: work around cygwin 1.5.x and mingw bugs
36825         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
36826         * lib/rmdir.c (rmdir): Work around it.
36827         * modules/rmdir (Status, Notice): No longer obsolete.
36828         (Files): Add dos.m4.
36829         (Depends-on): Add unistd.
36830         (configure.ac): Set witnesses.
36831         (License): Relax to LGPLv2+.
36832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
36833         * modules/unistd (Makefile.am): Substitute witnesses.
36834         * lib/unistd.in.h (rmdir): Declare replacement.
36835         * doc/posix-functions/rmdir.texi (rmdir): Document this.
36836         * modules/rmdir-tests: New tests.
36837         * tests/test-rmdir.c: Likewise.
36838
36839 2009-09-15  Eric Blake  <ebb9@byu.net>
36840
36841         fchdir: improve use of replacement functions
36842         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
36843         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
36844         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
36845         REPLACE_CLOSEDIR.
36846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
36847         * modules/sys_stat (Makefile.am): Substitute correct witness.
36848         * modules/dirent (Makefile.am): Likewise.
36849         * modules/unistd (Makefile.am): Likewise.
36850         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
36851         * lib/unistd.in.h (dup): Likewise.
36852         * lib/sys_stat.in.h (fstat): Likewise.
36853
36854         maint: ignore gnulib-tool temp files
36855         * .gitignore: Ignore files created during gnulib-tool --test.
36856
36857 2009-09-13  Jim Meyering  <meyering@redhat.com>
36858
36859         posixtm: don't reject a time that specify "60" as the number of seconds
36860         * lib/posixtm.c (posixtime): The code to reject invalid dates
36861         would also reject a time specified with the .60 suffix.
36862         But POSIX allows that, in order to accommodate leap seconds.
36863         So don't reject it.
36864         (main): Adjust tests accordingly.
36865         * modules/posixtm (Depends-on): Add stpcpy.
36866
36867 2009-09-11  Jim Meyering  <meyering@redhat.com>
36868
36869         announce-gen: include [$release_type] in emitted Subject:
36870         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
36871         e.g., [stable] in the emitted Subject: line.
36872
36873 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36874
36875         Remove obsolete macros from several modules.
36876         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
36877         obsolete Autoconf macros with their modern counterparts.
36878         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
36879         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
36880         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
36881         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
36882         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
36883         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36884         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36885         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36886         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
36887         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
36888         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
36889         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
36890         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
36891         * m4/sockets.m4 (gl_SOCKETS): Likewise.
36892         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
36893         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
36894         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36895         * m4/time_r.m4 (gl_TIME_R): Likewise.
36896         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
36897         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
36898         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36899
36900         Fix copyright header in build-aux scripts.
36901         * build-aux/git-version-gen: Fix copyright header to match GPLv3
36902         recommendation.
36903         * build-aux/ncftpput-ftp: Likewise.
36904         * build-aux/update-copyright: Likewise.
36905
36906 2009-09-09  Eric Blake  <ebb9@byu.net>
36907
36908         test-link: allow Linux choice of errno
36909         * tests/test-link.c (main): Relax test for alternate error.
36910
36911         strndup: fix improper m4 caching
36912         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
36913         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
36914         (gl_PREREQ_STRNDUP): Delete.
36915         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
36916         * modules/string (Makefile.am): Substitute it.
36917         * lib/string.in.h (strndup): Modernize prototype.
36918
36919         getcwd: port to mingw
36920         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
36921         different from the POSIX assumptions made throughout the getcwd
36922         module; fortunately, the mingw getcwd does not need replacement.
36923         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
36924         * modules/getcwd-tests: New test.
36925         * tests/test-getcwd.c: Likewise.
36926
36927         link: fix platform bugs
36928         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
36929         * lib/link.c (link): Work around them.  Fix related mingw bug.
36930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
36931         * modules/unistd (Makefile.am): Substitute it.
36932         * lib/unistd.in.h (link): Declare replacement.
36933         * doc/posix-functions/link.texi (link): Document this.
36934         * modules/link (Depends-on): Add strdup-posix, sys_stat.
36935
36936         test-link: consolidate into single C program, test more cases
36937         * tests/test-link.sh: Delete.
36938         * tests/test-link.c: Test more error conditions.  Exposes bugs on
36939         at least Cygwin and Solaris.
36940         * modules/link-tests (Files): Remove unused file.
36941         (Depends-on): Add errno, sys_stat.
36942         (Makefile.am): Simplify.
36943
36944 2009-09-08  Bruno Haible  <bruno@clisp.org>
36945
36946         Work around towlower, towupper bug on mingw.
36947         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
36948         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
36949         * doc/posix-functions/towlower.texi: Mention the mingw bug.
36950         * doc/posix-functions/towupper.texi: Likewise.
36951         Reported by Eric Blake.
36952
36953 2009-09-08  Jim Meyering  <meyering@redhat.com>
36954
36955         build: don't try to run autoheader if we don't use it
36956         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
36957         is not used in configure.ac.
36958
36959 2009-09-08  Eric Blake  <ebb9@byu.net>
36960
36961         euidaccess: fix compilation error
36962         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
36963
36964         rawmemchr: relax license
36965         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
36966         okay.
36967         Reported by Jim Meyering.
36968
36969         mkfifoat: new module
36970         * modules/mkfifoat: New file.
36971         * lib/mkfifoat.c: Likewise.
36972         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
36973         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36974         * modules/sys_stat (Makefile.am): Use them.
36975         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
36976         * MODULES.html.sh (File system functions): Mention module.
36977         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36978         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36979         * modules/mkfifoat-tests: New test.
36980         * tests/test-mkfifoat.c: Likewise.
36981
36982         strchrnul: relax license
36983         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
36984         okay.
36985         Reported by Jim Meyering.
36986
36987 2009-09-08  Eric Blake  <ebb9@byu.net>
36988
36989         fstatat: fix compilation on Solaris
36990         * lib/fstatat.c (includes): Add fcntl.h.
36991         Reported by Pádraig Brady.
36992
36993 2009-09-07  Eric Blake  <ebb9@byu.net>
36994
36995         rename: modernize replacement
36996         * modules/rename (Depends-on): Add stdio.
36997         (configure.ac): Declare witness.
36998         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
36999         stdio take care of replacement.
37000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37001         * modules/stdio (Makefile.am): Substitute them.
37002         * lib/stdio.in.h (rename): Declare replacement.
37003         * lib/rename.c (includes): Allow cross-compilation to non-windows
37004         machines.
37005         * doc/posix-functions/rename.texi (rename): Improve
37006         documentation.
37007
37008         stdio: sort witness names
37009         * modules/stdio (Makefile.am): Sort replacements.
37010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37011         * lib/stdio.in.h: Likewise.
37012
37013         getcwd: minor cleanups
37014         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
37015         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
37016
37017         openat: provide more convenience names
37018         * modules/faccessat (configure.ac): Add C witness.
37019         * lib/unistd.in.h (readlinkat): Fix typo.
37020         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
37021         convenience wrappers.
37022         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
37023         wrappers in syntax checks.
37024
37025 2009-09-06  Eric Blake  <ebb9@byu.net>
37026
37027         doc: fix comments in recent patches
37028         * lib/faccessat.c: Mention correct function.
37029         * lib/fchmodat.c: Likewise.
37030         * lib/fchownat.c: Likewise.
37031         * lib/symlinkat.c: Likewise.
37032         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
37033         constants.
37034
37035         faccessat, symlinkat: continue cleanup of previous patch
37036         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
37037         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37038         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
37039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
37040         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
37041         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
37042         set.
37043
37044 2009-09-06  Bruno Haible  <bruno@clisp.org>
37045
37046         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
37047         (fstatat): Declare if GNULIB_FSTATAT is set.
37048         (mkdirat): Declare if GNULIB_MKDIRAT is set.
37049         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
37050         (unlinkat): Declare if GNULIB_UNLINKAT is set.
37051         * modules/fcntl-h (Files): Remove m4/openat.m4.
37052         * modules/sys_stat (Files): Remove m4/openat.m4.
37053         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
37054         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
37055         * modules/unistd (Files): Remove m4/openat.m4.
37056         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
37057         GNULIB_OPENAT.
37058         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
37059         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
37060         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
37061         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
37062         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
37063         gl_OPENAT_DEFAULTS.
37064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
37065         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
37066         Don't require gl_OPENAT_DEFAULTS.
37067         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
37068         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
37069         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
37070         (gl_OPENAT_DEFAULTS): Remove macro.
37071
37072 2009-09-06  Bruno Haible  <bruno@clisp.org>
37073
37074         * modules/openat (configure.ac): Remove unneeded witness.
37075
37076 2009-09-06  Bruno Haible  <bruno@clisp.org>
37077
37078         Set errno to ENOSYS when a function is entirely unsupported.
37079         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
37080         EOPNOTSUPP.
37081         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37082         * modules/chown (Depends-on): Remove errno.
37083
37084 2009-09-06  Bruno Haible  <bruno@clisp.org>
37085
37086         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
37087
37088 2009-09-06  Bruno Haible  <bruno@clisp.org>
37089
37090         * lib/sys_stat.in.h: Fix preprocessor command indentation.
37091
37092 2009-09-06  Ben Pfaff  <blp@gnu.org>
37093             Bruno Haible  <bruno@clisp.org>
37094
37095         Work around a glibc bug in strtok_r.
37096         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
37097         Undefine if UNDEFINE_STRTOK_R is set.
37098         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
37099         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37100         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
37101         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
37102         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
37103         UNDEFINE_STRTOK_R.
37104         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
37105
37106 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
37107
37108         exclude: minor fix
37109         * lib/exclude.c: Include wctype.h
37110
37111 2009-09-06  Akim Demaille  <demaille@gostai.com>
37112
37113         bootstrap: improve error message
37114         * build-aux/bootstrap (find_tool): Upon failure, report the list
37115         of candidates.
37116         Honor the initial value of the envvar.
37117
37118 2009-09-05  Eric Blake  <ebb9@byu.net>
37119
37120         symlinkat: new module
37121         * modules/symlinkat: New file.
37122         * lib/symlinkat.c: Likewise.
37123         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
37124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37125         * modules/unistd (Makefile.am): Use them.
37126         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
37127         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
37128         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
37129         * MODULES.html.sh (File system functions): Mention module.
37130         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37131         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37132         * modules/symlinkat-tests: New test.
37133         * tests/test-symlinkat.c: Likewise.
37134
37135         test-openat-safer: add more checks
37136         * tests/test-openat-safer.c (main): Check more code paths.
37137
37138 2009-09-05  Jim Meyering  <meyering@redhat.com>
37139
37140         syntax-check: detect unnecessary inclusion of openat.h
37141         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
37142
37143 2009-09-05  Bruno Haible  <bruno@clisp.org>
37144
37145         Support towlower, towupper.
37146         * doc/posix-functions/towlower.texi: Mention module wctype.
37147         * doc/posix-functions/towupper.texi: Likewise.
37148         * lib/wctype.in.h (towlower, towupper): New functions.
37149         * tests/test-wctype.c: Include stdio.h, stdlib.h.
37150         (ASSERT): New macro.
37151         (e): New variable.
37152         (main): Test also towlower, towupper. Test WEOF argument.
37153         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37154
37155 2009-09-05  Bruno Haible  <bruno@clisp.org>
37156
37157         Fix conversion behaviour when the input is invalid.
37158         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
37159         mark occurring in first pass of indirect conversion.
37160         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
37161         input.
37162         Found by clang's static analyzer.
37163
37164 2009-09-05  Bruno Haible  <bruno@clisp.org>
37165
37166         * tests/test-striconveh.c (main): Test indirect conversion on platforms
37167         where direct conversion is possible.
37168
37169 2009-09-04  Eric Blake  <ebb9@byu.net>
37170
37171         openat: fail with ENOENT on empty name
37172         * lib/openat-proc.c (openat_proc_name): Special-case the empty
37173         buffer.
37174
37175         link-follow: fix logic bug in prior patch
37176         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
37177         reversed sense of yes and no in prior patch.  Avoid confusing
37178         compilation failure with desired semantics.
37179
37180         link-follow: accomodate mingw and cross-compilation
37181         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
37182         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
37183         cross-compilation results to -1, to make linkat easier to
37184         implement when cross-compiling.  Trivially support mingw.
37185         * modules/link-follow (configure.ac): Call new name.
37186         * NEWS: Mention this.
37187
37188 2009-09-03  Eric Blake  <ebb9@byu.net>
37189
37190         faccessat: compile replacement
37191         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
37192         needed.
37193
37194         fts: fix compilation error
37195         * lib/fts.c (includes): Re-add "openat.h", for
37196         openat_needs_fchdir.
37197
37198         faccessat: new module
37199         * modules/faccessat: New file.
37200         * lib/faccessat.c: Likewise.
37201         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37203         * modules/unistd (Makefile.am): Use it.
37204         * lib/unistd.in.h (faccessat): Declare it.
37205         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
37206         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
37207         * MODULES.html.sh (File system functions): Mention it.
37208         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
37209         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37210
37211         euidaccess: prefer POSIX over non-standard implementation
37212         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
37213         * lib/euidaccess.c (euidaccess): Use it if available.
37214
37215         openat: make template easier to use
37216         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
37217         AT_FUNC_F2 to be undefined.
37218         (VALIDATE_FLAG): New macro; use it to reject bad flags.
37219         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
37220         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
37221         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
37222         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
37223         Likewise.
37224         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
37225         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
37226         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
37227         Likewise.
37228
37229         openat: declare in POSIX headers
37230         * NEWS: Mention this.
37231         * modules/openat (configure.ac): Declare witnesses.
37232         (Depends-on): Add fcntl-h, sys_stat, unistd.
37233         (Include): Mention correct headers.
37234         * modules/fcntl-h (Depends-on): Add link-warning.
37235         (Files): Add openat.m4.
37236         (Makefile.am): Substitute witnesses.
37237         * modules/sys_stat (Files, Makefile.am): Likewise.
37238         * modules/unistd (Files, Makefile.am): Likewise.
37239         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
37240         (gl_OPENAT_DEFAULTS): New macro.
37241         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
37242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
37243         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
37244         (SYS_STAT_H): Remove unused variable.
37245         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
37246         * lib/fcntl--.h (includes): Remove unneeded header.
37247         * lib/openat-safer.c (includes): Likewise.
37248         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
37249         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
37250         appropriate headers.
37251         (__OPENAT_PREFIX): Delete.
37252         * lib/fcntl.in.h (openat): Provide declaration.
37253         (AT_FDCWD): Fix Solaris bug.
37254         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
37255         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
37256         * lib/fchmodat.c (includes):  Adjust to find declaration.
37257         * lib/fchownat.c (includes): Likewise.
37258         * lib/mkdirat.c (includes): Likewise.
37259         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
37260         still visible.
37261
37262 2009-09-02  Eric Blake  <ebb9@byu.net>
37263
37264         errno: use consistently
37265         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
37266         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
37267         * lib/canonicalize.c (ELOOP): Likewise.
37268         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
37269         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
37270         * lib/lchown.c (EOPNOTSUPP): Likewise.
37271         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
37272         * lib/savewd.c (ESTALE): Likewise.
37273         * lib/settime.c (ENOSYS): Likewise.
37274         * lib/utimens.c (ENOSYS): Likewise.
37275         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
37276         * lib/chdir-safer.c (ELOOP): Likewise.
37277         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
37278         * modules/c-stack (Depends-on): Add errno.
37279         * modules/canonicalize (Depends-on): Likewise.
37280         * modules/chdir-safer (Depends-on): Likewise.
37281         * modules/fdopendir (Depends-on): Likewise.
37282         * modules/inet_ntop (Depends-on): Likewise.
37283         * modules/inet_pton (Depends-on): Likewise.
37284         * modules/lchown (Depends-on): Likewise.
37285         * modules/openat (Depends-on): Likewise.
37286         * modules/savewd (Depends-on): Likewise.
37287         * modules/settime (Depends-on): Likewise.
37288         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
37289
37290         fts: avoid leaking fds
37291         * modules/fts (Depends-on): Add cloexec.
37292         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
37293         flag.
37294
37295         fts: make directory fds more robust
37296         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
37297         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
37298
37299         backupfile, chdir-long, fts, savedir: make safer
37300         * lib/backupfile.c (includes): Use "dirent--.h", since
37301         numbered_backup can write to stderr during readdir.
37302         * lib/savedir.c (includes): Likewise.
37303         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
37304         emulation can write to stderr on failure.
37305         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
37306         * lib/getcwd.c: Document why opendir_safer is unused.
37307         * lib/glob.c: Likewise.
37308         * lib/scandir.c: Likewise.
37309         * lib/openat-proc.c: Likewise, for open_safer.
37310         * modules/backupfile (Depends-on): Add dirent-safer.
37311         * modules/savedir (Depends-on): Likewise.
37312         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
37313         * modules/chdir-long (Depends-on): Add openat-safer.
37314
37315         openat-safer: new module
37316         * modules/openat-safer: New file.
37317         * lib/openat-safer.c: Likewise.
37318         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
37319         * lib/fcntl-safer.h (openat_safer): Declare.
37320         * lib/fcntl--.h (openat): Override.
37321         * MODULES.html.sh (File descriptor based I/O): Mention it.
37322         * lib/openat.h: Add double-inclusion guards.
37323         * lib/openat.c (includes): Only include "fcntl-safer.h", not
37324         "fcntl--.h", so we can implement openat.
37325         * modules/openat-safer-tests: New test.
37326         * tests/test-openat-safer.c: New file.
37327
37328         dirent-safer: new module
37329         * modules/dirent-safer: New file.
37330         * lib/dirent--.h: Likewise.
37331         * lib/dirent-safer.h: Likewise.
37332         * lib/opendir-safer.c: Likewise.
37333         * m4/dirent-safer.m4: Likewise.
37334         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
37335         * modules/dirent-safer-tests: New test.
37336         * tests/test-dirent-safer.c: New file.
37337         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
37338
37339         fdopendir: optimize on mingw
37340         * lib/unistd.in.h (_gl_directory_name): New prototype.
37341         * lib/fchdir.c (_gl_directory_name): Implement it.
37342         (fchdir): Use it to simplify implementation.
37343         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
37344         fchdir, when available, to avoid calling [f]chdir().
37345
37346         fdopendir: split into its own module
37347         * lib/openat.c (fdopendir): Move...
37348         * lib/fdopendir.c: ...into new file.
37349         * modules/fdopendir: New module.
37350         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
37351         * modules/openat (Depends-on): Add fdopendir.
37352         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
37353         fdopendir here.
37354         * modules/savedir (Depends-on): Only need fdopendir, not full
37355         openat.
37356         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
37357         * lib/openat.h (fdopendir): Drop prototype.
37358         * lib/dirent.in.h (fdopendir): Provide prototype.
37359         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
37360         * modules/dirent (Makefile.am): Substitute them.
37361         * MODULES.html.sh (File system functions): Mention it.
37362         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
37363         * modules/fdopendir-tests: New file.
37364         * tests/test-fdopendir.c: Likewise.
37365
37366         fchdir: use more consistent macro convention
37367         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
37368         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
37369         REPLACE_FCHDIR, rather than relying on config.h macros.
37370         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
37371         inside a single make-time REPLACE_FCHDIR block, rather than using
37372         the config.h FCHDIR_REPLACEMENT.
37373         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
37374         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
37375         Manage fstat replacement.
37376         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
37377         REPLACE_FCHDIR.
37378         * modules/sys_stat (Files): Add m4/unistd_h.m4.
37379         (Makefile.am): Substitute REPLACE_FCHDIR.
37380         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
37381         FCHDIR_REPLACEMENT.
37382         * lib/dup-safer.c (dup_safer): Likewise.
37383         * lib/dup2.c (rpl_dup2): Likewise.
37384         * lib/dup3.c (rpl_dup3): Likewise.
37385         * lib/open.c (rpl_open): Likewise.
37386
37387         fchdir: simplify error handling, and support dup3
37388         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
37389         stdbool, malloc-posix, realloc-posix.
37390         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
37391         (ensure_dirs_slot): Return false on allocation failure.
37392         (rpl_dup2): Delete.
37393         (_gl_register_dup): New function.
37394         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
37395         (_gl_register_fd): Close fd on allocation failure.
37396         * lib/fcntl.in.h (_gl_register_fd): Update signature.
37397         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
37398         prototype.
37399         (rpl_dup2_fchdir): Delete prototype.
37400         * lib/open.c (open): Update caller.
37401         * lib/dup2.c (dup2): Track fchdir metadata.
37402         * lib/dup3.c (dup3): Likewise.
37403         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
37404         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
37405
37406 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37407
37408         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
37409         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
37410         don't pass arguments to AC_OUTPUT.
37411
37412 2009-09-02  Bruno Haible  <bruno@clisp.org>
37413
37414         * modules/mkdtemp (License): Relicense under LGPLv2+.
37415         Reported by Paolo Bonzini.
37416
37417 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37418
37419         Replace uses of obsolete autoconf macros in Jim's modules.
37420         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
37421         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
37422         can evoke a warning from autoconf when run with -Wobsolete
37423         enabled.  They were declared obsolete for good reasons (see
37424         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
37425         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
37426         should not continue using the deprecated macros.
37427         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
37428         obsolete Autoconf macros with modern counterparts.
37429         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37430         * m4/dos.m4 (gl_AC_DOS): Likewise.
37431         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
37432         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
37433         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
37434         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
37435         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
37436         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
37437         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
37438         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
37439         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
37440         Likewise.
37441         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
37442         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37443         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
37444         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
37445         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37446         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37447
37448 2009-09-01  Eric Blake  <ebb9@byu.net>
37449
37450         fchdir: fix off-by-one bug in previous patch
37451         * lib/fchdir.c (rpl_fstat): Use correct bounds.
37452         (_gl_unregister_fd): Delete useless if.
37453
37454 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
37455
37456         maint.mk: sort the list of syntax-check rules
37457         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
37458         easier to get a sense of progress when the rules are run sequentially
37459         and take a long time.
37460
37461 2009-09-01  Simon Josefsson  <simon@josefsson.org>
37462
37463         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
37464         * modules/netinet_in: Likewise.
37465         * modules/sys_file: Likewise.
37466         * modules/sys_ioctl: Likewise.
37467         * modules/sys_select: Likewise.
37468         * modules/sys_socket: Likewise.
37469         * modules/sys_stat: Likewise.
37470         * modules/sys_time: Likewise.
37471         * modules/sys_times: Likewise.
37472         * modules/sys_utsname: Likewise.
37473         * modules/sys_wait: Likewise.
37474
37475 2009-09-01  Jim Meyering  <meyering@redhat.com>
37476
37477         fts: help ensure that return values are not ignored
37478         * lib/fts_.h (__GNUC_PREREQ): Define.
37479         (__attribute_warn_unused_result__): Define.
37480         (fts_children, fts_close, fts_open, fts_read): Declare with
37481         __attribute_warn_unused_result__.
37482
37483         fts: fts_close now fails also when closing a dir file descriptor fails
37484         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
37485         and propagate to caller, along with errno.
37486
37487         announce-gen: correct formatting in --help output
37488         * build-aux/announce-gen (usage): Move the one-line description in
37489         --help output "up", to where it belongs, just after Usage:.
37490
37491 2009-08-31  Eric Blake  <ebb9@byu.net>
37492
37493         fchdir: port to mingw
37494         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
37495         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
37496         opened, then use a substitute.
37497         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
37498         replacement.
37499         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
37500         (_gl_register_fd): No need to check stat if open already filters
37501         all directories.
37502         (fchdir): Fix error condition to match POSIX.
37503         * modules/fchdir (Depends-on): Add sys_stat.
37504         * doc/posix-functions/open.texi (open): Document the limitation.
37505         * modules/fchdir-tests: New file.
37506         * tests/test-fchdir.c: Likewise.
37507
37508         canonicalize: allow cross-testing from cygwin to mingw
37509         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
37510         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
37511         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
37512         Likewise.
37513         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
37514         target does not support symlinks.
37515         * tests/test-canonicalize-lgpl.sh: Likewise.
37516
37517         chown: avoid compilation warning on mingw
37518         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
37519         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
37520         mingw.
37521         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37522         * modules/chown (Depends-on): Add errno.
37523
37524 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
37525
37526         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
37527         command.
37528
37529 2009-08-31  Jim Meyering  <meyering@redhat.com>
37530
37531         canonicalize: remove useless initialization
37532         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
37533         initialization of local, "end".
37534
37535 2009-08-30  Bruno Haible  <bruno@clisp.org>
37536
37537         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
37538         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
37539         ENOSYS.
37540
37541 2009-08-30  Bruno Haible  <bruno@clisp.org>
37542
37543         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
37544         /usr/xpg4/bin/tr when it exists.
37545         * tests/test-pipe-filter-gi1.sh: Likewise.
37546
37547 2009-08-30  Bruno Haible  <bruno@clisp.org>
37548
37549         Work around deficient /usr/bin/id program on Solaris.
37550         * tests/test-file-has-acl.sh (ID): New variable.
37551         * tests/test-set-mode-acl.sh (ID): Likewise.
37552         * tests/test-copy-acl.sh (ID): Likewise.
37553         * tests/test-copy-file.sh (ID): Likewise.
37554
37555 2009-08-30  Bruno Haible  <bruno@clisp.org>
37556
37557         New module 'xstriconveh'.
37558         * lib/xstriconveh.h: New file.
37559         * lib/xstriconveh.c: New file.
37560         * modules/xstriconveh: New file.
37561
37562 2009-08-30  Bruno Haible  <bruno@clisp.org>
37563
37564         Make it easier to use mem_cd_iconveh.
37565         * lib/striconveh.h (iconveh_t): New type.
37566         (iconveh_open, iconveh_close): New declarations.
37567         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37568         with a single 'const iconveh_t *' argument.
37569         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
37570         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37571         with a single 'const iconveh_t *' argument.
37572         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
37573         * tests/test-striconveh.c (main): Update.
37574         * NEWS: Mention the change.
37575
37576 2009-08-30  Bruno Haible  <bruno@clisp.org>
37577
37578         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
37579         problem.
37580
37581 2009-08-30  Bruno Haible  <bruno@clisp.org>
37582
37583         Work around iconv_open problem on Solaris.
37584         * lib/iconv_open-solaris.gperf: New file.
37585         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
37586         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
37587         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
37588         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
37589         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
37590         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
37591
37592 2009-08-29  Jim Meyering  <meyering@redhat.com>
37593
37594         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
37595         * top/maint.mk (cvs-check): Remove target; it was just an alias
37596         to the better-named vc-diff-check.
37597         (maintainer-distcheck): Remove rule.  It was used only from
37598         the (alpha/beta/major) target, and all of its commands but one
37599         were coreutils-specific.
37600         (vc-dist): Remove rule.
37601         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
37602         Run vc-diff-check, not vc-dist.
37603         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
37604
37605 2009-08-27  Bruno Haible  <bruno@clisp.org>
37606
37607         * tests/test-bitrotate.c (main): Remove test that uses a shift count
37608         of 0.
37609
37610 2009-08-27  Bruno Haible  <bruno@clisp.org>
37611
37612         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
37613         compilers.
37614         * doc/func.texi: Document the SunPRO C bug.
37615
37616 2009-08-27  Bruno Haible  <bruno@clisp.org>
37617
37618         Fix link error on Solaris.
37619         * tests/test-parse-duration.c (xstrdup): Remove function.
37620
37621 2009-08-26  Pádraig Brady  <P@draigbrady.com>
37622
37623         ignore-value: handle pointer types, too
37624         * lib/ignore-value.h (__attribute__): Remove definition.
37625         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
37626         of a more concise and more-often effective "(void) i" statement.
37627         (ignore_ptr): New function to suppress warnings from functions that
37628         return pointers, and to make it explicit that one function doesn't
37629         handle all cases.
37630
37631 2009-08-25  Bruno Haible  <bruno@clisp.org>
37632
37633         dup2: work around a Linux bug.
37634         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
37635         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
37636         * doc/posix-functions/dup2.texi: Mention the Linux bug.
37637         Reported by Simon Josefsson.
37638
37639 2009-08-25  Jim Meyering  <meyering@redhat.com>
37640
37641         libguestfs uses gnulib
37642         * users.txt: Add libguestfs.
37643
37644 2009-08-24  Eric Blake  <ebb9@byu.net>
37645
37646         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
37647         * lib/pipe2.c (includes): Add binary-io.h.
37648         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
37649
37650 2009-08-24  Bruno Haible  <bruno@clisp.org>
37651
37652         Tolerate declared but missing accept4 syscall.
37653         * lib/accept4.c (accept4): Invoke original accept4 function first, if
37654         available.
37655         * lib/sys_socket.in.h (accept4): If the function is already present,
37656         override it.
37657         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
37658         * modules/accept4 (Makefile.am): Compile accept4.c always.
37659         Reported by Paolo Bonzini and Eric Blake.
37660
37661 2009-08-23  Bruno Haible  <bruno@clisp.org>
37662
37663         New module 'accept4'.
37664         * lib/sys_socket.in.h (accept4): New declaration.
37665         * lib/accept4.c: New file.
37666         * m4/accept4.m4: New file.
37667         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37668         GNULIB_ACCEPT4, HAVE_ACCEPT4.
37669         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
37670         HAVE_ACCEPT4.
37671         * modules/accept4: New file.
37672         * doc/glibc-functions/accept4.texi: Mention the new module.
37673
37674 2009-08-24  Jim Meyering  <meyering@redhat.com>
37675
37676         progname: also set global program_invocation_name, when possible
37677         Before this change, a libtool-enabled program that calls glibc's
37678         error function would report the program name as
37679         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
37680         * modules/progname (configure.ac): Check for a declaration of
37681         program_invocation_name.
37682         * lib/progname.c:  Include <errno.h>.
37683         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
37684         Set program_invocation_name.
37685
37686 2009-08-23  Bruno Haible  <bruno@clisp.org>
37687
37688         * lib/dup3.c: Include <string.h>.
37689
37690 2009-08-23  Bruno Haible  <bruno@clisp.org>
37691
37692         * lib/dup3.c (dup3): Test only once whether the system actually exists.
37693         * lib/pipe2.c (pipe2): Likewise.
37694         Suggested by Eric Blake.
37695
37696 2009-08-23  Bruno Haible  <bruno@clisp.org>
37697
37698         Tolerate declared but missing dup3 syscall.
37699         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
37700         * lib/unistd.in.h (dup3): If the function is already present,
37701         override it.
37702         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
37703         * modules/dup3 (Makefile.am): Compile dup3.c always.
37704         Reported by Paolo Bonzini.
37705
37706 2009-08-23  Bruno Haible  <bruno@clisp.org>
37707
37708         Tolerate declared but missing pipe2 syscall.
37709         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
37710         available.
37711         * lib/unistd.in.h (pipe2): If the function is already present,
37712         override it.
37713         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
37714         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
37715         Reported by Paolo Bonzini.
37716
37717 2009-08-23  Bruno Haible  <bruno@clisp.org>
37718
37719         * lib/pipe2.c (pipe2): Move #ifs inside function.
37720
37721 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37722
37723         quotearg: document limitations of quote_these_too
37724         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
37725         those limitations are created.
37726         * lib/quotearg.h (set_char_quoting): Document that digits and
37727         letters that are special after backslash are not permitted.
37728         (quotearg_char): Cross-reference set_char_quoting documentation.
37729
37730 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
37731
37732         quotearg: implement custom_quoting_style
37733         * lib/quotearg.c: (struct quoting_options): Add left_quote and
37734         right_quote fields.
37735         (set_custom_quoting): New public function.
37736         (quotearg_buffer_restyled): Add left_quote and right_quote
37737         arguments, handle them very much like locale quoting, and update
37738         all uses.
37739         (quotearg_n_custom): New public function.
37740         (quotearg_n_custom_mem): New public function.
37741         (quotearg_custom): New public function.
37742         (quotearg_custom_mem): New public function.
37743         * lib/quotearg.h: Prototype and document new public functions.
37744         (enum quoting_style): For escape_quoting_style and
37745         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
37746         ignored even though they're otherwise like c_quoting_style.
37747         Add custom_quoting_style member and document with comparison to
37748         clocale_quoting_style.
37749         * tests/test-quotearg.c (custom_quotes): New array.
37750         (custom_results): New array.
37751         (main): Extend to test custom quoting.
37752
37753 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37754
37755         quotearg: fix right quote escaping when it's in quote_these_too
37756         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
37757         quote, be sure to prepend only one backslash.
37758         * tests/test-quotearg.c (use_quote_double_quotes): New function.
37759         (main): Test it.
37760
37761 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37762
37763         quotearg-tests: test escaping of embedded locale quotes
37764         * tests/test-quotearg.c (struct result_strings): Add member for
37765         new input.
37766         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
37767         (inputs): Add new input.
37768         (results_g): Add expected results.
37769         (flag_results): Likewise.
37770         (locale_results): Likewise.
37771         (compare_strings): Check those.
37772
37773 2009-08-23  Bruno Haible  <bruno@clisp.org>
37774
37775         Tests for module 'dup3'.
37776         * modules/dup3-tests: New file.
37777         * tests/test-dup3.c: New file.
37778
37779         New module 'dup3'.
37780         * lib/unistd.in.h (dup3): New declaration.
37781         * lib/dup3.c: New file.
37782         * m4/dup3.m4: New file.
37783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
37784         HAVE_DUP3.
37785         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
37786         * modules/dup3: New file.
37787         * doc/glibc-functions/dup3.texi: Mention the new module.
37788
37789 2009-08-23  Bruno Haible  <bruno@clisp.org>
37790
37791         Tweak the dup2 test.
37792         * tests/test-dup2.c (main): Create the test file empty. Verify that an
37793         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
37794         the test file is still empty. Fix argument order of lseek.
37795
37796 2009-08-23  Bruno Haible  <bruno@clisp.org>
37797
37798         Avoid test link errors when the modules getopt-gnu, gettext are used.
37799         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
37800         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37801
37802 2009-08-23  Bruno Haible  <bruno@clisp.org>
37803
37804         Fix getdtablesize() on mingw.
37805         * lib/getdtablesize.c (getdtablesize): Implement differently.
37806         * lib/unistd.in.h (getdtablesize): Improve comment.
37807
37808 2009-08-23  Bruno Haible  <bruno@clisp.org>
37809
37810         New module 'mkostemp'.
37811         Based on Ulrich Drepper's 2007-08-10 change in glibc.
37812         * lib/stdlib.in.h (mksotemp): New declaration.
37813         * lib/mkostemp.c: New file, from glibc with modifications.
37814         * lib/tempname.h (GT_FILE): Remove outdated comment.
37815         (gen_tempname): Add flags argument.
37816         * lib/tempname.c (__GT_BIGFILE): Remove macro.
37817         (__GT_FILE): Map to 1.
37818         (small_open, large_open): Remove macros.
37819         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
37820         * lib/mkstemp.c (mkstemp): Update.
37821         * lib/mkdtemp.c (mkdtemp): Likewise.
37822         * m4/mkostemp.m4: New file.
37823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
37824         HAVE_MKOSTEMP.
37825         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
37826         HAVE_MKOSTEMP.
37827         * modules/mkostemp: New file, based on modules/mkstemp.
37828         * doc/glibc-functions/mkostemp.texi: Mention the new module.
37829         * NEWS: Mention the change.
37830
37831 2009-08-23  Bruno Haible  <bruno@clisp.org>
37832
37833         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
37834         Reported by Eric Blake.
37835
37836 2009-08-23  Bruno Haible  <bruno@clisp.org>
37837
37838         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
37839         Reported by Eric Blake.
37840
37841 2009-08-23  Bruno Haible  <bruno@clisp.org>
37842
37843         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
37844         * modules/pipe2 (Depends-on): Likewise.
37845
37846 2009-08-23  Eric Blake  <ebb9@byu.net>
37847
37848         fcntl-h: add O_TTY_INIT support
37849         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
37850         * tests/test-fcntl-h.c (o): Test it.
37851         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37852
37853         fcntl-h: rename from fcntl, in preparation for fcntl(2)
37854         * modules/fcntl: Move <fcntl.h> header replacement...
37855         * modules/fcntl-h: ...to new name, so as not to collide with
37856         like-named function.
37857         * tests/test-fcntl.c: Rename...
37858         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
37859         * modules/fcntl-tests: Rename...
37860         * modules/fcntl-h-tests: ...to this.  Update test file name.
37861         * modules/chdir-long (Depends-on): Update clients.
37862         * modules/chdir-safer (Depends-on): Likewise.
37863         * modules/fcntl-safer (Depends-on): Likewise.
37864         * modules/fts (Depends-on): Likewise.
37865         * modules/mkancesdirs (Depends-on): Likewise.
37866         * modules/mkdir-p (Depends-on): Likewise.
37867         * modules/open (Depends-on): Likewise.
37868         * modules/savewd (Depends-on): Likewise.
37869         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
37870         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37871
37872 2009-08-22  Bruno Haible  <bruno@clisp.org>
37873
37874         * modules/binary-io (License): Relicense under LGPL.
37875         * modules/pipe2 (License): Likewise.
37876
37877 2009-08-22  Bruno Haible  <bruno@clisp.org>
37878
37879         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
37880         return value.
37881         * lib/pipe-filter-gi.c (filter_init): Likewise.
37882         Reported by Eric Blake.
37883
37884 2009-08-22  Bruno Haible  <bruno@clisp.org>
37885
37886         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
37887         * modules/pipe (Depends-on): Add pipe2.
37888
37889 2009-08-22  Bruno Haible  <bruno@clisp.org>
37890
37891         Tests for module 'pipe2'.
37892         * modules/pipe2-tests: New file.
37893         * tests/test-pipe2.c: New file.
37894
37895         New module 'pipe2'.
37896         * lib/unistd.in.h (pipe2): New declaration.
37897         * lib/pipe2.c: New file.
37898         * m4/pipe2.m4: New file.
37899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
37900         HAVE_PIPE2.
37901         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
37902         * modules/pipe2: New file.
37903         * doc/glibc-functions/pipe2.texi: Mention the new module.
37904
37905 2009-08-22  Bruno Haible  <bruno@clisp.org>
37906
37907         Reference some new glibc functions.
37908         * doc/glibc-functions/accept4.texi: New file.
37909         * doc/glibc-functions/dup3.texi: New file.
37910         * doc/glibc-functions/mkostemp.texi: New file.
37911         * doc/glibc-functions/pipe2.texi: New file.
37912         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
37913         (Glibc sys/socket.h): Refer to accept4.
37914         (Glibc unistd.h): Refer to dup3, pipe2.
37915         Reported by Eric Blake.
37916
37917 2009-08-22  Jim Meyering  <meyering@redhat.com>
37918             Bruno Haible  <bruno@clisp.org>
37919
37920         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
37921         This makes it so packages using automake-1.11's silent-rules option
37922         can print e.g., a single "GEN    configmake.h" line, rather than
37923         the 30+ statements that perform the job.  If you want to see the
37924         actual commands, you can still run "make V=1".
37925         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
37926         so that make output is abbreviated when those variables are defined
37927         appropriately.
37928         * modules/argz: Likewise.
37929         * modules/arpa_inet: Likewise.
37930         * modules/byteswap: Likewise.
37931         * modules/configmake: Likewise.
37932         * modules/dirent: Likewise.
37933         * modules/errno: Likewise.
37934         * modules/fcntl: Likewise.
37935         * modules/float: Likewise.
37936         * modules/fnmatch: Likewise.
37937         * modules/getopt-posix: Likewise.
37938         * modules/glob: Likewise.
37939         * modules/iconv_open: Likewise.
37940         * modules/inttypes: Likewise.
37941         * modules/localcharset: Likewise.
37942         * modules/locale: Likewise.
37943         * modules/math: Likewise.
37944         * modules/netdb: Likewise.
37945         * modules/netinet_in: Likewise.
37946         * modules/poll: Likewise.
37947         * modules/posix_spawnp-tests: Likewise.
37948         * modules/sched: Likewise.
37949         * modules/search: Likewise.
37950         * modules/selinux-h: Likewise.
37951         * modules/signal: Likewise.
37952         * modules/spawn: Likewise.
37953         * modules/stdarg: Likewise.
37954         * modules/stdbool: Likewise.
37955         * modules/stddef: Likewise.
37956         * modules/stdint: Likewise.
37957         * modules/stdio: Likewise.
37958         * modules/stdlib: Likewise.
37959         * modules/string: Likewise.
37960         * modules/strings: Likewise.
37961         * modules/sys_file: Likewise.
37962         * modules/sys_ioctl: Likewise.
37963         * modules/sys_select: Likewise.
37964         * modules/sys_socket: Likewise.
37965         * modules/sys_stat: Likewise.
37966         * modules/sys_time: Likewise.
37967         * modules/sys_times: Likewise.
37968         * modules/sys_utsname: Likewise.
37969         * modules/sys_wait: Likewise.
37970         * modules/sysexits: Likewise.
37971         * modules/time: Likewise.
37972         * modules/unistd: Likewise.
37973         * modules/wchar: Likewise.
37974         * modules/wctype: Likewise.
37975
37976 2009-08-22  Jim Meyering  <meyering@redhat.com>
37977
37978         announce-gen: detect write failure
37979         * build-aux/announce-gen: Add Coda at end.
37980         Remove equivalent-but-more-verbose block at top.
37981
37982 2009-08-19  Akim Demaille  <demaille@gostai.com>
37983
37984         bootstrap: --help to stdout.
37985         * bootstrap (usage): Don't send --help to stderr.
37986         Use a here doc instead of a long string.
37987
37988 2009-08-21  Eric Blake  <ebb9@byu.net>
37989
37990         test-popen-safer: split from test-popen
37991         * tests/test-popen.c (main): Move...
37992         * tests/test-popen.h: ...into new file.
37993         * tests/test-popen-safer2.c: New file.
37994         * modules/popen-tests (Files): Add test-popen.h.
37995         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
37996         Suggested by Bruno Haible.
37997
37998         test-fcntl-safer: split from test-open
37999         * tests/test-open.c (main): Move...
38000         * tests/test-open.h: ...into new file.
38001         * tests/test-fcntl-safer.c: New file.
38002         * modules/open-tests (Files): Add test-open.h.
38003         * modules/fcntl-safer-tests: New file.
38004         Suggested by Bruno Haible.
38005
38006         test-fopen-safer: split from test-fopen
38007         * tests/test-fopen.c (main): Move...
38008         * tests/test-fopen.h: ...into new file.
38009         * tests/test-fopen-safer.c: New file.
38010         * modules/fopen-tests (Files): Add test-fopen.h.
38011         * modules/fopen-safer-tests: New file.
38012         Suggested by Bruno Haible.
38013
38014 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38015
38016         popen-safer: test O_CLOEXEC at run-time.
38017         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
38018
38019 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38020
38021         fcntl: move more flags to the header
38022         * lib/cloexec.c: Do not define FD_CLOEXEC here.
38023         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
38024         * lib/fcntl.in.h: Do both things here.
38025
38026 2009-08-21  Jim Meyering  <meyering@redhat.com>
38027
38028         consistently remove $@-t before redirecting to it
38029         * modules/argz: Remove $@-t and $@ before redirecting to the former.
38030         * modules/alloca-opt: Likewise.
38031         * modules/byteswap: Likewise.
38032         * modules/fnmatch: Likewise.
38033         * modules/getopt-posix: Likewise.
38034         * modules/glob: Likewise.
38035         * modules/poll: Likewise.
38036         * modules/posix_spawnp-tests: Likewise.
38037         * modules/sys_socket: Likewise.
38038         * modules/sysexits: Likewise.
38039
38040 2009-08-21  Eric Blake  <ebb9@byu.net>
38041
38042         popen: simplify access to original popen
38043         * lib/popen.c (rpl_popen): No need to worry about popen being a
38044         macro.
38045         Reported by Bruno Haible.
38046
38047 2009-08-20  Eric Blake  <ebb9@byu.net>
38048
38049         build: avoid some compiler warnings
38050         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
38051         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
38052         type.
38053         (new_exclude_segment, excluded_file_pattern_p)
38054         (excluded_file_name_p): Reduce scope.
38055         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
38056         old-style declaration.
38057
38058 2009-08-20  Simon Josefsson  <simon@josefsson.org>
38059
38060         * tests/test-exclude1.sh: Handle Windows EOL.
38061         * tests/test-exclude2.sh: Likewise.
38062         * tests/test-exclude3.sh: Likewise.
38063         * tests/test-exclude4.sh: Likewise.
38064         * tests/test-exclude5.sh: Likewise.
38065         * tests/test-exclude6.sh: Likewise.
38066         * tests/test-exclude7.sh: Likewise.
38067
38068 2009-08-19  Akim Demaille  <demaille@gostai.com>
38069
38070         bootstrap: find sha1sum when named gsha1sum.
38071         * bootstrap (find_tool): New.
38072         ($SHA1SUM): New.
38073         Use it.
38074
38075 2009-08-20  Jim Meyering  <meyering@redhat.com>
38076
38077         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
38078         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
38079         expression that converts "." in a file name to "\." in the resulting
38080         regexp.  Start with a dummy statement, so that prior shell variable
38081         definitions are expanded portably.  Reported by Simon Josefsson.
38082
38083 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
38084
38085         Fix polling for writeability of a screen buffer.
38086         * lib/poll.c: Distinguish input and screen buffers for the
38087         Win32 implementation.
38088         * lib/select.c: Likewise.
38089
38090 2009-08-19  Eric Blake  <ebb9@byu.net>
38091
38092         popen-safer: prevent popen from clobbering std descriptors
38093         * modules/popen-safer: New file.
38094         * lib/popen-safer.c: Likewise.
38095         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
38096         * lib/stdio--.h (popen): Provide override.
38097         * lib/stdio-safer.h (popen_safer): Provide declaration.
38098         * tests/test-popen.c (includes): Partially test this.
38099         * modules/popen-safer-tests: New file, for more tests.
38100         * tests/test-popen-safer.c: Likewise.
38101         * MODULES.html.sh (file stream based Input/Output): Mention it.
38102
38103         tests: test some of the *-safer modules
38104         * modules/fopen-safer (Depends-on): Add fopen.
38105         * modules/fcntl-safer (Depends-on): Add fcntl.
38106         * modules/stdlib-safer (Depends-on): Add stdlib.
38107         (configure.ac): Set indicator.
38108         * modules/unistd-safer (configure.ac): Likewise.
38109         * modules/tmpfile-safer (configure.ac): Likewise.
38110         (Depends-on): Add tmpfile.
38111         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
38112         active.
38113         * tests/test-fopen.c (includes): Test safer versions when they are
38114         in use.
38115         * tests/test-open.c (includes): Likewise.
38116
38117         popen: fix cygwin 1.5 bug when stdin closed
38118         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
38119         * modules/popen: New file.
38120         * modules/popen-tests: Likewise.
38121         * tests/test-popen.c: Likewise.
38122         * m4/popen.m4: Likewise.
38123         * lib/popen.c: Likewise.
38124         * lib/stdio.in.h (popen): New declaration.
38125         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
38126         * modules/stdio (Makefile.am): Likewise.
38127         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
38128
38129 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
38130
38131         maint.mk: give full control over update-copyright exclusions
38132         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
38133         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
38134         (update-copyright): Don't force inclusion of top-level
38135         ChangeLog.  Don't force exclusion of all COPYING files, but make
38136         them the default exclusion instead.
38137
38138 2009-08-16  Bruno Haible  <bruno@clisp.org>
38139
38140         Fix test failures on Solaris 10.
38141         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
38142         tests when Solaris iconv() is used.
38143         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
38144         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
38145         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
38146         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
38147         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
38148
38149 2009-08-16  Bruno Haible  <bruno@clisp.org>
38150
38151         Fix test failures on Solaris 10.
38152         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
38153         'tr' program and pass it as first argument.
38154         * tests/test-pipe-filter-gi1.sh: Likewise.
38155         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
38156         program as first argument.
38157         * tests/test-pipe-filter-gi1.c (main): Likewise.
38158
38159 2009-08-16  Eric Blake  <ebb9@byu.net>
38160
38161         fpurge: fix previous commits
38162         * modules/fpurge (Makefile.am): Make replacement conditional,
38163         partially reverting 2007-04-29 change; missed in previous
38164         attempt.
38165         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
38166         is missing.
38167
38168 2009-08-16  Bruno Haible  <bruno@clisp.org>
38169
38170         Clarify fpurge's effect on the file position.
38171         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
38172         * tests/test-fpurge.c (main): Make a second pass for checking the file
38173         position.
38174
38175 2009-08-16  Bruno Haible  <bruno@clisp.org>
38176
38177         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
38178         declaration of fpurge is missing.
38179         * tests/test-fpurge.c (main): Check that the file has not more contents
38180         than expected. Close the file before removing it.
38181
38182 2009-08-15  Eric Blake  <ebb9@byu.net>
38183
38184         fpurge: don't wrap working cygwin implementation
38185         * lib/fpurge.c (fpurge): Fix comment typo.
38186         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
38187         1.7 to avoid replacement.
38188         * tests/test-fpurge.c (main): Enhance test.
38189
38190 2009-08-15  Eric Blake  <ebb9@byu.net>
38191         and Jim Meyering  <meyering@redhat.com>
38192
38193         test-update-copyright: skip if perl is insufficient
38194         * tests/test-update-copyright.sh: Failure to run maintainer tool
38195         should not cause testsuite failure on cygwin 1.5.
38196
38197 2009-08-14  Eric Blake  <ebb9@byu.net>
38198
38199         doc: mention more functions added in cygwin 1.7.0
38200         * doc/posix-headers/limits.texi (limits.h): Update for recent
38201         cygwin additions.
38202         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
38203         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38204         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
38205         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
38206         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
38207
38208 2009-08-14  Eric Blake  <ebb9@byu.net>
38209
38210         maint.mk: simplify update-copyright rule
38211         * top/maint.mk (update-copyright-local): Delete, and document how
38212         to do it in cfg.mk instead.
38213         (update-copyright-exclude-regexp): Delete, and document how to do
38214         it in .x-update-copyright instead.
38215         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
38216         exclude ChangeLog.
38217
38218 2009-08-14  Bruno Haible  <bruno@clisp.org>
38219
38220         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
38221
38222 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38223
38224         maint.mk: support update-copyright-env
38225         * top/maint.mk (update-copyright-env): Define place-holder.
38226         (update-copyright): Expand $(update-copyright-env) before
38227         invoking update-copyright.
38228
38229 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38230
38231         update-copyright: implement forced reformatting
38232         * build-aux/update-copyright: Implement and document
38233         UPDATE_COPYRIGHT_FORCE.
38234         * tests/test-update-copyright.sh: Test it.
38235
38236 2009-08-14  Eric Blake  <ebb9@byu.net>
38237         and Bruno Haible  <bruno@clisp.org>
38238
38239         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
38240         * tests/test-locale.c: Revert previous patch related to NULL.
38241         * tests/test-stdio.c: Likewise.
38242         * tests/test-stdlib.c: Likewise.
38243         * tests/test-string.c: Likewise.
38244         * tests/test-unistd.c: Likewise.
38245         * modules/time-tests (Depends-on): Add verify.
38246         * modules/wchar-tests (Depends-on): Likewise.
38247         * tests/test-time.c: Test for NULL compliance.
38248         * tests/test-wchar.c: Likewise.
38249         * modules/locale (Depends-on): Add stddef.
38250         * modules/stdio (Depends-on): Likewise.
38251         * modules/stdlib (Depends-on): Likewise.
38252         * modules/string (Depends-on): Likewise.
38253         * modules/time (Depends-on): Likewise.
38254         * modules/unistd (Depends-on): Likewise.
38255         * modules/wchar (Depends-on): Likewise.
38256         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
38257         * lib/stdlib.in.h (includes): Likewise.
38258         * lib/string.in.h (includes): Likewise.
38259         * lib/time.in.h (includes): Likewise.
38260         * lib/unistd.in.h (includes): Likewise.
38261         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
38262         replaced.
38263         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38264         * m4/stddef_h.m4: New file.
38265         * modules/stddef: Likewise.
38266         * lib/stddef.in.h: Likewise.
38267         * modules/stddef-tests: Likewise.
38268         * tests/test-stddef.c: Likewise.
38269         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
38270         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
38271         * doc/posix-headers/locale.texi (locale.h): Likewise.
38272         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
38273         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
38274         * doc/posix-headers/string.texi (string.h): Likewise.
38275         * doc/posix-headers/time.texi (time.h): Likewise.
38276         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
38277         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
38278
38279 2009-08-14  Eric Blake  <ebb9@byu.net>
38280
38281         doc: improve git diff of texinfo files
38282         * .gitattributes: Add rule for *.texi files, with hint on how to
38283         use it.
38284         Copied from m4, and based on a report by Bruno Haible.
38285
38286 2009-08-14  Bruno Haible  <bruno@clisp.org>
38287
38288         Disable multithread support by default on Cygwin 1.5.x for real.
38289         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
38290
38291 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38292
38293         update-copyright: much ado about intervals
38294         * build-aux/update-copyright: Implement and document
38295         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
38296         of copyright year intervals.
38297         Also, document UPDATE_COPYRIGHT_YEAR.
38298         * tests/test-update-copyright.sh: Test it.
38299
38300         update-copyright: convert 2-digit to 4-digit years
38301         * build-aux/update-copyright: Implement and document.
38302         * tests/test-update-copyright.sh: Update.
38303
38304 2009-08-14  Jim Meyering  <meyering@redhat.com>
38305
38306         test-exclude: avoid coreutils "make check" failure
38307         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
38308         just as in test-argmatch.c.
38309
38310 2009-08-13  Eric Blake  <ebb9@byu.net>
38311
38312         test-dup2: fix bad assumption
38313         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
38314         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
38315
38316         test-version-etc: fix CRLF portability issue
38317         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
38318         recognize \r.
38319         * tests/test-argp-version-etc-1.sh: Likewise.
38320
38321         getopt: update client modules
38322         * modules/argp (Depends-on): Use getopt-gnu.
38323         * modules/git-merge-changelog (Depends-on): Likewise.
38324         * modules/long-options (Depends-on): Likewise.
38325         * modules/xstrtol (Depends-on): Likewise.
38326
38327 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38328
38329         * tests/test-version-etc.sh: Don't fail on different
38330         project/version.  Don't fail on CRLF differences.  Rewrite to use
38331         multiple -e instead of multiple sed forks, suggested by Eric Blake
38332         <ebb9@byu.net>.
38333         * tests/test-argp-version-etc-1.sh: Likewise.
38334
38335 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38336
38337         * tests/test-version-etc.sh: Don't fail on different
38338         project/version.
38339
38340 2009-08-12  Bruno Haible  <bruno@clisp.org>
38341
38342         Tests for modules 'getopt-posix', 'getopt-gnu'.
38343         * modules/getopt-posix-tests: New file.
38344         * tests/test-getopt.c: New file.
38345         * tests/test-getopt.h: New file.
38346         * tests/test-getopt_long.h: New file.
38347
38348         New modules 'getopt-posix', 'getopt-gnu'.
38349         * modules/getopt-gnu: New file, renamed from modules/getopt.
38350         * modules/getopt-posix: New file.
38351         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
38352         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
38353         (gl_GETOPT): Remove macro.
38354         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
38355         Disable the test against BSD systems that declare optreset. Test
38356         against mingw bug. Test against lack of support of optional arguments
38357         on many platforms.
38358         * doc/glibc-headers/getopt.texi: Update module name and list of
38359         relevant platforms.
38360         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
38361         'getopt-gnu' and more portability problems.
38362         * NEWS: Mention the changes.
38363
38364 2009-08-12  Bruno Haible  <bruno@clisp.org>
38365
38366         Ensure that optarg etc. get declared by <unistd.h>.
38367         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
38368         AC_USE_SYSTEM_EXTENSIONS.
38369         * modules/getopt (Depends-on): Add 'extensions'.
38370
38371 2009-08-12  Bruno Haible  <bruno@clisp.org>
38372
38373         Avoid test link errors.
38374         * modules/pipe-filter-ii-tests (Makefile.am): Define
38375         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
38376         * modules/pipe-filter-gi-tests (Makefile.am): Define
38377         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
38378         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38379
38380 2009-08-12  Bruno Haible  <bruno@clisp.org>
38381
38382         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
38383         gl_GETOPT_SUBSTITUTE before.
38384         (gl_GETOPT): Use it.
38385         * m4/argp.m4 (gl_ARGP): Update.
38386         Reported by Sergey Poznyakoff.
38387
38388         * m4/getopt.m4: Reorder macros.
38389         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
38390         (gl_GETOPT_SUBSTITUTE): Remove macro.
38391
38392 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38393
38394         Minor improvement in gitlog-to-changelog
38395
38396         * build-aux/gitlog-to-changelog: New option `--format' makes
38397         output format string configurable.
38398
38399 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38400
38401         Optimize exclude: use hash tables for non-wildcard patterns.
38402
38403         * lib/exclude.c: Include hash.h and mbuiter.h
38404         (struct exclude_pattern, exclude_segment): New data types.
38405         (struct exclude): Rewrite.
38406         (fnmatch_pattern_has_wildcards): New function.
38407         (new_exclude_segment, free_exclude_segment): New functions.
38408         (excluded_file_pattern_p, excluded_file_name_p): New functions.
38409         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
38410         * lib/exclude.h (is_fnmatch_pattern): New prototype.
38411         * modules/exclude: Depend on hash and mbuiter.
38412
38413         * modules/exclude-tests: New file.
38414         * tests/test-exclude.c: New file.
38415         * tests/test-exclude1.sh: New file.
38416         * tests/test-exclude2.sh: New file.
38417         * tests/test-exclude3.sh: New file.
38418         * tests/test-exclude4.sh: New file.
38419         * tests/test-exclude5.sh: New file.
38420         * tests/test-exclude6.sh: New file.
38421         * tests/test-exclude7.sh: New file.
38422
38423 2009-08-12  Bruno Haible  <bruno@clisp.org>
38424
38425         Ensure that getopt() gets declared by <unistd.h>.
38426         * lib/unistd.in.h: Conditionally include getopt.h.
38427         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
38428         Set GNULIB_UNISTD_H_GETOPT.
38429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38430         GNULIB_UNISTD_H_GETOPT.
38431         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
38432
38433 2009-08-12  Bruno Haible  <bruno@clisp.org>
38434
38435         Clarify logic.
38436         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
38437         gl_replace_getopt instead of GETOPT_H.
38438
38439 2009-08-12  Bruno Haible  <bruno@clisp.org>
38440
38441         * m4/getopt.m4: Add comments.
38442
38443 2009-08-12  Bruno Haible  <bruno@clisp.org>
38444
38445         Disable multithread support by default on Cygwin 1.5.x.
38446         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
38447         set gl_use_threads=no if not specified otherwise.
38448
38449 2009-08-11  Bruno Haible  <bruno@clisp.org>
38450
38451         Avoid compilation error on NetBSD 5.0.
38452         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
38453         * tests/test-stdio.c: Likewise.
38454         * tests/test-stdlib.c: Likewise.
38455         * tests/test-string.c: Likewise.
38456         * tests/test-unistd.c: Likewise.
38457         Reported by Greg Troxel <gdt@ir.bbn.com>
38458         at <https://savannah.gnu.org/support/?106973>.
38459
38460 2009-08-11  Bruno Haible  <bruno@clisp.org>
38461
38462         * modules/dup2-tests (Depends-on): Remove close.
38463
38464         Undo 2009-07-19 commit.
38465         * modules/acl-tests (Depends-on): Remove close.
38466         * modules/binary-io-tests (Depends-on): Likewise.
38467         * modules/closein-tests (Depends-on): Likewise.
38468         * modules/flock-tests (Depends-on): Likewise.
38469         * modules/fsync-tests (Depends-on): Likewise.
38470         * modules/lseek-tests (Depends-on): Likewise.
38471         * modules/pipe-tests (Depends-on): Likewise.
38472         * modules/posix_spawn-tests (Depends-on): Likewise.
38473         * modules/posix_spawnp-tests (Depends-on): Likewise.
38474         * modules/stat-time-tests (Depends-on): Likewise.
38475         * modules/yesno-tests (Depends-on): Likewise.
38476
38477 2009-08-10  Bruno Haible  <bruno@clisp.org>
38478
38479         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
38480
38481 2009-08-10  Bruno Haible  <bruno@clisp.org>
38482
38483         Fix a gcc warning.
38484         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
38485
38486 2009-08-10  Bruno Haible  <bruno@clisp.org>
38487
38488         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
38489         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
38490         not only the first time.
38491         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
38492         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
38493         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
38494         is 1, not only the the first time.
38495
38496 2009-08-10  Bruno Haible  <bruno@clisp.org>
38497
38498         Make it possible to use module 'gethostname' without module 'close'.
38499         * lib/unistd.in.h (close): Evoke a link error only if
38500         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38501         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38502         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38503         * modules/unistd (Makefile.am): Substitute
38504         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38505         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
38506         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38507         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
38508         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38509         * modules/sys_ioctl (Makefile.am): Substitute
38510         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38511         * modules/socket (configure.ac): On native Windows, set
38512         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
38513         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38514         Reported by Sam Steingold <sds@gnu.org>.
38515
38516 2009-08-10  Bruno Haible  <bruno@clisp.org>
38517
38518         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
38519         * modules/ioctl (configure.ac): Likewise.
38520
38521 2009-08-10  Bruno Haible  <bruno@clisp.org>
38522
38523         Avoid collision between gnulib wrapper and libintl wrapper.
38524         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
38525         already defined in intl/printf.c.
38526         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
38527         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
38528
38529 2009-08-09  Bruno Haible  <bruno@clisp.org>
38530
38531         Make <sys/select.h> really self-contained, also on Solaris 10.
38532         * lib/sys_select.in.h: Include <string.h>.
38533         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
38534         Solaris 10 problem.
38535         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
38536         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
38537         Reported by Jim Meyering.
38538
38539 2009-08-09  Bruno Haible  <bruno@clisp.org>
38540
38541         Avoid warnings from 'aclocal' that are due to a use of macro name
38542         AM_XGETTEXT_OPTION that is not defined in automake.
38543         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
38544         automake.
38545         * modules/error (configure.ac): Likewise.
38546         * modules/propername (configure.ac): Likewise.
38547         * modules/vasprintf (configure.ac): Likewise.
38548         * modules/verror (configure.ac): Likewise.
38549         * modules/xprintf (configure.ac): Likewise.
38550         * modules/xvasprintf (configure.ac): Likewise.
38551
38552 2009-08-08  Bruno Haible  <bruno@clisp.org>
38553
38554         Avoid compilation error in C++ mode.
38555         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
38556         Reported by Sam Steingold <sds@gnu.org>.
38557
38558 2009-08-08  Bruno Haible  <bruno@clisp.org>
38559
38560         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
38561         for the various Unix platforms.
38562         * doc/posix-headers/limits.texi: Update platforms list regarding
38563         HOST_NAME_MAX.
38564         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38565
38566 2009-08-07  Jim Meyering  <meyering@redhat.com>
38567
38568         selinux-at: fix typo in a comment
38569         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
38570         Spotted by Paolo Bonzini.
38571
38572         selinux-at: remove redundant m4 code, add documentation
38573         * modules/selinux-at (configure.ac): Remove redundant code.
38574         LIB_SELINUX is already set via the dependent module, selinux-h.
38575         (Include): Add quotes around selinux-at.h.
38576         * lib/selinux-at.h: Add documentation.
38577         Reported by Bruno Haible in
38578         http://marc.info/?l=gnulib-bug&m=124958988300749
38579
38580 2009-08-07  Bruno Haible  <bruno@clisp.org>
38581
38582         Avoid link error on MacOS X 10.3 and 10.4.
38583         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
38584         on non-ELF systems.
38585         * lib/argp-pv.c (argp_program_version): Likewise.
38586         Reported by Simon Josefsson.
38587
38588 2009-08-07  Simon Josefsson  <simon@josefsson.org>
38589
38590         * tests/test-version-etc.sh: Use $EXEEXT.
38591
38592 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
38593
38594         update-copyright: update documentation to point to maint.mk
38595         * build-aux/update-copyright: Here.
38596
38597 2009-08-06  Jim Meyering  <meyering@redhat.com>
38598
38599         maint.mk: support update-copyright-local
38600         * top/maint.mk (update-copyright-local): Define place-holder.
38601         (update-copyright): Depend on $(update-copyright-local).
38602
38603 2009-08-06  Jim Meyering  <meyering@redhat.com>
38604
38605         selinux-at: new module
38606         Initially written for coreutils, this module will soon be
38607         used by findutils, too.
38608         * MODULES.html.sh [Misc]: Add selinux-at.
38609         * lib/selinux-at.h: New file, from coreutils.
38610         * lib/selinux-at.c: Likewise.
38611         * modules/selinux-at: Likewise.
38612         (License): Change from LGPL to GPL, since it depends
38613         on the GPL'd openat module.
38614
38615         doc: update README
38616         * README: Remove references to cogito.
38617         Remove cvs-repo-updating instructions from 2007.
38618         Don't imply that CVS is better if you have limited disk space.
38619
38620 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38621
38622         update-copyright: support C-style comments
38623         * build-aux/update-copyright: Implement and document.
38624         * tests/test-update-copyright.sh: Test.
38625
38626 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38627
38628         update-copyright: support omitted "(C)"
38629         * build-aux/update-copyright: Implement and document.  Also,
38630         allow variable whitespace before "(C)".
38631         * tests/test-update-copyright.sh: Test.
38632
38633 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38634
38635         update-copyright: don't trip on non-FSF copyright statements
38636         * build-aux/update-copyright: Fix so that the first correctly
38637         formatted FSF copyright statement is recognized no matter what
38638         appears before it.  Update documentation.
38639         * tests/test-update-copyright.sh: Test that.
38640
38641 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38642
38643         update-copyright: clean up code a little
38644         * build-aux/update-copyright: Append "_re" to the name of any
38645         variable holding a regular expression.
38646         Replace "old" and "new" with "stmt" in variable names.
38647         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
38648         handled correctly.
38649         Format code more consistently.
38650
38651 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38652
38653         update-copyright-tests: improve portability
38654         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
38655         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
38656
38657 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38658
38659         update-copyright: support @copyright{} and &copy;
38660         * build-aux/update-copyright: Implement and document.
38661         * tests/test-update-copyright.sh: Test.
38662
38663 2009-08-04  Jim Meyering  <meyering@redhat.com>
38664
38665         update-copyright-tests: correctly test EOL=\r\n handling
38666         * tests/test-update-copyright.sh: Put \r at the end of some lines
38667         for the dos-eol tests.  Based on a patch by Joel E. Denny.
38668
38669         maint.mk: make update-copyright exclusion list more configurable
38670         * top/maint.mk (update-copyright): Default to excluding COPYING,
38671         but allow an override, in case someone does want to update that file.
38672
38673         maint.mk: don't update copyright date in COPYING
38674         * top/maint.mk (update-copyright): Exclude COPYING.
38675
38676         maint.mk: add a copyright-updating rule
38677         * top/maint.mk (update-copyright): New rule.
38678         Derived from coreutils/Makefile.am.
38679
38680         update-copyright: rename some variables
38681         * build-aux/update-copyright: Rename a few variables for clarity.
38682         Tweak syntax.  List Joel E. Denny as coauthor.
38683
38684 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38685
38686         update-copyright: fix bug for 2-digit last year and add tests
38687         * build-aux/update-copyright: Fix bug.
38688         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
38689         specified.
38690         * modules/update-copyright-tests: New
38691         * tests/test-update-copyright.sh: New.
38692
38693 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38694
38695         update-copyright: handle leading tabs in line prefix
38696         * build-aux/update-copyright: Count leading tabs as 8 spaces
38697         when computing margin.  This helps with the formatting of
38698         ChangeLogs, for example.
38699         Fix documentation a little.
38700
38701 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38702
38703         update-copyright: support EOL=\r\n
38704         * build-aux/update-copyright: Implement that.
38705
38706 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38707
38708         update-copyright: automatically format copyright statements
38709         * build-aux/update-copyright: Implement that.
38710         Also, be a little more predictable and safer by always failing
38711         when the full copyright format is not perfectly recognized as an
38712         unbroken whole.  Discussed at
38713         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
38714         Rewrite documentation.
38715
38716 2009-08-03  Bruno Haible  <bruno@clisp.org>
38717
38718         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
38719
38720 2009-08-02  Bruno Haible  <bruno@clisp.org>
38721
38722         Tests for module 'uname'.
38723         * modules/uname-tests: New file.
38724         * tests/test-uname.c: New file.
38725
38726         New module 'uname'.
38727         * lib/uname.c: New file.
38728         * m4/uname.m4: New file.
38729         * modules/uname: New file.
38730         * doc/posix-functions/uname.texi: Mention the new module.
38731
38732 2009-08-02  Bruno Haible  <bruno@clisp.org>
38733
38734         Tests for module 'sys_utsname'.
38735         * modules/sys_utsname-tests: New file.
38736         * tests/test-sys_utsname.c: New file.
38737
38738         New module 'sys_utsname'.
38739         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
38740         * m4/sys_utsname_h.m4: New file.
38741         * modules/sys_utsname: New file.
38742         * doc/posix-headers/sys_utsname.texi: Mention the new module.
38743
38744 2009-08-02  Bruno Haible  <bruno@clisp.org>
38745
38746         Implicitly initialize the sockets library.
38747         * lib/gethostname.c: Include sockets.h.
38748         (rpl_gethostname): Invoke gl_sockets_startup.
38749         * lib/socket.c: Include sockets.h.
38750         (rpl_socket): Invoke gl_sockets_startup.
38751         * modules/gethostname (Depends-on): Add sockets.
38752         * modules/socket (Depends-on): Likewise.
38753         * tests/test-poll.c: Don't include sockets.h.
38754         (main): Don't invoke gl_sockets_startup.
38755         * tests/test-select.c: Don't include sockets.h.
38756         (main): Don't invoke gl_sockets_startup.
38757
38758 2009-08-02  Bruno Haible  <bruno@clisp.org>
38759
38760         Allow multiple calls to gl_sockets_startup.
38761         * lib/sockets.c (initialized_sockets_version): New variable.
38762         (gl_sockets_startup): Do nothing if already called for this or a higher
38763         version.
38764         (gl_sockets_cleanup): Reset initialized_sockets_version.
38765
38766 2009-08-03  Simon Josefsson  <simon@josefsson.org>
38767
38768         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
38769         different project/version.
38770
38771 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
38772             Bruno Haible  <bruno@clisp.org>
38773
38774         Tests for module 'pipe-filter-gi'.
38775         * modules/pipe-filter-gi-tests: New file.
38776         * tests/test-pipe-filter-gi1.sh: New file.
38777         * tests/test-pipe-filter-gi1.c: New file.
38778         * tests/test-pipe-filter-gi2.sh: New file.
38779         * tests/test-pipe-filter-gi2-main.c: New file.
38780         * tests/test-pipe-filter-gi2-child.c: New file.
38781
38782         New module 'pipe-filter-gi'.
38783         * lib/pipe-filter-gi.c: New file.
38784         * modules/pipe-filter-gi: New file.
38785
38786 2009-08-02  Bruno Haible  <bruno@clisp.org>
38787             Paolo Bonzini  <bonzini@gnu.org>
38788
38789         Tests for module 'pipe-filter-ii'.
38790         * modules/pipe-filter-ii-tests: New file.
38791         * tests/test-pipe-filter-ii1.sh: New file.
38792         * tests/test-pipe-filter-ii1.c: New file.
38793         * tests/test-pipe-filter-ii2.sh: New file.
38794         * tests/test-pipe-filter-ii2-main.c: New file.
38795         * tests/test-pipe-filter-ii2-child.c: New file.
38796
38797         New module 'pipe-filter-ii'.
38798         * lib/pipe-filter.h: New file.
38799         * lib/pipe-filter-ii.c: New file.
38800         * lib/pipe-filter-aux.h: New file.
38801         * modules/pipe-filter-ii: New file.
38802
38803 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38804
38805         * lib/gc-libgcrypt.c: Change copyright to FSF.
38806         * lib/gc-gnulib.c: Likewise.
38807
38808 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
38809
38810         * lib/gethostname.c: Include limits.h.
38811
38812 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38813             Bruno Haible  <bruno@clisp.org>
38814
38815         Ensure HOST_NAME_MAX as part of the gethostname module.
38816         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
38817         define also HOST_NAME_MAX.
38818         * tests/test-gethostname.c: Include <limits.h>.
38819         (main): Check also HOST_NAME_MAX.
38820         * doc/posix-headers/limits.texi: Document the mingw problem.
38821
38822 2009-08-02  Bruno Haible  <bruno@clisp.org>
38823
38824         * lib/gethostname.c (gethostname): Fix handling of large len argument.
38825         Add comments.
38826
38827 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38828
38829         * lib/gethostname.c: Add Windows wrapper.
38830         * m4/gethostname.m4: Look for gethostname in -lws2_32.
38831         * modules/gethostname: Depend on sys_socket & errno, for also
38832         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
38833         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
38834
38835 2009-07-31  Jim Meyering  <meyering@redhat.com>
38836
38837         getloadavg: fix symbol name in comment
38838         * lib/getloadavg.c: Correct a typo I introduced when adding
38839         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
38840         Matt Kraai spotted the problem.
38841
38842 2009-07-29  Matt Kraai  <mkraai@beckman.com>
38843
38844         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
38845         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
38846         code also if ! defined N_NAME_POINTER.
38847         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
38848         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
38849         but the n_name member is a 12-byte array.
38850
38851 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
38852
38853         update-copyright: generalize comment handling
38854         * build-aux/update-copyright: Handle copyright statements
38855         within more comment styles.
38856         Document usage.
38857         Report any file with an external copyright holder or parse failure.
38858
38859 2009-07-29  Jim Meyering  <meyering@redhat.com>
38860
38861         mktime: correct setting of REPLACE_MKTIME
38862         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
38863
38864         update-copyright: new module
38865         * modules/update-copyright: New file.
38866         * build-aux/update-copyright: New file.
38867         * MODULES.html.sh (maint+release support): Add update-copyright.
38868
38869 2009-07-27  Bruno Haible  <bruno@clisp.org>
38870
38871         Fix compilation error when <ctime> is used and mktime is replaced.
38872         * lib/time.in.h (mktime): New declaration.
38873         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
38874         REPLACE_MKTIME instead of defining mktime in config.h.
38875         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
38876         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
38877         Reported by Ross McFarland <rwmcfa1@neces.com>.
38878
38879 2009-07-27  Bruno Haible  <bruno@clisp.org>
38880
38881         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
38882         Reported by Matt Kraai <mkraai@beckman.com>.
38883
38884 2009-07-25  Jim Meyering  <meyering@redhat.com>
38885
38886         maint.mk: avoid warnings about missing files
38887         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
38888         diagnostic when .prev-version does not exist.
38889         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
38890         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
38891         nonexistent cfg.mk.
38892         Suggestions from Simon Josefsson.
38893
38894 2009-07-25  Bruno Haible  <bruno@clisp.org>
38895
38896         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
38897         defined as macros. Needed on QNX 6.4.1.
38898         Reported by Matt Kraai <mkraai@beckman.com>.
38899
38900 2009-07-23  Jim Meyering  <meyering@redhat.com>
38901
38902         maint.mk: invoke "make dist" with a working value of XZ_OPT
38903         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
38904
38905 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
38906
38907         Make fseeko.c compile on QNX.
38908         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
38909
38910 2009-07-22  Peter Simons  <simons@cryp.to>
38911
38912         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
38913         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
38914         * lib/md4.h: Likewise.
38915         * lib/md5.h: Likewise.
38916         * lib/sha1.h: Likewise.
38917         * lib/sha256.h: Likewise.
38918         * lib/sha512.h: Likewise.
38919
38920         tests-sha1: don't assign literal string to 'char *' variable
38921         * tests/test-sha1.c (main): Declare locals with "const" to match
38922         attributes of the right hand side.
38923
38924 2009-07-21  Eric Blake  <ebb9@byu.net>
38925
38926         dup2: fix more mingw problems
38927         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
38928         fd to itself.
38929         * doc/posix-functions/dup2.texi (dup2): Document the bug.
38930         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
38931         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
38932         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
38933         care of mingw bugs.
38934
38935 2009-07-21  Jim Meyering  <meyering@redhat.com>
38936
38937         vc-list-files: avoid failure when /bin/sh is dash
38938         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
38939         On some Debian based systems, /bin/sh is a symlink to dash, and running
38940         this command would omit the "/" following each 'tests' prefix:
38941           dash -x build-aux/vc-list-files -C . tests
38942         That is because bash and dash work differently:
38943           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
38944           bash ok
38945           dash odd
38946
38947 2009-07-21  Eric Blake  <ebb9@byu.net>
38948
38949         dup2-tests: test previous patch
38950         * modules/dup2-tests: New file.
38951         * tests/test-dup2.c: Likewise.
38952         * tests/test-open.c (main): Avoid unspecified behavior.
38953         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
38954         test.
38955
38956         dup2: work around mingw and cygwin 1.5 bug
38957         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
38958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38959         * modules/unistd (Makefile.am): Substitute it.
38960         * lib/unistd.in.h (dup2): Declare the replacement.
38961         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
38962         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
38963         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
38964         * modules/execute (Depends-on): Add dup2.
38965         * modules/fseterr (Depends-on): Likewise.
38966         * modules/pipe (Depends-on): Likewise.
38967         * modules/posix_spawn-internal (Depends-on): Likewise.
38968
38969 2009-07-21  Bruno Haible  <bruno@clisp.org>
38970
38971         * modules/.gitattributes: New file.
38972
38973 2009-07-20  Bruno Haible  <bruno@clisp.org>
38974
38975         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
38976         (main): Use it.
38977
38978 2009-07-20  Eric Blake  <ebb9@byu.net>
38979
38980         test-pipe: make a bit more robust.
38981         * tests/test-pipe.c (myerr): Allow error messages regardless of
38982         what we do to stderr.
38983         (test_pipe): Rearrange to avoid deadlock.
38984         (child_main): Try a larger read, to ensure we avoided deadlock.
38985         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
38986         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
38987         if misused.
38988
38989 2009-07-19  Jim Meyering  <meyering@redhat.com>
38990
38991         fts: avoid false-positive cycle-detection
38992         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
38993         for each new command line argument.
38994
38995 2009-07-19  Bruno Haible  <bruno@clisp.org>
38996
38997         Fix build error on mingw with the modules sys_select and unistd.
38998         * modules/acl-tests (Depends-on): Add close.
38999         * modules/binary-io-tests (Depends-on): Likewise.
39000         * modules/closein-tests (Depends-on): Likewise.
39001         * modules/flock-tests (Depends-on): Likewise.
39002         * modules/fsync-tests (Depends-on): Likewise.
39003         * modules/lseek-tests (Depends-on): Likewise.
39004         * modules/pipe-tests (Depends-on): Likewise.
39005         * modules/posix_spawn-tests (Depends-on): Likewise.
39006         * modules/posix_spawnp-tests (Depends-on): Likewise.
39007         * modules/stat-time-tests (Depends-on): Likewise.
39008         * modules/yesno-tests (Depends-on): Likewise.
39009
39010 2009-07-19  Bruno Haible  <bruno@clisp.org>
39011
39012         Unify conditionals.
39013         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
39014         macros, not at the compiler macros.
39015         * lib/pipe.c: Likewise.
39016         * lib/execute.c: Likewise.
39017         * lib/spawni.c: Likewise.
39018
39019 2009-07-19  Bruno Haible  <bruno@clisp.org>
39020
39021         Fix handling of closed stdin/stdout/stderr on mingw.
39022         * lib/w32spawn.h: Include unistd.h.
39023         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
39024         file descriptor with O_NOINHERIT flag.
39025         (fd_safer_noinherit): New function, based on fd-safer.c.
39026         (dup_safer_noinherit): New function, based on dup-safer.c.
39027         (undup_safer_noinherit): New function.
39028         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
39029         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
39030         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
39031         instead of fd_safer.
39032         * tests/test-pipe.c: Include <windows.h>.
39033         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
39034         result.
39035
39036         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
39037         from main.
39038         (test_pipe): Pass an extra argument for disambiguation.
39039         (main): Invoke parent_main or child_main.
39040
39041         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
39042         consistently.
39043
39044 2009-07-18  Eric Blake  <ebb9@byu.net>
39045
39046         test-pipe: fix mingw build
39047         * tests/test-pipe.c (main): Avoid fcntl on mingw.
39048
39049 2009-07-18  Bruno Haible  <bruno@clisp.org>
39050
39051         * modules/pipe-tests (Makefile.am): Fix typo.
39052
39053 2009-07-18  Eric Blake  <ebb9@byu.net>
39054
39055         error: fix mingw build
39056         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
39057         Reported by Bruno Haible.
39058
39059         error: avoid undefined use of stdout
39060         * lib/error.c (error, error_at_line): Check that fd 1 is open
39061         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
39062         is handling faults and the close_stdout module wants to report the
39063         detection of closed stdout as an error.
39064
39065 2009-07-17  Eric Blake  <ebb9@byu.net>
39066
39067         pipe: be robust in face of closed fds
39068         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
39069         should cause child to misbehave.
39070         * modules/pipe-tests: New module.
39071         * tests/test-pipe.c: New file.
39072         * tests/test-pipe.sh: New file.
39073         Reported by Akim Demaille.
39074
39075 2009-07-14  Bruno Haible  <bruno@clisp.org>
39076
39077         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
39078         Reported by anonymous kc.
39079
39080 2009-07-07  Jim Meyering  <meyering@redhat.com>
39081
39082         maint.mk: don't look for translatable strings in *.m4 or *.mk
39083         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
39084         when searching for translatable strings.
39085
39086 2009-07-05  Jim Meyering  <meyering@redhat.com>
39087
39088         remove superfluous parentheses in STREQ definition
39089         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
39090         * lib/getugroups.c (STREQ): Likewise.
39091         * lib/fnmatch.c (STREQ): Likewise.
39092         Spotted by Bruno Haible.
39093
39094 2009-07-04  Jim Meyering  <meyering@redhat.com>
39095
39096         argv-iter: new module
39097         * MODULES.html.sh: Add argv-iter.
39098         * lib/argv-iter.c, lib/argv-iter.h: New files.
39099         * modules/argv-iter: New file.
39100         * modules/argv-iter-tests: New file.
39101         * tests/test-argv-iter.c: Test it.
39102
39103 2009-07-04  Bruno Haible  <bruno@clisp.org>
39104
39105         Fix assertion.
39106         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
39107         contains more exact copies of a given entry than file2, leave the extra
39108         copies unpaired rather than aborting.
39109         Reported by Eric Blake.
39110
39111 2009-07-02  Bruno Haible  <bruno@clisp.org>
39112
39113         Speedup git-merge-changelog for git cherry-pick.
39114         * lib/git-merge-changelog.c (struct entries_mapping): New type.
39115         (entries_mapping_get): New function, extracted from compute_mapping.
39116         (entries_mapping_reverse_get): New function.
39117         (compute_mapping): Add a 'full' argument. Return the result in a
39118         'struct entries_mapping'.
39119         (main): Update. Access the mappings through entries_mapping_get.
39120         Reported by Eric Blake.
39121
39122 2009-07-02  Bruno Haible  <bruno@clisp.org>
39123
39124         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
39125         best_i.
39126
39127 2009-07-02  Bruno Haible  <bruno@clisp.org>
39128
39129         Speed up approximate search for matching ChangeLog entries.
39130         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
39131         argument. Call fstrcmp_bounded instead of fstrcmp.
39132         (compute_mapping, try_split_merged_entry, main): Update callers.
39133
39134 2009-07-02  Bruno Haible  <bruno@clisp.org>
39135
39136         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
39137
39138 2009-06-30  Bruno Haible  <bruno@clisp.org>
39139
39140         Reduce the number of uc_is_cased calls.
39141         * lib/unicase.h (casing_suffix_context_t): Add
39142         'first_char_except_ignorable' field.
39143         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
39144         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
39145         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
39146         Update initializer.
39147         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
39148         case-ignorable characters.
39149         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
39150         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
39151         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
39152         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
39153         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
39154
39155 2009-06-30  Bruno Haible  <bruno@clisp.org>
39156
39157         Tests for module 'unicase/ignorable'.
39158         * modules/unicase/ignorable-tests: New file.
39159         * tests/unicase/test-ignorable.c: New file, generated by
39160         gen-uni-tables.
39161
39162         Tests for module 'unicase/cased'.
39163         * modules/unicase/cased-tests: New file.
39164         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
39165         * tests/unicase/test-predicate-part1.h: New file, derived from
39166         tests/unictype/test-predicate-part1.h.
39167         * tests/unicase/test-predicate-part2.h: New file, same as
39168         tests/unictype/test-predicate-part2.h.
39169
39170         Fix evaluation of "Before C" condition of FINAL_SIGMA.
39171         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
39172         (output_casing_properties): New function.
39173         (main): Call it.
39174         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
39175         * lib/unicase/cased.c: Include unictype/bitmap.h.
39176         (uc_is_cased): Define through a bitmap lookup.
39177         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
39178         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
39179         (uc_is_case_ignorable): Define through a bitmap lookup.
39180         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
39181         lib/unictype/bitmap.h.
39182         (Depends-on): Add inline. Clean up.
39183         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
39184         lib/unictype/bitmap.h.
39185         (Depends-on): Add inline. Clean up.
39186         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
39187         recognition.
39188         * tests/unicase/test-u16-tolower.c (main): Likewise.
39189         * tests/unicase/test-u32-tolower.c (main): Likewise.
39190
39191 2009-06-30  Bruno Haible  <bruno@clisp.org>
39192
39193         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
39194         * lib/unicase/u16-casemap.c: Likewise.
39195         * lib/unicase/u32-casemap.c: Likewise.
39196
39197 2009-06-29  Bruno Haible  <bruno@clisp.org>
39198
39199         Define u32_casefold as a wrapper around u32_ct_casefold.
39200         * lib/unicase/u32-casefold.c: Update.
39201         * modules/unicase/u32-casefold (Depends-on): Add
39202         unicase/u32-ct-casefold, unicase/empty-prefix-context,
39203         unicase/empty-suffix-context. Clean up.
39204
39205         Define u16_casefold as a wrapper around u16_ct_casefold.
39206         * lib/unicase/u16-casefold.c: Update.
39207         * modules/unicase/u16-casefold (Depends-on): Add
39208         unicase/u16-ct-casefold, unicase/empty-prefix-context,
39209         unicase/empty-suffix-context. Clean up.
39210
39211         Define u8_casefold as a wrapper around u8_ct_casefold.
39212         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
39213         * lib/unicase/u8-casefold.c: Update.
39214         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
39215         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39216
39217         Define u32_totitle as a wrapper around u32_ct_totitle.
39218         * lib/unicase/u32-totitle.c: Update.
39219         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
39220         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39221
39222         Define u16_totitle as a wrapper around u16_ct_totitle.
39223         * lib/unicase/u16-totitle.c: Update.
39224         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
39225         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39226
39227         Define u8_totitle as a wrapper around u8_ct_totitle.
39228         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
39229         functions.
39230         (FUNC): Delegate to U_CT_TOTITLE.
39231         * lib/unicase/u8-totitle.c: Update.
39232         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
39233         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39234
39235         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
39236         invocation.
39237         * modules/unicase/u32-tolower (Depends-on): Add
39238         unicase/empty-prefix-context, unicase/empty-suffix-context.
39239
39240         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
39241         invocation.
39242         * modules/unicase/u16-tolower (Depends-on): Add
39243         unicase/empty-prefix-context, unicase/empty-suffix-context.
39244
39245         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
39246         * modules/unicase/u8-tolower (Depends-on): Add
39247         unicase/empty-prefix-context, unicase/empty-suffix-context.
39248
39249         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
39250         invocation.
39251         * modules/unicase/u32-toupper (Depends-on): Add
39252         unicase/empty-prefix-context, unicase/empty-suffix-context.
39253
39254         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
39255         invocation.
39256         * modules/unicase/u16-toupper (Depends-on): Add
39257         unicase/empty-prefix-context, unicase/empty-suffix-context.
39258
39259         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
39260         * modules/unicase/u8-toupper (Depends-on): Add
39261         unicase/empty-prefix-context, unicase/empty-suffix-context.
39262
39263         New module 'unicase/u32-ct-casefold'.
39264         * lib/unicase/u32-ct-casefold.c: New file.
39265         * modules/unicase/u32-ct-casefold: New file.
39266
39267         New module 'unicase/u16-ct-casefold'.
39268         * lib/unicase/u16-ct-casefold.c: New file.
39269         * modules/unicase/u16-ct-casefold: New file.
39270
39271         New module 'unicase/u8-ct-casefold'.
39272         * lib/unicase/u8-ct-casefold.c: New file.
39273         * lib/unicase/u-ct-casefold.h: New file, derived from
39274         lib/unicase/u-casefold.h.
39275         * modules/unicase/u8-ct-casefold: New file.
39276
39277         New module 'unicase/u32-ct-totitle'.
39278         * lib/unicase/u32-ct-totitle.c: New file.
39279         * modules/unicase/u32-ct-totitle: New file.
39280
39281         New module 'unicase/u16-ct-totitle'.
39282         * lib/unicase/u16-ct-totitle.c: New file.
39283         * modules/unicase/u16-ct-totitle: New file.
39284
39285         New module 'unicase/u8-ct-totitle'.
39286         * lib/unicase/u8-ct-totitle.c: New file.
39287         * lib/unicase/u-ct-totitle.h: New file, derived from
39288         lib/unicase/u-totitle.h.
39289         * modules/unicase/u8-ct-totitle: New file.
39290
39291         New module 'unicase/u32-ct-tolower'.
39292         * lib/unicase/u32-ct-tolower.c: New file.
39293         * modules/unicase/u32-ct-tolower: New file.
39294
39295         New module 'unicase/u16-ct-tolower'.
39296         * lib/unicase/u16-ct-tolower.c: New file.
39297         * modules/unicase/u16-ct-tolower: New file.
39298
39299         New module 'unicase/u8-ct-tolower'.
39300         * lib/unicase/u8-ct-tolower.c: New file.
39301         * modules/unicase/u8-ct-tolower: New file.
39302
39303         New module 'unicase/u32-ct-toupper'.
39304         * lib/unicase/u32-ct-toupper.c: New file.
39305         * modules/unicase/u32-ct-toupper: New file.
39306
39307         New module 'unicase/u16-ct-toupper'.
39308         * lib/unicase/u16-ct-toupper.c: New file.
39309         * modules/unicase/u16-ct-toupper: New file.
39310
39311         New module 'unicase/u8-ct-toupper'.
39312         * lib/unicase/u8-ct-toupper.c: New file.
39313         * modules/unicase/u8-ct-toupper: New file.
39314
39315         Add context arguments to u*_casemap functions.
39316         * lib/unicase/unicasemap.h: Include unicase.h.
39317         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
39318         suffix_context arguments.
39319         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
39320         functions.
39321         (FUNC): Add prefix_context and suffix_context arguments. Use
39322         uc_is_cased and uc_is_case_ignorable.
39323         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
39324         * lib/unicase/u16-casemap.c: Likewise.
39325         * lib/unicase/u32-casemap.c: Likewise.
39326         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
39327         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39328         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
39329         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39330         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
39331         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39332
39333         New module 'unicase/u32-suffix-context'.
39334         * lib/unicase/u32-suffix-context.c: New file.
39335         * modules/unicase/u32-suffix-context: New file.
39336
39337         New module 'unicase/u16-suffix-context'.
39338         * lib/unicase/u16-suffix-context.c: New file.
39339         * modules/unicase/u16-suffix-context: New file.
39340
39341         New module 'unicase/u8-suffix-context'.
39342         * lib/unicase/u8-suffix-context.c: New file.
39343         * lib/unicase/u-suffix-context.h: New file.
39344         * modules/unicase/u8-suffix-context: New file.
39345
39346         New module 'unicase/empty-suffix-context'.
39347         * lib/unicase/empty-suffix-context.c: New file.
39348         * modules/unicase/empty-suffix-context: New file.
39349
39350         New module 'unicase/u32-prefix-context'.
39351         * lib/unicase/u32-prefix-context.c: New file.
39352         * modules/unicase/u32-prefix-context: New file.
39353
39354         New module 'unicase/u16-prefix-context'.
39355         * lib/unicase/u16-prefix-context.c: New file.
39356         * modules/unicase/u16-prefix-context: New file.
39357
39358         New module 'unicase/u8-prefix-context'.
39359         * lib/unicase/u8-prefix-context.c: New file.
39360         * lib/unicase/u-prefix-context.h: New file.
39361         * lib/unicase/context.h: New file.
39362         * modules/unicase/u8-prefix-context: New file.
39363
39364         New module 'unicase/empty-prefix-context'.
39365         * lib/unicase/empty-prefix-context.c: New file.
39366         * modules/unicase/empty-prefix-context: New file.
39367
39368         New module 'unicase/ignorable'.
39369         * lib/unicase/ignorable.c: New file.
39370         * modules/unicase/ignorable: New file.
39371
39372         New module 'unicase/cased'.
39373         * lib/unicase/caseprop.h: New file.
39374         * lib/unicase/cased.c: New file.
39375         * modules/unicase/cased: New file.
39376
39377         New functions for case mapping of substrings.
39378         * lib/unicase.h (casing_prefix_context_t): New type.
39379         (unicase_empty_prefix_context): New variable.
39380         (u8_casing_prefix_context, u16_casing_prefix_context,
39381         u32_casing_prefix_context, u8_casing_prefixes_context,
39382         u16_casing_prefixes_context, u32_casing_prefixes_context): New
39383         declarations.
39384         (casing_suffix_context_t): New type.
39385         (unicase_empty_suffix_context): New variable.
39386         (u8_casing_suffix_context, u16_casing_suffix_context,
39387         u32_casing_suffix_context, u8_casing_suffixes_context,
39388         u16_casing_suffixes_context, u32_casing_suffixes_context,
39389         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
39390         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
39391         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
39392         declarations.
39393
39394 2009-06-28  Jim Meyering  <meyering@redhat.com>
39395
39396         boostrap: indent only with spaces
39397         * build-aux/bootstrap: Indent only with spaces, never TABs.
39398
39399         bootstrap: split long lines
39400         * build-aux/bootstrap: Keep line length < 80.
39401
39402         bootstrap: sync from coreutils
39403         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
39404         just as autoreconf does.  Verify a list of prerequisite
39405         package-name,version-number pairs if defined in bootstrap.conf.
39406         Refer to README-prereq, if prerequisites are not satisfied.
39407
39408 2009-06-27  Eric Blake  <ebb9@byu.net>
39409
39410         tests: add test for bogus NULL definition
39411         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
39412         * tests/test-stdlib.c: Likewise.
39413         * tests/test-string.c: Likewise.
39414         * tests/test-locale.c: Likewise.
39415         * tests/test-unistd.c: Likewise.
39416         * modules/stdio-tests (Depends-on): Add verify.
39417         * modules/stdlib-tests (Depends-on): Likewise.
39418         * modules/string-tests (Depends-on): Likewise.
39419         * modules/locale-tests (Depends-on): Likewise.
39420         * modules/unistd-tests (Depends-on): Likewise.
39421
39422 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
39423
39424         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
39425         self-explaining comment.
39426         * m4/selinux-selinux-h: Update serial.
39427         (gl_LIBSELINUX): New macro, adding a warning for missing development
39428         packages to code extracted from...
39429         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
39430         Add warning for missing development packages here, too.
39431
39432 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
39433
39434         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
39435
39436 2009-06-25  Eric Blake  <ebb9@byu.net>
39437
39438         version-etc: fix regression
39439         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
39440         gcc.
39441         (version_etc): Use it, to catch bugs with trailing NULL.
39442         * lib/version-etc.c (version_etc_arn): Delete unused argument.
39443         (version_etc_va): Fix logic bug.
39444         * modules/version-etc-tests: Add test.
39445         * tests/test-version-etc.c: New file.
39446         * tests/test-version-etc.sh: Likewise.
39447
39448 2009-06-25  Sam Steingold  <sds@gnu.org>
39449
39450         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
39451         mbtowc declaration.
39452
39453 2009-06-25  Eric Blake  <ebb9@byu.net>
39454
39455         fpurge: migrate into <stdio.h>
39456         * lib/fpurge.h: Delete...
39457         * lib/stdio.in.h (fpurge): ...and declare here, instead.
39458         * lib/fpurge.c (fpurge): Change declaring header.
39459         * modules/fpurge (Files): Drop deleted file.
39460         (Depends-on): Add stdio.
39461         (configure.ac): Set witness.
39462         * modules/stdio (Makefile.am): Support fpurge macros.
39463         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39464         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
39465         * lib/fflush.c: Update client.
39466         * tests/test-fpurge.c: Likewise.
39467         * NEWS: Mention the change.
39468
39469 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39470
39471         * lib/argp-version-etc.c (program_authors): Add const
39472         qualifier.
39473         * lib/version-etc.c: Fix typos in the comments.
39474         * modules/argp-version-etc: Depends on version-etc.
39475
39476 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39477
39478         argp-version-etc: new module.
39479
39480         * lib/argp-version-etc.c: New file.
39481         * lib/argp-version-etc.h: New file.
39482         * modules/argp-version-etc: New file.
39483         * modules/argp-version-etc-tests: New file.
39484         * tests/test-argp-version-etc.c: New test.
39485         * tests/test-argp-version-etc-1.sh: New test.
39486
39487 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39488
39489         Provide additional interfaces and documentation for version-etc
39490         module.
39491
39492         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
39493         interfaces.
39494         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
39495         prototypes.
39496
39497 2009-06-24  Bruno Haible  <bruno@clisp.org>
39498
39499         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
39500         HAVE_LIB${NAME} macro.
39501         Reported by Sam Steingold <sds@gnu.org>.
39502
39503 2009-06-23  Simon Josefsson  <simon@josefsson.org>
39504
39505         * modules/hash-tests (test_hash_LDADD): Link to libintl when
39506         needed.
39507
39508 2009-06-21  Bruno Haible  <bruno@clisp.org>
39509
39510         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
39511         work.
39512         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
39513         together with LIB${NAME}, LTLIB${NAME}.
39514         Reported by Sam Steingold <sds@gnu.org>.
39515
39516 2009-06-20  Jim Meyering  <meyering@redhat.com>
39517
39518         tests: make sc_require_test_exit_idiom more generic
39519         * top/maint.mk (Exit_witness_file): New overridable variable.
39520         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
39521         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
39522
39523 2009-06-19  Jim Meyering  <meyering@redhat.com>
39524
39525         hash: reverse order of src/dst parameters in an internal interface
39526         * lib/hash.c (transfer_entries): Reverse order of parameters to
39527         put DST before SRC.  Adjust callers.
39528
39529         tests: test-hash: avoid wholesale duplication
39530         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
39531         Instead, use a loop and add a single conditional.
39532
39533         tests: test-hash: allow seed selection via a command line argument
39534         * tests/test-hash.c (get_seed): New function.
39535         (main): Use it.
39536
39537 2009-06-19  Eric Blake  <ebb9@byu.net>
39538
39539         hash: avoid memory leak on allocation failure
39540         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
39541         failure.  Factor repeated algorithm...
39542         (transfer_entries): ...into new helper routine.
39543         (hash_delete): React to hash_rehash return value.
39544
39545         hash: reduce memory pressure in hash_rehash no-op case
39546         * lib/hash.c (next_prime): Avoid overflow.
39547         (hash_initialize): Factor bucket size computation...
39548         (compute_bucket_size): ...into new helper function.
39549         (hash_rehash): Use new function and open coding to reduce memory
39550         pressure, and avoid a memory leak in USE_OBSTACK code.
39551         Reported by Jim Meyering.
39552
39553 2009-06-18  Eric Blake  <ebb9@byu.net>
39554
39555         hash: make rotation more obvious
39556         * modules/hash (Depends-on): Add bitrotate and stdint.
39557         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
39558         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
39559         (SIZE_MAX): Rely on headers for definition.
39560         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
39561         (raw_hasher): Use rotr_sz.
39562         Suggested by Jim Meyering.
39563
39564         hash: fix memory leak in last patch
39565         * lib/hash.c (hash_rehash): Avoid memory leak.
39566
39567         hash: avoid no-op rehashing
39568         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
39569
39570         hash: provide default callback functions
39571         * lib/hash.c (raw_hasher, raw_comparator): New functions.
39572         (hash_initialize): Use them as defaults.
39573         * tests/test-hash.c (main): Test this.
39574
39575         hash: minor optimization
39576         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
39577         when possible.
39578         (hash_initialize): Document this promise.
39579         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
39580         * tests/test-hash.c (hash_compare_strings): Test this.
39581
39582 2009-06-18  Bruno Haible  <bruno@clisp.org>
39583
39584         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
39585         going to be replaced anyway.
39586
39587 2009-06-18  Bruno Haible  <bruno@clisp.org>
39588
39589         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
39590         in one place.
39591         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
39592         be replaced anyway.
39593
39594 2009-06-18  Eric Blake  <ebb9@byu.net>
39595
39596         hash: check for resize before insertion
39597         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
39598         threshold before insertion, so that a pathological hash_rehash
39599         that fills every bucket can still trigger another rehash.
39600
39601 2009-06-18  Jim Meyering  <meyering@redhat.com>
39602
39603         hash-tests: add a loop around the small tests
39604         * tests/test-hash.c (main): Repeat small tests with selected
39605         small initial table sizes.
39606
39607 2009-06-17  Eric Blake  <ebb9@byu.net>
39608
39609         hash: minor cleanups
39610         * lib/hash.h (hash_entry): Make opaque, by moving...
39611         * lib/hash.c (hash_entry): ...here.
39612         (hash_insert): Clarify restrictions on what can be inserted.
39613         (hash_get_next): Clarify when it is safe to remove an element
39614         during traversal.
39615         (check_tuning): Skip verification when tuning is known safe.
39616         (hash_initialize): Clarify restrictions on tuning.
39617
39618 2009-06-17  Jim Meyering  <jim@meyering.net>
39619         and Eric Blake  <ebb9@byu.net>
39620
39621         hash-tests: new module
39622         * modules/hash-tests: New file.
39623         * tests/test-hash.c: New file.
39624
39625 2009-06-17  Eric Blake  <ebb9@byu.net>
39626
39627         strstr-simple: document new module
39628         * MODULES.html.sh: Document new module.
39629
39630         strstr, strcasestr: replace on platforms with broken memchr
39631         * modules/strstr: Split into...
39632         * modules/strstr-simple: ...new module that does not care about
39633         performance, but does care about glibc bug.
39634         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
39635         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
39636         if platform memchr is broken, per Debian bug 521737.
39637         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
39638         memchr.
39639         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
39640         * doc/posix-functions/strstr.texi (strstr): Document the fix.
39641         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39642         * modules/mountlist (Depends-on): Add strstr-simple.
39643         * modules/gen-uni-tables (Depends-on): Likewise.
39644         * modules/argz (Depends-on): Add strstr.
39645
39646 2009-06-17  Bruno Haible  <bruno@clisp.org>
39647
39648         * modules/posix_spawn-internal (Depends-on): Add errno.
39649
39650 2009-06-17  Bruno Haible  <bruno@clisp.org>
39651
39652         Define missing ESTALE on Interix 3.5.
39653         * lib/errno.in.h (ESTALE): Assign a value if missing.
39654         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
39655         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
39656         missing.
39657         * doc/posix-headers/errno.texi: Mention the Interix bug.
39658         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
39659
39660 2009-06-15  Eric Blake  <ebb9@byu.net>
39661
39662         memchr, memchr2: add valgrind exception
39663         * lib/memchr.valgrind: New file.
39664         * lib/memchr2.valgrind: New file.
39665         * modules/memchr (Files): Distribute valgrind file.
39666         * modules/memchr2 (Files): Likewise.
39667
39668         docs: memchr is no longer obsolete
39669         * MODULES.html.sh: Move memchr from obsolete to string.h section.
39670         * lib/string.in.h (memchr): Simplify logic.
39671
39672 2009-06-14  Jim Meyering  <meyering@redhat.com>
39673
39674         link-follow: fix the "checking..." message to not mention trailing slash
39675         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
39676         never considered trailing slashes.
39677
39678 2009-06-14  Bruno Haible  <bruno@clisp.org>
39679
39680         * m4/memchr.m4: Mention also the bug on IA-64.
39681         * doc/posix-functions/memchr.texi: Likewise.
39682
39683 2009-06-12  Eric Blake  <ebb9@byu.net>
39684
39685         memchr: detect broken x86_64 and alpha implementations
39686         * modules/memchr-tests (Depends-on): Move mmap detection...
39687         * modules/memchr (Depends-on): ...here.
39688         (configure.ac): Set indicator.
39689         * lib/string.in.h (memchr): Declare replacement.
39690         * modules/string (Makefile.am): Trigger replacement.
39691         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39692         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
39693         bugs.
39694         * doc/posix-functions/memchr.texi (memchr): Document the bug.
39695         * modules/getpagesize (License): Relax license.
39696
39697 2009-06-11  Bruno Haible  <bruno@clisp.org>
39698
39699         * lib/idpriv.h: Add more references.
39700
39701 2009-06-08  Bruno Haible  <bruno@clisp.org>
39702
39703         Tests for module 'idpriv-droptemp'.
39704         * modules/idpriv-droptemp-tests: New file.
39705         * tests/test-idpriv-droptemp.sh: New file.
39706         * tests/test-idpriv-droptemp.su.sh: New file.
39707         * tests/test-idpriv-droptemp.c: New file.
39708
39709         New module 'idpriv-droptemp'.
39710         * lib/idpriv-droptemp.c: New file.
39711         * modules/idpriv-droptemp: New file.
39712
39713 2009-06-08  Bruno Haible  <bruno@clisp.org>
39714
39715         Tests for module 'idpriv-drop'.
39716         * modules/idpriv-drop-tests: New file.
39717         * tests/test-idpriv-drop.sh: New file.
39718         * tests/test-idpriv-drop.su.sh: New file.
39719         * tests/test-idpriv-drop.c: New file.
39720
39721         New module 'idpriv-drop'.
39722         * lib/idpriv.h: New file.
39723         * lib-idpriv-drop.c: New file.
39724         * m4/idpriv.m4: New file.
39725         * modules/idpriv-drop: New file.
39726
39727 2009-06-08  Bruno Haible  <bruno@clisp.org>
39728
39729         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
39730         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39731         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39732         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39733         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39734         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39735         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39736
39737 2009-06-08  Eric Blake  <ebb9@byu.net>
39738
39739         test-strstr: use memory fence, when possible
39740         * tests/test-strstr.c (main): Use memory fence, in order to be
39741         more likely to trigger Debian bug 521737.
39742         * modules/strstr-tests (Files): Pull in additional files.
39743
39744         memchr: no longer obsolete, for wider field testing
39745         * modules/memchr (Status, Notice): Delete, this module is no
39746         longer obsolete.
39747         * modules/vasnprintf (Depends-on): Add memchr.
39748
39749 2009-06-07  Jim Meyering  <meyering@redhat.com>
39750
39751         hash: declare some functions with the warn_unused_result attribute
39752         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
39753
39754 2009-06-07  Bruno Haible  <bruno@clisp.org>
39755
39756         * tests/test-alignof.c: Don't test int64_t if it does not exist.
39757         Reported by Eric Blake.
39758
39759 2009-06-06  Eric Blake  <ebb9@byu.net>
39760
39761         test-alignof: fix typo with long double
39762         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
39763         compiler error.
39764
39765 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
39766
39767         Escape non-texinfo { and }s.
39768         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
39769         markup error.
39770
39771 2009-06-04  Jim Meyering  <meyering@redhat.com>
39772
39773         gitlog-to-changelog: don't infloop on an empty commit log
39774         * build-aux/gitlog-to-changelog: Warn about an empty log message.
39775         Reported by Boris Petersen <transacid@centerim.org>.
39776
39777 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
39778
39779         version-etc: extend for packagers
39780         Add three new configure options, intended for packagers:
39781           --with-packager="packager name"
39782           --with-packager-version="packager-specific version"
39783           --with-packager-bug-reports="packager bug reporting"
39784         An example with coreutils:
39785           $ ./configure \
39786             --with-packager=Gentoo \
39787             --with-packager-bug-report=http://bugs.gentoo.org/ \
39788             --with-packager-version="patchset 1.6"
39789           $ ./src/ls --version | head -n2
39790           ls (GNU coreutils) 7.1-dirty
39791           Packaged by Gentoo (patchset 1.6)
39792         Note that the bug reporting info via --help doesn't show up because
39793         coreutils uses its own custom emit_bug_reporting_address() implementation
39794         in src/system.h.  If it didn't, it'd look like:
39795           $ ./src/ls --help | tail -n4
39796           Report bugs to <bug-coreutils@gnu.org>.
39797           Report Gentoo bugs to <http://bugs.gentoo.org/>.
39798           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
39799           General help using GNU software: <http://www.gnu.org/gethelp/>.
39800         * lib/version-etc.c: Print new information, if provided.
39801         * m4/version-etc.m4: New file.
39802         * modules/version-etc (Files): Add m4/version-etc.m4.
39803         (configure.ac): Add gl_VERSION_ETC.
39804
39805 2009-05-31  Bruno Haible  <bruno@clisp.org>
39806
39807         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
39808         and 'int64_t'.
39809         * modules/alignof-tests (Dependencies): Add stdint.
39810         Reported by Eric Blake.
39811
39812 2009-05-31  Bruno Haible  <bruno@clisp.org>
39813
39814         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
39815         restriction due to compiler bugs.
39816         Reported by Eric Blake.
39817
39818 2009-05-31  Simon Josefsson  <simon@josefsson.org>
39819             Bruno Haible  <bruno@clisp.org>
39820
39821         Fix test-alignof failure.
39822         * lib/alignof.h (alignof_slot): New macro.
39823         (alignof_type): New macro, with the same semantics as the previous
39824         'alignof'.
39825         (alignof): Alias to alignof_slot.
39826         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
39827         check that the results are usable as constant expressions.
39828
39829 2009-05-31  Bruno Haible  <bruno@clisp.org>
39830
39831         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
39832         * tests/test-memchr.c (main): Check that memchr does not read past the
39833         first occurrence of the byte.
39834         * tests/test-strstr.c (main): Update comment.
39835         Suggested by Eric Blake.
39836
39837 2009-05-30  Bruno Haible  <bruno@clisp.org>
39838
39839         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
39840         detail how to use dumpbin.
39841         Reported by David Byron <dbyron@dbyron.com>.
39842
39843 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39844
39845         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
39846
39847 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39848
39849         * m4/manywarnings.m4: Add GCC 4.4 warnings.
39850
39851 2009-05-28  Bruno Haible  <bruno@clisp.org>
39852
39853         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
39854         build-aux/ files.
39855
39856 2009-05-28  Simon Josefsson  <simon@josefsson.org>
39857
39858         * gnulib-tool (func_import): Transform license on build-aux/ files too.
39859
39860 2009-05-27  Simon Josefsson  <simon@josefsson.org>
39861
39862         * gnulib-tool (sed_transform_main_lib_file)
39863         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
39864         regexps.
39865
39866 2009-05-26  Simon Josefsson  <simon@josefsson.org>
39867
39868         * tests/test-strstr.c: Add another self-test.
39869         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
39870         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
39871
39872 2009-05-23  Bruno Haible  <bruno@clisp.org>
39873
39874         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
39875         change.
39876
39877 2009-05-21  Bruno Haible  <bruno@clisp.org>
39878
39879         Simplify use of mode_t varargs.
39880         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
39881         uses 'mode_t' or 'int'.
39882         * lib/openat.c (openat): Likewise.
39883         * lib/open-safer.c (open_safer): Likewise.
39884         * m4/mode_t.m4: New file.
39885         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
39886         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
39887         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
39888         * modules/open (Files): Add m4/mode_t.m4.
39889         * modules/openat (Files): Likewise.
39890         * modules/fcntl-safer (Files): Likewise.
39891         Suggested by Eric Blake.
39892
39893 2009-05-21  Pádraig Brady  <P@draigbrady.com>
39894
39895         * doc/glibc-functions/fallocate.texi: New file.
39896         * doc/gnulib.texi: Include it.
39897
39898 2009-05-21  Eric Blake  <ebb9@byu.net>
39899             Bruno Haible  <bruno@clisp.org>
39900
39901         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
39902         invocations.
39903         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39904
39905 2009-05-21  Eric Blake  <ebb9@byu.net>
39906             Bruno Haible  <bruno@clisp.org>
39907
39908         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
39909         include_next. Fix of 2008-11-20 commit.
39910         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
39911         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
39912         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
39913         NEXT_MATH_H.
39914         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
39915         instead of NEXT_MATH_H.
39916
39917 2009-05-21  Bruno Haible  <bruno@clisp.org>
39918
39919         Avoid redefinition warnings for SIZE_MAX.
39920         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
39921         Reported by Simon Josefsson.
39922
39923 2009-05-21  Bruno Haible  <bruno@clisp.org>
39924
39925         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
39926         AC_CACHE_VAL.
39927
39928 2009-05-20  Bruno Haible  <bruno@clisp.org>
39929
39930         Make zeroptr.h work on mingw.
39931         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
39932         mprotect.
39933         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
39934         * modules/memchr2-tests (configure.ac): Likewise.
39935         * modules/memcmp-tests (configure.ac): Likewise.
39936         * modules/memmem-tests (configure.ac): Likewise.
39937         * modules/memrchr-tests (configure.ac): Likewise.
39938         Reported by Simon Josefsson.
39939
39940 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39941
39942         * tests/test-glob.c: Include string.h for strcmp prototype.
39943
39944 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39945
39946         * modules/getdelim (Depends-on): Add explicit stdint, although it
39947         was implicitly already pulled in via realloc-posix.
39948         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
39949
39950 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39951
39952         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
39953         G. Christensen" <tgc@jupiterrise.com>.
39954         * m4/sys_socket_h.m4: Check for sa_family_t.
39955         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
39956         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
39957         * tests/test-sys_socket.c: Check that sa_family_t works.
39958
39959 2009-05-18  Eric Blake  <ebb9@byu.net>
39960
39961         maint.mk: allow gnulib_dir in VPATH build
39962         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
39963
39964 2009-05-15  Jim Meyering  <meyering@redhat.com>
39965
39966         maint.mk: Give gnulib_dir a default definition.
39967         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
39968         Thus, most packages no longer need to specify this variable in cfg.mk
39969
39970 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
39971
39972         rename.m4: fix typos that would make non-mingw cross-configure fail
39973         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
39974
39975 2009-05-13  Eric Blake  <ebb9@byu.net>
39976
39977         mmap-anon: avoid out-of-order autoconf expansion
39978         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
39979         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
39980         * modules/memchr-tests (Depends-on): Add extensions.
39981         * modules/memchr2-tests (Depends-on): Add extensions.
39982         * modules/memcmp-tests (Depends-on): Add extensions.
39983         * modules/memmem-tests (Depends-on): Add extensions.
39984         * modules/memrchr-tests (Depends-on): Add extensions.
39985
39986 2009-05-13  Bruno Haible  <bruno@clisp.org>
39987
39988         Make some tests ISO C 99 compliant.
39989         * tests/zerosize-ptr.h: New file.
39990         * tests/test-memchr.c: Include zerosize-ptr.h.
39991         (main): Use a zero-size object pointer instead of NULL.
39992         * tests/test-memchr2.c: Include zerosize-ptr.h.
39993         (main): Use a zero-size object pointer instead of NULL.
39994         * tests/test-memcmp.c: Include zerosize-ptr.h.
39995         (main): Use a zero-size object pointer instead of NULL.
39996         * tests/test-memmem.c: Include zerosize-ptr.h.
39997         (main): Use a zero-size object pointer instead of NULL.
39998         * tests/test-memrchr.c: Include zerosize-ptr.h.
39999         (main): Use a zero-size object pointer instead of NULL.
40000         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
40001         m4/mmap-anon.m4.
40002         (Depends-on): Add getpagesize.
40003         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40004         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
40005         m4/mmap-anon.m4.
40006         (Depends-on): Add getpagesize.
40007         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40008         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
40009         m4/mmap-anon.m4.
40010         (Depends-on): Add getpagesize.
40011         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40012         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
40013         m4/mmap-anon.m4.
40014         (Depends-on): Add getpagesize.
40015         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40016         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
40017         m4/mmap-anon.m4.
40018         (Depends-on): Add getpagesize.
40019         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40020
40021 2009-05-12  Bruno Haible  <bruno@clisp.org>
40022
40023         Tests for module 'alignof'.
40024         * modules/alignof-tests: New file.
40025         * tests/test-alignof.c: New file.
40026
40027 2009-05-12  Bruno Haible  <bruno@clisp.org>
40028
40029         Fix alignof macro.
40030         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
40031         vendor compilers that are always correct.
40032
40033 2009-05-12  Bruno Haible  <bruno@clisp.org>
40034
40035         Make the MAP_ANONYMOUS detection work on HP-UX 11.
40036         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
40037         not whether its fully works.
40038
40039 2009-05-12  Bruno Haible  <bruno@clisp.org>
40040
40041         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
40042
40043 2009-05-12  Jim Meyering  <meyering@redhat.com>
40044
40045         * top/maint.mk: Adjust backslash alignment.
40046
40047 2009-05-11  Simon Josefsson  <simon@josefsson.org>
40048
40049         * top/maint.mk: Make $(srcdir)/build-aux configurable.
40050
40051 2009-05-11  Eric Blake  <ebb9@byu.net>
40052
40053         argp: avoid undefined behavior
40054         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
40055         macros.
40056
40057 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40058
40059         * tests/test-vc-list-files-git.sh: Do git config of user.email and
40060         user.name to prevent git commit from complaining.
40061
40062 2009-05-10  Bruno Haible  <bruno@clisp.org>
40063
40064         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
40065         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
40066         it rewrites every file name only once.
40067         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
40068
40069 2009-05-08  Bruno Haible  <bruno@clisp.org>
40070
40071         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
40072         instead of 'max'.
40073
40074 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40075
40076         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
40077         sockaddr_storage test.
40078
40079 2009-05-07  Simon Josefsson  <simon@josefsson.org>
40080
40081         * modules/sys_socket (Makefile.am): Substitute
40082         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
40083         * m4/sys_socket_h.m4: Check for sockaddr_storage.
40084         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
40085         * tests/test-sys_socket.c: Check sockaddr_storage.
40086
40087 2009-05-08  Bruno Haible  <bruno@clisp.org>
40088
40089         New module 'alignof'.
40090         * lib/alignof.h: New file.
40091         * modules/alignof: New file.
40092
40093 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40094             Bruno Haible  <bruno@clisp.org>
40095
40096         Fix test-file-has-acl on FreeBSD.
40097         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
40098         mask is implicitly added.
40099         * tests/test-file-has-acl.c: Include <signal.h>.
40100         (main): Terminate the test after 5 seconds.
40101         * modules/acl-tests (configure.ac): Check for alarm function.
40102
40103 2009-05-04  Bruno Haible  <bruno@clisp.org>
40104
40105         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
40106         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
40107         * modules/errno (configure.ac): Drop AC_REQUIRE.
40108         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
40109         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
40110
40111 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40112
40113         * modules/glob-tests: New module.
40114         * tests/test-glob.c: Add.
40115
40116 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40117
40118         * modules/fnmatch-tests: New module.
40119         * tests/test-fnmatch.c: Add.
40120
40121 2009-05-04  Eric Blake  <ebb9@byu.net>
40122
40123         maint: make the new no-submodule-changes rule VPATH-safe
40124         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
40125
40126 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40127             Bruno Haible  <bruno@clisp.org>
40128
40129         acl: Fix infinite loop on FreeBSD.
40130         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
40131         of return value from acl_get_entry.
40132         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
40133         Likewise.
40134
40135 2009-05-03  Bruno Haible  <bruno@clisp.org>
40136
40137         * lib/acl-internal.h (acl_entries): Clarify return value.
40138         * lib/acl_entries.c (acl_entries): Likewise.
40139
40140 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40141
40142         Bug fix in acl module.
40143         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
40144
40145 2009-05-03  Bruno Haible  <bruno@clisp.org>
40146
40147         Create gperf-generated file in the source dir, not in the build dir.
40148         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
40149         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
40150         * modules/unicase/locale-language (unicase/locale-languages.h):
40151         Likewise.
40152         * modules/unicase/special-casing (unicase/special-casing-table.h):
40153         Likewise.
40154         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
40155         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
40156         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
40157         Reported by Ralf Wildenhues.
40158
40159 2009-05-03  Bruno Haible  <bruno@clisp.org>
40160
40161         * modules/fnmatch (Description, configure.ac): Taken from
40162         fnmatch-posix.
40163         * modules/fnmatch-posix: Turn into a symbolic reference to the
40164         'fnmatch' module, and deprecate.
40165         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
40166
40167 2009-05-03  Bruno Haible  <bruno@clisp.org>
40168
40169         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
40170         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
40171         Reported by Ralf Wildenhues.
40172
40173 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40174
40175         * m4/fnmatch.m4: Fix fnmatch re-define.
40176
40177 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40178
40179         priv-set: new module and tests; adapt write-any-file
40180         * lib/priv-set.c: New file.
40181         * lib/priv-set.h: New file.
40182         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
40183         * lib/write-any-file.c: Simplify by using priv-set module.
40184         * m4/priv-set.m4: New file.
40185         * modules/priv-set: New file.
40186         * modules/unlinkdir: Add dependency on priv-set module.
40187         * modules/write-any-file: Likewise.
40188
40189         Tests for module 'priv-set'.
40190         * modules/priv-set-tests: New file.
40191         * tests/test-priv-set.c: New file.
40192
40193 2009-05-03  Jim Meyering  <meyering@redhat.com>
40194             Bruno Haible  <bruno@clisp.org>
40195
40196         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
40197         use the converted UTF-8 variant of the name instead.
40198
40199 2009-05-03  Jim Meyering  <meyering@redhat.com>
40200
40201         tests: tighten some getdate tests
40202         * tests/test-getdate.c (main): Tighten tests: require equality,
40203         not just greater than.  Set TZ envvar to UTC0.
40204
40205 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
40206
40207         getdate: correctly interpret "next monday" when run on a Monday
40208         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
40209         that e.g., "next tues" (when run on a tuesday) results in a date
40210         that is one week in the future, and not today's date.
40211         I.e., add a week when the wday is the same as the current one.
40212         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
40213         and earlier by Martin Bernreuther and Jan Minář.
40214         * tests/test-getdate.c (main): Check that "next DAY" is always in
40215         the future and that "last DAY" is always in the past.
40216
40217 2009-05-02  Jim Meyering  <meyering@redhat.com>
40218
40219         build: ensure that a release build fails when a submodule is unclean
40220         * top/maint.mk (no-submodule-changes): New rule.
40221         (alpha beta major): Depend on it.
40222
40223 2009-05-02  Bruno Haible  <bruno@clisp.org>
40224
40225         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
40226         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
40227         shell variable gl_fnmatch_required to detect which variant is
40228         requested.
40229         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
40230         gl_FUNC_FNMATCH_POSIX.
40231         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
40232         exclude fnmatch-posix.
40233
40234 2009-05-02  Bruno Haible  <bruno@clisp.org>
40235
40236         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
40237         * modules/mbsrtowcs (License): Change to LGPLv2+.
40238         * modules/strnlen1 (License): Likewise.
40239         Reported by Simon Josefsson.
40240
40241 2009-05-02  Bruno Haible  <bruno@clisp.org>
40242
40243         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
40244         "cross".
40245         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
40246         gnulib-tool was called with option --source-base=lib.
40247
40248 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40249
40250         Use automake *-local hooks without commands, for extensibility.
40251         * modules/localcharset (Makefile.am): Rename install-exec-local
40252         rule to install-exec-localcharset, and make it a prerequisite of
40253         install-exec-local.  Likewise, rename the uninstall-local rule to
40254         uninstall-localcharset, and make it a prerequisite of the former.
40255
40256 2009-05-01  Bruno Haible  <bruno@clisp.org>
40257
40258         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
40259         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40260         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
40261         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
40262         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
40263         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40264         m4/locale-zh.m4, m4/codeset.m4.
40265
40266         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40267         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
40268         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40269         m4/locale-zh.m4.
40270
40271         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
40272         REPLACE_WCRTOMB if mbstate_t must be replaced.
40273         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
40274         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
40275
40276 2009-05-01  Bruno Haible  <bruno@clisp.org>
40277
40278         Avoid compiler warnings when redefining macros defined by <libintl.h>.
40279         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
40280         dngettext, dcngettext, textdomain, bindtextdomain,
40281         bind_textdomain_codeset): Undefine before redefining.
40282
40283 2009-04-30  Bruno Haible  <bruno@clisp.org>
40284
40285         Fix bug introduced on 2009-04-25.
40286         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
40287         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
40288         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
40289         is defined.
40290         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
40291         is defined.
40292         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
40293         is defined.
40294         Reported by Elbert_Pol <elbert.pol@gmail.com>.
40295
40296 2009-04-28  Bruno Haible  <bruno@clisp.org>
40297
40298         Comment tweaks.
40299         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
40300         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
40301         * lib/unicase.h (u*_casexfrm): Likewise.
40302         Reported by Paolo Bonzini.
40303
40304 2009-04-28  Bruno Haible  <bruno@clisp.org>
40305
40306         Fix a compilation error.
40307         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
40308         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40309         Reported by Jim Meyering.
40310
40311 2009-04-27  Bruno Haible  <bruno@clisp.org>
40312
40313         New module 'libunistring'.
40314         * modules/libunistring: New file.
40315         * m4/libunistring.m4: New file.
40316         * MODULES.html.sh (Unicode string functions): Add it.
40317
40318 2009-04-27  Eric Blake  <ebb9@byu.net>
40319
40320         maint.mk: allow package-specific header to provide <config.h>
40321         * top/maint.mk (sc_require_config_h): New variable.
40322         (sc_require_config_h, sc_require_config_h_first): Use it.
40323
40324 2009-04-27  Simon Josefsson  <simon@josefsson.org>
40325
40326         * top/maint.mk (sc_avoid_if_before_free): Except
40327         useless-if-before-free script.
40328
40329 2009-04-27  Eric Blake  <ebb9@byu.net>
40330
40331         maintainer-makefile: depend on all required helper scripts
40332         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
40333         useless-if-before-free.
40334         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
40335         version, rather than assuming gnulib checkout is available.
40336         Reported by Simen Josefsson.
40337
40338 2009-04-26  Bruno Haible  <bruno@clisp.org>
40339
40340         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
40341         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
40342         "../" or "..".
40343
40344 2009-04-26  Bruno Haible  <bruno@clisp.org>
40345
40346         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
40347         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
40348         AC_LIB_HAVE_LINKFLAGS.
40349
40350 2009-04-26  Bruno Haible  <bruno@clisp.org>
40351
40352         Simplify calling convention of u*_conv_from_encoding.
40353         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
40354         u32_conv_from_encoding): Expect a resultbuf argument and return the
40355         result directly as a pointer.
40356         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
40357         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
40358         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
40359         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
40360         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
40361         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40362         Update.
40363         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
40364         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
40365         * lib/vasnprintf.c (VASNPRINTF): Update.
40366         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
40367         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
40368         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
40369         * NEWS: Mention the change.
40370
40371 2009-04-26  Bruno Haible  <bruno@clisp.org>
40372
40373         Simplify calling convention of u*_conv_to_encoding.
40374         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40375         u32_conv_to_encoding): Expect a resultbuf argument and return the
40376         result directly as a pointer.
40377         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40378         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
40379         freeing scaled_offsets if mem_iconveha failed.
40380         * lib/unicase/u-casexfrm.h (FUNC): Update.
40381         * lib/uninorm/u-normxfrm.h (FUNC): Update.
40382         * lib/vasnprintf.c (VASNPRINTF): Update.
40383         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
40384         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
40385         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
40386         * NEWS: Mention the change.
40387
40388 2009-04-26  Bruno Haible  <bruno@clisp.org>
40389
40390         Avoid test failures on AIX and OSF/1.
40391         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
40392         malloc(0).
40393         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40394         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40395         Likewise.
40396         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
40397         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
40398         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
40399         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
40400         * doc/posix-functions/malloc.texi: Document the portability problem
40401         related to malloc(0).
40402
40403 2009-04-26  Bruno Haible  <bruno@clisp.org>
40404
40405         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
40406         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
40407         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
40408
40409 2009-04-25  Bruno Haible  <bruno@clisp.org>
40410
40411         Avoid link error when creating a namespace clean library.
40412         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
40413         as macro with arguments if already defined as an alias.
40414         * lib/signbitf.c (gl_signbitf): Don't undefine.
40415         * lib/signbitd.c (gl_signbitd): Don't undefine.
40416         * lib/signbitl.c (gl_signbitl): Don't undefine.
40417
40418 2009-04-25  Jim Meyering  <meyering@redhat.com>
40419
40420         vc-list-files: fix another quoting bug
40421         * build-aux/vc-list-files: Avoid sed backslash expansion
40422         of pathological directory names.
40423
40424 2009-04-25  Eric Blake  <ebb9@byu.net>
40425
40426         vc-list-files: fix shell quoting error
40427         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
40428         timestamp.
40429
40430 2009-04-25  Jim Meyering  <meyering@redhat.com>
40431
40432         vc-list-files: restore lost functionality with subdir argument
40433         * build-aux/vc-list-files: When given a non-"." sub-directory
40434         argument, substitute the $dir/ prefix back onto each resulting name.
40435         Otherwise, coreutils' root_tests check would fail.
40436
40437 2009-04-24  Eric Blake  <ebb9@byu.net>
40438
40439         vc-list-files: ignore git symlinks
40440         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
40441         than ls-files, to ignore git symlinks.
40442
40443         maint.mk: import improvements from m4
40444         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
40445         (move_if_change): Delete unused macro.
40446         (news-date-check, vc-diff-check): Support VPATH builds.
40447         (announcement): Likewise.  Split --bootstrap-tools list...
40448         (boostrap-tools): ...into separate list, which can be overridden
40449         in cfg.mk.
40450         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
40451         requiring dependency on useless-if-before-free module.
40452         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
40453         Support VPATH builds.
40454
40455 2009-04-24  Jim Meyering  <meyering@redhat.com>
40456
40457         maint.mk: remove coreutils-specific rules and variables
40458         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
40459         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
40460         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
40461
40462         maint.mk: remove obsolete rule
40463         * top/maint.mk (rel-check): Remove rule.
40464         (WGET, WGETFLAGS): Remove now-unused variables.
40465
40466 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40467
40468         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
40469         consistency.
40470
40471         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
40472         '$(PATH_SEPARATOR)' instead of ':'.
40473
40474 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40475
40476         * lib/getopt1.c (main): Use 'const' for static array.
40477
40478 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40479
40480         * top/maint.mk: Sync with coreutils.
40481         * NEWS: Explain incompatibilities.
40482
40483 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40484             Bruno Haible  <bruno@clisp.org>
40485
40486         Fix cross-compilation results.
40487         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
40488         statement, as third argument of AC_TRY_RUN.
40489         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40490         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
40491         Likewise.
40492         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40493         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
40494         Likewise.
40495         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40496         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
40497         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
40498
40499 2009-04-20  Bruno Haible  <bruno@clisp.org>
40500
40501         Avoid test failure on mingw.
40502         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
40503
40504 2009-04-20  Bruno Haible  <bruno@clisp.org>
40505
40506         Avoid compilation error on mingw.
40507         * modules/localename-tests (Depends-on): Add locale.
40508
40509 2009-04-19  Bruno Haible  <bruno@clisp.org>
40510
40511         Support for building a shared library on Windows platforms.
40512         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
40513         (main): Test the presence of UNINORM_NFC here.
40514         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
40515         (main): Test the presence of UNINORM_NFD here.
40516         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
40517         (main): Test the presence of UNINORM_NFKC here.
40518         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
40519         (main): Test the presence of UNINORM_NFKD here.
40520
40521 2009-04-19  Bruno Haible  <bruno@clisp.org>
40522
40523         Avoid a compiler warning.
40524         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
40525         Change type of variable 'sequence'.
40526
40527 2009-04-19  Bruno Haible  <bruno@clisp.org>
40528
40529         * modules/configmake (Makefile.am): When the contents of configmake.h
40530         does not change, arrange to preserve its modification time.
40531
40532 2009-04-17  Simon Josefsson  <simon@josefsson.org>
40533
40534         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
40535         gettext domain.
40536
40537 2009-04-16  Jim Meyering  <meyering@redhat.com>
40538
40539         useless-if-before-free: improve conversion code
40540         * build-aux/useless-if-before-free: Adjust code-in-comment to match
40541         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
40542
40543 2009-04-14  Bruno Haible  <bruno@clisp.org>
40544
40545         * modules/fcntl (Depends-on): Add extensions.
40546         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
40547
40548 2009-04-12  Ben Pfaff  <blp@gnu.org>
40549
40550         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
40551         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
40552
40553 2009-03-20  Ben Pfaff  <blp@gnu.org>
40554
40555         Make rename replace existing destinations on Windows.
40556         * m4/rename.m4: Add test for Mingw.
40557         * lib/rename.c: Add rename replacement that uses MoveFileEx with
40558         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
40559         * doc/posix-functions/rename.texi: Document.
40560
40561 2009-04-10  Bruno Haible  <bruno@clisp.org>
40562
40563         New include file "iconveh.h".
40564         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
40565         * lib/striconveh.h: Include it.
40566         (enum iconv_ilseq_handler): Remove definition.
40567         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
40568         striconveh.h.
40569         * lib/striconveha.c: Include striconveh.h.
40570         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
40571         * modules/striconveh (Files): Add lib/iconveh.h.
40572         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
40573         lib/striconveh.h.
40574
40575 2009-04-10  Bruno Haible  <bruno@clisp.org>
40576
40577         * lib/uniconv.h: Update comment.
40578
40579 2009-04-10  Bruno Haible  <bruno@clisp.org>
40580
40581         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
40582         always.
40583         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40584         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40585         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40586         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
40587         "unistring-notinline.h", so that the function gets defined always.
40588         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40589         * lib/unistr/u8-uctomb.c: Likewise.
40590         * lib/unistr/u16-mbtouc.c: Likewise.
40591         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40592         * lib/unistr/u16-uctomb.c: Likewise.
40593         * lib/unistr/u32-mbtouc.c: Likewise.
40594         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40595         * lib/unistr/u32-uctomb.c: Likewise.
40596
40597 2009-04-10  Bruno Haible  <bruno@clisp.org>
40598
40599         Mark 'utime' obsolete.
40600         * modules/utime (Status, Notice): New sections.
40601         Suggested by Jim Meyering.
40602
40603         Fix cross-compile guess for utime test.
40604         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
40605         autoconf.
40606         * doc/posix-functions/utime.texi: Give more precisions.
40607         Reported by Jan <ipif@ymail.com>.
40608
40609 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
40610
40611         filevercmp: correct today's change
40612         * lib/filevercmp.c: Also handle coreutils' test inputs.
40613         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
40614
40615         Fix regression in 'filevercmp' module. Thanks Sven Joachim
40616         for reporting it.
40617         * lib/filevercmp.c: Special handle for "", "." and "..".
40618         * tests/test-filevercmp.c: Enlarge the set suite.
40619
40620 2009-04-07  Jim Meyering  <meyering@redhat.com>
40621
40622         useless-if-before-free: show how to remove braced useless free, too
40623         * build-aux/useless-if-before-free: still only in a comment, though.
40624
40625 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
40626
40627         maint.mk: import changes to syntax-check macros from coreutils
40628         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
40629         Use them in the relevant macros.
40630
40631 2009-04-06  Bruno Haible  <bruno@clisp.org>
40632
40633         Fix unportable use of bit-fields.
40634         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
40635         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
40636         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
40637
40638 2009-04-06  Bruno Haible  <bruno@clisp.org>
40639
40640         Avoid test failures on AIX and OSF/1.
40641         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
40642         that malloc(0) = NULL.
40643         * tests/unicase/test-u8-tolower.c (check): Likewise.
40644         * tests/unicase/test-u8-totitle.c (check): Likewise.
40645         * tests/unicase/test-u8-toupper.c (check): Likewise.
40646         * tests/unicase/test-u16-casefold.c (check): Likewise.
40647         * tests/unicase/test-u16-tolower.c (check): Likewise.
40648         * tests/unicase/test-u16-totitle.c (check): Likewise.
40649         * tests/unicase/test-u16-toupper.c (check): Likewise.
40650         * tests/unicase/test-u32-casefold.c (check): Likewise.
40651         * tests/unicase/test-u32-tolower.c (check): Likewise.
40652         * tests/unicase/test-u32-totitle.c (check): Likewise.
40653         * tests/unicase/test-u32-toupper.c (check): Likewise.
40654         * tests/uninorm/test-u8-nfc.c (check): Likewise.
40655         * tests/uninorm/test-u8-nfd.c (check): Likewise.
40656         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
40657         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
40658         * tests/uninorm/test-u16-nfc.c (check): Likewise.
40659         * tests/uninorm/test-u16-nfd.c (check): Likewise.
40660         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
40661         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
40662         * tests/uninorm/test-u32-nfc.c (check): Likewise.
40663         * tests/uninorm/test-u32-nfd.c (check): Likewise.
40664         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
40665         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
40666
40667 2009-04-05  Bruno Haible  <bruno@clisp.org>
40668
40669         Work around an autoconf limitation.
40670         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
40671         comment line if it would be longer than 3 KB.
40672
40673 2009-04-05  Bruno Haible  <bruno@clisp.org>
40674
40675         Avoid test failure with libiconv-1.13.
40676         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
40677         of the expected test results.
40678
40679 2009-04-05  Bruno Haible  <bruno@clisp.org>
40680
40681         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
40682         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
40683         that it should be installed.
40684
40685 2009-04-05  Bruno Haible  <bruno@clisp.org>
40686
40687         * gnulib-tool: New option --copy-file.
40688         (func_usage): Document it.
40689         (func_dest_tmpfilename): Moved out of func_import.
40690         (func_add_file, func_update_file): New functions, extracted from
40691         func_import.
40692         (func_import): Update.
40693
40694 2009-04-05  Karl Berry  <karl@gnu.org>
40695
40696         * README: prominently mention gnulib-tool.
40697         Rearrange sections so getting the code is near the top.
40698
40699 2009-04-05  Bruno Haible  <bruno@clisp.org>
40700
40701         * lib/unicase.h: Mention u*_cmp2.
40702         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40703         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
40704         * lib/unicase/ulc-casecmp.c: Likewise.
40705         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
40706         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
40707         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
40708         unistr/u8-cmp.
40709         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
40710         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
40711         unistr/u16-cmp.
40712         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
40713         unistr/u32-cmp.
40714
40715         * lib/uninorm.h: Mention u*_cmp2.
40716         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40717         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
40718         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
40719         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
40720         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
40721         unistr/u8-cmp.
40722         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
40723         unistr/u16-cmp.
40724         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
40725         unistr/u32-cmp.
40726
40727         New module 'unistr/u32-cmp2'.
40728         * lib/unistr/u32-cmp2.c: New file.
40729         * modules/unistr/u32-cmp2: New file.
40730
40731         New module 'unistr/u16-cmp2'.
40732         * lib/unistr/u16-cmp2.c: New file.
40733         * modules/unistr/u16-cmp2: New file.
40734
40735         New module 'unistr/u8-cmp2'.
40736         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
40737         * lib/unistr/u8-cmp2.c: New file.
40738         * lib/unistr/u-cmp2.h: New file.
40739         * modules/unistr/u8-cmp2: New file.
40740
40741 2009-04-05  Bruno Haible  <bruno@clisp.org>
40742
40743         * lib/unictype.h (uc_property_is_valid): New macro.
40744         * tests/unictype/test-pr_byname.c (main): Use it.
40745
40746         * lib/unistr.h: Doc fixes.
40747         * lib/uniconv.h: Doc fixes.
40748         * lib/unictype.h: Doc fixes.
40749
40750 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
40751
40752         Port coreutils 7.2 to Solaris 8.
40753
40754         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
40755         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
40756         for Solaris 8.  This is a bit of a hack, as it means it's the
40757         caller's responsibility to add -lnsl if needed, but most likely it
40758         won't be needed since only getaddrinfo uses this and getaddrinfo
40759         isn't needed on Solaris 8.
40760
40761         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
40762         problem to Solaris 8 encountered with coreutils 7.2, which
40763         resulted in a message "fnmatch.c:292: warning: passing argument 4
40764         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
40765         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
40766
40767 2009-04-03  Simon Josefsson  <simon@josefsson.org>
40768
40769         * m4/ld-version-script.m4: Add FIXME comment.
40770
40771 2009-04-02  Simon Josefsson  <simon@josefsson.org>
40772
40773         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
40774         SOVERSION variable.
40775
40776 2009-04-02  Bruno Haible  <bruno@clisp.org>
40777
40778         * Makefile (info, html, dvi, pdf): Combine the rules.
40779         Suggested by Jim Meyering.
40780
40781 2009-04-01  Bruno Haible  <bruno@clisp.org>
40782
40783         * Makefile (info, html, dvi, pdf): New targets.
40784         Reported by Reuben Thomas <rrt@sc3d.org>.
40785
40786 2009-04-01  Bruno Haible  <bruno@clisp.org>
40787
40788         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
40789         can be put into PATH.
40790         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
40791
40792 2009-04-01  Bruno Haible  <bruno@clisp.org>
40793
40794         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
40795
40796 2009-04-01  Bruno Haible  <bruno@clisp.org>
40797
40798         Rename module 'visibility'.
40799         * modules/lib-symbol-visibility: Renamed from modules/visibility.
40800         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
40801         * doc/gnulib.texi: Update.
40802         * MODULES.html.sh (Misc): Update.
40803         * NEWS: Mention the change.
40804
40805 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40806
40807         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
40808         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
40809         Eric Blake <ebb9@byu.net> for review.
40810         * MODULES.html.sh: Add lib-msvc-compat.
40811         * doc/gnulib.texi: Link to new section.
40812         * m4/ld-output-def.m4: New file.
40813         * doc/ld-output-def.texi: New file.
40814
40815 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40816
40817         Rename ld-version-script to lib-symbol-versions.  Suggested by
40818         Bruno Haible <bruno@clisp.org>.
40819         * modules/ld-version-script: Renamed to lib-symbol-versions.
40820         * doc/ld-version-script.texi: Fix module name.
40821         * MODULES.html.sh: Add lib-symbol-versions.
40822
40823 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40824
40825         * modules/u64-tests: New file.
40826         * tests/test-u64.c: New file.
40827
40828 2009-03-04  Simon Josefsson  <simon@josefsson.org>
40829
40830         * MODULES.html.sh: Mention u64.
40831         * modules/u64: New module.
40832         * modules/crypto/sha512: Depend on u64 module instead of providing
40833         u64.h.
40834
40835 2009-03-27  Eric Blake  <ebb9@byu.net>
40836
40837         test-strerror: make debugging EAI_SYSTEM easier
40838         * modules/getaddrinfo-tests (Depends-on): Add strerror.
40839         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
40840         failure was EAI_SYSTEM.
40841
40842 2009-03-25  Bruno Haible  <bruno@clisp.org>
40843
40844         Fix a problem with --enable-relocatable on Solaris 7.
40845         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
40846         since 2008-02-24.
40847
40848 2009-03-25  Eric Blake  <ebb9@byu.net>
40849
40850         test-sockets: avoid gcc warning
40851         * tests/test-sockets.c (main): Silence compiler warning.
40852
40853 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
40854
40855         New modules nproc, pthread, contributed by Glen Lenker.
40856
40857         * MODULES.html.sh: Add pthread, nproc.
40858         * lib/nproc.c: New file.
40859         * lib/nproc.h: New file.
40860         * lib/pthread.in.h: New file.
40861         * m4/pthread.m4: New file.
40862         * modules/nproc: New file.
40863         * modules/pthread: New file.
40864
40865 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40866
40867         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
40868         New variable.
40869
40870 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
40871
40872         filevercmp: handle simple~ and numbered.~3~ backup suffixes
40873         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
40874         * tests/test-filevercmp.c: Add tests for backup suffixes.
40875
40876 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40877
40878         * modules/stdlib (Depends-on): Add stdint, needed when defining
40879         struct random_data on, for example, HP-UX 10.20.  Reported by
40880         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40881
40882 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40883
40884         * lib/readline.c (readline): Call fflush on stdout after printing
40885         prompt.
40886
40887 2009-03-20  Bruno Haible  <bruno@clisp.org>
40888
40889         Remove dependency from 'close' module to -lws2_32 on native Windows.
40890         * lib/close-hook.h: New file.
40891         * lib/close-hook.c: New file.
40892         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
40893         w32sock.h.
40894         (_gl_close_fd_maybe_socket): Remove function.
40895         (rpl_close): Invoke execute_all_close_hooks instead of
40896         _gl_close_fd_maybe_socket.
40897         * lib/sockets.c: Include close-hook.h, w32sock.h.
40898         (close_fd_maybe_socket): New function, essentially from lib/close.c.
40899         (close_sockets_hook): New variable.
40900         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
40901         (gl_sockets_cleanup): Unregister it.
40902         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
40903         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
40904         * modules/close-hook: New file.
40905         * modules/close (Files): Remove lib/w32sock.h.
40906         (Depends-on): Add close-hook.
40907         (Link): Remove section.
40908         * modules/sockets (Files): Add lib/w32sock.h.
40909         (Depends-on): Add close-hook.
40910         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
40911         invocation.
40912         * NEWS: Mention that LIB_CLOSE is gone.
40913
40914 2009-03-23  Eric Blake  <ebb9@byu.net>
40915
40916         signal-tests: test previous patch
40917         * tests/test-signal.c: New file.
40918         * modules/signal-tests: Likewise.
40919
40920         signal.h: always support 'volatile sig_atomic_t'
40921         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
40922         (gl_SIGNAL_H_DEFAULTS): Add a default.
40923         * modules/signal (Makefile.am): Substitute if needed.
40924         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
40925         users can blindly add volatile.
40926         * doc/posix-headers/signal.texi (signal.h): Document it.
40927         Reported by Matthew Woehlke.
40928
40929 2009-03-23  Jim Meyering  <meyering@redhat.com>
40930
40931         pathmax: PATH_MAX: use pathconf only when available
40932         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
40933         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
40934         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
40935         This avoids a link failure in a PSP cross-compilation environment
40936         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
40937
40938         * lib/vasnprintf.c (divide): Fix typo in comment.
40939
40940 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40941
40942         * gnulib-tool (func_filter_filelist): Fix comment.
40943
40944 2009-03-20  Bruno Haible  <bruno@clisp.org>
40945
40946         Make sockets.h self-contained.
40947         * lib/sockets.c: Include sockets.h first.
40948         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
40949
40950 2009-03-19  Eric Blake  <ebb9@byu.net>
40951
40952         doc: mention more functions added in cygwin 1.7.0
40953         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
40954         addition.
40955         * doc/posix-functions/log2f.texi: Likewise.
40956
40957 2009-03-19  Jim Meyering  <meyering@redhat.com>
40958
40959         fsusage: avoid syntax error due to statement-before-declaration
40960         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
40961         after all declarations.  Reported by Matthew Woehlke in
40962         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
40963
40964 2009-03-18  Eric Blake  <ebb9@byu.net>
40965
40966         build-aux/compile: sync from automake
40967         * build-aux/compile: New file, from automake.
40968         * config/srclist.txt: Mention build-aux/compile.
40969
40970 2009-03-17  Bruno Haible  <bruno@clisp.org>
40971
40972         * lib/git-merge-changelog.c: Fix typo in comment.
40973         Reported by Reuben Thomas <rrt@sc3d.org>.
40974
40975 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
40976
40977         * m4/regex.m4: update and improve help for
40978         --without-included-regex.
40979
40980 2009-03-17  Simon Josefsson  <simon@josefsson.org>
40981
40982         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
40983         failure on missing include files.
40984
40985 2009-03-17  Eric Blake  <ebb9@byu.net>
40986
40987         doc: mention more functions added in cygwin 1.7.0
40988         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
40989         addition.
40990         * doc/posix-functions/fwscanf.texi: Likewise.
40991         * doc/posix-functions/swprintf.texi: Likewise.
40992         * doc/posix-functions/swscanf.texi: Likewise.
40993         * doc/posix-functions/vfwprintf.texi: Likewise.
40994         * doc/posix-functions/vfwscanf.texi: Likewise.
40995         * doc/posix-functions/vswprintf.texi: Likewise.
40996         * doc/posix-functions/vswscanf.texi: Likewise.
40997         * doc/posix-functions/vwprintf.texi: Likewise.
40998         * doc/posix-functions/vwscanf.texi: Likewise.
40999         * doc/posix-functions/wcscasecmp.texi: Likewise.
41000         * doc/posix-functions/wcsdup.texi: Likewise.
41001         * doc/posix-functions/wcsftime.texi: Likewise.
41002         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41003         * doc/posix-functions/wprintf.texi: Likewise.
41004         * doc/posix-functions/wscanf.texi: Likewise.
41005         * doc/glibc-functions/gethostbyname2.texi: Likewise.
41006
41007 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41008
41009         maint.mk: really add $(AM_MAKEFLAGS)
41010         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
41011         was inadvertently omitted in the last commit.
41012         Spotted by Bruno Haible.
41013
41014         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
41015         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
41016         $(AM_MAKEFLAGS)' rather than plain `make'.
41017
41018         gnulib-tool: execute $MAKE not make
41019         * gnulib-tool: Default $MAKE to 'make'.
41020         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
41021         than make.  Initialize $MAKE in the do-autobuild script.
41022
41023         gnulib-tool: use $MAKE not make in generated files
41024         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
41025         make, in generated files.  Initialize $MAKE in the do-autobuild
41026         script.
41027
41028         * top/GNUmakefile (_have-git-version-gen): Fix typo.
41029
41030         GNUmakefile: disable parallelism only for multiple, recursive targets
41031         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
41032         additions in the Makefile.
41033         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
41034         by Automake.
41035         (.NOTPARALLEL): Only disable parallel builds if multiple targets
41036         are listed on the command line and at least one of them is
41037         listed in $(ALL_RECURSIVE_TARGETS).
41038
41039 2009-03-14  Bruno Haible  <bruno@clisp.org>
41040
41041         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
41042         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
41043         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
41044         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
41045         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
41046         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
41047         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
41048         unistr/u8-uctomb.
41049         * modules/unistr/u8-strchr (Depends-on): Likewise.
41050         * modules/unistr/u8-strrchr (Depends-on): Likewise.
41051         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
41052         unistr/u16-uctomb.
41053         * modules/unistr/u16-strchr (Depends-on): Likewise.
41054         * modules/unistr/u16-strrchr (Depends-on): Likewise.
41055
41056 2009-03-12  Bruno Haible  <bruno@clisp.org>
41057
41058         Work around select() bug on Interix 3.5.
41059         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
41060         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
41061         * m4/select.m4: New file.
41062         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
41063         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
41064         * modules/select (Files): Add m4/select.m4.
41065         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
41066         * modules/nanosleep (Depends-on): Add select.
41067         * modules/poll (Depends-on): Likewise.
41068         * doc/posix-functions/select.texi: Mention the Interix bug.
41069         Reported by Markus Duft <mduft@gentoo.org>.
41070
41071         * lib/select.c: Renamed from lib/winsock-select.c.
41072         * modules/select (Files): Add lib/select.c, remove
41073         lib/winsock-select.c.
41074         (configure.ac): Update.
41075
41076 2009-03-12  Jim Meyering  <meyering@redhat.com>
41077
41078         avoid gcc warnings about unused macro definitions
41079         * lib/readtokens.c (STREQ): Remove unused definition.
41080         * lib/xmalloc.c (SIZE_MAX): Likewise.
41081         * lib/openat-die.c (N_): Likewise.
41082         * lib/mountlist.c (SIZE_MAX): Remove definition.
41083         Instead, include <stdint.h>.
41084         * lib/readutmp.c: Likewise.
41085         * modules/readutmp (Depends-on): Add stdint.
41086         * modules/mountlist (Depends-on): Add stdint.
41087         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
41088
41089 2009-03-10  Bruno Haible  <bruno@clisp.org>
41090
41091         Tests for module 'mbmemcasecoll'.
41092         * modules/mbmemcasecoll-tests: New file.
41093         * tests/test-mbmemcasecoll1.sh: New file.
41094         * tests/test-mbmemcasecoll2.sh: New file.
41095         * tests/test-mbmemcasecoll3.sh: New file.
41096         * tests/test-mbmemcasecoll.c: New file.
41097
41098         New module 'mbmemcasecoll'.
41099         * lib/mbmemcasecoll.h: New file.
41100         * lib/mbmemcasecoll.c: New file.
41101         * modules/mbmemcasecoll: New file.
41102
41103         * tests/test-mbmemcasecmp.h: New file, extracted from
41104         tests/test-mbmemcasecmp.c.
41105         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
41106         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
41107         (main): Update.
41108         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
41109
41110 2009-03-09  Bruno Haible  <bruno@clisp.org>
41111
41112         Tests for module 'mbmemcasecmp'.
41113         * modules/mbmemcasecmp-tests: New file.
41114         * tests/test-mbmemcasecmp1.sh: New file.
41115         * tests/test-mbmemcasecmp2.sh: New file.
41116         * tests/test-mbmemcasecmp3.sh: New file.
41117         * tests/test-mbmemcasecmp.c: New file.
41118
41119         New module 'mbmemcasecmp'.
41120         * lib/mbmemcasecmp.h: New file.
41121         * lib/mbmemcasecmp.c: New file.
41122         * modules/mbmemcasecmp: New file.
41123
41124 2009-03-09  Bruno Haible  <bruno@clisp.org>
41125
41126         Tests for module 'unicase/ulc-casecoll'.
41127         * modules/unicase/ulc-casecoll-tests: New file.
41128         * tests/unicase/test-ulc-casecoll1.sh: New file.
41129         * tests/unicase/test-ulc-casecoll2.sh: New file.
41130         * tests/unicase/test-ulc-casecoll.c: New file.
41131
41132         New module 'unicase/ulc-casecoll'.
41133         * lib/unicase.h (ulc_casecoll): New declaration.
41134         * lib/unicase/ulc-casecoll.c: New file.
41135         * modules/unicase/ulc-casecoll: New file.
41136
41137         New module 'unicase/ulc-casexfrm'.
41138         * lib/unicase.h (ulc_casexfrm): New declaration.
41139         * lib/unicase/ulc-casexfrm.c: New file.
41140         * modules/unicase/ulc-casexfrm: New file.
41141
41142 2009-03-09  Bruno Haible  <bruno@clisp.org>
41143
41144         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
41145         invocations.
41146
41147         * m4/mbscasecmp.m4: Remove file.
41148         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
41149         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
41150
41151         * m4/mbscasestr.m4: Remove file.
41152         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
41153         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
41154
41155         * m4/mbschr.m4: Remove file.
41156         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
41157         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
41158
41159         * m4/mbscspn.m4: Remove file.
41160         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
41161         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
41162
41163         * m4/mbslen.m4: Remove file.
41164         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
41165         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
41166
41167         * m4/mbsncasecmp.m4: Remove file.
41168         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
41169         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
41170
41171         * m4/mbsnlen.m4: Remove file.
41172         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
41173         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
41174
41175         * m4/mbspbrk.m4: Remove file.
41176         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
41177         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
41178
41179         * m4/mbspcasecmp.m4: Remove file.
41180         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
41181         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
41182
41183         * m4/mbsrchr.m4: Remove file.
41184         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
41185         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
41186
41187         * m4/mbssep.m4: Remove file.
41188         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
41189         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
41190
41191         * m4/mbsspn.m4: Remove file.
41192         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
41193         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
41194
41195         * m4/mbsstr.m4: Remove file.
41196         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
41197         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
41198
41199         * m4/mbstok_r.m4: Remove file.
41200         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
41201         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
41202
41203         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
41204
41205         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
41206         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
41207
41208         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
41209
41210 2009-03-08  Bruno Haible  <bruno@clisp.org>
41211
41212         Tests for module 'unicase/ulc-casecmp'.
41213         * modules/unicase/ulc-casecmp-tests: New file.
41214         * tests/unicase/test-ulc-casecmp1.sh: New file.
41215         * tests/unicase/test-ulc-casecmp2.sh: New file.
41216         * tests/unicase/test-ulc-casecmp.c: New file.
41217
41218         New module 'unicase/ulc-casecmp'.
41219         * lib/unicase.h (ulc_casecmp): New declaration.
41220         * lib/unicase/ulc-casecmp.c: New file.
41221         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
41222         'const SRC_UNIT *'.
41223         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
41224         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
41225         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
41226         * modules/unicase/ulc-casecmp: New file.
41227
41228         Tests for module 'unicase/u32-is-cased'.
41229         * modules/unicase/u32-is-cased-tests: New file.
41230         * tests/unicase/test-u32-is-cased.c: New file.
41231
41232         Tests for module 'unicase/u16-is-cased'.
41233         * modules/unicase/u16-is-cased-tests: New file.
41234         * tests/unicase/test-u16-is-cased.c: New file.
41235
41236         Tests for module 'unicase/u8-is-cased'.
41237         * modules/unicase/u8-is-cased-tests: New file.
41238         * tests/unicase/test-u8-is-cased.c: New file.
41239         * tests/unicase/test-is-cased.h: New file.
41240
41241         New module 'unicase/u32-is-cased'.
41242         * lib/unicase/u32-is-cased.c: New file.
41243         * modules/unicase/u32-is-cased: New file.
41244
41245         New module 'unicase/u16-is-cased'.
41246         * lib/unicase/u16-is-cased.c: New file.
41247         * modules/unicase/u16-is-cased: New file.
41248
41249         New module 'unicase/u8-is-cased'.
41250         * lib/unicase/u8-is-cased.c: New file.
41251         * lib/unicase/u-is-cased.h: New file.
41252         * modules/unicase/u8-is-cased: New file.
41253
41254         Tests for module 'unicase/u32-is-casefolded'.
41255         * modules/unicase/u32-is-casefolded-tests: New file.
41256         * tests/unicase/test-u32-is-casefolded.c: New file.
41257
41258         Tests for module 'unicase/u16-is-casefolded'.
41259         * modules/unicase/u16-is-casefolded-tests: New file.
41260         * tests/unicase/test-u16-is-casefolded.c: New file.
41261
41262         Tests for module 'unicase/u8-is-casefolded'.
41263         * modules/unicase/u8-is-casefolded-tests: New file.
41264         * tests/unicase/test-u8-is-casefolded.c: New file.
41265         * tests/unicase/test-is-casefolded.h: New file.
41266
41267         New module 'unicase/u32-is-casefolded'.
41268         * lib/unicase/u32-is-casefolded.c: New file.
41269         * modules/unicase/u32-is-casefolded: New file.
41270
41271         New module 'unicase/u16-is-casefolded'.
41272         * lib/unicase/u16-is-casefolded.c: New file.
41273         * modules/unicase/u16-is-casefolded: New file.
41274
41275         New module 'unicase/u8-is-casefolded'.
41276         * lib/unicase/u8-is-casefolded.c: New file.
41277         * modules/unicase/u8-is-casefolded: New file.
41278
41279         Tests for module 'unicase/u32-is-titlecase'.
41280         * modules/unicase/u32-is-titlecase-tests: New file.
41281         * tests/unicase/test-u32-is-titlecase.c: New file.
41282
41283         Tests for module 'unicase/u16-is-titlecase'.
41284         * modules/unicase/u16-is-titlecase-tests: New file.
41285         * tests/unicase/test-u16-is-titlecase.c: New file.
41286
41287         Tests for module 'unicase/u8-is-titlecase'.
41288         * modules/unicase/u8-is-titlecase-tests: New file.
41289         * tests/unicase/test-u8-is-titlecase.c: New file.
41290         * tests/unicase/test-is-titlecase.h: New file.
41291
41292         New module 'unicase/u32-is-titlecase'.
41293         * lib/unicase/u32-is-titlecase.c: New file.
41294         * modules/unicase/u32-is-titlecase: New file.
41295
41296         New module 'unicase/u16-is-titlecase'.
41297         * lib/unicase/u16-is-titlecase.c: New file.
41298         * modules/unicase/u16-is-titlecase: New file.
41299
41300         New module 'unicase/u8-is-titlecase'.
41301         * lib/unicase/u8-is-titlecase.c: New file.
41302         * modules/unicase/u8-is-titlecase: New file.
41303
41304         Tests for module 'unicase/u32-is-lowercase'.
41305         * modules/unicase/u32-is-lowercase-tests: New file.
41306         * tests/unicase/test-u32-is-lowercase.c: New file.
41307
41308         Tests for module 'unicase/u16-is-lowercase'.
41309         * modules/unicase/u16-is-lowercase-tests: New file.
41310         * tests/unicase/test-u16-is-lowercase.c: New file.
41311
41312         Tests for module 'unicase/u8-is-lowercase'.
41313         * modules/unicase/u8-is-lowercase-tests: New file.
41314         * tests/unicase/test-u8-is-lowercase.c: New file.
41315         * tests/unicase/test-is-lowercase.h: New file.
41316
41317         New module 'unicase/u32-is-lowercase'.
41318         * lib/unicase/u32-is-lowercase.c: New file.
41319         * modules/unicase/u32-is-lowercase: New file.
41320
41321         New module 'unicase/u16-is-lowercase'.
41322         * lib/unicase/u16-is-lowercase.c: New file.
41323         * modules/unicase/u16-is-lowercase: New file.
41324
41325         New module 'unicase/u8-is-lowercase'.
41326         * lib/unicase/u8-is-lowercase.c: New file.
41327         * modules/unicase/u8-is-lowercase: New file.
41328
41329         Tests for module 'unicase/u32-is-uppercase'.
41330         * modules/unicase/u32-is-uppercase-tests: New file.
41331         * tests/unicase/test-u32-is-uppercase.c: New file.
41332
41333         Tests for module 'unicase/u16-is-uppercase'.
41334         * modules/unicase/u16-is-uppercase-tests: New file.
41335         * tests/unicase/test-u16-is-uppercase.c: New file.
41336
41337         Tests for module 'unicase/u8-is-uppercase'.
41338         * modules/unicase/u8-is-uppercase-tests: New file.
41339         * tests/unicase/test-u8-is-uppercase.c: New file.
41340         * tests/unicase/test-is-uppercase.h: New file.
41341
41342         New module 'unicase/u32-is-uppercase'.
41343         * lib/unicase/u32-is-uppercase.c: New file.
41344         * modules/unicase/u32-is-uppercase: New file.
41345
41346         New module 'unicase/u16-is-uppercase'.
41347         * lib/unicase/u16-is-uppercase.c: New file.
41348         * modules/unicase/u16-is-uppercase: New file.
41349
41350         New module 'unicase/u8-is-uppercase'.
41351         * lib/unicase/u8-is-uppercase.c: New file.
41352         * modules/unicase/u8-is-uppercase: New file.
41353
41354         New module 'unicase/u32-is-invariant'.
41355         * lib/unicase/u32-is-invariant.c: New file.
41356         * modules/unicase/u32-is-invariant: New file.
41357
41358         New module 'unicase/u16-is-invariant'.
41359         * lib/unicase/u16-is-invariant.c: New file.
41360         * modules/unicase/u16-is-invariant: New file.
41361
41362         New module 'unicase/u8-is-invariant'.
41363         * lib/unicase/u8-is-invariant.c: New file.
41364         * lib/unicase/invariant.h: New file.
41365         * lib/unicase/u-is-invariant.h: New file.
41366         * modules/unicase/u8-is-invariant: New file.
41367
41368         Tests for module 'unicase/u32-casecoll'.
41369         * modules/unicase/u32-casecoll-tests: New file.
41370         * tests/unicase/test-u32-casecoll.c: New file.
41371
41372         Tests for module 'unicase/u16-casecoll'.
41373         * modules/unicase/u16-casecoll-tests: New file.
41374         * tests/unicase/test-u16-casecoll.c: New file.
41375
41376         Tests for module 'unicase/u8-casecoll'.
41377         * modules/unicase/u8-casecoll-tests: New file.
41378         * tests/unicase/test-u8-casecoll.c: New file.
41379
41380         New module 'unicase/u32-casecoll'.
41381         * lib/unicase/u32-casecoll.c: New file.
41382         * modules/unicase/u32-casecoll: New file.
41383
41384         New module 'unicase/u16-casecoll'.
41385         * lib/unicase/u16-casecoll.c: New file.
41386         * modules/unicase/u16-casecoll: New file.
41387
41388         New module 'unicase/u8-casecoll'.
41389         * lib/unicase/u8-casecoll.c: New file.
41390         * lib/unicase/u-casecoll.h: New file.
41391         * modules/unicase/u8-casecoll: New file.
41392
41393         New module 'unicase/u32-casexfrm'.
41394         * lib/unicase/u32-casexfrm.c: New file.
41395         * modules/unicase/u32-casexfrm: New file.
41396
41397         New module 'unicase/u16-casexfrm'.
41398         * lib/unicase/u16-casexfrm.c: New file.
41399         * modules/unicase/u16-casexfrm: New file.
41400
41401         New module 'unicase/u8-casexfrm'.
41402         * lib/unicase/u8-casexfrm.c: New file.
41403         * lib/unicase/u-casexfrm.h: New file.
41404         * modules/unicase/u8-casexfrm: New file.
41405
41406         Tests for module 'unicase/u32-casecmp'.
41407         * modules/unicase/u32-casecmp-tests: New file.
41408         * tests/unicase/test-u32-casecmp.c: New file.
41409
41410         Tests for module 'unicase/u16-casecmp'.
41411         * modules/unicase/u16-casecmp-tests: New file.
41412         * tests/unicase/test-u16-casecmp.c: New file.
41413
41414         Tests for module 'unicase/u8-casecmp'.
41415         * modules/unicase/u8-casecmp-tests: New file.
41416         * tests/unicase/test-u8-casecmp.c: New file.
41417         * tests/unicase/test-casecmp.h: New file.
41418
41419         New module 'unicase/u32-casecmp'.
41420         * lib/unicase/u32-casecmp.c: New file.
41421         * modules/unicase/u32-casecmp: New file.
41422
41423         New module 'unicase/u16-casecmp'.
41424         * lib/unicase/u16-casecmp.c: New file.
41425         * modules/unicase/u16-casecmp: New file.
41426
41427         New module 'unicase/u8-casecmp'.
41428         * lib/unicase/u8-casecmp.c: New file.
41429         * lib/unicase/u-casecmp.h: New file.
41430         * modules/unicase/u8-casecmp: New file.
41431
41432         Tests for module 'unicase/u32-casefold'.
41433         * modules/unicase/u32-casefold-tests: New file.
41434         * tests/unicase/test-u32-casefold.c: New file.
41435
41436         Tests for module 'unicase/u16-casefold'.
41437         * modules/unicase/u16-casefold-tests: New file.
41438         * tests/unicase/test-u16-casefold.c: New file.
41439
41440         Tests for module 'unicase/u8-casefold'.
41441         * modules/unicase/u8-casefold-tests: New file.
41442         * tests/unicase/test-u8-casefold.c: New file.
41443
41444         New module 'unicase/u32-casefold'.
41445         * lib/unicase/u32-casefold.c: New file.
41446         * modules/unicase/u32-casefold: New file.
41447
41448         New module 'unicase/u16-casefold'.
41449         * lib/unicase/u16-casefold.c: New file.
41450         * modules/unicase/u16-casefold: New file.
41451
41452         New module 'unicase/u8-casefold'.
41453         * lib/unicase/u8-casefold.c: New file.
41454         * lib/unicase/u-casefold.h: New file.
41455         * modules/unicase/u8-casefold: New file.
41456
41457         New module 'unicase/tocasefold'.
41458         * lib/unicase/casefold.h: New file.
41459         * lib/unicase/tocasefold.c: New file.
41460         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
41461         * modules/unicase/tocasefold: New file.
41462
41463         Tests for module 'unicase/u32-totitle'.
41464         * modules/unicase/u32-totitle-tests: New file.
41465         * tests/unicase/test-u32-totitle.c: New file.
41466
41467         Tests for module 'unicase/u16-totitle'.
41468         * modules/unicase/u16-totitle-tests: New file.
41469         * tests/unicase/test-u16-totitle.c: New file.
41470
41471         Tests for module 'unicase/u8-totitle'.
41472         * modules/unicase/u8-totitle-tests: New file.
41473         * tests/unicase/test-u8-totitle.c: New file.
41474
41475         New module 'unicase/u32-totitle'.
41476         * lib/unicase/u32-totitle.c: New file.
41477         * modules/unicase/u32-totitle: New file.
41478
41479         New module 'unicase/u16-totitle'.
41480         * lib/unicase/u16-totitle.c: New file.
41481         * modules/unicase/u16-totitle: New file.
41482
41483         New module 'unicase/u8-totitle'.
41484         * lib/unicase/u8-totitle.c: New file.
41485         * lib/unicase/u-totitle.h: New file.
41486         * modules/unicase/u8-totitle: New file.
41487
41488         Tests for module 'unicase/u32-tolower'.
41489         * modules/unicase/u32-tolower-tests: New file.
41490         * tests/unicase/test-u32-tolower.c: New file.
41491
41492         Tests for module 'unicase/u16-tolower'.
41493         * modules/unicase/u16-tolower-tests: New file.
41494         * tests/unicase/test-u16-tolower.c: New file.
41495
41496         Tests for module 'unicase/u8-tolower'.
41497         * modules/unicase/u8-tolower-tests: New file.
41498         * tests/unicase/test-u8-tolower.c: New file.
41499
41500         New module 'unicase/u32-tolower'.
41501         * lib/unicase/u32-tolower.c: New file.
41502         * modules/unicase/u32-tolower: New file.
41503
41504         New module 'unicase/u16-tolower'.
41505         * lib/unicase/u16-tolower.c: New file.
41506         * modules/unicase/u16-tolower: New file.
41507
41508         New module 'unicase/u8-tolower'.
41509         * lib/unicase/u8-tolower.c: New file.
41510         * modules/unicase/u8-tolower: New file.
41511
41512         Tests for module 'unicase/u32-toupper'.
41513         * modules/unicase/u32-toupper-tests: New file.
41514         * tests/unicase/test-u32-toupper.c: New file.
41515
41516         Tests for module 'unicase/u16-toupper'.
41517         * modules/unicase/u16-toupper-tests: New file.
41518         * tests/unicase/test-u16-toupper.c: New file.
41519
41520         Tests for module 'unicase/u8-toupper'.
41521         * modules/unicase/u8-toupper-tests: New file.
41522         * tests/unicase/test-u8-toupper.c: New file.
41523
41524         New module 'unicase/u32-toupper'.
41525         * lib/unicase/u32-toupper.c: New file.
41526         * modules/unicase/u32-toupper: New file.
41527
41528         New module 'unicase/u16-toupper'.
41529         * lib/unicase/u16-toupper.c: New file.
41530         * modules/unicase/u16-toupper: New file.
41531
41532         New module 'unicase/u8-toupper'.
41533         * lib/unicase/u8-toupper.c: New file.
41534         * modules/unicase/u8-toupper: New file.
41535
41536         New module 'unicase/u32-casemap'.
41537         * lib/unicase/u32-casemap.c: New file.
41538         * modules/unicase/u32-casemap: New file.
41539
41540         New module 'unicase/u16-casemap'.
41541         * lib/unicase/u16-casemap.c: New file.
41542         * modules/unicase/u16-casemap: New file.
41543
41544         New module 'unicase/u8-casemap'.
41545         * lib/unicase/unicasemap.h: New file.
41546         * lib/unicase/u8-casemap.c: New file.
41547         * lib/unicase/u-casemap.h: New file.
41548         * modules/unicase/u8-casemap: New file.
41549
41550         New module 'unicase/special-casing'.
41551         * lib/unicase/special-casing.h: New file.
41552         * lib/unicase/special-casing.c: New file.
41553         * lib/unicase/special-casing-table.gperf: New file, generated by
41554         gen-uni-tables.c.
41555         * modules/unicase/special-casing: New file.
41556
41557         Tests for module 'unicase/locale-language'.
41558         * modules/unicase/locale-language-tests: New file.
41559         * tests/unicase/test-locale-language.sh: New file.
41560         * tests/unicase/test-locale-language.c: New file.
41561
41562         New module 'unicase/locale-language'.
41563         * lib/unicase/locale-language.c: New file.
41564         * lib/unicase/locale-languages.gperf: New file.
41565         * modules/unicase/locale-language: New file.
41566
41567         Generate more tables for case conversion and case folding.
41568         * lib/gen-uni-tables.c (SCC_*): New enum items.
41569         (struct special_casing_rule): New type.
41570         (casing_rules, num_casing_rules, allocated_casing_rules): New
41571         variables.
41572         (add_casing_rule, fill_casing_rules): New functions.
41573         (struct casefold_rule): New type.
41574         (casefolding_rules, num_casefolding_rules,
41575         allocated_casefolding_rules): New variables.
41576         (fill_casefolding_rules): New function.
41577         (unicode_casefold): New variable.
41578         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
41579         sort_casing_rules, output_casing_rules): New functions.
41580         (main): Accept to more arguments: SpecialCasing.txt and
41581         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
41582         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
41583         Output mapping for casefolding.
41584
41585         * lib/unicase.h: Include stdbool.h, uninorm.h.
41586         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
41587         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
41588         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
41589         arguments.
41590         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
41591         resultp arguments.
41592         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
41593         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
41594         resultp arguments.
41595         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
41596         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
41597         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
41598         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
41599         declarations.
41600         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
41601
41602 2009-03-08  Bruno Haible  <bruno@clisp.org>
41603
41604         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41605         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
41606         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
41607         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41608
41609 2009-03-07  Bruno Haible  <bruno@clisp.org>
41610
41611         Adjust u*_normcmp, u*_normcoll API.
41612         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41613         u16_normcoll, u32_normcoll): Change failure conventions.
41614         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
41615         errno and return -1.
41616         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41617
41618 2009-03-07  Bruno Haible  <bruno@clisp.org>
41619
41620         Tests for module 'uninorm/u32-normcoll'.
41621         * modules/uninorm/u32-normcoll-tests: New file.
41622         * tests/uninorm/test-u32-normcoll.c: New file.
41623
41624         Tests for module 'uninorm/u16-normcoll'.
41625         * modules/uninorm/u16-normcoll-tests: New file.
41626         * tests/uninorm/test-u16-normcoll.c: New file.
41627
41628         Tests for module 'uninorm/u8-normcoll'.
41629         * modules/uninorm/u8-normcoll-tests: New file.
41630         * tests/uninorm/test-u8-normcoll.c: New file.
41631
41632 2009-03-07  Bruno Haible  <bruno@clisp.org>
41633
41634         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
41635         tests/uninorm/test-u32-normcmp.c.
41636         * tests/uninorm/test-u32-normcmp.c: Include it.
41637         (test_nonascii): New function, extracted from main. Add some more
41638         tests.
41639         (main): Invoke test_ascii and test_nonascii.
41640         * modules/uninorm/u32-normcmp-tests (Files): Add
41641         tests/uninorm/test-u32-normcmp.h.
41642         (Depends-on): Remove uninorm/u32-normcmp.
41643
41644         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
41645         tests/uninorm/test-u16-normcmp.c.
41646         * tests/uninorm/test-u16-normcmp.c: Include it.
41647         (test_nonascii): New function, extracted from main. Add some more
41648         tests.
41649         (main): Invoke test_ascii and test_nonascii.
41650         * modules/uninorm/u16-normcmp-tests (Files): Add
41651         tests/uninorm/test-u16-normcmp.h.
41652         (Depends-on): Remove uninorm/u16-normcmp.
41653
41654         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
41655         tests/uninorm/test-u8-normcmp.c.
41656         * tests/uninorm/test-u8-normcmp.c: Include it.
41657         (test_nonascii): New function, extracted from main. Add some more
41658         tests.
41659         (main): Invoke test_ascii and test_nonascii.
41660         * modules/uninorm/u8-normcmp-tests (Files): Add
41661         tests/uninorm/test-u8-normcmp.h.
41662         (Depends-on): Remove uninorm/u8-normcmp.
41663
41664 2009-03-07  Bruno Haible  <bruno@clisp.org>
41665
41666         New module 'uninorm/u32-normcoll'.
41667         * lib/uninorm/u32-normcoll.c: New file.
41668         * modules/uninorm/u32-normcoll: New file.
41669
41670         New module 'uninorm/u16-normcoll'.
41671         * lib/uninorm/u16-normcoll.c: New file.
41672         * modules/uninorm/u16-normcoll: New file.
41673
41674         New module 'uninorm/u8-normcoll'.
41675         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
41676         declarations.
41677         * lib/uninorm/u8-normcoll.c: New file.
41678         * lib/uninorm/u-normcoll.h: New file.
41679         * modules/uninorm/u8-normcoll: New file.
41680
41681         New module 'uninorm/u32-normxfrm'.
41682         * lib/uninorm/u32-normxfrm.c: New file.
41683         * modules/uninorm/u32-normxfrm: New file.
41684
41685         New module 'uninorm/u16-normxfrm'.
41686         * lib/uninorm/u16-normxfrm.c: New file.
41687         * modules/uninorm/u16-normxfrm: New file.
41688
41689         New module 'uninorm/u8-normxfrm'.
41690         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
41691         declarations.
41692         * lib/uninorm/u8-normxfrm.c: New file.
41693         * lib/uninorm/u-normxfrm.h: New file.
41694         * modules/uninorm/u8-normxfrm: New file.
41695
41696 2009-03-07  Bruno Haible  <bruno@clisp.org>
41697
41698         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
41699         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
41700         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
41701
41702 2009-03-07  Bruno Haible  <bruno@clisp.org>
41703
41704         New module 'memxfrm'.
41705         * lib/memxfrm.h: New file.
41706         * lib/memxfrm.c: New file.
41707         * modules/memxfrm: New file.
41708
41709 2009-03-07  Bruno Haible  <bruno@clisp.org>
41710
41711         New module 'memcmp2'.
41712         * lib/memcmp2.h: New file.
41713         * lib/memcmp2.c: New file.
41714         * modules/memcmp2: New file.
41715
41716 2009-03-07  Bruno Haible  <bruno@clisp.org>
41717
41718         Tests for module 'uninorm/decomposing-form'.
41719         * modules/uninorm/decomposing-form-tests: New file.
41720         * tests/uninorm/test-decomposing-form.c: New file.
41721
41722         New module 'uninorm/decomposing-form'.
41723         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
41724         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
41725         Add 'decomposing_variant' field.
41726         * lib/uninorm/decomposing-form.c: New file.
41727         * lib/uninorm/nfc.c (uninorm_nfc): Update.
41728         * lib/uninorm/nfd.c (uninorm_nfd): Update.
41729         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
41730         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
41731         * modules/uninorm/decomposing-form: New file.
41732         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
41733         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
41734
41735 2009-03-07  Bruno Haible  <bruno@clisp.org>
41736
41737         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
41738         strings.
41739
41740 2009-03-06  Bruno Haible  <bruno@clisp.org>
41741
41742         Tests for module 'uninorm/u32-normcmp'.
41743         * tests/uninorm/test-u32-normcmp.c: New file.
41744         * modules/uninorm/u32-normcmp-tests: New file.
41745
41746         Tests for module 'uninorm/u16-normcmp'.
41747         * tests/uninorm/test-u16-normcmp.c: New file.
41748         * modules/uninorm/u16-normcmp-tests: New file.
41749
41750         Tests for module 'uninorm/u8-normcmp'.
41751         * tests/uninorm/test-u8-normcmp.c: New file.
41752         * modules/uninorm/u8-normcmp-tests: New file.
41753
41754         New module 'uninorm/u32-normcmp'.
41755         * lib/uninorm/u32-normcmp.c: New file.
41756         * modules/uninorm/u32-normcmp: New file.
41757
41758         New module 'uninorm/u16-normcmp'.
41759         * lib/uninorm/u16-normcmp.c: New file.
41760         * modules/uninorm/u16-normcmp: New file.
41761
41762         New module 'uninorm/u8-normcmp'.
41763         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
41764         declarations.
41765         * lib/uninorm/u8-normcmp.c: New file.
41766         * lib/uninorm/u-normcmp.h: New file.
41767         * modules/uninorm/u8-normcmp: New file.
41768
41769 2009-03-06  Bruno Haible  <bruno@clisp.org>
41770
41771         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
41772         Reported by Eric Blake.
41773
41774 2009-03-06  Eric Blake  <ebb9@byu.net>
41775             Bruno Haible  <bruno@clisp.org>
41776
41777         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
41778         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
41779         condition.
41780         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41781         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
41782         condition.
41783         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41784
41785 2009-03-06  Eric Blake  <ebb9@byu.net>
41786
41787         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
41788         to avoid compiler warnings.
41789         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
41790
41791 2009-03-05  Bruno Haible  <bruno@clisp.org>
41792
41793         * tests/test-ftell.c (main): Disable test beyond end of file on
41794         FreeMiNT.
41795         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41796
41797 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
41798
41799         * lib/filevercmp.c: Move hidden files up in ordering.
41800         * tests/test-filevercmp.c: Add tests for hidden files.
41801
41802 2009-03-04  Bruno Haible  <bruno@clisp.org>
41803
41804         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
41805         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
41806         AM_CFLAGS.
41807         Reported by Simon Josefsson.
41808
41809 2009-03-03  Bruno Haible  <bruno@clisp.org>
41810
41811         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
41812         Reported by Simon Josefsson.
41813
41814         * doc/ld-version-script.texi: Update node reference.
41815
41816 2009-03-03  Bruno Haible  <bruno@clisp.org>
41817
41818         * modules/visibility (License): Change to 'unlimited'.
41819         Suggested by Simon Josefsson.
41820
41821 2009-03-03  Jim Meyering  <meyering@redhat.com>
41822
41823         unlinkdir: cannot_unlink_dir may modify process state
41824         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
41825         it's neither thread-safe nor appropriate for use in a library.
41826
41827 2009-03-03  Eric Blake  <ebb9@byu.net>
41828
41829         test-closein: silence test under Darwin
41830         * tests/test-closein.sh: Ignore stderr from cat, since we don't
41831         care if it dies from EPIPE or EBADF.
41832
41833 2009-03-03  Bruno Haible  <bruno@clisp.org>
41834
41835         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
41836         earlier.
41837         * doc/visibility.texi: Fix @node and @section.
41838
41839 2009-03-03  Simon Josefsson  <simon@josefsson.org>
41840
41841         * doc/gnulib.texi: Link to sections for ld version script and
41842         visibility.
41843         * doc/visibility.texi: Add @node and @section.
41844         * modules/ld-version-script: New module.
41845         * m4/ld-version-script.m4: New file.
41846         * doc/ld-version-script.texi: New file.
41847
41848 2009-03-02  David Lutterkort  <lutter@redhat.com>
41849
41850         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
41851         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41852
41853 2009-03-02  Bruno Haible  <bruno@clisp.org>
41854
41855         * doc/visibility.texi: Mention libtool's -export-symbols option.
41856
41857 2009-03-02  Jim Meyering  <meyering@redhat.com>
41858
41859         announce-gen: new option: --no-print-checksums
41860         * build-aux/announce-gen (usage): Describe it.
41861         (print_checksums): Print a newline here, not in the [*] footnote.
41862         (main): Honor it.
41863
41864 2009-03-01  Bruno Haible  <bruno@clisp.org>
41865
41866         Use socklen_t in the native Windows replacements prototypes.
41867         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
41868         instead of 'int'.
41869         * lib/getsockopt.c (rpl_getsockopt): Likewise.
41870         * lib/setsockopt.c (rpl_setsockopt): Likewise.
41871         * modules/getsockopt (Depends-on): Add socklen.
41872         * modules/setsockopt (Depends-on): Add socklen.
41873
41874 2009-03-01  Bruno Haible  <bruno@clisp.org>
41875
41876         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
41877         least 4.2.
41878
41879 2009-03-01  Eric Blake  <ebb9@byu.net>
41880             Bruno Haible  <bruno@clisp.org>
41881
41882         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
41883         error messages.
41884         * lib/wait-process.c (wait_subprocess): Omit error message about
41885         deadly signal sent to the child of termsigp != NULL.
41886
41887 2009-03-01  Eric Blake  <ebb9@byu.net>
41888
41889         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
41890
41891 2009-03-01  Bruno Haible  <bruno@clisp.org>
41892
41893         Avoid a gcc warning.
41894         * tests/test-sched.c (b): Make global.
41895         Reported by Eric Blake.
41896
41897 2009-01-19  Martin Lambers  <marlam@marlam.de>
41898
41899         Provide POSIX semantics for socket timeout options on W32.
41900         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
41901         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
41902         * modules/setsockopt: Depend on sys_time module for struct timeval.
41903         * modules/getsockopt: Depend on sys_time module for struct timeval.
41904
41905 2009-03-01  Simon Josefsson  <simon@josefsson.org>
41906
41907         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
41908         __USE_GNU, for consistency with netdb.in.h.
41909         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41910
41911 2009-03-01  Bruno Haible  <bruno@clisp.org>
41912
41913         More support for FreeMiNT.
41914         * lib/fseeko.c (rpl_fseeko): Complete last commit.
41915         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41916
41917 2009-03-01  Bruno Haible  <bruno@clisp.org>
41918
41919         More support for FreeMiNT.
41920         * lib/fpurge.c (fpurge): Correct last commit.
41921         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41922
41923 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41924
41925         Fix unportable awk script in vc-list-files.
41926         * build-aux/vc-list-files: In the replacement awk script, use
41927         substr with a second argument of 1, not zero.
41928         Report by Simon Josefsson.
41929
41930 2009-02-28  Bruno Haible  <bruno@clisp.org>
41931
41932         More support for FreeMiNT.
41933         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
41934         to FreeMiNT today.
41935         * lib/fwriting.c (fwriting): Likewise.
41936         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
41937
41938 2009-02-28  Bruno Haible  <bruno@clisp.org>
41939
41940         * tests/test-freadseek.c (main): Disable test beyond end of file on
41941         FreeMiNT.
41942         * tests/test-ftello.c (main): Likewise.
41943         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41944
41945 2009-02-28  Bruno Haible  <bruno@clisp.org>
41946
41947         Add tentative support for FreeMiNT.
41948         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
41949         * lib/fpurge.c (fpurge): Likewise.
41950         * lib/freadable.c (freadable): Likewise.
41951         * lib/freading.c (freading): Likewise.
41952         * lib/freadptr.c (freadptr): Likewise.
41953         * lib/freadseek.c (freadptrinc): Likewise.
41954         * lib/fseeko.c (rpl_fseeko): Likewise.
41955         * lib/fseterr.c (fseterr): Likewise.
41956         * lib/fwritable.c (fwritable): Likewise.
41957         * lib/fwriting.c (fwriting): Likewise.
41958         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
41959         Hourihane.
41960         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41961
41962 2009-02-28  Bruno Haible  <bruno@clisp.org>
41963
41964         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
41965         SIGCHLD.
41966         Reported by Jim Meyering.
41967
41968 2009-02-28  Bruno Haible  <bruno@clisp.org>
41969
41970         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
41971         Mention the results of these tests on various platforms.
41972         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
41973         order.
41974         * doc/posix-functions/printf.texi: Likewise.
41975         * doc/posix-functions/snprintf.texi: Likewise.
41976         * doc/posix-functions/sprintf.texi: Likewise.
41977         * doc/posix-functions/vfprintf.texi: Likewise.
41978         * doc/posix-functions/vprintf.texi: Likewise.
41979         * doc/posix-functions/vsnprintf.texi: Likewise.
41980         * doc/posix-functions/vsprintf.texi: Likewise.
41981         * doc/glibc-functions/obstack_printf.texi: Likewise.
41982         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
41983
41984 2009-02-28  Bruno Haible  <bruno@clisp.org>
41985
41986         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
41987         Reported by Loïc Minier <lool@dooz.org>.
41988
41989 2009-02-27  Bruno Haible  <bruno@clisp.org>
41990
41991         * gnulib-tool (func_import): Make the sed expression used to create the
41992         sed script for updating the .gitignore file POSIX compliant.
41993         Reported by Eric Blake.
41994
41995 2009-02-27  Bruno Haible  <bruno@clisp.org>
41996
41997         * gnulib-tool (sed): Don't alias as "sed --posix".
41998         Reported by Eric Blake.
41999
42000 2009-02-27  Bruno Haible  <bruno@clisp.org>
42001
42002         Avoid test link errors.
42003         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
42004         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
42005         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
42006         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
42007         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42008
42009 2009-02-27  Bruno Haible  <bruno@clisp.org>
42010
42011         Avoid spurious "(cached)" in configure output.
42012         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
42013         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
42014         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
42015         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
42016         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
42017         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
42018         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
42019         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
42020         Reported by Eric Blake.
42021
42022 2009-02-27  Eric Blake  <ebb9@byu.net>
42023
42024         printf: fix regression in previous patch
42025         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
42026
42027 2009-02-27  Bruno Haible  <bruno@clisp.org>
42028
42029         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
42030         value.
42031         * lib/stdint.in.h: Likewise.
42032         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
42033
42034 2009-02-27  Eric Blake  <ebb9@byu.net>
42035
42036         doc: mention more functions added in cygwin 1.7.0
42037         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
42038         addition.
42039         * doc/posix-functions/open_wmemstream.texi: Likewise.
42040         * doc/posix-functions/wcsnlen.texi: Likewise.
42041         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42042         * doc/posix-functions/wcstod.texi: Likewise.
42043         * doc/posix-functions/wcstof.texi: Likewise.
42044         * doc/posix-functions/wcstoimax.texi: Likewise.
42045         * doc/posix-functions/wcstok.texi: Likewise.
42046         * doc/posix-functions/wcstoumax.texi: Likewise.
42047
42048         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
42049         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
42050         * doc/posix-functions/fprintf.texi: Update.
42051         * doc/posix-functions/printf.texi: Update.
42052         * doc/posix-functions/snprintf.texi: Update.
42053         * doc/posix-functions/sprintf.texi: Update.
42054         * doc/posix-functions/vfprintf.texi: Update.
42055         * doc/posix-functions/vprintf.texi: Update.
42056         * doc/posix-functions/vsnprintf.texi: Update.
42057         * doc/posix-functions/vsprintf.texi: Update.
42058         * doc/glibc-functions/obstack_printf.texi: Update.
42059         * doc/glibc-functions/obstack_vprintf.texi: Update.
42060
42061 2009-02-26  Eric Blake  <ebb9@byu.net>
42062
42063         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
42064         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
42065         compilation bug by using runtime conversion.
42066         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
42067         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
42068         * modules/ceill-tests (Files): Use nan.h.
42069         * modules/floorl-tests (Files): Likewise.
42070         * modules/frexpl-tests (Files): Likewise.
42071         * modules/isnanl-tests (Files): Likewise.
42072         * modules/ldexpl-tests (Files): Likewise.
42073         * modules/roundl-tests (Files): Likewise.
42074         * modules/truncl-tests (Files): Likewise.
42075         * tests/test-ceill.c (main): Use a working NaN.
42076         * tests/test-floorl.c (main): Likewise.
42077         * tests/test-frexpl.c (main): Likewise.
42078         * tests/test-isnan.c (test_long_double): Likewise.
42079         * tests/test-isnanl.h (main): Likewise.
42080         * tests/test-ldexpl.h (main): Likewise.
42081         * tests/test-roundl.h (main): Likewise.
42082         * tests/test-truncl.h (main): Likewise.
42083         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
42084
42085 2009-02-26  Eric Blake  <ebb9@byu.net>
42086             Bruno Haible  <bruno@clisp.org>
42087
42088         Work around a *printf bug with %ls on Solaris.
42089         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
42090         precision is specified, sprintf stops converting the wide string
42091         argument when the number of bytes that have been produced by this
42092         conversion equals or exceeds the precision.
42093         * doc/posix-functions/fprintf.texi: Update.
42094         * doc/posix-functions/printf.texi: Update.
42095         * doc/posix-functions/snprintf.texi: Update.
42096         * doc/posix-functions/sprintf.texi: Update.
42097         * doc/posix-functions/vfprintf.texi: Update.
42098         * doc/posix-functions/vprintf.texi: Update.
42099         * doc/posix-functions/vsnprintf.texi: Update.
42100         * doc/posix-functions/vsprintf.texi: Update.
42101         * doc/glibc-functions/obstack_printf.texi: Update.
42102         * doc/glibc-functions/obstack_vprintf.texi: Update.
42103
42104 2009-02-26  Eric Blake  <ebb9@byu.net>
42105
42106         stdlib: favor compiler check of random.h
42107         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
42108         to avoid an ObjC random.h installed by Swarm.
42109
42110 2009-02-26  Bruno Haible  <bruno@clisp.org>
42111
42112         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
42113         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
42114         Reported by Gary V. Vaughan <gary@gnu.org>.
42115
42116 2009-02-26  Bruno Haible  <bruno@clisp.org>
42117
42118         Fix *printf behaviour regarding the %ls directive.
42119         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
42120         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
42121         NEED_PRINTF_DIRECTIVE_LS.
42122         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
42123         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42124         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42125         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
42126         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
42127         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
42128         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42129         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42130         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42131         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42132         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42133         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
42134         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42135         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42136         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42137         * doc/posix-functions/fprintf.texi: Update.
42138         * doc/posix-functions/printf.texi: Update.
42139         * doc/posix-functions/snprintf.texi: Update.
42140         * doc/posix-functions/sprintf.texi: Update.
42141         * doc/posix-functions/vfprintf.texi: Update.
42142         * doc/posix-functions/vprintf.texi: Update.
42143         * doc/posix-functions/vsnprintf.texi: Update.
42144         * doc/posix-functions/vsprintf.texi: Update.
42145         * doc/glibc-functions/obstack_printf.texi: Update.
42146         * doc/glibc-functions/obstack_vprintf.texi: Update.
42147         Reported by Eric Blake.
42148
42149 2009-02-25  Bruno Haible  <bruno@clisp.org>
42150
42151         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
42152         with known value.
42153         Reported by Gary V. Vaughan <gary@gnu.org>.
42154
42155 2009-02-25  Bruno Haible  <bruno@clisp.org>
42156
42157         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
42158         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
42159         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
42160         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
42161         Reported by Gary V. Vaughan <gary@gnu.org>.
42162
42163 2009-02-25  Bruno Haible  <bruno@clisp.org>
42164
42165         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
42166         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
42167         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
42168         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
42169         Reported by Gary V. Vaughan <gary@gnu.org>.
42170
42171 2009-02-25  Eric Blake  <ebb9@byu.net>
42172
42173         tests: skip fseek/ftell tests if ungetc is broken
42174         * m4/ungetc.m4: New file.
42175         * modules/fseek-tests: Split test, so ungetc dependency is
42176         separate from rest of test.
42177         * modules/fseeko-tests: Likewise.
42178         * modules/ftell-tests: Likewise.
42179         * modules/ftello-tests: Likewise.
42180         * tests/test-fseek.c (main): Isolate ungetc dependency.
42181         * tests/test-fseeko.c (main): Likewise.
42182         * tests/test-ftell.c (main): Likewise.
42183         * tests/test-ftello.c (main): Likewise.
42184         * tests/test-fseek2.sh: New file.
42185         * tests/test-fseeko2.sh: Likewise.
42186         * tests/test-ftell2.sh: Likewise.
42187         * tests/test-ftello2.sh: Likewise.
42188
42189 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
42190
42191         test-getaddrinfo: fix usage of skip return code 77
42192         * tests/test-gettaddrinfo.c: Return skip code 77 only
42193         for first occurance of skip (4x77 is not 77)
42194
42195 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
42196
42197         strtod: avoid C99 decl-after-statement
42198         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
42199
42200 2009-02-24  Eric Blake  <ebb9@byu.net>
42201
42202         strtod: detect HP-UX 11.31 bug
42203         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
42204         Reported by Gary V. Vaughan.
42205
42206 2009-02-23  Bruno Haible  <bruno@clisp.org>
42207
42208         Fix invalid read past end of memory block.
42209         * lib/vasnprintf.c (DCHAR_SET): Define.
42210         (local_wcslen): Define only when needed.
42211         (local_strnlen, local_wcsnlen): New functions.
42212         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
42213         directives that involve a conversion ourselves.
42214         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
42215         wcsnlen, mbrtowc, wcrtomb.
42216         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
42217         * tests/test-vasprintf-posix.c (test_function): Likewise.
42218         * tests/test-snprintf-posix.h (test_function): Likewise.
42219         * tests/test-sprintf-posix.h (test_function): Likewise.
42220         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42221
42222 2009-02-22  Bruno Haible  <bruno@clisp.org>
42223
42224         Implement new clarified decomposition of Hangul syllables.
42225         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
42226         of type LTV, return only a pairwise decomposition.
42227         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
42228         Likewise.
42229         * tests/uninorm/test-decomposition.c (main): Updated expected result.
42230         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
42231         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
42232
42233 2009-02-22  Bruno Haible  <bruno@clisp.org>
42234
42235         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
42236         zero-length results and shrink excess allocated memory.
42237         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
42238         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
42239         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
42240         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
42241         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
42242         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
42243         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
42244         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
42245         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
42246         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
42247         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
42248         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
42249
42250 2009-02-21  Bruno Haible  <bruno@clisp.org>
42251
42252         * doc/gnulib.texi: Include safe-alloc.texi earlier.
42253         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
42254         spaces after a period. Put a space between a macro name and its
42255         argument list. Trivial rewordings.
42256         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
42257         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
42258         (main): Return 0 explicitly.
42259
42260 2009-02-21  Bruno Haible  <bruno@clisp.org>
42261
42262         Tests for module 'uninorm/filter'.
42263         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
42264         * modules/uninorm/filter-tests: New file.
42265
42266         New module 'uninorm/filter'.
42267         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
42268         uninorm_filter_flush, uninorm_filter_free): New declarations.
42269         * lib/uninorm/uninorm-filter.c: New file.
42270         * modules/uninorm/filter: New file.
42271
42272 2009-02-21  Bruno Haible  <bruno@clisp.org>
42273
42274         Tests for module 'uninorm/nfkc'.
42275         * tests/uninorm/test-nfkc.c: New file.
42276         * tests/uninorm/test-u8-nfkc.c: New file.
42277         * tests/uninorm/test-u16-nfkc.c: New file.
42278         * tests/uninorm/test-u32-nfkc.c: New file.
42279         * tests/uninorm/test-u32-nfkc-big.sh: New file.
42280         * tests/uninorm/test-u32-nfkc-big.c: New file.
42281         * modules/uninorm/nfkc-tests: New file.
42282
42283         New module 'uninorm/nfkc'.
42284         * lib/uninorm/nfkc.c: New file.
42285         * modules/uninorm/nfkc: New file.
42286
42287         Tests for module 'uninorm/nfkd'.
42288         * tests/uninorm/test-nfkd.c: New file.
42289         * tests/uninorm/test-u8-nfkd.c: New file.
42290         * tests/uninorm/test-u16-nfkd.c: New file.
42291         * tests/uninorm/test-u32-nfkd.c: New file.
42292         * tests/uninorm/test-u32-nfkd-big.sh: New file.
42293         * tests/uninorm/test-u32-nfkd-big.c: New file.
42294         * modules/uninorm/nfkd-tests: New file.
42295
42296         New module 'uninorm/nfkd'.
42297         * lib/uninorm/nfkd.c: New file.
42298         * modules/uninorm/nfkd: New file.
42299
42300         Tests for module 'uninorm/nfc'.
42301         * tests/uninorm/test-nfc.c: New file.
42302         * tests/uninorm/test-u8-nfc.c: New file.
42303         * tests/uninorm/test-u16-nfc.c: New file.
42304         * tests/uninorm/test-u32-nfc.c: New file.
42305         * tests/uninorm/test-u32-nfc-big.sh: New file.
42306         * tests/uninorm/test-u32-nfc-big.c: New file.
42307         * modules/uninorm/nfc-tests: New file.
42308
42309         New module 'uninorm/nfc'.
42310         * lib/uninorm/nfc.c: New file.
42311         * modules/uninorm/nfc: New file.
42312
42313         Tests for module 'uninorm/nfd'.
42314         * tests/uninorm/test-nfd.c: New file.
42315         * tests/uninorm/test-u8-nfd.c: New file.
42316         * tests/uninorm/test-u16-nfd.c: New file.
42317         * tests/uninorm/test-u32-nfd.c: New file.
42318         * tests/uninorm/test-u32-nfd-big.sh: New file.
42319         * tests/uninorm/test-u32-nfd-big.c: New file.
42320         * tests/uninorm/test-u32-normalize-big.h: New file.
42321         * tests/uninorm/test-u32-normalize-big.c: New file.
42322         * tests/uninorm/NormalizationTest.txt: New file, created from
42323         Unicode 5.1.0 NormalizationTest.txt.
42324         * modules/uninorm/nfd-tests: New file.
42325
42326         New module 'uninorm/nfd'.
42327         * lib/uninorm/nfd.c: New file.
42328         * modules/uninorm/nfd: New file.
42329
42330         New module 'uninorm/u32-normalize'.
42331         * lib/uninorm/u32-normalize.c: New file.
42332         * modules/uninorm/u32-normalize: New file.
42333
42334         New module 'uninorm/u16-normalize'.
42335         * lib/uninorm/u16-normalize.c: New file.
42336         * modules/uninorm/u16-normalize: New file.
42337
42338         New module 'uninorm/u8-normalize'.
42339         * lib/uninorm/u8-normalize.c: New file.
42340         * lib/uninorm/normalize-internal.h: New file.
42341         * lib/uninorm/u-normalize-internal.h: New file.
42342         * modules/uninorm/u8-normalize: New file.
42343
42344         New module 'uninorm/decompose-internal'.
42345         * lib/uninorm/decompose-internal.c: New file.
42346         * modules/uninorm/decompose-internal: New file.
42347
42348         Tests for module 'uninorm/composition'.
42349         * tests/uninorm/test-composition.c: New file.
42350         * modules/uninorm/composition-tests: New file.
42351
42352         New module 'uninorm/composition'.
42353         * lib/uninorm/composition.c: New file.
42354         * lib/uninorm/composition-table.gperf: New file, generated by
42355         gen-uni-tables.
42356         * modules/uninorm/composition: New file.
42357
42358         Tests for module 'uninorm/compat-decomposition'.
42359         * tests/uninorm/test-compat-decomposition.c: New file.
42360         * modules/uninorm/compat-decomposition-tests: New file.
42361
42362         New module 'uninorm/compat-decomposition'.
42363         * lib/uninorm/decompose-internal.h: New file.
42364         * lib/uninorm/compat-decomposition.c: New file.
42365         * modules/uninorm/compat-decomposition: New file.
42366
42367         Tests for module 'uninorm/canonical-decomposition'.
42368         * tests/uninorm/test-canonical-decomposition.c: New file.
42369         * modules/uninorm/canonical-decomposition-tests: New file.
42370
42371         New module 'uninorm/canonical-decomposition'.
42372         * lib/uninorm/canonical-decomposition.c: New file.
42373         * modules/uninorm/canonical-decomposition: New file.
42374
42375         Tests for module 'uninorm/decomposition'.
42376         * tests/uninorm/test-decomposition.c: New file.
42377         * modules/uninorm/decomposition-tests: New file.
42378
42379         New module 'uninorm/decomposition'.
42380         * lib/uninorm/decomposition.c: New file.
42381         * modules/uninorm/decomposition: New file.
42382
42383         New module 'uninorm/decomposition-table'.
42384         * lib/uninorm/decomposition-table.h: New file.
42385         * lib/uninorm/decomposition-table.c: New file.
42386         * lib/uninorm/decomposition-table1.h: New file, generated by
42387         gen-uni-tables.
42388         * lib/uninorm/decomposition-table2.h: New file, generated by
42389         gen-uni-tables.
42390         * modules/uninorm/decomposition-table: New file.
42391
42392         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
42393         (UC_DECOMP_*): New enumeration items.
42394         (get_decomposition): New function.
42395         (struct decomp_table): New type.
42396         (output_decomposition, output_decomposition_tables): New functions.
42397         (unicode_composition_exclusions): New variable.
42398         (fill_composition_exclusions, debug_output_composition_tables): New
42399         functions.
42400         (main): Accept one more argument. Invoke fill_composition_exclusions.
42401         Output decomposition and composition tables.
42402
42403         New module 'uninorm/base'.
42404         * lib/uninorm.h: New file.
42405         * lib/unictype.h: Update comment.
42406         * modules/uninorm/base: New file.
42407
42408 2009-02-21  David Lutterkort  <lutter@redhat.com>
42409
42410         Tests for module 'safe-alloc'.
42411         * tests/test-safe-alloc.c: New file.
42412         * modules/safe-alloc-tests: New file.
42413
42414         New module 'safe-alloc'.
42415         * lib/safe-alloc.h: New file.
42416         * lib/safe-alloc.c: New file.
42417         * m4/safe-alloc.m4: New file.
42418         * modules/safe-alloc: New file.
42419         * doc/safe-alloc.texi: New file.
42420         * doc/gnulib.texi: Include it.
42421         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
42422         safe-alloc.
42423
42424 2009-02-18  Bruno Haible  <bruno@clisp.org>
42425
42426         Fix link error on non-glibc systems.
42427         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
42428         variable.
42429         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42430
42431 2009-02-18  Jim Meyering  <meyering@redhat.com>
42432
42433         fts: avoid used-uninitialized error due to recent change
42434         * lib/fts.c (fts_read): Guard uses of the new member,
42435         parent->fts_n_dirs_remaining, since it's not relevant for
42436         the parent of a directory specified on the command-line.
42437
42438 2009-02-17  James Youngman  <jay@gnu.org>
42439             Bruno Haible  <bruno@clisp.org>
42440
42441         * m4/include_next.m4: Reformulate comment.
42442
42443 2009-02-16  Jim Meyering  <meyering@redhat.com>
42444
42445         fts: add #if guards so that the fts_lgpl module still builds
42446         * lib/fts.c: Guard just-added hash-table-using parts with
42447         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
42448         Reported by Simon Josefsson.
42449
42450 2009-02-15  Bruno Haible  <bruno@clisp.org>
42451
42452         * modules/array-mergesort-tests: New file.
42453         * tests/test-array-mergesort.c: New file.
42454
42455         New module 'array-mergesort'.
42456         * modules/array-mergesort: New file.
42457         * lib/array-mergesort.h: New file.
42458
42459 2009-02-15  Bruno Haible  <bruno@clisp.org>
42460
42461         Fix 2009-02-07 commit.
42462         * lib/gen-uni-tables.c (output_predicate, output_category,
42463         output_combclass, output_bidi_category, output_decimal_digit,
42464         output_digit, output_numeric, output_mirror, output_scripts,
42465         output_ident_category, output_simple_mapping): Fix format directives.
42466         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
42467
42468 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
42469
42470         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
42471         fixes are available from IBM.
42472
42473 2009-02-13  Jim Meyering  <meyering@redhat.com>
42474
42475         fts: arrange not to stat non-directories in more cases
42476         This makes GNU find (when it doesn't need to stat each file)
42477         *much* more efficient at traversing reiserfs file systems.
42478         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
42479         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
42480         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
42481         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
42482         (leaf_optimization_applies): New function.
42483         (LCO_hash, LCO_compare): New helper functions.
42484         (link_count_optimize_ok): New function.
42485         (fts_stat): Initialize new member (if dir).
42486         (fts_read): Decrement parent's fts_n_dirs_remaining count if
42487         we've just stat'ed a directory.  Skip the stat call when possible.
42488         ---
42489         Note this AFS-related exchange:
42490         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
42491         and note find's pioctl call in find/fstype.c.
42492         But that is necessary only if you want to enable the
42493         optimization for AFS, and for now, I don't.
42494
42495         fts: move a function definition "up" (no semantic change)
42496         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
42497         "up" to precede upcoming use of a related function.
42498
42499 2009-02-11  Jim Meyering  <meyering@redhat.com>
42500
42501         fts: correct internal computation of nlinks (optimization-related)
42502         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
42503         whether the current entry is a directory, so don't test it.
42504
42505 2009-02-10  Bruno Haible  <bruno@clisp.org>
42506
42507         Tests for module 'uniwbrk/ulc-wordbreaks'.
42508         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
42509         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
42510         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
42511
42512         Tests for module 'uniwbrk/u32-wordbreaks'.
42513         * modules/uniwbrk/u32-wordbreaks-tests: New file.
42514         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
42515
42516         Tests for module 'uniwbrk/u16-wordbreaks'.
42517         * modules/uniwbrk/u16-wordbreaks-tests: New file.
42518         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
42519
42520         Tests for module 'uniwbrk/u8-wordbreaks'.
42521         * modules/uniwbrk/u8-wordbreaks-tests: New file.
42522         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
42523
42524 2009-02-10  Bruno Haible  <bruno@clisp.org>
42525
42526         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
42527         property.
42528         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
42529         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
42530         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
42531
42532 2009-02-10  Simon Josefsson  <simon@josefsson.org>
42533
42534         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
42535         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
42536
42537 2009-02-10  Bruno Haible  <bruno@clisp.org>
42538
42539         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
42540         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
42541         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
42542         * lib/unilbrk/u8-possible-linebreaks.c: Update.
42543         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
42544         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
42545
42546 2009-02-09  Simon Josefsson  <simon@josefsson.org>
42547
42548         * lib/sockets.h (gl_fd_to_handle): New function.
42549
42550         * tests/test-sockets.c: Call gl_fd_to_handle.
42551
42552 2009-02-09  Bruno Haible  <bruno@clisp.org>
42553
42554         * doc/havelib.texi: Document the conventions on bi-arch systems.
42555
42556 2009-02-08  Bruno Haible  <bruno@clisp.org>
42557
42558         Document the AC_LIB_LINKFLAGS macro.
42559         * doc/havelib.texi: New file, mostly written on 2005-05-24.
42560         * doc/gnulib.texi: Include it.
42561
42562 2009-02-08  Bruno Haible  <bruno@clisp.org>
42563
42564         Fix wrong order of sections, compared to TOC.
42565         * doc/gnulib.texi: Include relocatable-maint.texi after the
42566         "Regular expressions" node, not before.
42567
42568 2009-02-08  Bruno Haible  <bruno@clisp.org>
42569
42570         Tests for module 'unicase/totitle'.
42571         * modules/unicase/totitle-tests: New file.
42572
42573         Tests for module 'unicase/tolower'.
42574         * modules/unicase/tolower-tests: New file.
42575
42576         Tests for module 'unicase/toupper'.
42577         * modules/unicase/toupper-tests: New file.
42578         * tests/unicase/test-mapping-part1.h: New file.
42579         * tests/unicase/test-mapping-part2.h: New file.
42580
42581         New module 'unicase/totitle'.
42582         * modules/unicase/totitle: New file.
42583         * lib/unicase/totitle.c: New file.
42584
42585         New module 'unicase/tolower'.
42586         * modules/unicase/tolower: New file.
42587         * lib/unicase/tolower.c: New file.
42588
42589         New module 'unicase/toupper'.
42590         * modules/unicase/toupper: New file.
42591         * lib/unicase/toupper.c: New file.
42592         * lib/unicase/simple-mapping.h: New file.
42593
42594         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
42595         (mapping_table): New structure.
42596         (output_simple_mapping): New function.
42597         (main): Invoke output_simple_mapping_test and output_simple_mapping.
42598         * modules/gen-uni-tables (Description): Update.
42599         * lib/unicase/toupper.h: New file, automatically generated by
42600         gen-uni-tables.
42601         * lib/unicase/tolower.h: New file, automatically generated by
42602         gen-uni-tables.
42603         * lib/unicase/totitle.h: New file, automatically generated by
42604         gen-uni-tables.
42605         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
42606         gen-uni-tables.
42607         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
42608         gen-uni-tables.
42609         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
42610         gen-uni-tables.
42611
42612         New module 'unicase/base'.
42613         * modules/unicase/base: New file.
42614         * lib/unicase.h: New file.
42615
42616 2009-02-08  Bruno Haible  <bruno@clisp.org>
42617
42618         New module 'uniwbrk/ulc-wordbreaks'.
42619         * modules/uniwbrk/ulc-wordbreaks: New file.
42620         * lib/uniwbrk/ulc-wordbreaks.c: New file.
42621
42622         New module 'uniwbrk/u32-wordbreaks'.
42623         * modules/uniwbrk/u32-wordbreaks: New file.
42624         * lib/uniwbrk/u32-wordbreaks.c: New file.
42625
42626         New module 'uniwbrk/u16-wordbreaks'.
42627         * modules/uniwbrk/u16-wordbreaks: New file.
42628         * lib/uniwbrk/u16-wordbreaks.c: New file.
42629
42630         New module 'uniwbrk/u8-wordbreaks'.
42631         * modules/uniwbrk/u8-wordbreaks: New file.
42632         * lib/uniwbrk/u8-wordbreaks.c: New file.
42633         * lib/uniwbrk/u-wordbreaks.h: New file.
42634
42635         New module 'uniwbrk/table'.
42636         * modules/uniwbrk/table: New file.
42637         * lib/uniwbrk/wbrktable.h: New file.
42638         * lib/uniwbrk/wbrktable.c: New file.
42639
42640         New module 'uniwbrk/wordbreak-property'.
42641         * modules/uniwbrk/wordbreak-property: New file.
42642         * lib/uniwbrk/wordbreak-property.c: New file.
42643
42644         * lib/gen-uni-tables.c (WBP_*): New enum items.
42645         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
42646         (unicode_org_wbp): New variable.
42647         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
42648         New functions.
42649         (wbp_table): New structure.
42650         (output_wbp, output_wbrk_tables): New functions.
42651         (main): Accept additional argument. Invoke fill_org_wbp,
42652         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
42653         output_wbrk_tables.
42654         * modules/gen-uni-tables (Description): Update.
42655         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
42656         gen-uni-tables.
42657
42658         New module 'uniwbrk/base'.
42659         * modules/uniwbrk/base: New file.
42660         * lib/uniwbrk.h: New file.
42661
42662 2009-02-08  Bruno Haible  <bruno@clisp.org>
42663
42664         Update to Unicode 5.1.0.
42665         * lib/gen-uni-tables.c (is_property_alphabetic): Include
42666         U+2185..U+2188.
42667         (is_property_default_ignorable_code_point): Don't include characters
42668         of category Cc or Cs and not-a-characters.
42669         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
42670         U+0D79, U+109E, U+109F, U+A60C.
42671         * lib/unictype/bidi_of.h: Regenerated.
42672         * lib/unictype/blocks.h: Regenerated.
42673         * lib/unictype/categ_C.h: Regenerated.
42674         * lib/unictype/categ_Cf.h: Regenerated.
42675         * lib/unictype/categ_Cn.h: Regenerated.
42676         * lib/unictype/categ_L.h: Regenerated.
42677         * lib/unictype/categ_Ll.h: Regenerated.
42678         * lib/unictype/categ_Lm.h: Regenerated.
42679         * lib/unictype/categ_Lo.h: Regenerated.
42680         * lib/unictype/categ_Lu.h: Regenerated.
42681         * lib/unictype/categ_M.h: Regenerated.
42682         * lib/unictype/categ_Mc.h: Regenerated.
42683         * lib/unictype/categ_Me.h: Regenerated.
42684         * lib/unictype/categ_Mn.h: Regenerated.
42685         * lib/unictype/categ_N.h: Regenerated.
42686         * lib/unictype/categ_Nd.h: Regenerated.
42687         * lib/unictype/categ_Nl.h: Regenerated.
42688         * lib/unictype/categ_No.h: Regenerated.
42689         * lib/unictype/categ_P.h: Regenerated.
42690         * lib/unictype/categ_Pd.h: Regenerated.
42691         * lib/unictype/categ_Pe.h: Regenerated.
42692         * lib/unictype/categ_Pf.h: Regenerated.
42693         * lib/unictype/categ_Pi.h: Regenerated.
42694         * lib/unictype/categ_Po.h: Regenerated.
42695         * lib/unictype/categ_Ps.h: Regenerated.
42696         * lib/unictype/categ_S.h: Regenerated.
42697         * lib/unictype/categ_Sk.h: Regenerated.
42698         * lib/unictype/categ_Sm.h: Regenerated.
42699         * lib/unictype/categ_So.h: Regenerated.
42700         * lib/unictype/categ_of.h: Regenerated.
42701         * lib/unictype/combining.h: Regenerated.
42702         * lib/unictype/ctype_alnum.h: Regenerated.
42703         * lib/unictype/ctype_alpha.h: Regenerated.
42704         * lib/unictype/ctype_graph.h: Regenerated.
42705         * lib/unictype/ctype_lower.h: Regenerated.
42706         * lib/unictype/ctype_print.h: Regenerated.
42707         * lib/unictype/ctype_punct.h: Regenerated.
42708         * lib/unictype/ctype_upper.h: Regenerated.
42709         * lib/unictype/decdigit.h: Regenerated.
42710         * lib/unictype/digit.h: Regenerated.
42711         * lib/unictype/mirror.h: Regenerated.
42712         * lib/unictype/numeric.h: Regenerated.
42713         * lib/unictype/pr_alphabetic.h: Regenerated.
42714         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
42715         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
42716         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
42717         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
42718         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
42719         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
42720         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
42721         * lib/unictype/pr_combining.h: Regenerated.
42722         * lib/unictype/pr_dash.h: Regenerated.
42723         * lib/unictype/pr_decimal_digit.h: Regenerated.
42724         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
42725         * lib/unictype/pr_deprecated.h: Regenerated.
42726         * lib/unictype/pr_diacritic.h: Regenerated.
42727         * lib/unictype/pr_extender.h: Regenerated.
42728         * lib/unictype/pr_format_control.h: Regenerated.
42729         * lib/unictype/pr_grapheme_base.h: Regenerated.
42730         * lib/unictype/pr_grapheme_extend.h: Regenerated.
42731         * lib/unictype/pr_grapheme_link.h: Regenerated.
42732         * lib/unictype/pr_id_continue.h: Regenerated.
42733         * lib/unictype/pr_id_start.h: Regenerated.
42734         * lib/unictype/pr_ideographic.h: Regenerated.
42735         * lib/unictype/pr_ignorable_control.h: Regenerated.
42736         * lib/unictype/pr_lowercase.h: Regenerated.
42737         * lib/unictype/pr_math.h: Regenerated.
42738         * lib/unictype/pr_numeric.h: Regenerated.
42739         * lib/unictype/pr_other_alphabetic.h: Regenerated.
42740         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
42741         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
42742         * lib/unictype/pr_other_id_continue.h: Regenerated.
42743         * lib/unictype/pr_other_lowercase.h: Regenerated.
42744         * lib/unictype/pr_other_math.h: Regenerated.
42745         * lib/unictype/pr_punctuation.h: Regenerated.
42746         * lib/unictype/pr_sentence_terminal.h: Regenerated.
42747         * lib/unictype/pr_soft_dotted.h: Regenerated.
42748         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
42749         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
42750         * lib/unictype/pr_unified_ideograph.h: Regenerated.
42751         * lib/unictype/pr_uppercase.h: Regenerated.
42752         * lib/unictype/pr_xid_continue.h: Regenerated.
42753         * lib/unictype/pr_xid_start.h: Regenerated.
42754         * lib/unictype/pr_zero_width.h: Regenerated.
42755         * lib/unictype/scripts.h: Regenerated.
42756         * lib/unictype/scripts_byname.gperf: Regenerated.
42757         * lib/unictype/sy_java_ident.h: Regenerated.
42758         * lib/unilbrk/lbrkprop1.h: Regenerated.
42759         * lib/unilbrk/lbrkprop2.h: Regenerated.
42760         * tests/unictype/test-categ_C.c: Regenerated.
42761         * tests/unictype/test-categ_Cf.c: Regenerated.
42762         * tests/unictype/test-categ_Cn.c: Regenerated.
42763         * tests/unictype/test-categ_L.c: Regenerated.
42764         * tests/unictype/test-categ_Ll.c: Regenerated.
42765         * tests/unictype/test-categ_Lm.c: Regenerated.
42766         * tests/unictype/test-categ_Lo.c: Regenerated.
42767         * tests/unictype/test-categ_Lu.c: Regenerated.
42768         * tests/unictype/test-categ_M.c: Regenerated.
42769         * tests/unictype/test-categ_Mc.c: Regenerated.
42770         * tests/unictype/test-categ_Me.c: Regenerated.
42771         * tests/unictype/test-categ_Mn.c: Regenerated.
42772         * tests/unictype/test-categ_N.c: Regenerated.
42773         * tests/unictype/test-categ_Nd.c: Regenerated.
42774         * tests/unictype/test-categ_Nl.c: Regenerated.
42775         * tests/unictype/test-categ_No.c: Regenerated.
42776         * tests/unictype/test-categ_P.c: Regenerated.
42777         * tests/unictype/test-categ_Pd.c: Regenerated.
42778         * tests/unictype/test-categ_Pe.c: Regenerated.
42779         * tests/unictype/test-categ_Pf.c: Regenerated.
42780         * tests/unictype/test-categ_Pi.c: Regenerated.
42781         * tests/unictype/test-categ_Po.c: Regenerated.
42782         * tests/unictype/test-categ_Ps.c: Regenerated.
42783         * tests/unictype/test-categ_S.c: Regenerated.
42784         * tests/unictype/test-categ_Sk.c: Regenerated.
42785         * tests/unictype/test-categ_Sm.c: Regenerated.
42786         * tests/unictype/test-categ_So.c: Regenerated.
42787         * tests/unictype/test-ctype_alnum.c: Regenerated.
42788         * tests/unictype/test-ctype_alpha.c: Regenerated.
42789         * tests/unictype/test-ctype_graph.c: Regenerated.
42790         * tests/unictype/test-ctype_lower.c: Regenerated.
42791         * tests/unictype/test-ctype_print.c: Regenerated.
42792         * tests/unictype/test-ctype_punct.c: Regenerated.
42793         * tests/unictype/test-ctype_upper.c: Regenerated.
42794         * tests/unictype/test-decdigit.h: Regenerated.
42795         * tests/unictype/test-digit.h: Regenerated.
42796         * tests/unictype/test-numeric.h: Regenerated.
42797         * tests/unictype/test-pr_alphabetic.c: Regenerated.
42798         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
42799         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
42800         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
42801         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
42802         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
42803         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
42804         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
42805         * tests/unictype/test-pr_combining.c: Regenerated.
42806         * tests/unictype/test-pr_dash.c: Regenerated.
42807         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
42808         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
42809         * tests/unictype/test-pr_deprecated.c: Regenerated.
42810         * tests/unictype/test-pr_diacritic.c: Regenerated.
42811         * tests/unictype/test-pr_extender.c: Regenerated.
42812         * tests/unictype/test-pr_format_control.c: Regenerated.
42813         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
42814         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
42815         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
42816         * tests/unictype/test-pr_id_continue.c: Regenerated.
42817         * tests/unictype/test-pr_id_start.c: Regenerated.
42818         * tests/unictype/test-pr_ideographic.c: Regenerated.
42819         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
42820         * tests/unictype/test-pr_lowercase.c: Regenerated.
42821         * tests/unictype/test-pr_math.c: Regenerated.
42822         * tests/unictype/test-pr_numeric.c: Regenerated.
42823         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
42824         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
42825         Regenerated.
42826         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
42827         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
42828         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
42829         * tests/unictype/test-pr_other_math.c: Regenerated.
42830         * tests/unictype/test-pr_punctuation.c: Regenerated.
42831         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
42832         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
42833         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
42834         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
42835         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
42836         * tests/unictype/test-pr_uppercase.c: Regenerated.
42837         * tests/unictype/test-pr_xid_continue.c: Regenerated.
42838         * tests/unictype/test-pr_xid_start.c: Regenerated.
42839         * tests/unictype/test-pr_zero_width.c: Regenerated.
42840
42841         Update to Unicode 5.1.0.
42842         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
42843         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
42844         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
42845         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
42846         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
42847         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
42848         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
42849         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
42850         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
42851         (nonspacing_table_ind): Update.
42852         * tests/uniwidth/test-uc_width2.sh: Update expected result.
42853
42854         Update to Unicode 5.1.0.
42855         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
42856         code transform.
42857         * lib/uniname/uniname.c (unicode_character_name,
42858         unicode_name_character): Add the range 0x1Fxxx to the code transform.
42859         * lib/uniname/uninames.h: Regenerated.
42860         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
42861
42862 2009-02-07  Bruno Haible  <bruno@clisp.org>
42863
42864         Merge gen-ctype and gen-lbrk into a single program.
42865         * lib/gen-uni-tables.c: New file, incorporating
42866         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
42867         Add directory prefixes to the names of the generated files.
42868         * lib/unictype/gen-ctype.c: Remove file.
42869         * lib/unilbrk/gen-lbrk.c: Remove file.
42870         * modules/gen-uni-tables: New file.
42871         * modules/unictype/gen-ctype: Remove file.
42872         * modules/unilbrk/gen-lbrk: Remove file.
42873
42874 2009-02-07  Bruno Haible  <bruno@clisp.org>
42875
42876         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
42877
42878         New module 'unistr/u32-strcoll'.
42879         * modules/unistr/u32-strcoll: New file.
42880         * lib/unistr/u32-strcoll.c: New file.
42881
42882         New module 'unistr/u16-strcoll'.
42883         * modules/unistr/u16-strcoll: New file.
42884         * lib/unistr/u16-strcoll.c: New file.
42885
42886         New module 'unistr/u8-strcoll'.
42887         * modules/unistr/u8-strcoll: New file.
42888         * lib/unistr/u8-strcoll.c: New file.
42889         * lib/unistr/u-strcoll.h: New file.
42890
42891 2009-02-07  Bruno Haible  <bruno@clisp.org>
42892
42893         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
42894         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42895         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42896         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
42897         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
42898         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
42899
42900 2009-02-07  Bruno Haible  <bruno@clisp.org>
42901
42902         Make 64-bit clean.
42903         * lib/unictype/gen-ctype.c (output_predicate, output_category,
42904         output_combclass, output_bidi_category, output_decimal_digit,
42905         output_digit, output_numeric, output_mirror, output_scripts,
42906         output_ident_category): Use proper width specifier in format strings.
42907
42908 2009-02-07  Bruno Haible  <bruno@clisp.org>
42909
42910         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
42911         failure behaviour.
42912
42913 2009-02-07  Jim Meyering  <meyering@redhat.com>
42914
42915         regex: avoid compilation failure with upcoming gcc-4.4
42916         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
42917         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
42918         "... error: integer overflow in preprocessor expression".
42919
42920 2009-02-05  Ben Pfaff  <blp@gnu.org>
42921
42922         Fix link errors on Windows when close module is used.
42923         * modules/close: Add $(LIB_CLOSE) to Link section.
42924         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
42925         $(LIB_CLOSE) on Windows.
42926
42927 2009-02-05  Jim Meyering  <meyering@redhat.com>
42928
42929         still avoid unused-parameter warnings, but do it cleanly
42930         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
42931         (get_fs_usage): Cast to void instead.
42932         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
42933         (dev_from_mount_options, read_file_system_list): Cast to void.
42934         Prompted by Bruno Haible.
42935
42936 2009-02-04  Jim Meyering  <meyering@redhat.com>
42937
42938         fsusage.c: correct copyright year
42939         * lib/fsusage.c: Reflect year in which the change is pushed into
42940
42941         avoid misc. warnings
42942         * lib/fsusage.c (UNUSED_PARAM): Define.
42943         (get_fs_usage): Mark parameter "disk" as unused.
42944         * lib/getugroups.c (getgrent): Use "void" in prototype.
42945         * lib/mountlist.c: Mark unused parameters.
42946         (read_file_system_list): Declare a local with "const".
42947         * lib/nanosleep.c (getnow): Declare static.
42948         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
42949
42950         dirfd: set errno upon failure
42951         * lib/dirfd.c: Include <errno.h>.
42952         Set errno to ENOTSUP when returning -1.
42953         * modules/dirfd (Depends-on): Add errno.
42954         Suggested by John Kodis <kodis@comcast.net>.
42955
42956 2009-02-01  Bruno Haible  <bruno@clisp.org>
42957
42958         Don't assume sizeof (long) >= sizeof (void *).
42959         * lib/memcmp.c: Include stdint.h.
42960         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
42961         srcp2 to 'const byte *'.
42962         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
42963         types to uintptr_t.
42964         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
42965         * modules/memcmp (Depends-on): Add stdint.
42966         Reported by Ozkan Sezer <sezeroz@gmail.com>.
42967
42968 2009-01-30  Eric Blake  <ebb9@byu.net>
42969
42970         fix more require-before-expand issues
42971         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
42972         expand, AC_PROG_AWK.
42973         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
42974
42975 2009-01-28  Eric Blake  <ebb9@byu.net>
42976
42977         version-etc: use consistent URL formatting
42978         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
42979         Improve formatting.  Use fputs for string without %.
42980
42981 2009-01-28  Jim Meyering  <meyering@redhat.com>
42982
42983         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
42984         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
42985         "underquoted definition of NAME" from autoconf-2.59.
42986
42987 2009-01-28  Bruno Haible  <bruno@clisp.org>
42988
42989         * doc/gnulib.texi: Add "Obsolete modules" to index.
42990
42991 2009-01-28  Jim Meyering  <meyering@redhat.com>
42992
42993         useless-if-before-free: recognize more variants
42994         * build-aux/useless-if-before-free: Also recognize e.g.,
42995         if (NULL != p) free (p);
42996
42997 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
42998
42999         test-getaddrinfo: skip (don't fail) this test when there's no network
43000         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
43001         on the presumption that it means you lack network access.
43002
43003 2009-01-26  Jim Meyering  <meyering@redhat.com>
43004
43005         fflush: avoid warnings on modern systems
43006         * lib/fflush.c (rpl_fflush): Move declarations of locals,
43007         pos and result, into scopes where they're used.
43008
43009 2009-01-26  Eric Blake  <ebb9@byu.net>
43010
43011         Silence warning reintroduced by recent extensions patch.
43012         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
43013         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
43014         autoconf.
43015
43016         Backport improved autoconf semantics of AC_DEFUN_ONCE.
43017         * m4/00gnulib.m4: New file.
43018         * gnulib-tool (func_get_filelist): Always use it.
43019         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
43020         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
43021
43022 2009-01-25  Bruno Haible  <bruno@clisp.org>
43023
43024         Make test-quotearg work on MacOS X and AIX.
43025         * tests/test-quotearg.sh: New file.
43026         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
43027         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
43028         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
43029         include <libintl.h>.
43030         (fake_locale): Remove variable.
43031         (gettext, dgettext, dcgettext): Remove functions.
43032         (main): Instead of setting a fake locale, set a real locale. Call
43033         textdomain and bindtextdomain.
43034         * modules/quotearg-tests (Files): Add the new files.
43035         (Depends-on): Add gettext, setenv, unsetenv.
43036         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
43037         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
43038         Augment TESTS_ENVIRONMENT.
43039
43040 2009-01-25  Bruno Haible  <bruno@clisp.org>
43041
43042         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
43043         fr_FR.ISO8859-1 locale on MacOS X.
43044         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
43045         ja_JP.eucJP locale on MacOS X.
43046         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
43047         zh_CN.GB18030 locale on MacOS X.
43048
43049 2009-01-25  Bruno Haible  <bruno@clisp.org>
43050
43051         Avoid link errors on MacOS X 10.3.
43052         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
43053         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43054
43055 2009-01-25  Bruno Haible  <bruno@clisp.org>
43056
43057         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43058         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
43059         * modules/pipe (Files): Remove m4/posix_spawn.m4.
43060         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43061         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
43062         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43063         posix_spawnattr_init, posix_spawnattr_setsigmask,
43064         posix_spawnattr_setflags, posix_spawnattr_destroy.
43065
43066         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43067         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
43068         * modules/execute (Files): Remove m4/posix_spawn.m4.
43069         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43070         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43071         posix_spawnattr_init, posix_spawnattr_setsigmask,
43072         posix_spawnattr_setflags, posix_spawnattr_destroy.
43073
43074 2009-01-25  Bruno Haible  <bruno@clisp.org>
43075
43076         * lib/glthread/threadlib.c: Include <stdlib.h>.
43077
43078 2009-01-25  Bruno Haible  <bruno@clisp.org>
43079
43080         * lib/glthread/threadlib.c (dummy): New declaration.
43081
43082 2009-01-25  Bruno Haible  <bruno@clisp.org>
43083
43084         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
43085         multibyte characters also for the GB18030 encoding. Don't crash when
43086         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
43087
43088 2009-01-25  Bruno Haible  <bruno@clisp.org>
43089
43090         Avoid redefining 'struct random_data' on OSF/1 5.1.
43091         * lib/stdlib.in.h: Include <random.h> if it exists.
43092         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
43093         HAVE_RANDOM_H. Include <random.h> when testing whether
43094         'struct random_data' exists.
43095         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
43096
43097 2009-01-25  Bruno Haible  <bruno@clisp.org>
43098
43099         Don't install charset.alias on MacOS X >= 10.3.
43100         * lib/localcharset.c (DARWIN7): New macro.
43101         (get_charset_aliases): Hardcode the result for Darwin7.
43102         * modules/localcharset (install-exec-local): Don't install
43103         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
43104
43105 2009-01-25  Bruno Haible  <bruno@clisp.org>
43106
43107         Don't install charset.alias on mingw and Cygwin.
43108         * modules/localcharset (install-exec-local): Don't install
43109         charset.alias on mingw and Cygwin, if the file does not yet exist.
43110         The result for these platforms is hardcoded in localcharset.c.
43111
43112 2009-01-25  Bruno Haible  <bruno@clisp.org>
43113
43114         Make it possible again to use AC_GNU_SOURCE together with gnulib.
43115         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
43116         before requiring AC_USE_SYSTEM_EXTENSIONS.
43117
43118 2009-01-25  Jim Meyering  <meyering@redhat.com>
43119
43120         c-strtod: avoid warnings
43121         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
43122         "assignment discards qualifiers from pointer target type" warnings.
43123
43124 2009-01-24  Bruno Haible  <bruno@clisp.org>
43125
43126         Add support for non-UTF-8 locales on MacOS X.
43127         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
43128         canonical encodings. For Darwin 7 and newer, don't map traditional
43129         encodings to UTF-8.
43130         Reported by Vincent Lefevre <vincent@vinc17.org>
43131         at <http://savannah.gnu.org/bugs/?25235>.
43132
43133 2009-01-24  Bruno Haible  <bruno@clisp.org>
43134
43135         * doc/gnulib.texi (Obsolete modules): New section.
43136         Reported by Mike Frysinger <vapier@gentoo.org>.
43137
43138 2009-01-24  Bruno Haible  <bruno@clisp.org>
43139
43140         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
43141         (%.dvi): New rule.
43142
43143 2009-01-24  Bruno Haible  <bruno@clisp.org>
43144
43145         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
43146         Reported by Eric Blake.
43147
43148 2009-01-24  Bruno Haible  <bruno@clisp.org>
43149
43150         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
43151         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
43152         Reported by Gary V. Vaughan <gary@gnu.org>.
43153
43154 2009-01-24  Bruno Haible  <bruno@clisp.org>
43155
43156         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
43157
43158 2009-01-23  Bruno Haible  <bruno@clisp.org>
43159
43160         Make c-strtod, c-strtold usable in libraries.
43161         * lib/c-strtod.c: Include string.h instead of xalloc.h.
43162         (C_STRTOD): Call strdup instead of xstrdup.
43163         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
43164         * modules/c-strtold (Depends-on): Likewise.
43165         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
43166         * NEWS: Mention the change.
43167         Reported by Michael Gold <mgold@ncf.ca>.
43168
43169 2009-01-23  Jim Meyering  <meyering@redhat.com>
43170
43171         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
43172         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
43173         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
43174
43175 2009-01-23  Simon Josefsson  <simon@josefsson.org>
43176
43177         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
43178         GNU CoreUtils.
43179         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
43180         * modules/version-etc (Description): Update.
43181
43182 2009-01-22  Bruno Haible  <bruno@clisp.org>
43183
43184         Cache the C locale object.
43185         * lib/c-strtod.c (c_locale_cache): New variable.
43186         (c_locale): New function.
43187         (C_STRTOD): Use it, and don't call freelocale.
43188         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
43189         Suggested by Paolo Bonzini.
43190
43191 2009-01-21  Bruno Haible  <bruno@clisp.org>
43192
43193         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
43194         conditions other than overflow.
43195
43196 2009-01-21  Bruno Haible  <bruno@clisp.org>
43197
43198         * lib/c-strtod.c: Include errno.h.
43199         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
43200         value from STRTOD_L and STRTOD.
43201
43202 2009-01-21  Bruno Haible  <bruno@clisp.org>
43203         and Jim Meyering  <meyering@redhat.com>
43204
43205         nanosleep: skip configure test (fail it) for apple universal builds
43206         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
43207         universal builds, assume that nanosleep does not work.
43208         * modules/nanosleep (Depends-on): Add multiarch.
43209
43210         mktime: skip configure test (fail it) for apple universal builds
43211         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
43212         universal builds, assume that mktime does not work.
43213         * modules/mktime (Depends-on): Add multiarch.
43214
43215 2009-01-21  Eric Blake  <ebb9@byu.net>
43216
43217         multiarch: avoid expand-before-require warning
43218         * modules/multiarch (configure.ac): Require, rather than expand,
43219         gl_MULTIARCH.
43220         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
43221         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
43222         enforce that all clients require it.  Partial reversion of
43223         2008-12-29 patch.
43224
43225         error: avoid expand-before-require warning
43226         * modules/errno (configure.ac): Require, rather than expand,
43227         gl_HEADER_ERRNO_H.
43228         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
43229         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
43230         enforce that all clients require it.
43231
43232         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
43233         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
43234         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
43235         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
43236
43237 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
43238
43239         Revert:
43240         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43241
43242         regex: do not depend on obsolete modules.
43243         * modules/regex: Remove memcmp and memmove.
43244
43245 2009-01-20  Bruno Haible  <bruno@clisp.org>
43246
43247         Make the 'link' module link on Windows NT 4.
43248         * lib/link.c (_WIN32_WINNT): Don't define.
43249         (CreateHardLinkFuncType): New type.
43250         (CreateHardLinkFunc, initialized): New variables.
43251         (initialize): New function.
43252         (link): Invoke CreateHardLink indirectly through the function pointer.
43253
43254 2009-01-20  Bruno Haible  <bruno@clisp.org>
43255
43256         Fix compilation failure on mingw.
43257         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
43258
43259 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
43260
43261         * doc/c-strtod.texi: Mention a couple of restrictions.
43262
43263 2009-01-20  Jim Meyering  <meyering@redhat.com>
43264
43265         gettimeofday: move more declarations out of functions
43266         * lib/gettimeofday.c: Move extern declarations of tzset and
43267         gmtime out of containing functions.  Prompted by Bruno Haible.
43268
43269 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43270
43271         regex: do not depend on obsolete modules.
43272         * modules/regex: Remove memcmp and memmove.
43273
43274 2009-01-19  Bruno Haible  <bruno@clisp.org>
43275
43276         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43277         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
43278         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43279         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
43280         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
43281
43282 2009-01-19  Bruno Haible  <bruno@clisp.org>
43283
43284         * tests/test-link.c: Include <errno.h>.
43285         (main): Exit with code 77 when a hard link cannot be created due to
43286         the file system.
43287         * tests/test-link.sh: Skip test when a hard link cannot be created due
43288         to the file system.
43289         Suggested by Eric Blake.
43290
43291 2009-01-19  Martin Lambers  <marlam@marlam.de>
43292
43293         * modules/link-tests: New file.
43294         * tests/test-link.sh: New file.
43295         * tests/test-link.c: New file.
43296
43297 2009-01-19  Eric Blake  <ebb9@byu.net>
43298
43299         doc: mention another function added in cygwin 1.7.0
43300         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
43301         Another new function in cygwin 1.7.
43302
43303 2009-01-19  Bruno Haible  <bruno@clisp.org>
43304
43305         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43306         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
43307         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
43308         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43309         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43310         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
43311         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
43312         * m4/md4.m4 (gl_MD4): Likewise.
43313         * m4/md5.m4 (gl_MD5): Likewise.
43314         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
43315         * m4/sha1.m4 (gl_SHA1): Likewise.
43316         * m4/sha256.m4 (gl_SHA256): Likewise.
43317         * m4/sha512.m4 (gl_SHA512): Likewise.
43318
43319 2009-01-19  Bruno Haible  <bruno@clisp.org>
43320
43321         * modules/uniname/uniname-tests (Depends-on): Add progname.
43322         * tests/uniname/test-uninames.c: Include progname.h.
43323         (main): Call set_program_name.
43324
43325         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
43326         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
43327         (main): Call set_program_name.
43328
43329         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
43330         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
43331         (main): Call set_program_name.
43332
43333         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
43334         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
43335         (main): Call set_program_name.
43336
43337         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
43338         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
43339         (main): Call set_program_name.
43340
43341         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
43342         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
43343         (main): Call set_program_name.
43344
43345         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
43346         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
43347         (main): Call set_program_name.
43348
43349         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
43350         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
43351         (main): Call set_program_name.
43352
43353         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
43354         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
43355         (main): Call set_program_name.
43356
43357 2009-01-19  Eric Blake  <ebb9@byu.net>
43358
43359         test-unistd: test previous patch
43360         * tests/test-unistd.c: Test *_FILENO macros.
43361
43362         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
43363         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43364         Guarantee a definition.
43365         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
43366         * modules/unistd-safer (Depends-on): Add dependency on unistd.
43367         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
43368         * lib/dup-safer.c (STDERR_FILENO): Likewise.
43369         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43370         Likewise.
43371         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
43372         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
43373         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43374         Likewise.
43375         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
43376         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
43377         (STDERR_FILENO): Likewise.
43378         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
43379         (STDERR_FILENO): Likewise.
43380         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
43381         (STDERR_FILENO): Likewise.
43382         Reported by Elbert Pol.
43383
43384 2009-01-19  Eric Blake  <ebb9@byu.net>
43385
43386         doc: mention more functions added in cygwin 1.7.0
43387         * doc/posix-functions/abort.texi (abort): Update wording related
43388         to cygwin.
43389         * doc/posix-functions/daylight.texi (daylight): Likewise.
43390         * doc/posix-functions/optarg.texi (optarg): Likewise.
43391         * doc/posix-functions/optarg.texi (opterr): Likewise.
43392         * doc/posix-functions/optarg.texi (optind): Likewise.
43393         * doc/posix-functions/optarg.texi (optopt): Likewise.
43394         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
43395         worked in 1.5.x, and was withdrawn in 1.7.
43396         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
43397         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
43398         cygwin versions.
43399         * doc/posix-functions/perror.texi (perror): Likewise.
43400         * doc/posix-functions/printf.texi (printf): Likewise.
43401         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
43402         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
43403         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
43404         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
43405         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43406         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
43407         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43408         Likewise.
43409         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43410         Likewise.
43411         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
43412         this function.
43413         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
43414         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
43415         Likewise.
43416         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
43417         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
43418         * doc/posix-functions/confstr.texi (confstr): Likewise.
43419         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
43420         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
43421         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
43422         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
43423         * doc/posix-functions/fputws.texi (fputws): Likewise.
43424         * doc/posix-functions/fwide.texi (fwide): Likewise.
43425         * doc/posix-functions/getwc.texi (getwc): Likewise.
43426         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
43427         * doc/posix-functions/putwc.texi (putwc): Likewise.
43428         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
43429         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
43430         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
43431         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
43432         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
43433         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
43434         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
43435         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
43436         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
43437         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
43438         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
43439
43440 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43441
43442         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
43443         * lib/ioctl.c: Include <sys/ioctl.h>.
43444
43445 2009-01-19  Simon Josefsson  <simon@josefsson.org>
43446
43447         * modules/getdate-tests (Depends-on): Add progname.
43448         * tests/test-getdate.c: Use progname module, to avoid link errors
43449         on non-glibc systems.
43450
43451 2009-01-18  Simon Josefsson  <simon@josefsson.org>
43452
43453         * modules/filenamecat-tests (Depends-on): Add progname.
43454         * modules/fstrcmp-tests (Depends-on): Likewise.
43455
43456         * tests/test-filenamecat.c: Use progname module, to avoid link
43457         errors on non-glibc systems.
43458         * tests/test-fstrcmp.c: Likewise.
43459
43460 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43461
43462         gettimeofday: avoid warning: nested extern declaration of 'localtime'
43463         * lib/gettimeofday.c: Move extern declaration out of function.
43464
43465 2009-01-18  Bruno Haible  <bruno@clisp.org>
43466
43467         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
43468         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
43469         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
43470
43471 2009-01-18  Bruno Haible  <bruno@clisp.org>
43472
43473         * lib/strftime.c (MEMPCPY): Remove unused macro.
43474         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
43475
43476 2009-01-18  Martin Lambers  <marlam@marlam.de>
43477
43478         New module 'link'.
43479         * lib/unistd.in.h (link): New declaration.
43480         * lib/link.c: New file.
43481         * m4/link.m4: New file.
43482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
43483         HAVE_LINK.
43484         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
43485         * modules/link: New file.
43486         * doc/posix-functions/link.texi: Mention the new module.
43487
43488 2009-01-18  Bruno Haible  <bruno@clisp.org>
43489
43490         * tests/test-avltree_list.c (main): Call set_program_name.
43491         * tests/test-avltree_oset.c (main): Likewise.
43492         * tests/test-obstack-printf.c: Include progname.h.
43493         (main): Call set_program_name.
43494         * tests/test-quotearg.c: Include progname.h.
43495         (main): Call set_program_name.
43496         * tests/test-xmemdup0.c: Include progname.h.
43497         (main): Call set_program_name.
43498
43499 2009-01-18  Bruno Haible  <bruno@clisp.org>
43500
43501         New module 'alphasort'.
43502         * lib/dirent.in.h (alphasort): New declaration.
43503         * lib/alphasort.c: New file, from glibc with modifications.
43504         * m4/alphasort.m4: New file.
43505         * modules/alphasort: New file.
43506         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
43507         HAVE_ALPHASORT.
43508         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
43509         HAVE_ALPHASORT.
43510         * doc/posix-functions/alphasort.texi: Mention the new module and the
43511         portability problems.
43512
43513 2009-01-18  Bruno Haible  <bruno@clisp.org>
43514
43515         New module 'scandir'.
43516         * lib/dirent.in.h (scandir): New declaration.
43517         * lib/scandir.c: New file, from glibc with modifications.
43518         * m4/scandir.m4: New file.
43519         * modules/scandir: New file.
43520         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
43521         HAVE_SCANDIR.
43522         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
43523         HAVE_SCANDIR.
43524         * doc/posix-functions/scandir.texi: Mention the new module and the
43525         portability problems.
43526
43527 2009-01-17  Bruno Haible  <bruno@clisp.org>
43528
43529         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
43530         Update documentation.
43531         (func_remove_suffix): Escape all dots in the suffix. Update
43532         documentation.
43533         (func_filter_filelist): Update documentation.
43534         Reported by Ralf Wildenhues.
43535
43536 2009-01-17  Bruno Haible  <bruno@clisp.org>
43537
43538         * modules/dprintf-posix-tests: New file.
43539         * tests/test-dprintf-posix.sh: New file.
43540         * tests/test-dprintf-posix.c: New file.
43541
43542         New modules 'dprintf', 'dprintf-posix'.
43543         * lib/stdio.in.h (dprintf): New declaration.
43544         * lib/dprintf.c: New file.
43545         * m4/dprintf.m4: New file.
43546         * m4/dprintf-posix.m4: New file.
43547         * modules/dprintf: New file.
43548         * modules/dprintf-posix: New file.
43549         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
43550         HAVE_DPRINTF, REPLACE_DPRINTF.
43551         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
43552         HAVE_DPRINTF, REPLACE_DPRINTF.
43553         * doc/posix-functions/dprintf.texi: Mention the new modules.
43554
43555 2009-01-17  Bruno Haible  <bruno@clisp.org>
43556
43557         * modules/vdprintf-posix-tests: New file.
43558         * tests/test-vdprintf-posix.sh: New file.
43559         * tests/test-vdprintf-posix.c: New file.
43560
43561         New modules 'vdprintf', 'vdprintf-posix'.
43562         * lib/stdio.in.h (vdprintf): New declaration.
43563         * lib/vdprintf.c: New file.
43564         * m4/vdprintf.m4: New file.
43565         * m4/vdprintf-posix.m4: New file.
43566         * modules/vdprintf: New file.
43567         * modules/vdprintf-posix: New file.
43568         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
43569         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43570         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
43571         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43572         * doc/posix-functions/vdprintf.texi: Mention the new modules.
43573
43574 2009-01-17  Bruno Haible  <bruno@clisp.org>
43575
43576         Fix replacement of fopen on mingw.
43577         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
43578         mingw.
43579
43580 2009-01-17  Bruno Haible  <bruno@clisp.org>
43581
43582         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
43583         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
43584
43585 2009-01-17  Bruno Haible  <bruno@clisp.org>
43586
43587         Avoid test-fflush2.sh failure on mingw.
43588         * tests/test-fflush2.c: Include binary-io.h.
43589         (main): Put standard input into binary mode.
43590         * modules/fflush-tests (Depends-on): Add binary-io.
43591
43592 2009-01-17  Bruno Haible  <bruno@clisp.org>
43593
43594         * lib/wchar.in.h: In another particular situation, include only the
43595         system's <wchar.h> file.
43596         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
43597         Reported by Albert Chin-A-Young <china@thewrittenword.com>
43598         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
43599
43600 2009-01-17  Bruno Haible  <bruno@clisp.org>
43601
43602         Support for stripping executables in --enable-relocatable.
43603         * build-aux/install-reloc: Expect one more argument, or an environment
43604         variable RELOC_STRIP_PROG. If set, strip the destination program and
43605         its wrapper.
43606         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
43607         RELOC_STRIP_PROG.
43608         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
43609         to set RELOCATABLE_STRIP.
43610         * NEWS: Mention the new Makefile requirement.
43611
43612 2009-01-17  Bruno Haible  <bruno@clisp.org>
43613
43614         * build-aux/install-reloc: Remove debugging information left over by
43615         C compiler on MacOS X.
43616
43617 2009-01-17  Bruno Haible  <bruno@clisp.org>
43618
43619         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
43620         * lib/progreloc.c (find_executable): Fix type of pointer passed to
43621         _NSGetExecutablePath.
43622
43623 2009-01-16  Jim Meyering  <meyering@redhat.com>
43624
43625         strerror: avoid warnings about discarding "const"
43626         * lib/strerror.c (rpl_strerror): Instead of returning a const
43627         string from each and every "case", use a variable, and add a single
43628         cast after the switch.
43629
43630 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
43631
43632         * lib/arpa_inet.in.h: Add extern "C" block for C++.
43633
43634 2009-01-16  Bruno Haible  <bruno@clisp.org>
43635
43636         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
43637         array initializer syntax that also works in C++ mode.
43638         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43639
43640 2009-01-16  Jim Meyering  <meyering@redhat.com>
43641
43642         poll: suppress a warning
43643         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
43644         to ignore "...unsigned expression < 0 is always false" warnings.
43645
43646 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
43647
43648         poll: remove declarations of unused variables
43649         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
43650         sockbuf and optlen.
43651
43652 2009-01-15  Bruno Haible  <bruno@clisp.org>
43653
43654         Make fflush-after-ungetc POSIX compliant on BSD systems.
43655         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
43656         (clear_ungetc_buffer): Implement also for other systems.
43657         (rpl_fflush): On glibc systems, invoke
43658         clear_ungetc_buffer_preserving_position. Otherwise, invoke
43659         clear_ungetc_buffer after fetching the stream's position, not before.
43660
43661 2009-01-15  Bruno Haible  <bruno@clisp.org>
43662
43663         Make fflush-after-ungetc POSIX compliant on glibc systems.
43664         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
43665         after ungetc.
43666         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
43667         (rpl_fflush): On glibc systems, simply call the system's fflush
43668         function after clearing the ungetc buffer.
43669         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
43670         Instead, lseek only to the end of file, then use the system's fseeko
43671         for the rest. On glibc systems, reset the EOF indicator bit.
43672
43673 2009-01-15  Jim Meyering  <meyering@redhat.com>
43674
43675         openmp.m4: revert quote-adding change, for portability to older autoconf
43676         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
43677         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
43678         Simon Josefsson noticed the problem when using autoconf-2.61.
43679
43680 2009-01-15  Bruno Haible  <bruno@clisp.org>
43681
43682         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
43683         * tests/test-fflush2.c (ASSERT): Always fail.
43684         (main): Add two tests for fflush() after ungetc(), taking into account
43685         the Austin Group's clarification.
43686         Suggested by Eric Blake.
43687
43688 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
43689
43690         mktime.m4: remove K&R-style function prototypes
43691         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
43692         for the Sun C++ compiler.
43693
43694 2009-01-14  Bruno Haible  <bruno@clisp.org>
43695
43696         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
43697         while including <wchar.h>.
43698         * lib/wchar.in.h: In two particular situations on HP-UX, include only
43699         the system's <wchar.h> file.
43700         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43701
43702 2009-01-14  Bruno Haible  <bruno@clisp.org>
43703
43704         * m4/csharp.m4: Don't mention gettext on the serial number line.
43705         * m4/csharpexec.m4: Likewise.
43706         * m4/eaccess.m4: Likewise.
43707         * m4/javaexec.m4: Likewise.
43708         * m4/sig_atomic_t.m4: Likewise.
43709         * m4/tmpdir.m4: Likewise.
43710         * m4/intldir.m4: Bump gettext version.
43711         * m4/lib-ld.m4: Likewise.
43712
43713 2009-01-14  Bruno Haible  <bruno@clisp.org>
43714
43715         * lib/progname.c (set_program_name): Add more comments.
43716         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43717
43718 2009-01-14  Simon Josefsson  <simon@josefsson.org>
43719
43720         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
43721         were sys/stat.h does not define it.
43722
43723 2009-01-14  Jim Meyering  <meyering@redhat.com>
43724
43725         many *.m4 files: improve m4 quoting
43726         99% of this change was performed by running the following commands:
43727         git ls-files | grep '\.m4$' | xargs perl -pi \
43728           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
43729           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43730           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43731           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
43732         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
43733         The remainder were to add Copyright dates, increment serial numbers,
43734         undo some changes in comments, exclude m4/intl.m4, and add quotes
43735         around the "1" in ",1" where the unusual spacing prohibited the
43736         above regexps from doing the job.  For more details, see
43737         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
43738         * m4/acl.m4: Modified.
43739         * m4/afs.m4: Likewise.
43740         * m4/alloca.m4: Likewise.
43741         * m4/argp.m4: Likewise.
43742         * m4/argz.m4: Likewise.
43743         * m4/atexit.m4: Likewise.
43744         * m4/bison-i18n.m4: Likewise.
43745         * m4/bison.m4: Likewise.
43746         * m4/byteswap.m4: Likewise.
43747         * m4/c-stack.m4: Likewise.
43748         * m4/c-strtod.m4: Likewise.
43749         * m4/calloc.m4: Likewise.
43750         * m4/canonicalize-lgpl.m4: Likewise.
43751         * m4/chown.m4: Likewise.
43752         * m4/clock_time.m4: Likewise.
43753         * m4/codeset.m4: Likewise.
43754         * m4/copy-file.m4: Likewise.
43755         * m4/csharp.m4: Likewise.
43756         * m4/csharpcomp.m4: Likewise.
43757         * m4/csharpexec.m4: Likewise.
43758         * m4/d-ino.m4: Likewise.
43759         * m4/d-type.m4: Likewise.
43760         * m4/dirfd.m4: Likewise.
43761         * m4/double-slash-root.m4: Likewise.
43762         * m4/eaccess.m4: Likewise.
43763         * m4/eealloc.m4: Likewise.
43764         * m4/environ.m4: Likewise.
43765         * m4/errno_h.m4: Likewise.
43766         * m4/euidaccess.m4: Likewise.
43767         * m4/execute.m4: Likewise.
43768         * m4/fatal-signal.m4: Likewise.
43769         * m4/fchdir.m4: Likewise.
43770         * m4/fcntl_h.m4: Likewise.
43771         * m4/fileblocks.m4: Likewise.
43772         * m4/filenamecat.m4: Likewise.
43773         * m4/findprog.m4: Likewise.
43774         * m4/flexmember.m4: Likewise.
43775         * m4/fnmatch.m4: Likewise.
43776         * m4/fopen.m4: Likewise.
43777         * m4/fpending.m4: Likewise.
43778         * m4/fprintf-posix.m4: Likewise.
43779         * m4/free.m4: Likewise.
43780         * m4/frexp.m4: Likewise.
43781         * m4/frexpl.m4: Likewise.
43782         * m4/fsusage.m4: Likewise.
43783         * m4/ftruncate.m4: Likewise.
43784         * m4/gc-camellia.m4: Likewise.
43785         * m4/gc-random.m4: Likewise.
43786         * m4/gc.m4: Likewise.
43787         * m4/getaddrinfo.m4: Likewise.
43788         * m4/getcwd-abort-bug.m4: Likewise.
43789         * m4/getcwd-path-max.m4: Likewise.
43790         * m4/getdate.m4: Likewise.
43791         * m4/getdomainname.m4: Likewise.
43792         * m4/getgroups.m4: Likewise.
43793         * m4/gethostname.m4: Likewise.
43794         * m4/gethrxtime.m4: Likewise.
43795         * m4/getline.m4: Likewise.
43796         * m4/getloadavg.m4: Likewise.
43797         * m4/getndelim2.m4: Likewise.
43798         * m4/getpass.m4: Likewise.
43799         * m4/gettext.m4: Likewise.
43800         * m4/gettime.m4: Likewise.
43801         * m4/gettimeofday.m4: Likewise.
43802         * m4/gnulib-common.m4: Likewise.
43803         * m4/group-member.m4: Likewise.
43804         * m4/host-os.m4: Likewise.
43805         * m4/iconv.m4: Likewise.
43806         * m4/iconv_open.m4: Likewise.
43807         * m4/inet_ntop.m4: Likewise.
43808         * m4/inet_pton.m4: Likewise.
43809         * m4/inline.m4: Likewise.
43810         * m4/intldir.m4: Likewise.
43811         * m4/intlmacosx.m4: Likewise.
43812         * m4/intmax.m4: Likewise.
43813         * m4/intmax_t.m4: Likewise.
43814         * m4/inttypes.m4: Likewise.
43815         * m4/inttypes_h.m4: Likewise.
43816         * m4/inttypes-pri.m4: Likewise.
43817         * m4/isapipe.m4: Likewise.
43818         * m4/isnand.m4: Likewise.
43819         * m4/isnanf.m4: Likewise.
43820         * m4/isnanl.m4: Likewise.
43821         * m4/javacomp.m4: Likewise.
43822         * m4/javaexec.m4: Likewise.
43823         * m4/jm-winsz1.m4: Likewise.
43824         * m4/jm-winsz2.m4: Likewise.
43825         * m4/lchown.m4: Likewise.
43826         * m4/lcmessage.m4: Likewise.
43827         * m4/ldexpl.m4: Likewise.
43828         * m4/lib-ld.m4: Likewise.
43829         * m4/lib-link.m4: Likewise.
43830         * m4/libsigsegv.m4: Likewise.
43831         * m4/link-follow.m4: Likewise.
43832         * m4/localcharset.m4: Likewise.
43833         * m4/locale-fr.m4: Likewise.
43834         * m4/locale-ja.m4: Likewise.
43835         * m4/locale-tr.m4: Likewise.
43836         * m4/locale-zh.m4: Likewise.
43837         * m4/lock.m4: Likewise.
43838         * m4/longlong.m4: Likewise.
43839         * m4/ls-mntd-fs.m4: Likewise.
43840         * m4/lstat.m4: Likewise.
43841         * m4/malloc.m4: Likewise.
43842         * m4/mathl.m4: Likewise.
43843         * m4/mbrtowc.m4: Likewise.
43844         * m4/mbstate_t.m4: Likewise.
43845         * m4/mbswidth.m4: Likewise.
43846         * m4/memchr.m4: Likewise.
43847         * m4/memcmp.m4: Likewise.
43848         * m4/memcpy.m4: Likewise.
43849         * m4/memmem.m4: Likewise.
43850         * m4/memmove.m4: Likewise.
43851         * m4/mempcpy.m4: Likewise.
43852         * m4/memrchr.m4: Likewise.
43853         * m4/memset.m4: Likewise.
43854         * m4/minmax.m4: Likewise.
43855         * m4/mkdir-slash.m4: Likewise.
43856         * m4/mkdtemp.m4: Likewise.
43857         * m4/mktime.m4: Likewise.
43858         * m4/mmap-anon.m4: Likewise.
43859         * m4/mountlist.m4: Likewise.
43860         * m4/nanosleep.m4: Likewise.
43861         * m4/nls.m4: Likewise.
43862         * m4/nocrash.m4: Likewise.
43863         * m4/open.m4: Likewise.
43864         * m4/openat.m4: Likewise.
43865         * m4/openmp.m4: Likewise.
43866         * m4/pathmax.m4: Likewise.
43867         * m4/perl.m4: Likewise.
43868         * m4/physmem.m4: Likewise.
43869         * m4/pipe.m4: Likewise.
43870         * m4/po.m4: Likewise.
43871         * m4/poll.m4: Likewise.
43872         * m4/posixtm.m4: Likewise.
43873         * m4/posixver.m4: Likewise.
43874         * m4/printf-frexp.m4: Likewise.
43875         * m4/printf-frexpl.m4: Likewise.
43876         * m4/printf-posix.m4: Likewise.
43877         * m4/printf-posix-rpl.m4: Likewise.
43878         * m4/printf.m4: Likewise.
43879         * m4/progtest.m4: Likewise.
43880         * m4/putenv.m4: Likewise.
43881         * m4/readline.m4: Likewise.
43882         * m4/readlink.m4: Likewise.
43883         * m4/readutmp.m4: Likewise.
43884         * m4/realloc.m4: Likewise.
43885         * m4/regex.m4: Likewise.
43886         * m4/relocatable.m4: Likewise.
43887         * m4/relocatable-lib.m4: Likewise.
43888         * m4/rename-dest-slash.m4: Likewise.
43889         * m4/rename.m4: Likewise.
43890         * m4/rmdir-errno.m4: Likewise.
43891         * m4/rmdir.m4: Likewise.
43892         * m4/roundf.m4: Likewise.
43893         * m4/roundl.m4: Likewise.
43894         * m4/rpmatch.m4: Likewise.
43895         * m4/save-cwd.m4: Likewise.
43896         * m4/selinux-selinux-h.m4: Likewise.
43897         * m4/setenv.m4: Likewise.
43898         * m4/settime.m4: Likewise.
43899         * m4/sig2str.m4: Likewise.
43900         * m4/sig_atomic_t.m4: Likewise.
43901         * m4/signalblocking.m4: Likewise.
43902         * m4/signbit.m4: Likewise.
43903         * m4/sigpipe.m4: Likewise.
43904         * m4/sockets.m4: Likewise.
43905         * m4/sockpfaf.m4: Likewise.
43906         * m4/st_dm_mode.m4: Likewise.
43907         * m4/stat-time.m4: Likewise.
43908         * m4/stdbool.m4: Likewise.
43909         * m4/stdint.m4: Likewise.
43910         * m4/stdint_h.m4: Likewise.
43911         * m4/stpcpy.m4: Likewise.
43912         * m4/stpncpy.m4: Likewise.
43913         * m4/strcase.m4: Likewise.
43914         * m4/strchrnul.m4: Likewise.
43915         * m4/strcspn.m4: Likewise.
43916         * m4/strdup.m4: Likewise.
43917         * m4/strftime.m4: Likewise.
43918         * m4/strndup.m4: Likewise.
43919         * m4/strnlen.m4: Likewise.
43920         * m4/strpbrk.m4: Likewise.
43921         * m4/strptime.m4: Likewise.
43922         * m4/strsep.m4: Likewise.
43923         * m4/strtod.m4: Likewise.
43924         * m4/strtoimax.m4: Likewise.
43925         * m4/strtok_r.m4: Likewise.
43926         * m4/strtol.m4: Likewise.
43927         * m4/strtoll.m4: Likewise.
43928         * m4/strtoul.m4: Likewise.
43929         * m4/strtoull.m4: Likewise.
43930         * m4/strtoumax.m4: Likewise.
43931         * m4/strverscmp.m4: Likewise.
43932         * m4/threadlib.m4: Likewise.
43933         * m4/timegm.m4: Likewise.
43934         * m4/tm_gmtoff.m4: Likewise.
43935         * m4/tmpdir.m4: Likewise.
43936         * m4/tmpfile.m4: Likewise.
43937         * m4/tzset.m4: Likewise.
43938         * m4/uintmax_t.m4: Likewise.
43939         * m4/unlinkdir.m4: Likewise.
43940         * m4/unlocked-io.m4: Likewise.
43941         * m4/uptime.m4: Likewise.
43942         * m4/userspec.m4: Likewise.
43943         * m4/utimbuf.m4: Likewise.
43944         * m4/utime.m4: Likewise.
43945         * m4/utimes-null.m4: Likewise.
43946         * m4/utimes.m4: Likewise.
43947         * m4/vararrays.m4: Likewise.
43948         * m4/vasnprintf.m4: Likewise.
43949         * m4/vfprintf-posix.m4: Likewise.
43950         * m4/vprintf-posix.m4: Likewise.
43951         * m4/wait-process.m4: Likewise.
43952         * m4/wchar_t.m4: Likewise.
43953         * m4/wint_t.m4: Likewise.
43954         * m4/write-any-file.m4: Likewise.
43955         * m4/yield.m4: Likewise.
43956
43957 2009-01-13  Bruno Haible  <bruno@clisp.org>
43958
43959         Avoid test-copy-file.sh failures when ACL support insufficient.
43960         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
43961         TESTS_ENVIRONMENT.
43962         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
43963         Reported by Jim Meyering.
43964
43965 2009-01-13  Bruno Haible  <bruno@clisp.org>
43966
43967         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
43968         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
43969         * modules/unistdio/u8-printf-parse (Files): Likewise.
43970         * modules/unistdio/u32-printf-parse (Files): Likewise.
43971         * modules/unistdio/ulc-printf-parse (Files): Likewise.
43972
43973 2009-01-13  Simon Josefsson  <simon@josefsson.org>
43974
43975         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
43976         and m4/inttypes_h.m4 too.
43977
43978 2009-01-12  Eric Blake  <ebb9@byu.net>
43979
43980         tests: IRIX 6.2 cc can't compile -0.0 into .data
43981         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
43982         rather than at compile-time.
43983         * tests/test-floorl.c (minus_zero): Likewise.
43984         * tests/test-frexpl.c (minus_zero): Likewise.
43985         * tests/test-isnan.c (minus_zerol): Likewise.
43986         * tests/test-isnanl.h (minus_zero): Likewise.
43987         * tests/test-ldexpl.c (minus_zero): Likewise.
43988         * tests/test-roundl.c (minus_zero): Likewise.
43989         * tests/test-signbit.c (minus_zerol): Likewise.
43990         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43991         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43992         * tests/test-truncl.c (minus_zero): Likewise.
43993         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43994         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43995         Reported by Tom G. Christensen and Nelson H. F. Beebe.
43996
43997 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43998
43999         regex: fix glibc bug 9697
44000         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
44001         handling.
44002
44003 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44004
44005         regex: fix glibc bug 697
44006         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
44007         being NULL also if there are no backreferences.
44008
44009 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44010
44011         regex: merge glibc changes
44012         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
44013         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
44014         re_string_skip_chars, re_string_reconstruct): Likewise.
44015         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
44016
44017 2009-01-07  Jim Meyering  <meyering@redhat.com>
44018
44019         poll: filter through cppi
44020         * lib/poll.c: Indent cpp directives to reflect nesting.
44021
44022 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
44023
44024         poll: don't return uninitialized
44025         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
44026
44027 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
44028
44029         avoid compile failure on AIX 6.1
44030         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
44031         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
44032
44033 2009-01-04  Jim Meyering  <meyering@redhat.com>
44034
44035         remove duplicate inclusion of <stdio.h>
44036         * tests/test-fprintf-posix.c: Likewise.
44037         * tests/test-printf-posix.c: Likewise.
44038         * tests/test-snprintf-posix.c: Likewise.
44039         * tests/test-sprintf-posix.c: Likewise.
44040         * tests/test-vasprintf-posix.c: Likewise.
44041         * tests/test-vfprintf-posix.c: Likewise.
44042         * tests/test-vprintf-posix.c: Likewise.
44043         * tests/test-vsnprintf-posix.c: Likewise.
44044         * tests/test-vsprintf-posix.c: Likewise.
44045
44046 2009-01-03  Jim Meyering  <meyering@redhat.com>
44047
44048         gnulib-tool: fix sed-based filtering
44049         * gnulib-tool (func_filter_filelist): Remove extra backslash
44050         in sed_fff_filter definition.
44051
44052 2009-01-02  Jim Meyering  <meyering@redhat.com>
44053
44054         strftime: avoid compilation failure on Solaris 2.6
44055         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
44056         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
44057         Don't #define mbrlen or mbsinit, since now they're guaranteed to
44058         be available.  Reported by Tom G. Christensen.  Details in
44059         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
44060
44061 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44062             Bruno Haible  <bruno@clisp.org>
44063
44064         Speed up gnulib-tool by doing more string processing through shell
44065         built-ins.
44066         * gnulib-tool (fast_func_append): New variable.
44067         (func_remove_prefix, func_remove_suffix): New functions.
44068         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
44069         (func_filter_filelist): New function.
44070         (func_get_dependencies): Use func_remove_suffix instead of sed.
44071         (func_get_automake_snippet): Use func_filter_filelist instead of a
44072         subshell and sed invocation.
44073
44074 2009-01-01  Bruno Haible  <bruno@clisp.org>
44075
44076         Fix a security bug.
44077         * gnulib-tool (func_import, import, update): Don't allow the characters
44078         '"', '$', '`', '\' in macro arguments that become part of commands that
44079         are evaluated.
44080
44081 2009-01-01  Bruno Haible  <bruno@clisp.org>
44082
44083         * gnulib-tool (func_reset_sigpipe): Add more comments.
44084
44085 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44086
44087         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
44088         func_emit_tests_Makefile_am, func_import): Abort loops early if we
44089         already know the answer.
44090
44091 2009-01-01  Jim Meyering  <meyering@redhat.com>
44092
44093         * lib/version-etc.c (version_etc_va): Update copyright year.
44094
44095 2008-12-30  Bruno Haible  <bruno@clisp.org>
44096
44097         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
44098         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
44099         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
44100
44101 2008-12-29  Eric Blake  <ebb9@byu.net>
44102
44103         multiarch: avoid autoconf AC_REQUIRE bug
44104         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
44105         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
44106         2.63 and older.
44107         Reported by Bruno Haible, and analyzed in
44108         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
44109
44110 2008-12-29  Bruno Haible  <bruno@clisp.org>
44111
44112         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
44113         files in subdirectories correctly.
44114         Reported by Ralf Wildenhues.
44115
44116 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44117
44118         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
44119         rather than 'join FILE -', for Solaris join.
44120
44121 2008-12-29  Bruno Haible  <bruno@clisp.org>
44122
44123         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
44124         quoting.
44125         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44126         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
44127         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
44128         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
44129         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
44130         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
44131         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
44132         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
44133         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44134         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
44135         * m4/nls.m4 (AM_NLS): Likewise.
44136         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
44137         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
44138         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
44139         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
44140         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
44141         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
44142         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
44143         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
44144         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
44145         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44146         * m4/xsize.m4 (gl_XSIZE): Likewise.
44147         Suggested by Jim Meyering.
44148
44149 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44150
44151         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
44152         * lib/parse-duration.c: use a switch instead of cascading if's.
44153
44154 2008-12-29  Eric Blake  <ebb9@byu.net>
44155
44156         wchar.h: supply WEOF on Irix 5.3
44157         * lib/wchar.in.h (wint_t): Also supply WEOF.
44158         * lib/wctype.in.h (wint_t): Likewise.
44159         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
44160         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
44161         Reported by Tom G. Christensen.
44162
44163 2008-12-26  Bruno Haible  <bruno@clisp.org>
44164
44165         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
44166         i486, i586, i686.
44167
44168 2008-12-26  Bruno Haible  <bruno@clisp.org>
44169
44170         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
44171
44172 2008-12-26  Bruno Haible  <bruno@clisp.org>
44173
44174         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
44175         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
44176         not __STDC_CONSTANT_MACROS.
44177         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44178
44179 2008-12-25  Bruno Haible  <bruno@clisp.org>
44180
44181         Add support for universal builds to vasnprintf.
44182         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
44183         universal builds, guess no.
44184         * modules/vasnprintf-posix (Depends-on): Add multiarch.
44185         * modules/vasprintf-posix (Depends-on): Likewise.
44186         * modules/fprintf-posix (Depends-on): Likewise.
44187         * modules/vfprintf-posix (Depends-on): Likewise.
44188         * modules/snprintf-posix (Depends-on): Likewise.
44189         * modules/vsnprintf-posix (Depends-on): Likewise.
44190         * modules/sprintf-posix (Depends-on): Likewise.
44191         * modules/vsprintf-posix (Depends-on): Likewise.
44192         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44193         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44194         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44195         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44196         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44197         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44198         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44199
44200         Add support for universal builds to <inttypes.h>.
44201         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
44202         _SCNu64_PREFIX): In Apple
44203         universal builds, define directly, using _LP64.
44204         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
44205         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
44206         * modules/inttypes (Depends-on): Add multiarch.
44207         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44208
44209         Add support for universal builds to <stdint.h>.
44210         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
44211         universal builds, define directly, using _LP64.
44212         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
44213         Apple universal builds, don't test for the size and suffix of ptrdiff_t
44214         and size_t.
44215         * modules/stdint (Depends-on): Add multiarch.
44216         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44217
44218         New module 'multiarch'.
44219         * modules/multiarch: New file.
44220         * m4/multiarch.m4: New file.
44221
44222 2008-12-25  Bruno Haible  <bruno@clisp.org>
44223
44224         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
44225
44226 2008-12-25  Bruno Haible  <bruno@clisp.org>
44227
44228         * modules/btowc (License): Relicense under LGPLv2+.
44229         * modules/mbsinit (License): Likewise.
44230         * modules/mbrtowc (License): Likewise.
44231         * modules/wcrtomb (License): Likewise.
44232         * modules/streq (License): Likewise.
44233         Reported by David Lutterkort <lutter@redhat.com>.
44234
44235 2008-12-23  Bruno Haible  <bruno@clisp.org>
44236
44237         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
44238
44239 2008-12-23  Bruno Haible  <bruno@clisp.org>
44240
44241         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
44242         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
44243         GETADDRINFO_LIB, not in LIBS.
44244         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
44245         * modules/canon-host (Link): Likewise.
44246         * NEWS: Mention the change.
44247         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
44248         GETADDRINFO_LIB.
44249
44250 2008-12-22  Bruno Haible  <bruno@clisp.org>
44251
44252         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
44253         * doc/posix-functions/iswalpha_l.texi: Likewise.
44254         * doc/posix-functions/iswblank_l.texi: Likewise.
44255         * doc/posix-functions/iswcntrl_l.texi: Likewise.
44256         * doc/posix-functions/iswctype_l.texi: Likewise.
44257         * doc/posix-functions/iswdigit_l.texi: Likewise.
44258         * doc/posix-functions/iswgraph_l.texi: Likewise.
44259         * doc/posix-functions/iswlower_l.texi: Likewise.
44260         * doc/posix-functions/iswprint_l.texi: Likewise.
44261         * doc/posix-functions/iswpunct_l.texi: Likewise.
44262         * doc/posix-functions/iswspace_l.texi: Likewise.
44263         * doc/posix-functions/iswupper_l.texi: Likewise.
44264         * doc/posix-functions/iswxdigit_l.texi: Likewise.
44265         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
44266         * doc/posix-functions/open_wmemstream.texi: Likewise.
44267         * doc/posix-functions/swscanf.texi: Likewise.
44268         * doc/posix-functions/towctrans_l.texi: Likewise.
44269         * doc/posix-functions/towlower.texi: Likewise.
44270         * doc/posix-functions/towlower_l.texi: Likewise.
44271         * doc/posix-functions/towupper.texi: Likewise.
44272         * doc/posix-functions/towupper_l.texi: Likewise.
44273         * doc/posix-functions/vfwprintf.texi: Likewise.
44274         * doc/posix-functions/vfwscanf.texi: Likewise.
44275         * doc/posix-functions/vswscanf.texi: Likewise.
44276         * doc/posix-functions/vwprintf.texi: Likewise.
44277         * doc/posix-functions/vwscanf.texi: Likewise.
44278         * doc/posix-functions/wcpcpy.texi: Likewise.
44279         * doc/posix-functions/wcpncpy.texi: Likewise.
44280         * doc/posix-functions/wcscasecmp.texi: Likewise.
44281         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
44282         * doc/posix-functions/wcscoll_l.texi: Likewise.
44283         * doc/posix-functions/wcsdup.texi: Likewise.
44284         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44285         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
44286         * doc/posix-functions/wcsnlen.texi: Likewise.
44287         * doc/posix-functions/wcsnrtombs.texi: Likewise.
44288         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
44289         * doc/posix-functions/wctrans_l.texi: Likewise.
44290         * doc/posix-functions/wctype_l.texi: Likewise.
44291         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
44292         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
44293         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
44294         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
44295         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
44296         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
44297         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
44298         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
44299         * doc/glibc-functions/wcschrnul.texi: Likewise.
44300         * doc/glibc-functions/wcsftime_l.texi: Likewise.
44301         * doc/glibc-functions/wcstod_l.texi: Likewise.
44302         * doc/glibc-functions/wcstof_l.texi: Likewise.
44303         * doc/glibc-functions/wcstol_l.texi: Likewise.
44304         * doc/glibc-functions/wcstold_l.texi: Likewise.
44305         * doc/glibc-functions/wcstoll_l.texi: Likewise.
44306         * doc/glibc-functions/wcstoq.texi: Likewise.
44307         * doc/glibc-functions/wcstoul_l.texi: Likewise.
44308         * doc/glibc-functions/wcstoull_l.texi: Likewise.
44309         * doc/glibc-functions/wcstouq.texi: Likewise.
44310         * doc/glibc-functions/wmempcpy.texi: Likewise.
44311
44312 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
44313             Eric Blake  <ebb9@byu.net>
44314             Paolo Bonzini  <bonzini@gnu.org>
44315             Bruno Haible  <bruno@clisp.org>
44316
44317         Make c-stack work on Haiku.
44318         * lib/c-stack.c (SA_ONSTACK): Define fallback.
44319         (c_stack_action): Use SA_ONSTACK flag.
44320
44321 2008-12-22  Bruno Haible  <bruno@clisp.org>
44322
44323         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
44324
44325 2008-12-22  Bruno Haible  <bruno@clisp.org>
44326
44327         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
44328         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
44329         being overridden.
44330         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
44331         New macros.
44332         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
44333         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
44334         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
44335         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
44336
44337 2008-12-22  Bruno Haible  <bruno@clisp.org>
44338
44339         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
44340         from test code.
44341
44342 2008-12-22  Eric Blake  <ebb9@byu.net>
44343
44344         Avoid gcc warnings on cygwin.
44345         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
44346         Avoid unused variable.
44347         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
44348         Likewise.
44349
44350 2008-12-22  Bruno Haible  <bruno@clisp.org>
44351
44352         Remove HAVE_MBRTOWC conditionals.
44353         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
44354         (mbscasecmp): Assume mbrtowc function.
44355         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
44356         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
44357         * lib/mbschr.c: Include mbuiter.h unconditionally.
44358         (mbschr): Assume mbrtowc function.
44359         * lib/mbscspn.c: Include mbuiter.h unconditionally.
44360         (mbscspn): Assume mbrtowc function.
44361         * lib/mbslen.c: Include mbuiter.h unconditionally.
44362         (mbslen): Assume mbrtowc function.
44363         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
44364         (mbsncasecmp): Assume mbrtowc function.
44365         * lib/mbsnlen.c: Include mbiter.h unconditionally.
44366         (mbsnlen): Assume mbrtowc function.
44367         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
44368         (mbspbrk): Assume mbrtowc function.
44369         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
44370         (mbspcasecmp): Assume mbrtowc function.
44371         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
44372         (mbsrchr): Assume mbrtowc function.
44373         * lib/mbssep.c: Include mbuiter.h unconditionally.
44374         (mbssep): Assume mbrtowc function.
44375         * lib/mbsspn.c: Include mbuiter.h unconditionally.
44376         (mbsspn): Assume mbrtowc function.
44377         * lib/mbsstr.c: Include mbuiter.h unconditionally.
44378         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
44379         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
44380         (mbstok_r): Assume mbrtowc function.
44381         * lib/propername.c: Include mbuiter.h unconditionally.
44382         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
44383         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
44384         (trim2): Assume mbrtowc function.
44385         * lib/mbswidth.c (mbsinit): Remove fallback definition.
44386         (mbsnwidth): Assume mbrtowc function.
44387         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
44388         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
44389         fallback definitions.
44390         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
44391
44392 2008-12-22  Bruno Haible  <bruno@clisp.org>
44393
44394         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
44395
44396 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
44397
44398         * modules/regex: Request emulations for the mb*/wc* functions we need.
44399         * m4/regex.m4: Don't look for those functions here.
44400         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
44401
44402 2008-12-22  Bruno Haible  <bruno@clisp.org>
44403
44404         * modules/fnmatch (Depends-on): Remove duplicated dependency.
44405
44406 2008-12-21  Bruno Haible  <bruno@clisp.org>
44407
44408         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
44409         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
44410         (Include): Remove conditionalization.
44411         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
44412         (Include): Remove conditionalization.
44413         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
44414         (Include): Remove conditionalization.
44415         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
44416         * m4/mbfile.m4 (gl_MBFILE): Likewise.
44417         * NEWS: Mention the change.
44418         Reported by Alan Hourihane <alanh@fairlite.co.uk>
44419         via Sergey Poznyakoff <gray@gnu.org.ua>.
44420
44421 2008-12-21  Bruno Haible  <bruno@clisp.org>
44422
44423         * MODULES.html.sh (Extended multibyte and wide character utilities
44424         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
44425         wcrtomb, wcsrtombs.
44426         (Support for systems lacking POSIX:2008): Add accept, bind, close,
44427         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
44428         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
44429         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
44430
44431 2008-12-21  Bruno Haible  <bruno@clisp.org>
44432
44433         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
44434
44435 2008-12-21  Bruno Haible  <bruno@clisp.org>
44436
44437         * modules/wcsnrtombs-tests: New file.
44438         * tests/test-wcsnrtombs1.sh: New file.
44439         * tests/test-wcsnrtombs2.sh: New file.
44440         * tests/test-wcsnrtombs3.sh: New file.
44441         * tests/test-wcsnrtombs4.sh: New file.
44442         * tests/test-wcsnrtombs.c: New file.
44443
44444         New module 'wcsnrtombs'.
44445         * lib/wchar.in.h (wcsnrtombs): New declaration.
44446         * lib/wcsnrtombs.c: New file.
44447         * lib/wcsrtombs-state.c: New file.
44448         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
44449         (internal_state): Remove variable.
44450         * m4/wcsnrtombs.m4: New file.
44451         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
44452         compilation units.
44453         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
44454         HAVE_WCSNRTOMBS.
44455         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
44456         HAVE_WCSNRTOMBS.
44457         * modules/wcsnrtombs: New file.
44458         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
44459         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
44460
44461 2008-12-21  Bruno Haible  <bruno@clisp.org>
44462
44463         * modules/wcsrtombs-tests: New file.
44464         * tests/test-wcsrtombs1.sh: New file.
44465         * tests/test-wcsrtombs2.sh: New file.
44466         * tests/test-wcsrtombs3.sh: New file.
44467         * tests/test-wcsrtombs4.sh: New file.
44468         * tests/test-wcsrtombs.c: New file.
44469
44470         New module 'wcsrtombs'.
44471         * lib/wchar.in.h (wcsrtombs): New declaration.
44472         * lib/wcsrtombs.c: New file.
44473         * m4/wcsrtombs.m4: New file.
44474         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
44475         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44476         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
44477         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44478         * modules/wcsrtombs: New file.
44479         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
44480         bugs.
44481
44482 2008-12-21  Bruno Haible  <bruno@clisp.org>
44483
44484         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
44485         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
44486         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
44487         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
44488         if not correct.
44489         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
44490         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
44491         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44492         m4/locale-zh.m4, m4/codeset.m4.
44493         * doc/posix-functions/wcrtomb.texi: Document the bug.
44494
44495 2008-12-21  Bruno Haible  <bruno@clisp.org>
44496
44497         Work around a btowc() bug on IRIX 6.5.
44498         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
44499         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
44500         REPLACE_WTOBC if not.
44501         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
44502         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
44503         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
44504
44505 2008-12-21  Bruno Haible  <bruno@clisp.org>
44506
44507         * modules/wcrtomb-tests: New file.
44508         * tests/test-wcrtomb.sh: New file.
44509         * tests/test-wcrtomb.c: New file.
44510
44511         New module 'wcrtomb'.
44512         * lib/wchar.in.h (wcrtomb): New declaration.
44513         * lib/wcrtomb.c: New file.
44514         * m4/wcrtomb.m4: New file.
44515         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
44516         HAVE_WCRTOMB.
44517         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
44518         HAVE_WCRTOMB.
44519         * modules/wcrtomb: New file.
44520         * doc/posix-functions/wcrtomb.texi: Mention the new module.
44521
44522 2008-12-21  Bruno Haible  <bruno@clisp.org>
44523
44524         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
44525         * modules/mbsrtowcs (Files): Likewise.
44526         * modules/wctob (Files): Likewise.
44527         * modules/c-strcase-tests (Files): Likewise.
44528         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
44529         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
44530         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
44531         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
44532         * modules/vasnprintf-posix-tests (Files): Likewise.
44533
44534 2008-12-21  William Pursell  <bill.pursell@gmail.com>
44535
44536         gitlog-to-changelog: pass all command-line arguments to git-log
44537         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
44538         it is sometimes convenient to filter the commits in various ways.
44539         gitlog-to-changelog only allows --since to specify a start date,
44540         but git-log itself supports many other filtering mechanisms.
44541         At the moment, I want to filter by branch name.  Rather than
44542         adding a --branch option to gitlog-to-changelog, it seems more
44543         flexible to simply pass all options directly to git-log and let
44544         git do the work.  Notice that this effectively makes --since a
44545         redundant option for gitlog-to-changelog, but removing it would
44546         require current usage to change since calls would then require
44547         an additional '--'.
44548
44549 2008-12-21  Bruno Haible  <bruno@clisp.org>
44550
44551         * modules/mbsnrtowcs-tests: New file.
44552         * tests/test-mbsnrtowcs1.sh: New file.
44553         * tests/test-mbsnrtowcs2.sh: New file.
44554         * tests/test-mbsnrtowcs3.sh: New file.
44555         * tests/test-mbsnrtowcs4.sh: New file.
44556         * tests/test-mbsnrtowcs.c: New file.
44557
44558         New module 'mbsnrtowcs'.
44559         * lib/wchar.in.h (mbsnrtowcs): New declaration.
44560         * lib/mbsnrtowcs.c: New file.
44561         * lib/mbsrtowcs-state.c: New file.
44562         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
44563         (internal_state): Remove variable.
44564         * m4/mbsnrtowcs.m4: New file.
44565         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
44566         compilation units.
44567         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
44568         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44569         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
44570         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44571         * modules/mbsnrtowcs: New file.
44572         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
44573         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
44574         portability problem.
44575
44576 2008-12-21  Bruno Haible  <bruno@clisp.org>
44577
44578         Work around mbsrtowcs bug.
44579         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
44580         (gl_FUNC_MBSRTOWCS): Invoke it.
44581         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44582         m4/locale-zh.m4.
44583         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
44584
44585 2008-12-21  Bruno Haible  <bruno@clisp.org>
44586
44587         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
44588
44589 2008-12-21  Bruno Haible  <bruno@clisp.org>
44590
44591         Update doc for AIX.
44592         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
44593         16-bit wchar_t type.
44594         * doc/posix-functions/btowc.texi: Likewise.
44595         * doc/posix-functions/fgetwc.texi: Likewise.
44596         * doc/posix-functions/fgetws.texi: Likewise.
44597         * doc/posix-functions/fputwc.texi: Likewise.
44598         * doc/posix-functions/fputws.texi: Likewise.
44599         * doc/posix-functions/fwide.texi: Likewise.
44600         * doc/posix-functions/fwprintf.texi: Likewise.
44601         * doc/posix-functions/fwscanf.texi: Likewise.
44602         * doc/posix-functions/getwchar.texi: Likewise.
44603         * doc/posix-functions/getwc.texi: Likewise.
44604         * doc/posix-functions/iswalnum.texi: Likewise.
44605         * doc/posix-functions/iswalpha.texi: Likewise.
44606         * doc/posix-functions/iswblank.texi: Likewise.
44607         * doc/posix-functions/iswcntrl.texi: Likewise.
44608         * doc/posix-functions/iswctype.texi: Likewise.
44609         * doc/posix-functions/iswdigit.texi: Likewise.
44610         * doc/posix-functions/iswgraph.texi: Likewise.
44611         * doc/posix-functions/iswlower.texi: Likewise.
44612         * doc/posix-functions/iswprint.texi: Likewise.
44613         * doc/posix-functions/iswpunct.texi: Likewise.
44614         * doc/posix-functions/iswspace.texi: Likewise.
44615         * doc/posix-functions/iswupper.texi: Likewise.
44616         * doc/posix-functions/iswxdigit.texi: Likewise.
44617         * doc/posix-functions/mbrtowc.texi: Likewise.
44618         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44619         * doc/posix-functions/mbstowcs.texi: Likewise.
44620         * doc/posix-functions/mbtowc.texi: Likewise.
44621         * doc/posix-functions/putwchar.texi: Likewise.
44622         * doc/posix-functions/putwc.texi: Likewise.
44623         * doc/posix-functions/swprintf.texi: Likewise.
44624         * doc/posix-functions/tolower.texi: Likewise.
44625         * doc/posix-functions/toupper.texi: Likewise.
44626         * doc/posix-functions/towctrans.texi: Likewise.
44627         * doc/posix-functions/ungetwc.texi: Likewise.
44628         * doc/posix-functions/vswprintf.texi: Likewise.
44629         * doc/posix-functions/wcrtomb.texi: Likewise.
44630         * doc/posix-functions/wcscat.texi: Likewise.
44631         * doc/posix-functions/wcschr.texi: Likewise.
44632         * doc/posix-functions/wcscmp.texi: Likewise.
44633         * doc/posix-functions/wcscoll.texi: Likewise.
44634         * doc/posix-functions/wcscpy.texi: Likewise.
44635         * doc/posix-functions/wcscspn.texi: Likewise.
44636         * doc/posix-functions/wcsftime.texi: Likewise.
44637         * doc/posix-functions/wcslen.texi: Likewise.
44638         * doc/posix-functions/wcsncat.texi: Likewise.
44639         * doc/posix-functions/wcsncmp.texi: Likewise.
44640         * doc/posix-functions/wcsncpy.texi: Likewise.
44641         * doc/posix-functions/wcspbrk.texi: Likewise.
44642         * doc/posix-functions/wcsrchr.texi: Likewise.
44643         * doc/posix-functions/wcsrtombs.texi: Likewise.
44644         * doc/posix-functions/wcsspn.texi: Likewise.
44645         * doc/posix-functions/wcsstr.texi: Likewise.
44646         * doc/posix-functions/wcstod.texi: Likewise.
44647         * doc/posix-functions/wcstof.texi: Likewise.
44648         * doc/posix-functions/wcstoimax.texi: Likewise.
44649         * doc/posix-functions/wcstok.texi: Likewise.
44650         * doc/posix-functions/wcstold.texi: Likewise.
44651         * doc/posix-functions/wcstoll.texi: Likewise.
44652         * doc/posix-functions/wcstol.texi: Likewise.
44653         * doc/posix-functions/wcstombs.texi: Likewise.
44654         * doc/posix-functions/wcstoull.texi: Likewise.
44655         * doc/posix-functions/wcstoul.texi: Likewise.
44656         * doc/posix-functions/wcstoumax.texi: Likewise.
44657         * doc/posix-functions/wcswidth.texi: Likewise.
44658         * doc/posix-functions/wcsxfrm.texi: Likewise.
44659         * doc/posix-functions/wctob.texi: Likewise.
44660         * doc/posix-functions/wctomb.texi: Likewise.
44661         * doc/posix-functions/wctrans.texi: Likewise.
44662         * doc/posix-functions/wctype.texi: Likewise.
44663         * doc/posix-functions/wcwidth.texi: Likewise.
44664         * doc/posix-functions/wmemchr.texi: Likewise.
44665         * doc/posix-functions/wmemcmp.texi: Likewise.
44666         * doc/posix-functions/wmemcpy.texi: Likewise.
44667         * doc/posix-functions/wmemmove.texi: Likewise.
44668         * doc/posix-functions/wmemset.texi: Likewise.
44669         * doc/posix-functions/wprintf.texi: Likewise.
44670         * doc/posix-functions/wscanf.texi: Likewise.
44671
44672 2008-12-21  Bruno Haible  <bruno@clisp.org>
44673
44674         Update doc for HP-UX 11.11.
44675         * doc/posix-functions/btowc.texi: Clarify that the function is missing
44676         in HP-UX version 11.00, not in all versions of HP-UX 11.
44677         * doc/posix-functions/fwide.texi: Likewise.
44678         * doc/posix-functions/fwprintf.texi: Likewise.
44679         * doc/posix-functions/fwscanf.texi: Likewise.
44680         * doc/posix-functions/inet_ntop.texi: Likewise.
44681         * doc/posix-functions/inet_pton.texi: Likewise.
44682         * doc/posix-functions/mbrlen.texi: Likewise.
44683         * doc/posix-functions/mbrtowc.texi: Likewise.
44684         * doc/posix-functions/mbsinit.texi: Likewise.
44685         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44686         * doc/posix-functions/swprintf.texi: Likewise.
44687         * doc/posix-functions/swscanf.texi: Likewise.
44688         * doc/posix-functions/towctrans.texi: Likewise.
44689         * doc/posix-functions/vfwprintf.texi: Likewise.
44690         * doc/posix-functions/vswprintf.texi: Likewise.
44691         * doc/posix-functions/vwprintf.texi: Likewise.
44692         * doc/posix-functions/wcrtomb.texi: Likewise.
44693         * doc/posix-functions/wcsrtombs.texi: Likewise.
44694         * doc/posix-functions/wcsstr.texi: Likewise.
44695         * doc/posix-functions/wctob.texi: Likewise.
44696         * doc/posix-functions/wctrans.texi: Likewise.
44697         * doc/posix-functions/wmemchr.texi: Likewise.
44698         * doc/posix-functions/wmemcmp.texi: Likewise.
44699         * doc/posix-functions/wmemcpy.texi: Likewise.
44700         * doc/posix-functions/wmemmove.texi: Likewise.
44701         * doc/posix-functions/wmemset.texi: Likewise.
44702         * doc/posix-functions/wprintf.texi: Likewise.
44703         * doc/posix-functions/wscanf.texi: Likewise.
44704
44705 2008-12-21  Bruno Haible  <bruno@clisp.org>
44706
44707         Work around a portability problem.
44708         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
44709         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
44710
44711 2008-12-20  Bruno Haible  <bruno@clisp.org>
44712
44713         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
44714         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
44715         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
44716         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
44717         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
44718
44719         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
44720         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
44721         set.
44722         (GNULIB_defined_mbstate_t): New macro.
44723         (mbsinit): Redefine if REPLACE_MBSINIT is set.
44724         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
44725         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
44726         reuses the system's mbrtowc function but works around the bugs.
44727         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
44728         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
44729         macros.
44730         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
44731         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
44732         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
44733         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
44734         REPLACE_MBSINIT if mbsinit needs to be overridden.
44735         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
44736         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44737         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
44738         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44739         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44740         m4/locale-zh.m4.
44741         (Depends): Add mbsinit.
44742         * modules/mbsinit (Depends): Add mbrtowc.
44743         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
44744
44745 2008-12-20  Bruno Haible  <bruno@clisp.org>
44746
44747         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
44748         so that there are no conversion errors on AIX.
44749         * tests/test-mbsrtowcs.c (main): LIkewise.
44750
44751 2008-12-20  Bruno Haible  <bruno@clisp.org>
44752
44753         Work around wctob bug on Solaris <= 9.
44754         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
44755         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
44756         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
44757         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
44758         * modules/wctob (Files): Add m4/locale-fr.m4.
44759         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
44760
44761 2008-12-20  Bruno Haible  <bruno@clisp.org>
44762
44763         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
44764         /dev/null.
44765         * tests/test-select-in.sh: Likewise.
44766         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44767
44768 2008-12-20  Bruno Haible  <bruno@clisp.org>
44769
44770         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
44771         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
44772         Cygwin 1.5.x.
44773
44774 2008-12-20  Bruno Haible  <bruno@clisp.org>
44775
44776         Ensure mbstate_t is defined on HP-UX 11.11.
44777         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
44778         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
44779         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
44780         AC_USE_SYSTEM_EXTENSIONS.
44781         * modules/fnmatch (Depends-on): Add extensions.
44782         * modules/mbrlen (Depends-on): Likewise.
44783         * modules/mbrtowc (Depends-on): Likewise.
44784         * modules/mbsinit (Depends-on): Likewise.
44785         * modules/mbsrtowcs (Depends-on): Likewise.
44786         * modules/mbswidth (Depends-on): Likewise.
44787         * modules/quotearg (Depends-on): Likewise.
44788         * modules/strftime (Depends-on): Likewise.
44789
44790 2008-12-20  Bruno Haible  <bruno@clisp.org>
44791
44792         Ensure wctob is declared on IRIX 6.5.
44793         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
44794         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
44795         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
44796         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
44797         of HAVE_WCTOB.
44798         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
44799         HAVE_WCTOB.
44800         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
44801
44802 2008-12-19  Bruno Haible  <bruno@clisp.org>
44803
44804         * modules/mbsrtowcs-tests: New file.
44805         * tests/test-mbsrtowcs1.sh: New file.
44806         * tests/test-mbsrtowcs2.sh: New file.
44807         * tests/test-mbsrtowcs3.sh: New file.
44808         * tests/test-mbsrtowcs4.sh: New file.
44809         * tests/test-mbsrtowcs.c: New file.
44810
44811         New module 'mbsrtowcs'.
44812         * lib/wchar.in.h (mbsrtowcs): New declaration.
44813         * lib/mbsrtowcs.c: New file.
44814         * m4/mbsrtowcs.m4: New file.
44815         * modules/mbsrtowcs: New file.
44816         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
44817         HAVE_MBSRTOWCS.
44818         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
44819         HAVE_MBSRTOWCS.
44820         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
44821
44822 2008-12-19  Bruno Haible  <bruno@clisp.org>
44823
44824         New module 'mbrlen'.
44825         * lib/wchar.in.h (mbrlen): New declaration.
44826         * lib/mbrlen.c: New file.
44827         * m4/mbrlen.m4: New file.
44828         * modules/mbrlen: New file.
44829         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
44830         HAVE_MBRLEN.
44831         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
44832         HAVE_MBRLEN.
44833         * doc/posix-functions/mbrlen.texi: Document the new module.
44834
44835 2008-12-19  Bruno Haible  <bruno@clisp.org>
44836
44837         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
44838         * modules/mbrtowc (Depends-on): Add verify.
44839         Suggested by Paul Eggert.
44840
44841 2008-12-18  Bruno Haible  <bruno@clisp.org>
44842
44843         * modules/mbsinit-tests: New file.
44844         * tests/test-mbsinit.sh: New file.
44845         * tests/test-mbsinit.c: New file.
44846
44847 2008-12-18  Bruno Haible  <bruno@clisp.org>
44848
44849         * modules/mbrtowc-tests: New file.
44850         * tests/test-mbrtowc1.sh: New file.
44851         * tests/test-mbrtowc2.sh: New file.
44852         * tests/test-mbrtowc3.sh: New file.
44853         * tests/test-mbrtowc4.sh: New file.
44854         * tests/test-mbrtowc.c: New file.
44855
44856         New module 'mbrtowc'.
44857         * lib/wchar.in.h (mbstate_t): Override when the system does not have
44858         mbsinit and mbrtowc.
44859         (mbrtowc): New declaration.
44860         * lib/mbrtowc.c: New file.
44861         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
44862         * modules/mbrtowc: New file.
44863         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
44864         HAVE_MBRTOWC.
44865         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
44866         HAVE_MBRTOWC.
44867         * doc/posix-functions/mbrtowc.texi: Document the new module.
44868
44869 2008-12-18  Bruno Haible  <bruno@clisp.org>
44870
44871         New module 'wctob'.
44872         * lib/wchar.in.h (wctob): New declaration.
44873         * lib/wctob.c: New file.
44874         * m4/wctob.m4: New file.
44875         * modules/wctob: New file.
44876         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
44877         HAVE_WCTOB.
44878         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
44879         * doc/posix-functions/wctob.texi: Document the new module.
44880
44881 2008-12-18  Bruno Haible  <bruno@clisp.org>
44882
44883         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
44884         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
44885
44886 2008-12-18  Simon Josefsson  <simon@josefsson.org>
44887
44888         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
44889         G. Christensen" <tgc@jupiterrise.com>.
44890
44891         * lib/flock.c: Need to include errno.h.  Reported by "Tom
44892         G. Christensen" <tgc@jupiterrise.com>.
44893
44894         * lib/flock.c: Need to include string.h.  Reported by "Tom
44895         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
44896         <ebb9@byu.net>.
44897
44898 2008-12-18  Bruno Haible  <bruno@clisp.org>
44899
44900         * m4/locale-ja.m4: New file, from GNU gettext.
44901
44902 2008-12-17  Bruno Haible  <bruno@clisp.org>
44903
44904         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
44905         Suggested by Eric Blake.
44906
44907 2008-12-17  Bruno Haible  <bruno@clisp.org>
44908
44909         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
44910
44911 2008-12-17  Bruno Haible  <bruno@clisp.org>
44912
44913         * lib/mbsinit.c: Include verify.h. Verify an assumption.
44914         * modules/mbsinit (Depends-on): Add verify.
44915         Suggested by Paul Eggert.
44916
44917 2008-12-17  Bruno Haible  <bruno@clisp.org>
44918
44919         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
44920         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
44921         gl_FUNC_MBRTOWC.
44922         * m4/mbiter.m4 (gl_MBITER): LIkewise.
44923         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
44924         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
44925         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
44926         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
44927         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
44928         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
44929         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
44930         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
44931         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
44932         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
44933         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
44934         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
44935         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
44936         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
44937         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44938         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
44939         * modules/trim (configure.ac): Likewise.
44940
44941 2008-12-17  Bruno Haible  <bruno@clisp.org>
44942
44943         * modules/btowc-tests: New file.
44944         * tests/test-btowc1.sh: New file.
44945         * tests/test-btowc2.sh: New file.
44946         * tests/test-btowc.c: New file.
44947
44948         New module 'btowc'.
44949         * lib/wchar.in.h (btowc): New declaration.
44950         * lib/btowc.c: New file.
44951         * m4/btowc.m4: New file.
44952         * modules/btowc: New file.
44953         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
44954         HAVE_BTOWC.
44955         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
44956         * doc/posix-functions/btowc.texi: Document the new module.
44957
44958 2008-12-17  Bruno Haible  <bruno@clisp.org>
44959
44960         New module 'mbsinit'.
44961         * lib/wchar.in.h (mbsinit): New declaration.
44962         * lib/mbsinit.c: New file.
44963         * m4/mbsinit.m4: New file.
44964         * modules/mbsinit: New file.
44965         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
44966         HAVE_MBSINIT.
44967         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
44968         HAVE_MBSINIT.
44969         * doc/posix-functions/mbsinit.texi: Document the new module.
44970
44971 2008-12-16  Bruno Haible  <bruno@clisp.org>
44972
44973         * lib/unistd.in.h: Add comment.
44974         * tests/test-environ.c: Don't include <stdlib.h>.
44975
44976 2008-12-16  Bruno Haible  <bruno@clisp.org>
44977
44978         * lib/parse-duration.h (parse_duration): Document return value
44979         convention.
44980         * lib/parse-duration.c: Include specification header first. Add
44981         comments.
44982         (_): Remove macro.
44983         (parse_year_month_day, parse_hour_minute_second): Move side effects
44984         outside of strchr call.
44985         (parse_non_iso8601): Move side effects outside of isspace call.
44986         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
44987         call.
44988
44989 2008-12-16  Bruno Haible  <bruno@clisp.org>
44990
44991         * tests/test-parse-duration.sh: Produce no output when the test
44992         succeeds.
44993
44994 2008-12-16  Bruno Haible  <bruno@clisp.org>
44995
44996         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
44997         expressions.
44998
44999 2008-12-15  Bruno Haible  <bruno@clisp.org>
45000
45001         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
45002         * doc/glibc-functions/flistxattr.texi: Likewise.
45003         * doc/glibc-functions/fopencookie.texi: Likewise.
45004         * doc/glibc-functions/fremovexattr.texi: Likewise.
45005         * doc/glibc-functions/fsetxattr.texi: Likewise.
45006         * doc/glibc-functions/getxattr.texi: Likewise.
45007         * doc/glibc-functions/lgetxattr.texi: Likewise.
45008         * doc/glibc-functions/listxattr.texi: Likewise.
45009         * doc/glibc-functions/llistxattr.texi: Likewise.
45010         * doc/glibc-functions/lremovexattr.texi: Likewise.
45011         * doc/glibc-functions/lsetxattr.texi: Likewise.
45012         * doc/glibc-functions/removexattr.texi: Likewise.
45013         * doc/glibc-functions/setxattr.texi: Likewise.
45014         * doc/posix-functions/open_memstream.texi: Likewise.
45015
45016 2008-12-15  Eric Blake  <ebb9@byu.net>
45017
45018         Update doc for cygwin 1.7.
45019         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
45020         functions.
45021         * doc/posix-functions/fchmodat.texi: Likewise.
45022         * doc/posix-functions/fchownat.texi: Likewise.
45023         * doc/posix-functions/fdopendir.texi: Likewise.
45024         * doc/posix-functions/fmemopen.texi: Likewise.
45025         * doc/posix-functions/freeaddrinfo.texi: Likewise.
45026         * doc/posix-functions/fstatat.texi: Likewise.
45027         * doc/posix-functions/futimens.texi: Likewise.
45028         * doc/posix-functions/gai_strerror.texi: Likewise.
45029         * doc/posix-functions/getaddrinfo.texi: Likewise.
45030         * doc/posix-functions/getnameinfo.texi: Likewise.
45031         * doc/posix-functions/if_freenameindex.texi: Likewise.
45032         * doc/posix-functions/if_indextoname.texi: Likewise.
45033         * doc/posix-functions/if_nameindex.texi: Likewise.
45034         * doc/posix-functions/if_nametoindex.texi: Likewise.
45035         * doc/posix-functions/insque.texi: Likewise.
45036         * doc/posix-functions/linkat.texi: Likewise.
45037         * doc/posix-functions/llrint.texi: Likewise.
45038         * doc/posix-functions/llrintf.texi: Likewise.
45039         * doc/posix-functions/llrintl.texi: Likewise.
45040         * doc/posix-functions/lockf.texi: Likewise.
45041         * doc/posix-functions/lrintl.texi: Likewise.
45042         * doc/posix-functions/mkdirat.texi: Likewise.
45043         * doc/posix-functions/mkfifoat.texi: Likewise.
45044         * doc/posix-functions/mknodat.texi: Likewise.
45045         * doc/posix-functions/mq_close.texi: Likewise.
45046         * doc/posix-functions/mq_getattr.texi: Likewise.
45047         * doc/posix-functions/mq_notify.texi: Likewise.
45048         * doc/posix-functions/mq_open.texi: Likewise.
45049         * doc/posix-functions/mq_receive.texi: Likewise.
45050         * doc/posix-functions/mq_send.texi: Likewise.
45051         * doc/posix-functions/mq_setattr.texi: Likewise.
45052         * doc/posix-functions/mq_timedreceive.texi: Likewise.
45053         * doc/posix-functions/mq_timedsend.texi: Likewise.
45054         * doc/posix-functions/mq_unlink.texi: Likewise.
45055         * doc/posix-functions/open_memstream.texi: Likewise.
45056         * doc/posix-functions/openat.texi: Likewise.
45057         * doc/posix-functions/posix_fadvise.texi: Likewise.
45058         * doc/posix-functions/posix_fallocate.texi: Likewise.
45059         * doc/posix-functions/posix_madvise.texi: Likewise.
45060         * doc/posix-functions/posix_memalign.texi: Likewise.
45061         * doc/posix-functions/posix_openpt.texi: Likewise.
45062         * doc/posix-functions/readlinkat.texi: Likewise.
45063         * doc/posix-functions/remque.texi: Likewise.
45064         * doc/posix-functions/renameat.texi: Likewise.
45065         * doc/posix-functions/rintl.texi: Likewise.
45066         * doc/posix-functions/sem_unlink.texi: Likewise.
45067         * doc/posix-functions/shm_open.texi: Likewise.
45068         * doc/posix-functions/shm_unlink.texi: Likewise.
45069         * doc/posix-functions/signgam.texi: Likewise.
45070         * doc/posix-functions/sigset.texi: Likewise.
45071         * doc/posix-functions/stpcpy.texi: Likewise.
45072         * doc/posix-functions/stpncpy.texi: Likewise.
45073         * doc/posix-functions/strerror.texi: Likewise.
45074         * doc/posix-functions/strtod.texi: Likewise.
45075         * doc/posix-functions/symlinkat.texi: Likewise.
45076         * doc/posix-functions/unlinkat.texi: Likewise.
45077         * doc/posix-functions/utimensat.texi: Likewise.
45078         * doc/glibc-functions/bindresvport.texi: Likewise.
45079         * doc/glibc-functions/dn_expand.texi: Likewise.
45080         * doc/glibc-functions/exp10.texi: Likewise.
45081         * doc/glibc-functions/exp10f.texi: Likewise.
45082         * doc/glibc-functions/fgetxattr.texi: Likewise.
45083         * doc/glibc-functions/flistxattr.texi: Likewise.
45084         * doc/glibc-functions/fopencookie.texi: Likewise.
45085         * doc/glibc-functions/freeifaddrs.texi: Likewise.
45086         * doc/glibc-functions/fremovexattr.texi: Likewise.
45087         * doc/glibc-functions/fsetxattr.texi: Likewise.
45088         * doc/glibc-functions/getifaddrs.texi: Likewise.
45089         * doc/glibc-functions/getxattr.texi: Likewise.
45090         * doc/glibc-functions/lgetxattr.texi: Likewise.
45091         * doc/glibc-functions/listxattr.texi: Likewise.
45092         * doc/glibc-functions/llistxattr.texi: Likewise.
45093         * doc/glibc-functions/lremovexattr.texi: Likewise.
45094         * doc/glibc-functions/lsetxattr.texi: Likewise.
45095         * doc/glibc-functions/pow10.texi: Likewise.
45096         * doc/glibc-functions/pow10f.texi: Likewise.
45097         * doc/glibc-functions/rcmd_af.texi: Likewise.
45098         * doc/glibc-functions/removexattr.texi: Likewise.
45099         * doc/glibc-functions/res_init.texi: Likewise.
45100         * doc/glibc-functions/res_mkquery.texi: Likewise.
45101         * doc/glibc-functions/res_query.texi: Likewise.
45102         * doc/glibc-functions/res_querydomain.texi: Likewise.
45103         * doc/glibc-functions/res_send.texi: Likewise.
45104         * doc/glibc-functions/rresvport_af.texi: Likewise.
45105         * doc/glibc-functions/setxattr.texi: Likewise.
45106         * doc/glibc-functions/strcasestr.texi: Likewise.
45107
45108 2008-12-15  Bruno Haible  <bruno@clisp.org>
45109
45110         Fix compilation error on OSF/1 4.0.
45111         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
45112         <sys/time.h>, simply delegate to the system header.
45113         Reported by Daniel Richard G. <oss@teragram.com>.
45114
45115 2008-12-15  Bruno Haible  <bruno@clisp.org>
45116
45117         * doc/posix-functions/openat.texi: Mention the 'openat' module.
45118         * doc/posix-functions/fchmodat.texi: Likewise.
45119         * doc/posix-functions/fchownat.texi: Likewise.
45120         * doc/posix-functions/fdopendir.texi: Likewise.
45121         * doc/posix-functions/fstatat.texi: Likewise.
45122         * doc/posix-functions/mkdirat.texi: Likewise.
45123         * doc/posix-functions/unlinkat.texi: Likewise.
45124
45125 2008-12-14  Bruno Haible  <bruno@clisp.org>
45126
45127         Update doc for POSIX:2008.
45128         * doc/posix-functions/faccessat.texi: New file.
45129         * doc/posix-functions/fchmodat.texi: New file.
45130         * doc/posix-functions/fchownat.texi: New file.
45131         * doc/posix-functions/fdopendir.texi: New file.
45132         * doc/posix-functions/fstatat.texi: New file.
45133         * doc/posix-functions/futimens.texi: New file.
45134         * doc/posix-functions/linkat.texi: New file.
45135         * doc/posix-functions/mkdirat.texi: New file.
45136         * doc/posix-functions/mkfifoat.texi: New file.
45137         * doc/posix-functions/mknodat.texi: New file.
45138         * doc/posix-functions/open_wmemstream.texi: New file.
45139         * doc/posix-functions/openat.texi: New file.
45140         * doc/posix-functions/psiginfo.texi: New file.
45141         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
45142         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
45143         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
45144         * doc/posix-functions/readlinkat.texi: New file.
45145         * doc/posix-functions/renameat.texi: New file.
45146         * doc/posix-functions/strerror_l.texi: New file.
45147         * doc/posix-functions/symlinkat.texi: New file.
45148         * doc/posix-functions/unlinkat.texi: New file.
45149         * doc/posix-functions/utimensat.texi: New file.
45150         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45151
45152 2008-12-14  Bruno Haible  <bruno@clisp.org>
45153
45154         Update doc for POSIX:2008.
45155         * doc/posix-functions/alphasort.texi: Renamed from
45156         doc/glibc-functions/alphasort.texi.
45157         * doc/posix-functions/dirfd.texi: Renamed from
45158         doc/glibc-functions/dirfd.texi.
45159         * doc/posix-functions/dprintf.texi: Renamed from
45160         doc/glibc-functions/dprintf.texi.
45161         * doc/posix-functions/duplocale.texi: Renamed from
45162         doc/glibc-functions/duplocale.texi.
45163         * doc/posix-functions/fexecve.texi: Renamed from
45164         doc/glibc-functions/fexecve.texi.
45165         * doc/posix-functions/fmemopen.texi: Renamed from
45166         doc/glibc-functions/fmemopen.texi.
45167         * doc/posix-functions/freelocale.texi: Renamed from
45168         doc/glibc-functions/freelocale.texi.
45169         * doc/posix-functions/getdate_err.texi: Renamed from
45170         doc/glibc-functions/getdate_err.texi.
45171         * doc/posix-functions/isalnum_l.texi: Renamed from
45172         doc/glibc-functions/isalnum_l.texi.
45173         * doc/posix-functions/isalpha_l.texi: Renamed from
45174         doc/glibc-functions/isalpha_l.texi.
45175         * doc/posix-functions/isblank_l.texi: Renamed from
45176         doc/glibc-functions/isblank_l.texi.
45177         * doc/posix-functions/iscntrl_l.texi: Renamed from
45178         doc/glibc-functions/iscntrl_l.texi.
45179         * doc/posix-functions/isdigit_l.texi: Renamed from
45180         doc/glibc-functions/isdigit_l.texi.
45181         * doc/posix-functions/isgraph_l.texi: Renamed from
45182         doc/glibc-functions/isgraph_l.texi.
45183         * doc/posix-functions/islower_l.texi: Renamed from
45184         doc/glibc-functions/islower_l.texi.
45185         * doc/posix-functions/isprint_l.texi: Renamed from
45186         doc/glibc-functions/isprint_l.texi.
45187         * doc/posix-functions/ispunct_l.texi: Renamed from
45188         doc/glibc-functions/ispunct_l.texi.
45189         * doc/posix-functions/isspace_l.texi: Renamed from
45190         doc/glibc-functions/isspace_l.texi.
45191         * doc/posix-functions/isupper_l.texi: Renamed from
45192         doc/glibc-functions/isupper_l.texi.
45193         * doc/posix-functions/iswalnum_l.texi: Renamed from
45194         doc/glibc-functions/iswalnum_l.texi.
45195         * doc/posix-functions/iswalpha_l.texi: Renamed from
45196         doc/glibc-functions/iswalpha_l.texi.
45197         * doc/posix-functions/iswblank_l.texi: Renamed from
45198         doc/glibc-functions/iswblank_l.texi.
45199         * doc/posix-functions/iswcntrl_l.texi: Renamed from
45200         doc/glibc-functions/iswcntrl_l.texi.
45201         * doc/posix-functions/iswctype_l.texi: Renamed from
45202         doc/glibc-functions/iswctype_l.texi.
45203         * doc/posix-functions/iswdigit_l.texi: Renamed from
45204         doc/glibc-functions/iswdigit_l.texi.
45205         * doc/posix-functions/iswgraph_l.texi: Renamed from
45206         doc/glibc-functions/iswgraph_l.texi.
45207         * doc/posix-functions/iswlower_l.texi: Renamed from
45208         doc/glibc-functions/iswlower_l.texi.
45209         * doc/posix-functions/iswprint_l.texi: Renamed from
45210         doc/glibc-functions/iswprint_l.texi.
45211         * doc/posix-functions/iswpunct_l.texi: Renamed from
45212         doc/glibc-functions/iswpunct_l.texi.
45213         * doc/posix-functions/iswspace_l.texi: Renamed from
45214         doc/glibc-functions/iswspace_l.texi.
45215         * doc/posix-functions/iswupper_l.texi: Renamed from
45216         doc/glibc-functions/iswupper_l.texi.
45217         * doc/posix-functions/iswxdigit_l.texi: Renamed from
45218         doc/glibc-functions/iswxdigit_l.texi.
45219         * doc/posix-functions/isxdigit_l.texi: Renamed from
45220         doc/glibc-functions/isxdigit_l.texi.
45221         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
45222         doc/glibc-functions/mbsnrtowcs.texi.
45223         * doc/posix-functions/mkdtemp.texi: Renamed from
45224         doc/glibc-functions/mkdtemp.texi.
45225         * doc/posix-functions/newlocale.texi: Renamed from
45226         doc/glibc-functions/newlocale.texi.
45227         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
45228         doc/glibc-functions/nl_langinfo_l.texi.
45229         * doc/posix-functions/open_memstream.texi: Renamed from
45230         doc/glibc-functions/open_memstream.texi.
45231         * doc/posix-functions/opterr.texi: Renamed from
45232         doc/glibc-functions/opterr.texi.
45233         * doc/posix-functions/optind.texi: Renamed from
45234         doc/glibc-functions/optind.texi.
45235         * doc/posix-functions/optopt.texi: Renamed from
45236         doc/glibc-functions/optopt.texi.
45237         * doc/posix-functions/psignal.texi: Renamed from
45238         doc/glibc-functions/psignal.texi.
45239         * doc/posix-functions/scandir.texi: Renamed from
45240         doc/glibc-functions/scandir.texi.
45241         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
45242         doc/glibc-functions/sched_get_priority_min.texi.
45243         * doc/posix-functions/signgam.texi: Renamed from
45244         doc/glibc-functions/signgam.texi.
45245         * doc/posix-functions/stpcpy.texi: Renamed from
45246         doc/glibc-functions/stpcpy.texi.
45247         * doc/posix-functions/stpncpy.texi: Renamed from
45248         doc/glibc-functions/stpncpy.texi.
45249         * doc/posix-functions/strcasecmp_l.texi: Renamed from
45250         doc/glibc-functions/strcasecmp_l.texi.
45251         * doc/posix-functions/strcoll_l.texi: Renamed from
45252         doc/glibc-functions/strcoll_l.texi.
45253         * doc/posix-functions/strfmon_l.texi: Renamed from
45254         doc/glibc-functions/strfmon_l.texi.
45255         * doc/posix-functions/strftime_l.texi: Renamed from
45256         doc/glibc-functions/strftime_l.texi.
45257         * doc/posix-functions/strncasecmp_l.texi: Renamed from
45258         doc/glibc-functions/strncasecmp_l.texi.
45259         * doc/posix-functions/strndup.texi: Renamed from
45260         doc/glibc-functions/strndup.texi.
45261         * doc/posix-functions/strnlen.texi: Renamed from
45262         doc/glibc-functions/strnlen.texi.
45263         * doc/posix-functions/strsignal.texi: Renamed from
45264         doc/glibc-functions/strsignal.texi.
45265         * doc/posix-functions/strxfrm_l.texi: Renamed from
45266         doc/glibc-functions/strxfrm_l.texi.
45267         * doc/posix-functions/timer_gettime.texi: Renamed from
45268         doc/glibc-functions/timer_gettime.texi.
45269         * doc/posix-functions/tolower_l.texi: Renamed from
45270         doc/glibc-functions/tolower_l.texi.
45271         * doc/posix-functions/toupper_l.texi: Renamed from
45272         doc/glibc-functions/toupper_l.texi.
45273         * doc/posix-functions/towctrans_l.texi: Renamed from
45274         doc/glibc-functions/towctrans_l.texi.
45275         * doc/posix-functions/towlower_l.texi: Renamed from
45276         doc/glibc-functions/towlower_l.texi.
45277         * doc/posix-functions/towupper_l.texi: Renamed from
45278         doc/glibc-functions/towupper_l.texi.
45279         * doc/posix-functions/uselocale.texi: Renamed from
45280         doc/glibc-functions/uselocale.texi.
45281         * doc/posix-functions/vdprintf.texi: Renamed from
45282         doc/glibc-functions/vdprintf.texi.
45283         * doc/posix-functions/wcpcpy.texi:
45284         Renamed from doc/glibc-functions/wcpcpy.texi.
45285         * doc/posix-functions/wcpncpy.texi: Renamed from
45286         doc/glibc-functions/wcpncpy.texi.
45287         * doc/posix-functions/wcscasecmp.texi: Renamed from
45288         doc/glibc-functions/wcscasecmp.texi.
45289         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
45290         doc/glibc-functions/wcscasecmp_l.texi.
45291         * doc/posix-functions/wcscoll_l.texi: Renamed from
45292         doc/glibc-functions/wcscoll_l.texi.
45293         * doc/posix-functions/wcsdup.texi: Renamed from
45294         doc/glibc-functions/wcsdup.texi.
45295         * doc/posix-functions/wcsncasecmp.texi: Renamed from
45296         doc/glibc-functions/wcsncasecmp.texi.
45297         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
45298         doc/glibc-functions/wcsncasecmp_l.texi.
45299         * doc/posix-functions/wcsnlen.texi: Renamed from
45300         doc/glibc-functions/wcsnlen.texi.
45301         * doc/posix-functions/wcsnrtombs.texi: Renamed from
45302         doc/glibc-functions/wcsnrtombs.texi.
45303         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
45304         doc/glibc-functions/wcsxfrm_l.texi.
45305         * doc/posix-functions/wctrans_l.texi: Renamed from
45306         doc/glibc-functions/wctrans_l.texi.
45307         * doc/posix-functions/wctype_l.texi: Renamed from
45308         doc/glibc-functions/wctype_l.texi.
45309         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45310         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
45311         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
45312         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
45313         these subsections.
45314         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
45315         Remove sections.
45316
45317 2008-12-14  Bruno Haible  <bruno@clisp.org>
45318
45319         Update doc for POSIX:2008.
45320         * doc/posix-functions/*.texi: Update URL of POSIX specification.
45321
45322 2008-12-14  Bruno Haible  <bruno@clisp.org>
45323
45324         Update doc for POSIX:2008.
45325         * doc/pastposix-functions/bcmp.texi: Renamed from
45326         doc/posix-functions/bcmp.texi.
45327         * doc/pastposix-functions/bcopy.texi: Renamed from
45328         doc/posix-functions/bcopy.texi.
45329         * doc/pastposix-functions/bsd_signal.texi: Renamed from
45330         doc/posix-functions/bsd_signal.texi.
45331         * doc/pastposix-functions/bzero.texi: Renamed from
45332         doc/posix-functions/bzero.texi.
45333         * doc/pastposix-functions/ecvt.texi: Renamed from
45334         doc/posix-functions/ecvt.texi.
45335         * doc/pastposix-functions/fcvt.texi: Renamed from
45336         doc/posix-functions/fcvt.texi.
45337         * doc/pastposix-functions/ftime.texi: Renamed from
45338         doc/posix-functions/ftime.texi.
45339         * doc/pastposix-functions/gcvt.texi: Renamed from
45340         doc/posix-functions/gcvt.texi.
45341         * doc/pastposix-functions/getcontext.texi: Renamed from
45342         doc/posix-functions/getcontext.texi.
45343         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
45344         doc/posix-functions/gethostbyaddr.texi.
45345         * doc/pastposix-functions/gethostbyname.texi: Renamed from
45346         doc/posix-functions/gethostbyname.texi.
45347         * doc/pastposix-functions/getwd.texi: Renamed from
45348         doc/posix-functions/getwd.texi.
45349         * doc/pastposix-functions/h_errno.texi: Renamed from
45350         doc/posix-functions/h_errno.texi.
45351         * doc/pastposix-functions/index.texi: Renamed from
45352         doc/posix-functions/index.texi.
45353         * doc/pastposix-functions/makecontext.texi: Renamed from
45354         doc/posix-functions/makecontext.texi.
45355         * doc/pastposix-functions/mktemp.texi: Renamed from
45356         doc/posix-functions/mktemp.texi.
45357         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
45358         doc/posix-functions/pthread_attr_getstackaddr.texi.
45359         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
45360         doc/posix-functions/pthread_attr_setstackaddr.texi.
45361         * doc/pastposix-functions/rindex.texi: Renamed from
45362         doc/posix-functions/rindex.texi.
45363         * doc/pastposix-functions/scalb.texi: Renamed from
45364         doc/posix-functions/scalb.texi.
45365         * doc/pastposix-functions/setcontext.texi: Renamed from
45366         doc/posix-functions/setcontext.texi.
45367         * doc/pastposix-functions/swapcontext.texi: Renamed from
45368         doc/posix-functions/swapcontext.texi.
45369         * doc/pastposix-functions/ualarm.texi: Renamed from
45370         doc/posix-functions/ualarm.texi.
45371         * doc/pastposix-functions/usleep.texi: Renamed from
45372         doc/posix-functions/usleep.texi.
45373         * doc/pastposix-functions/vfork.texi: Renamed from
45374         doc/posix-functions/vfork.texi.
45375         * doc/pastposix-functions/wcswcs.texi: Renamed from
45376         doc/posix-functions/wcswcs.texi.
45377         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
45378         (Function Substitutes): Update.
45379
45380 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45381
45382         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
45383         m4/strerror.m4.
45384
45385 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45386             Bruno Haible  <bruno@clisp.org>
45387
45388         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
45389
45390 2008-12-13  Bruno Haible  <bruno@clisp.org>
45391
45392         * modules/strtoull (Depends-on): Remove unistd.
45393
45394 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45395
45396         * modules/strtoull (Depends-on): Add stdlib.
45397
45398 2008-12-11  Simon Josefsson  <simon@josefsson.org>
45399
45400         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
45401
45402 2008-12-10  Jim Meyering  <meyering@redhat.com>
45403
45404         gl_ASSERT: don't say assertions are disabled when they're not
45405         * m4/assert.m4 (gl_ASSERT): Do not make configure report
45406         "checking whether to enable assertions... no", when they are in
45407         fact enabled.  This is solely a bug in the output of configure.
45408         In spite of saying "no", NDEBUG was not defined in that case.
45409         Also, as noted by Eric Blake, leave assertions enabled upon
45410         --enable-assert=INVALID.
45411
45412 2008-12-10  Bruno Haible  <bruno@clisp.org>
45413
45414         Change MODULES.html to refer to POSIX:2008 where possible.
45415         * MODULES.html.sh (POSIX2008_URL): New variable.
45416         (posix_headers): Remove sys/timeb, ucontext.
45417         (posix2001_headers): New variable.
45418         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
45419         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
45420         index, makecontext, mktemp, pthread_attr_getstackaddr,
45421         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
45422         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
45423         (posix2001_functions): New variable.
45424         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
45425         otherwise.
45426
45427 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45428
45429         add missing include to parse-duration.c
45430         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
45431         * modules/parse-duration (Depends-on): Add xalloc.
45432
45433         fix sed script reading maint.mk
45434         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
45435         (syntax-check-rules): Use it.
45436
45437 2008-12-09  Bruno Haible  <bruno@clisp.org>
45438
45439         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
45440         MacOS X 10.4/PowerPC.
45441         Reported by Simon Josefsson.
45442
45443 2008-12-08  Jim Meyering  <meyering@redhat.com>
45444
45445         work around mingw's lack of some S_IF definitions
45446         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
45447         Reported by Simon Josefsson.
45448
45449 2008-12-08  Bruno Haible  <bruno@clisp.org>
45450
45451         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
45452         applied to variables. Needed on MacOS X 10.4/PowerPC.
45453         Reported by Simon Josefsson.
45454
45455 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
45456         and Eric Blake  <ebb9@byu.net>
45457
45458         assert: honor --enable-assert
45459         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
45460         order to honor --enable-assert, rather than treating it as a
45461         synonym for --disable-assert.
45462
45463 2008-12-08  Jim Meyering  <meyering@redhat.com>
45464
45465         * lib/posixtm.c: Remove now-useless declaration of mktime.
45466
45467         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
45468
45469 2008-12-07  Bruno Haible  <bruno@clisp.org>
45470
45471         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
45472         test_once): Mark functions as static.
45473         * tests/test-tls.c (test_tls): Likewise.
45474
45475 2008-12-07  Bruno Haible  <bruno@clisp.org>
45476
45477         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
45478         iconv_register_autodetect.
45479
45480 2008-12-07  Jim Meyering  <meyering@redhat.com>
45481
45482         posixtm.c: avoid a warning
45483         * lib/posixtm.c (posixtime): Don't initialize tm0.
45484         It's no longer needed to placate gcc4's -Wuninitialized,
45485         and the attempt to placate would elicit a new warning.
45486
45487         unicodeio.c: mark unused parameters
45488         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45489         (fallback_failure_callback): Likewise.
45490
45491 2008-12-07  Bruno Haible  <bruno@clisp.org>
45492
45493         * gnulib-tool (func_create_testdir): When building the tests
45494         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
45495         Reported by Simon Josefsson.
45496
45497 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45498
45499         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
45500
45501 2008-12-06  Bruno Haible  <bruno@clisp.org>
45502
45503         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
45504         Suggested by Eric Blake.
45505
45506 2008-12-06  Bruno Haible  <bruno@clisp.org>
45507
45508         Fix a c-stack test failure on MacOS X.
45509         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
45510         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
45511         handler for SIGBUS as well.
45512         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
45513         install a signal handler for SIGBUS as well.
45514         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
45515
45516 2008-12-06  Bruno Haible  <bruno@clisp.org>
45517
45518         Advocacy documentation.
45519         * doc/gnulib-intro.texi (Benefits): New section.
45520         * doc/gnulib.texi: Update.
45521
45522 2008-12-06  Bruno Haible  <bruno@clisp.org>
45523
45524         Document the 'manywarnings' module.
45525         * doc/manywarnings.texi: New file.
45526         * doc/gnulib.texi: Include it.
45527
45528 2008-12-05  Eric Blake  <ebb9@byu.net>
45529
45530         tests: silence some gcc warnings
45531         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
45532         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
45533         type mismatches.
45534
45535 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45536             Bruno Haible  <bruno@clisp.org>
45537
45538         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
45539
45540 2008-11-29  Jim Meyering  <meyering@redhat.com>
45541
45542         unicodeio.c: mark unused parameters
45543         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45544         (fallback_failure_callback): Likewise.
45545
45546         fts: fix a thinko
45547         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
45548         (set_stat_type): Return S_IF*-valued "type" directly.
45549         Prompted by James Youngman's spotting a related bug.
45550         Confirmed by further testing through find.
45551
45552         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
45553         * lib/fts.c (D_TYPE): Define.
45554         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
45555         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
45556         (s_ifmt_shift_bits): New function.
45557         (set_stat_type): New function.
45558         (fts_build): When not calling fts_stat, call set_stat_type
45559         to propagate dirent.d_type info to fts_read caller.
45560         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
45561         fts_statp->st_mode type information may be valid.
45562
45563 2008-11-28  Simon Josefsson  <simon@josefsson.org>
45564
45565         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
45566         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
45567         <sds@gnu.org>.
45568
45569 2008-11-20  Bruno Haible  <bruno@clisp.org>
45570
45571         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
45572         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
45573         INCLUDE_NEXT.
45574         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
45575         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
45576         * modules/math (Makefile.am): Substitute
45577         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
45578         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45579
45580 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
45581             Bruno Haible  <bruno@clisp.org>
45582
45583         * lib/stdint.in.h: Define all type macros so that their expansion is
45584         a single typedef'ed token. Fixes a compilation failure in Boost which
45585         does "using ::int8_t;".
45586
45587 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45588
45589         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
45590         gl_MANYWARN_ALL_GCC.
45591         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
45592         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
45593         * modules/manywarnings: New file.
45594         * MODULES.html.sh: Mention manywarnings module.
45595
45596 2008-11-18  Bruno Haible  <bruno@clisp.org>
45597
45598         * doc/gnulib-tool.texi (Unit tests): New section.
45599
45600 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45601
45602         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
45603         paths like 'lib/po/foo.po'.
45604
45605 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45606
45607         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
45608         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
45609
45610 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45611
45612         * m4/warnings.m4: Use CPPFLAGS to really check whether the
45613         parameter works.
45614
45615 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45616
45617         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
45618
45619 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45620
45621         * modules/parse-duration-tests: New file.
45622         * tests/test-parse-duration.sh: New file.
45623         * tests/test-parse-duration.c: New file.
45624
45625         New module 'parse-duration'.
45626         * lib/parse-duration.h: New file.
45627         * lib/parse-duration.c: New file.
45628         * modules/parse-duration: New file.
45629
45630 2008-11-17  Bruno Haible  <bruno@clisp.org>
45631
45632         * tests/test-select-out.sh: Comment out the first pipe test.
45633         Reported by Simon Josefsson.
45634
45635 2008-11-17  Bruno Haible  <bruno@clisp.org>
45636
45637         * modules/getaddrinfo (Depends-on): Add servent, hostent.
45638         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
45639         gl_HOSTENT.
45640
45641 2008-11-17  Bruno Haible  <bruno@clisp.org>
45642
45643         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
45644         -lnetwork and -lnet. Needed for Haiku and BeOS.
45645
45646 2008-11-16  Bruno Haible  <bruno@clisp.org>
45647
45648         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
45649
45650 2008-11-16  Bruno Haible  <bruno@clisp.org>
45651
45652         Avoid test failure on Haiku.
45653         * tests/test-fsync.c: Include <errno.h>.
45654         (main): Don't require that fsync (0) fails.
45655
45656 2008-11-15  Bruno Haible  <bruno@clisp.org>
45657
45658         New module 'hostent'.
45659         * modules/hostent: New file.
45660         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
45661
45662 2008-11-15  Bruno Haible  <bruno@clisp.org>
45663
45664         New module 'servent'.
45665         * modules/servent: New file.
45666         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
45667
45668 2008-11-15  Bruno Haible  <bruno@clisp.org>
45669
45670         Avoid generating same test program with two different rules.
45671         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
45672         test-frexp to test-frexp-nolibm.
45673         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
45674         test-frexpl to test-frexpl-nolibm.
45675
45676 2008-11-15  Bruno Haible  <bruno@clisp.org>
45677
45678         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
45679         $(FREXPL_LIBM).
45680
45681 2008-11-15  Bruno Haible  <bruno@clisp.org>
45682
45683         * lib/netdb.in.h: Activate the definitions also when the system's
45684         <netdb.h> has 'struct addrinfo'.
45685         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
45686         EAI_OVERFLOW or AI_NUMERICSERV.
45687         * doc/posix-headers/netdb.texi: Document the problem.
45688
45689 2008-11-15  Bruno Haible  <bruno@clisp.org>
45690
45691         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
45692
45693         Make the 'sched' module work on platforms where <sched.h> exists but
45694         is incomplete (such as Haiku).
45695         * lib/sched.in.h; Include the system's <sched.h> if it exists.
45696         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
45697         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
45698         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
45699         HAVE_STRUCT_SCHED_PARAM.
45700         * modules/sched (Depends-on): Add include_next.
45701         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
45702         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
45703         * doc/posix-headers/sched.texi: Document the issue.
45704
45705 2008-11-13  Jim Meyering  <meyering@redhat.com>
45706
45707         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
45708         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
45709         test would fail due to the difference in the Report bugs to ...
45710         line.  The expected address is empty, "<>", while the actual
45711         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
45712
45713 2008-11-12  Bruno Haible  <bruno@clisp.org>
45714
45715         lstat: don't compile lstat.c on systems lacking lstat
45716         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
45717         which don't have lstat; this is handled by lib/sys_stat.in.h already.
45718         Reported by Daniel P. Berrange via Jim Meyering.
45719
45720 2008-11-12  Jim Meyering  <meyering@redhat.com>
45721
45722         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
45723
45724 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45725
45726         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
45727         instead.
45728
45729 2008-11-12  Bruno Haible  <bruno@clisp.org>
45730
45731         * lib/unicodeio.c: Include unistr.h.
45732         (utf8_wctomb): Remove function.
45733         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
45734
45735 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45736
45737         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
45738         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
45739         <bruno@clisp.org>.
45740         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
45741
45742 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45743
45744         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
45745         * doc/gnulib.texi: Add section for warnings.
45746
45747 2008-11-11  Bruno Haible  <bruno@clisp.org>
45748
45749         * lib/sockets.h: Add a comment.
45750
45751 2008-11-11  Karl Berry  <karl@gnu.org>
45752
45753         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
45754
45755 2008-11-11  Eric Blake  <ebb9@byu.net>
45756
45757         fdl.texi: avoid git symlinks
45758         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
45759
45760 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45761
45762         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
45763
45764 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45765
45766         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
45767         (gl_WARN_ADD): Substitute $2 if literal.
45768
45769 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45770
45771         * m4/warning.m4: Remove.
45772
45773 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45774
45775         * m4/warnings.m4: Almost complete rewrite. :-)
45776
45777 2008-11-10  Simon Josefsson  <simon@josefsson.org>
45778
45779         * modules/warnings: New module.
45780         * m4/warnings.m4: New file.
45781         * MODULES.html.sh: Mention warnings module.
45782         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
45783         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45784
45785 2008-11-10  Eric Blake  <ebb9@byu.net>
45786
45787         fdl.texi: make a symlink to the latest version
45788         * doc/standards.texi: Revert today's earlier change.
45789         * doc/fdl-1.2.texi: Rename from old fdl.texi...
45790         * doc/fdl.texi: ...and replace this with a symlink to the newer
45791         fdl-1.3.texi.
45792
45793 2008-11-10  Bruno Haible  <bruno@clisp.org>
45794
45795         * tests/test-select-fd.c (main): Accept the result file name as fourth
45796         argument.
45797         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
45798         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
45799
45800 2008-11-10  Bruno Haible  <bruno@clisp.org>
45801
45802         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
45803         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
45804         as autoconf-substituted macros.
45805         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
45806         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
45807         gl_NETDB_H_DEFAULTS. Set these variables.
45808         * modules/netdb (Makefile.am): Substitute these variables.
45809
45810 2008-11-10  Eric Blake  <ebb9@byu.net>
45811
45812         standards.texi: include correct file for FDL 1.3
45813         * doc/standards.texi (GNU Free Documentation License): Change
45814         include file to pull in FDL 1.3, not 1.2.
45815
45816         fdl.texi: revert accidental change to license
45817         * doc/fdl.texi: This is FDL 1.2, not 1.3.
45818
45819 2008-11-10  Bruno Haible  <bruno@clisp.org>
45820
45821         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
45822         cross-compiling guesses also when the native compile gives no result.
45823
45824 2008-11-10  Bruno Haible  <bruno@clisp.org>
45825
45826         * lib/spawni.c (__spawni): Force variable into the stack.
45827
45828 2008-11-10  Bruno Haible  <bruno@clisp.org>
45829
45830         Add support for Haiku.
45831         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
45832         glibc and BeOS, but also on Haiku.
45833         * lib/fpurge.c (fpurge): Likewise.
45834         * lib/freadable.c (freadable): Likewise.
45835         * lib/freadahead.c (freadahead): Likewise.
45836         * lib/freading.c (freading): Likewise.
45837         * lib/freadptr.c (freadptr): Likewise.
45838         * lib/freadseek.c (freadptrinc): Likewise.
45839         * lib/fseeko.c (rpl_fseeko): Likewise.
45840         * lib/fseterr.c (fseterr): Likewise.
45841         * lib/fwritable.c (fwritable): Likewise.
45842         * lib/fwriting.c (fwriting): Likewise.
45843         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
45844
45845 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45846
45847         * lib/config.charset: Treat Haiku like BeOS.
45848
45849 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45850
45851         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
45852         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
45853
45854 2008-11-08  Bruno Haible  <bruno@clisp.org>
45855
45856         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
45857         AC_CACHE_CHECK.
45858
45859 2008-11-08  Bruno Haible  <bruno@clisp.org>
45860
45861         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
45862
45863 2008-11-08  Bruno Haible  <bruno@clisp.org>
45864
45865         * tests/test-select-fd.c: New file.
45866         * tests/test-select-in.sh: New file.
45867         * tests/test-select-out.sh: New file.
45868         * tests/test-select-stdin.c: New file.
45869         * modules/select-tests (Files): Add the new files.
45870         (Depends-on): Add gettimeofday.
45871         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
45872         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
45873         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
45874
45875 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
45876             Bruno Haible  <bruno@clisp.org>
45877
45878         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
45879
45880 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
45881
45882         * build-aux/pmccabe2html: Added support for C++ source files.
45883
45884 2008-11-05  Ben Pfaff  <blp@gnu.org>
45885
45886         Fix lib/close.c build on Windows.
45887         * modules/close (Files): Add lib/w32sock.h.
45888
45889 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
45890
45891         Accept Bison's NEWS format.
45892         * build-aux/announce-gen (print_news_deltas): Tweak
45893         $re_prefix.
45894
45895 2008-11-04  Bruno Haible  <bruno@clisp.org>
45896
45897         * modules/random_r (Maintainer): Add glibc.
45898
45899 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45900
45901         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
45902         by karl@freefriends.org (Karl Berry).
45903         * doc/alloca.texi: Likewise.
45904         * doc/c-ctype.texi: Likewise.
45905         * doc/c-strcase.texi: Likewise.
45906         * doc/c-strcaseeq.texi: Likewise.
45907         * doc/c-strcasestr.texi: Likewise.
45908         * doc/c-strstr.texi: Likewise.
45909         * doc/c-strtod.texi: Likewise.
45910         * doc/c-strtold.texi: Likewise.
45911         * doc/ctime.texi: Likewise.
45912         * doc/error.texi: Likewise.
45913         * doc/fdl.texi: Likewise.
45914         * doc/gcd.texi: Likewise.
45915         * doc/getdate.texi: Likewise.
45916         * doc/gnulib-intro.texi: Likewise.
45917         * doc/gnulib-tool.texi: Likewise.
45918         * doc/gnulib.texi: Likewise.
45919         * doc/inet_ntoa.texi: Likewise.
45920         * doc/maintain.texi: Likewise.
45921         * doc/make-stds.texi: Likewise.
45922         * doc/quote.texi: Likewise.
45923         * doc/regexprops-generic.texi: Likewise.
45924         * doc/standards.texi: Likewise.
45925         * doc/verify.texi: Likewise.
45926         * doc/visibility.texi: Likewise.
45927         * doc/gnulib.texi (GNU Free Documentation License): Include
45928         fdl-1.3.texi instead of fdl.texi.
45929
45930 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45931
45932         * doc/fdl-1.3.texi: New file, from
45933         <http://www.gnu.org/licenses/fdl-1.3.texi>.
45934         * modules/fdl-1.3: Add.
45935         * MODULES.html.sh: Add fdl-1.3.
45936
45937 2008-11-03  Bruno Haible  <bruno@clisp.org>
45938
45939         Make determination of absolute name of header file work with AIX xlc.
45940         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
45941         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
45942         preprocessing.
45943         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45944         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45945
45946 2008-11-03  Simon Josefsson  <simon@josefsson.org>
45947
45948         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
45949         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
45950         <ludo@gnu.org>.
45951
45952 2008-11-02  Bruno Haible  <bruno@clisp.org>
45953
45954         Mark 'strpbrk' obsolete.
45955         * modules/strpbrk (Status, Notice): New sections.
45956         * modules/strtok_r (Depends-on): Add strpbrk.
45957
45958 2008-11-02  Bruno Haible  <bruno@clisp.org>
45959
45960         Mark 'strdup' obsolete.
45961         * modules/strdup (Status, Notice): New sections.
45962         * modules/findprog (Depends-on): Add strdup.
45963         * modules/getaddrinfo (Depends-on): Likewise.
45964         * modules/localename (Depends-on): Likewise.
45965         * modules/relocatable-lib (Depends-on): Likewise.
45966         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
45967         * modules/relocatable-prog (Depends-on): Likewise.
45968         * modules/trim (Depends-on): Likewise.
45969         * modules/unictype/gen-ctype (Depends-on): Likewise.
45970         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45971
45972 2008-11-02  Bruno Haible  <bruno@clisp.org>
45973
45974         Mark 'strcspn' obsolete.
45975         * modules/strcspn (Status, Notice): New sections.
45976
45977 2008-11-02  Bruno Haible  <bruno@clisp.org>
45978
45979         Mark 'rmdir' obsolete.
45980         * modules/rmdir (Status, Notice): New sections.
45981         * modules/clean-temp (Depends-on): Add rmdir.
45982         * modules/openat (Depends-on): Likewise.
45983
45984 2008-11-02  Bruno Haible  <bruno@clisp.org>
45985
45986         Mark 'raise' obsolete.
45987         * modules/raise (Status, Notice): New sections.
45988         (Include): Specify <signal.h>.
45989         * modules/stdio (Depends-on): Add raise.
45990         * modules/write (Depends-on): Likewise.
45991
45992 2008-11-02  Bruno Haible  <bruno@clisp.org>
45993
45994         Mark 'memset' obsolete.
45995         * modules/memset (Status, Notice): New sections.
45996
45997 2008-11-02  Bruno Haible  <bruno@clisp.org>
45998
45999         Mark 'memmove' obsolete.
46000         * modules/memmove (Status, Notice): New sections.
46001         * modules/argp (Depends-on): Add memmove.
46002         * modules/argz (Depends-on): Likewise.
46003         * modules/canonicalize (Depends-on): Likewise.
46004         * modules/canonicalize-lgpl (Depends-on): Likewise.
46005         * modules/fts (Depends-on): Likewise.
46006         * modules/getcwd (Depends-on): Likewise.
46007         * modules/human (Depends-on): Likewise.
46008         * modules/regex (Depends-on): Likewise.
46009         * modules/striconveh (Depends-on): Likewise.
46010         * modules/trim (Depends-on): Likewise.
46011         * modules/unistr/u8-move (Depends-on): Likewise.
46012         * modules/unistr/u16-move (Depends-on): Likewise.
46013         * modules/unistr/u32-move (Depends-on): Likewise.
46014
46015 2008-11-02  Bruno Haible  <bruno@clisp.org>
46016
46017         Mark 'memcpy' obsolete.
46018         * modules/memcpy (Status, Notice): New sections.
46019
46020 2008-11-02  Bruno Haible  <bruno@clisp.org>
46021
46022         Mark 'memcmp' obsolete.
46023         * modules/memcmp (Status, Notice): New sections.
46024         * modules/argmatch (Depends-on): Add memchr.
46025         * modules/backupfile (Depends-on): Likewise.
46026         * modules/c-strcasestr (Depends-on): Likewise.
46027         * modules/crypto/des (Depends-on): Likewise.
46028         * modules/csharpcomp (Depends-on): Likewise.
46029         * modules/fnmatch (Depends-on): Likewise.
46030         * modules/git-merge-changelog (Depends-on): Likewise.
46031         * modules/isnand (Depends-on): Likewise.
46032         * modules/isnand-nolibm (Depends-on): Likewise.
46033         * modules/isnanf (Depends-on): Likewise.
46034         * modules/isnanf-nolibm (Depends-on): Likewise.
46035         * modules/isnanl (Depends-on): Likewise.
46036         * modules/isnanl-nolibm (Depends-on): Likewise.
46037         * modules/mbchar (Depends-on): Likewise.
46038         * modules/memcoll (Depends-on): Likewise.
46039         * modules/quotearg (Depends-on): Likewise.
46040         * modules/regex (Depends-on): Likewise.
46041         * modules/relocatable-prog (Depends-on): Likewise.
46042         * modules/same (Depends-on): Likewise.
46043         * modules/signbit (Depends-on): Likewise.
46044         * modules/strcasestr-simple (Depends-on): Likewise.
46045         * modules/unictype/gen-ctype (Depends-on): Likewise.
46046         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46047         * modules/uniname/uniname (Depends-on): Likewise.
46048         * modules/unistr/u8-cmp (Depends-on): Likewise.
46049
46050 2008-11-02  Bruno Haible  <bruno@clisp.org>
46051
46052         Mark 'memchr' obsolete.
46053         * modules/memchr (Status, Notice): New sections.
46054         * modules/argp (Depends-on): Add memchr.
46055         * modules/base64 (Depends-on): Likewise.
46056         * modules/c-strcasestr (Depends-on): Likewise.
46057         * modules/chdir-long (Depends-on): Likewise.
46058         * modules/fnmatch (Depends-on): Likewise.
46059         * modules/getsubopt (Depends-on): Likewise.
46060         * modules/git-merge-changelog (Depends-on): Likewise.
46061         * modules/glob (Depends-on): Likewise.
46062         * modules/strcasestr-simple (Depends-on): Likewise.
46063         * modules/strnlen (Depends-on): Likewise.
46064
46065 2008-11-02  Bruno Haible  <bruno@clisp.org>
46066
46067         Mark 'atexit' obsolete.
46068         * modules/atexit (Status, Notice): New sections.
46069         * modules/chdir-long (Depends-on): Add atexit.
46070         * modules/wait-process (Depends-on): Likewise.
46071
46072 2008-11-02  Bruno Haible  <bruno@clisp.org>
46073
46074         * gnulib-tool: New option --with-obsolete.
46075         (func_usage): Document it.
46076         (func_modules_transitive_closure): Drop obsolete dependencies if
46077         incobsolete is not true.
46078         (func_import): Read and save the incobsolete variable to the cache.
46079
46080 2008-11-02  Bruno Haible  <bruno@clisp.org>
46081
46082         * modules/TEMPLATE-EXTENDED: New field 'Status'.
46083         * gnulib-tool: New option --extract-status.
46084         (func_usage): Document it.
46085         (sed_extract_prog): Recognize it.
46086         (func_get_status): New function.
46087
46088 2008-10-30  Simon Josefsson  <simon@josefsson.org>
46089
46090         * modules/sockets (License): Change from LGPL to LGPLv2+.
46091
46092 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46093
46094         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
46095
46096 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46097
46098         * MODULES.html.sh (Support for systems lacking POSIX:2001):
46099         Mention times and sys_times.
46100         * modules/sys_times, modules/sys_times-tests: New modules.
46101         * modules/times, modules/times-tests: Likewise
46102         * m4/sys_times_h.m4: New file.
46103         * lib/sys_times.in.h: Likewise
46104         * lib/times.c: Likewise.
46105         * tests/test-sys_times.c: Likewise.
46106         * tests/test-times.c: Likewise.
46107         * doc/posix-headers/sys_times.texi: Update.
46108         * doc/posix-functions/times.texi: Update.
46109
46110 2008-10-28  Jim Meyering  <meyering@redhat.com>
46111
46112         * modules/tempname (Depends-on): Add lstat.
46113
46114         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
46115
46116 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46117
46118         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
46119         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
46120         using idiom used elsewhere in gnulib.
46121
46122 2008-10-27  Jim Meyering  <meyering@redhat.com>
46123
46124         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
46125
46126 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46127
46128         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
46129         TESTS_ENVIRONMENT, for shell scripts that needs to call built
46130         programs.
46131         * tests/test-argp-2.sh: Use $EXEEXT when needed.
46132
46133 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46134
46135         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
46136
46137 2008-10-27  Bruno Haible  <bruno@clisp.org>
46138
46139         * tests/test-lstat.c: Include <stdio.h>.
46140
46141 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46142
46143         * modules/lstat-tests: New module.
46144         * tests/test-lstat.c: New file.
46145
46146 2008-10-26  Jim Meyering  <meyering@redhat.com>
46147
46148         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
46149
46150 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46151             Bruno Haible  <bruno@clisp.org>
46152
46153         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
46154         * modules/configmake (Include): Add a note that the include must come
46155         after all system headers.
46156         * lib/javaversion.c: Include configmake.h after all other includes.
46157
46158 2008-10-26  Bruno Haible  <bruno@clisp.org>
46159
46160         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
46161         HAVE_STRUCT_RANDOM_DATA to 1.
46162         (gl_STDLIB_H): Simplify.
46163
46164 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46165
46166         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
46167         substitute HAVE_STRUCT_RANDOM_DATA.
46168         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
46169         random_data.
46170         * modules/stdlib (Makefile.am): Substitute
46171         HAVE_STRUCT_RANDOM_DATA.
46172
46173 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46174
46175         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
46176         * doc/gnulib-intro.texi (Copyright): Likewise.
46177
46178 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46179
46180         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
46181         findings.
46182
46183 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
46184             Bruno Haible  <bruno@clisp.org>
46185
46186         * lib/unistd.in.h: Include <winsock2.h>.
46187         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
46188         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
46189         Provide dummy declarations.
46190         (gethostname): Override.
46191         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
46192         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
46193         gl_PREREQ_SYS_H_WINSOCK2.
46194         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
46195         * doc/posix-functions/gethostname.texi: More details.
46196
46197 2008-10-25  Bruno Haible  <bruno@clisp.org>
46198
46199         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46200         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
46201         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
46202
46203         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
46204         here ...
46205         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
46206         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
46207         gl_UNISTD_H_DEFAULTS.
46208
46209 2008-10-25  Eric Blake  <ebb9@byu.net>
46210
46211         signbit: avoid spurious compiler failure
46212         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
46213         declarations inside function.
46214
46215 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46216             Bruno Haible  <bruno@clisp.org>
46217
46218         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
46219         * modules/random_r (Depends-on): Add stdint.
46220
46221 2008-10-24  Bruno Haible  <bruno@clisp.org>
46222
46223         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
46224         Eggert.
46225         * modules/strerror (License): Likewise.
46226
46227 2008-10-24  Jim Meyering  <meyering@redhat.com>
46228
46229         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
46230         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
46231
46232 2008-10-24  Eric Blake  <ebb9@byu.net>
46233
46234         getgroups: fix compilation when getgroups is available
46235         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
46236         but with <config.h> override of getgroups disabled.
46237
46238 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46239
46240         * doc/gnulib.texi (Header files): Add note about C++ problems.
46241         Explained by Bruno Haible <bruno@clisp.org>.
46242
46243 2008-10-23  Bruno Haible  <bruno@clisp.org>
46244
46245         Define a dummy SA_NODEFER macro on Interix.
46246         * lib/signal.in.h (SA_NODEFER): Define fallback.
46247         Reported by Aleksey Cheusov <cheusov@tut.by> via
46248         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
46249
46250 2008-10-23  Bruno Haible  <bruno@clisp.org>
46251
46252         * modules/freadahead (License): Change to LGPLv2+.
46253         Suggested by Simon Josefsson.
46254
46255 2008-10-23  Jim Meyering  <meyering@redhat.com>
46256
46257         random_r: new module
46258         * modules/random_r: New file.
46259         * m4/random_r.m4: New file.
46260         * lib/random_r.c: New file, from glibc.
46261         * modules/random_r-tests: New file.
46262         * tests/test-random_r.c: New file.
46263         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
46264          Declare.
46265         (RAND_MAX): Define.
46266         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
46267         * modules/stdlib: Substitute them, too.
46268         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
46269         * doc/glibc-functions/initstate_r.texi: Mention the new module.
46270         * doc/glibc-functions/random_r.texi: Likewise.
46271         * doc/glibc-functions/setstate_r.texi: Likewise.
46272         * doc/glibc-functions/srandom_r.texi: Likewise.
46273         * config/srclist.txt: Mention it.
46274
46275 2008-10-23  David Lutterkort  <lutter@redhat.com>
46276
46277         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
46278         link requirement
46279
46280 2008-10-23  Jim Meyering  <meyering@redhat.com>
46281
46282         selinux-h: mark parameters of stub functions as intentionally unused
46283         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
46284         * lib/se-context.in.h: Likewise.
46285
46286 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46287
46288         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
46289
46290 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46291
46292         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
46293
46294 2008-10-22  Eric Blake  <ebb9@byu.net>
46295
46296         glthread/thread: avoid compiler warning
46297         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
46298         Add unreachable abort to silence compiler.
46299
46300 2008-10-22  Eric Blake  <ebb9@byu.net>
46301
46302         netdb: also supply struct addrinfo for cygwin 1.5.x
46303         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
46304         older cygwin.
46305         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
46306         cygwin.
46307         * doc/posix-headers/netdb.texi (netdb.h): Document this.
46308
46309 2008-10-22  Bruno Haible  <bruno@clisp.org>
46310
46311         * users.txt: Update entry about pspp.
46312
46313 2008-10-21  Bruno Haible  <bruno@clisp.org>
46314
46315         Simplification.
46316         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
46317         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
46318
46319         Simplification.
46320         * lib/ioctl.c (ioctl): Don't undefine.
46321         * lib/socket.c (socket): Don't undefine.
46322
46323         Remove unused module indicator macros.
46324         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
46325         GNULIB_$1 as a C macro.
46326
46327         * doc/posix-functions/close.texi: Undo last change.
46328         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
46329         Windows platforms.
46330
46331 2008-10-21  Bruno Haible  <bruno@clisp.org>
46332
46333         Add gethostname() declaration to <unistd.h>.
46334         * lib/unistd.in.h (gethostname): New declaration.
46335         * lib/gethostname.c: Include <unistd.h>.
46336         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
46337         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
46338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
46339         and HAVE_GETHOSTNAME.
46340         * modules/gethostname (Depends-on): Add unistd.
46341         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46342         (Include): Specify <unistd.h>.
46343         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
46344         HAVE_GETHOSTNAME.
46345         * tests/test-gethostname.c: Include <unistd.h> first.
46346
46347 2008-10-21  Bruno Haible  <bruno@clisp.org>
46348
46349         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
46350         * modules/select-tests (Depends-on): Likewise.
46351         Reported by Simon Josefsson.
46352
46353 2008-10-21  Simon Josefsson  <simon@josefsson.org>
46354
46355         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
46356         * lib/accept.c: New file, based on winsock.c.
46357         * lib/bind.c: New file, based on winsock.c.
46358         * lib/connect.c: New file, based on winsock.c.
46359         * lib/getpeername.c: New file, based on winsock.c.
46360         * lib/getsockname.c: New file, based on winsock.c.
46361         * lib/getsockopt.c: New file, based on winsock.c.
46362         * lib/ioctl.c: New file, based on winsock.c.
46363         * lib/listen.c: New file, based on winsock.c.
46364         * lib/recv.c: New file, based on winsock.c.
46365         * lib/recvfrom.c: New file, based on winsock.c.
46366         * lib/send.c: New file, based on winsock.c.
46367         * lib/sendto.c: New file, based on winsock.c.
46368         * lib/setsockopt.c: New file, based on winsock.c.
46369         * lib/shutdown.c: New file, based on winsock.c.
46370         * lib/socket.c: New file, based on winsock.c.
46371         * lib/w32sock.h: New file, based on winsock.c.
46372         * lib/winsock.c: Remove file.
46373         * modules/accept: Likewise.
46374         * modules/bind: Likewise.
46375         * modules/connect: Likewise.
46376         * modules/getpeername: Likewise.
46377         * modules/getsockname: Likewise.
46378         * modules/getsockopt: Likewise.
46379         * modules/ioctl: Likewise.
46380         * modules/listen: Likewise.
46381         * modules/recv: Likewise.
46382         * modules/recvfrom: Likewise.
46383         * modules/send: Likewise.
46384         * modules/sendto: Likewise.
46385         * modules/setsockopt: Likewise.
46386         * modules/shutdown: Likewise.
46387         * modules/socket: Use socket.c instead of winsock.c.
46388         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
46389         * doc/posix-functions/accept.texi: Doc fix.
46390         * doc/posix-functions/bind.texi: Doc fix.
46391         * doc/posix-functions/close.texi: Doc fix.
46392         * doc/posix-functions/connect.texi: Doc fix.
46393         * doc/posix-functions/getpeername.texi: Doc fix.
46394         * doc/posix-functions/getsockname.texi: Doc fix.
46395         * doc/posix-functions/getsockopt.texi: Doc fix.
46396         * doc/posix-functions/ioctl.texi: Doc fix.
46397         * doc/posix-functions/listen.texi: Doc fix.
46398         * doc/posix-functions/recv.texi: Doc fix.
46399         * doc/posix-functions/recvfrom.texi: Doc fix.
46400         * doc/posix-functions/send.texi: Doc fix.
46401         * doc/posix-functions/sendto.texi: Doc fix.
46402         * doc/posix-functions/setsockopt.texi: Doc fix.
46403         * doc/posix-functions/shutdown.texi: Doc fix.
46404         * doc/posix-functions/socket.texi: Doc fix.
46405
46406 2008-10-20  Bruno Haible  <bruno@clisp.org>
46407
46408         Take into account the role of SIGABRT_COMPAT on Windows 2008.
46409         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
46410         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
46411         as an alias for SIGABRT.
46412         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
46413         (sigaction): Map it to SIGABRT.
46414         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
46415
46416 2008-10-20  Bruno Haible  <bruno@clisp.org>
46417
46418         * lib/fts.c: Don't include lstat.h.
46419         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
46420
46421         Move the lstat() declaration to <sys/stat.h>.
46422         * lib/lstat.h: Remove file.
46423         * lib/sys_stat.in.h: Add special invocation convention.
46424         (lstat): New declaration.
46425         * lib/lstat.c (orig_lstat): New function.
46426         (rpl_lstat): Use orig_lstat instead of lstat.
46427         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
46428         AC_C_INLINE. Set REPLACE_LSTAT.
46429         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
46430         and REPLACE_LSTAT.
46431         * modules/lstat (Files): Remove lib/lstat.h.
46432         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46433         (Include): Specify <sys/stat.h> instead of lstat.h.
46434         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
46435         REPLACE_LSTAT.
46436         * NEWS: Mention the change.
46437
46438 2008-10-20  Bruno Haible  <bruno@clisp.org>
46439
46440         * modules/posix_spawn-tests: New file.
46441         * tests/test-posix_spawn3.c: New file.
46442
46443 2008-10-20  Bruno Haible  <bruno@clisp.org>
46444
46445         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
46446         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46447         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
46448         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46449         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
46450
46451 2008-10-20  Bruno Haible  <bruno@clisp.org>
46452
46453         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
46454         of posix_spawn on AIX 5.3.
46455
46456 2008-10-20  Bruno Haible  <bruno@clisp.org>
46457
46458         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
46459
46460 2008-10-20  Bruno Haible  <bruno@clisp.org>
46461
46462         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
46463         of AC_LANG_PROGRAM.
46464
46465 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46466
46467         * lib/netdb.in.h: Don't define GNU specific constants until they
46468         are supported or needed.  Reported by Bruno Haible
46469         <bruno@clisp.org>.
46470
46471 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46472
46473         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
46474
46475 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46476
46477         * lib/getaddrinfo.h: Remove file.
46478         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
46479         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
46480         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
46481         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
46482         * modules/netdb: Substitute GNULIB_GETADDRINFO.
46483         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
46484         * tests/test-getaddrinfo.c: Likewise.
46485         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
46486         * NEWS: Mention change.
46487
46488 2008-10-19  Bruno Haible  <bruno@clisp.org>
46489
46490         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
46491
46492 2008-10-19  Bruno Haible  <bruno@clisp.org>
46493
46494         * lib/wait-process.c: Include simply <sys/wait.h>.
46495         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
46496         WIFSTOPPED): Remove fallback definitions.
46497         * modules/wait-process (Depends-on): Add sys_wait.
46498
46499         New module 'sys_wait'.
46500         * modules/sys_wait: New file.
46501         * lib/sys_wait.in.h: New file, partially copied from
46502         lib/wait-process.c.
46503         * m4/sys_wait_h.m4: New file.
46504         * doc/posix-headers/sys_wait.texi: Mention the new module.
46505
46506 2008-10-19  Bruno Haible  <bruno@clisp.org>
46507
46508         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
46509
46510 2008-10-19  Bruno Haible  <bruno@clisp.org>
46511
46512         Assume that waitpid() fills an 'int' status, not a 'union wait'.
46513         * lib/wait-process.c (WAIT_T): Remove type.
46514         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
46515         (wait_subprocess): Update.
46516
46517 2008-10-19  Bruno Haible  <bruno@clisp.org>
46518
46519         New module 'atoll'.
46520         * modules/atoll: New file.
46521         * lib/stdlib.in.h (atoll): New declaration.
46522         * lib/atoll.c: New file, from glibc with modifications.
46523         * m4/atoll.m4: New file.
46524         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
46525         HAVE_ATOLL.
46526         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
46527         * doc/posix-functions/atoll.texi: Mention the new module.
46528
46529 2008-10-19  Bruno Haible  <bruno@clisp.org>
46530
46531         Add strtoull() declaration to <stdlib.h>.
46532         * lib/stdlib.in.h (strtoull): New declaration.
46533         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46534         Set HAVE_STRTOULL.
46535         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
46536         HAVE_STRTOULL.
46537         * modules/strtoull (Depends-on): Add stdlib.
46538         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46539         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
46540         HAVE_STRTOULL.
46541
46542 2008-10-19  Bruno Haible  <bruno@clisp.org>
46543
46544         Add strtoll() declaration to <stdlib.h>.
46545         * lib/stdlib.in.h (strtoll): New declaration.
46546         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46547         Set HAVE_STRTOLL.
46548         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
46549         HAVE_STRTOLL.
46550         * modules/strtoll (Depends-on): Add stdlib.
46551         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46552         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
46553
46554 2008-10-19  Bruno Haible  <bruno@clisp.org>
46555
46556         * modules/bcopy (Depends-on): Add strings.
46557         (Include): Specify <strings.h>.
46558
46559 2008-10-19  Bruno Haible  <bruno@clisp.org>
46560
46561         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
46562
46563 2008-10-19  Bruno Haible  <bruno@clisp.org>
46564
46565         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
46566         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
46567         mingw.
46568
46569 2008-10-19  Bruno Haible  <bruno@clisp.org>
46570
46571         * lib/atanl.c: Don't include isnanl.h.
46572         * lib/cosl.c: Likewise.
46573         * lib/ldexpl.c: Likewise.
46574         * lib/logl.c: Likewise.
46575         * lib/sinl.c: Likewise.
46576         * lib/sqrtl.c: Likewise.
46577         * lib/tanl.c: Likewise.
46578
46579         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
46580         * lib/isnanf.h: Remove file.
46581         * lib/isnand.h: Remove file.
46582         * lib/isnanl.h: Remove file.
46583         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
46584         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
46585         macros.
46586         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
46587         HAVE_ISNANF, don't define it as a C macro.
46588         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
46589         HAVE_ISNAND, don't define it as a C macro.
46590         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
46591         HAVE_ISNANL, don't define it as a C macro.
46592         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
46593         HAVE_ISNAN[FDL].
46594         * modules/isnanf (Files): Remove lib/isnanf.h.
46595         (Depends-on): Add math.
46596         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46597         (Include): Specify <math.h> instead of isnanf.h.
46598         * modules/isnand (Files): Remove lib/isnand.h.
46599         (Depends-on): Add math.
46600         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46601         (Include): Specify <math.h> instead of isnand.h.
46602         * modules/isnanl (Files): Remove lib/isnanl.h.
46603         (Depends-on): Add math.
46604         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46605         (Include): Specify <math.h> instead of isnanl.h.
46606         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
46607         HAVE_ISNAN[FDL].
46608         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
46609         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
46610         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
46611         * NEWS: Mention the change.
46612
46613 2008-10-18  Bruno Haible  <bruno@clisp.org>
46614
46615         Add getusershell(), setusershell(), endusershell() declarations to
46616         <unistd.h>.
46617         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
46618         declarations.
46619         * lib/getusershell.c: Include unistd.h.
46620         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
46621         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46622         HAVE_GETUSERSHELL.
46623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
46624         and HAVE_GETUSERSHELL.
46625         * modules/getusershell (Depends-on): Add unistd, extensions.
46626         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46627         (Include): Specify <unistd.h>.
46628         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
46629         HAVE_GETUSERSHELL.
46630
46631 2008-10-18  Bruno Haible  <bruno@clisp.org>
46632
46633         Add a getloadavg() declaration to <stdlib.h>.
46634         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
46635         getloadavg declaration.
46636         (getloadavg): New declaration.
46637         * lib/getloadavg.c: Include <stdlib.h> first.
46638         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
46639         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
46640         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
46641         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
46642         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46643         * modules/getloadavg (Depends-on): Add stdlib, extensions.
46644         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46645         (Include): Specify <stdlib.h>.
46646         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
46647         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46648
46649 2008-10-18  Bruno Haible  <bruno@clisp.org>
46650
46651         * lib/dirchownmod.c: Don't include lchmod.h.
46652
46653         Move the lchmod() declaration to <sys/stat.h>.
46654         * lib/lchmod.h: Remove file.
46655         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
46656         (lchmod): New declaration, moved here from lib/lchown.h.
46657         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
46658         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
46659         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
46660         and HAVE_LCHMOD.
46661         * modules/lchmod (Files): Remove lib/lchmod.h.
46662         (Depends-on): Add sys_stat, extensions.
46663         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46664         (Include): Specify <sys/stat.h> instead of lchmod.h.
46665         * modules/sys_stat (Depends-on): Add link-warning.
46666         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
46667         definition of GL_LINK_WARNING.
46668         * NEWS: Mention the change.
46669
46670 2008-10-18  Bruno Haible  <bruno@clisp.org>
46671
46672         * lib/fchdir.c: Don't include dirfd.h.
46673         * lib/fts.c: Likewise.
46674         * lib/getcwd.c: Likewise.
46675         * lib/glob.c: Likewise.
46676
46677         Move the dirfd() declaration to <dirent.h>.
46678         * lib/dirfd.h: Remove file.
46679         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
46680         (dirfd): New declaration.
46681         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
46682         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
46683         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
46684         HAVE_DECL_DIRFD.
46685         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
46686         HAVE_DECL_DIRFD.
46687         * modules/dirfd (Files): Remove lib/dirfd.h.
46688         (Depends-on): Add dirent, extensions.
46689         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
46690         (Include): Specify <dirent.h> instead of dirfd.h.
46691         * modules/dirent (Depends-on): Add link-warning.
46692         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
46693         definition of GL_LINK_WARNING.
46694         * NEWS: Mention the change.
46695
46696 2008-10-18  Bruno Haible  <bruno@clisp.org>
46697
46698         Move the euidaccess() declaration to <unistd.h>.
46699         * lib/euidaccess.h: Remove file.
46700         * lib/unistd.in.h (euidaccess): New declaration.
46701         * lib/euidaccess.c: Don't include euidaccess.h.
46702         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
46703         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
46704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
46705         and HAVE_EUIDACCESS.
46706         * modules/euidaccess (Files): Remove lib/euidaccess.h.
46707         (Depends-on): Add unistd.
46708         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46709         (Include): Specify <unistd.h> instead of euidaccess.h.
46710         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
46711         HAVE_EUIDACCESS.
46712         * NEWS: Mention the change.
46713
46714 2008-10-18  Bruno Haible  <bruno@clisp.org>
46715
46716         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
46717
46718         Move the getdomainname() declaration to <unistd.h>.
46719         * lib/getdomainname.h: Remove file.
46720         * lib/unistd.in.h (getdomainname): New declaration.
46721         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
46722         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
46723         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46724         HAVE_GETDOMAINNAME.
46725         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46726         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
46727         * modules/getdomainname (Files): Remove lib/getdomainname.h.
46728         (Depends-on): Add unistd, extensions.
46729         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46730         (Includes): Specify <unistd.h> instead of getdomainname.h.
46731         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
46732         HAVE_GETDOMAINNAME.
46733         * NEWS: Mention the change.
46734
46735 2008-10-18  Bruno Haible  <bruno@clisp.org>
46736
46737         * modules/dirent: New file.
46738         * m4/dirent_h.m4: New file.
46739         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
46740         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
46741         * modules/fchdir (Files): Remove lib/dirent.in.h.
46742         (Depends-on): Add dirent.
46743         (Makefile.am): Move rules to modules/dirent.
46744         * doc/posix-headers/dirent.texi: Mention the new module.
46745
46746 2008-10-18  Bruno Haible  <bruno@clisp.org>
46747
46748         Avoid -Wunused-parameter warnings in public gnulib header files.
46749         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
46750         macro.
46751         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
46752
46753 2008-10-18  Bruno Haible  <bruno@clisp.org>
46754
46755         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
46756         * doc/glibc-functions/error.texi: Mention the module 'error'.
46757         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
46758         * doc/glibc-functions/getdomainname.texi: Mention the module
46759         'getdomainname'.
46760         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
46761         * doc/glibc-functions/getpagesize.texi: Mention the module
46762         'getpagesize'.
46763         * doc/glibc-functions/getusershell.texi: Mention the module
46764         'getusershell'.
46765         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
46766         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
46767         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
46768         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
46769         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
46770         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
46771         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
46772         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
46773         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
46774         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
46775         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
46776         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
46777         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
46778         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
46779
46780 2008-10-17  Bruno Haible  <bruno@clisp.org>
46781
46782         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
46783         HP-UX and IRIX, use -0.0L.
46784         * tests/test-ceill.c (minus_zero): Likewise.
46785         * tests/test-floorl.c (minus_zero): Likewise.
46786         * tests/test-frexpl.c (minus_zero): Likewise.
46787         * tests/test-isnan.c (minus_zerol): Likewise.
46788         * tests/test-isnanl.h (minus_zero): Likewise.
46789         * tests/test-ldexpl.c (minus_zero): Likewise.
46790         * tests/test-roundl.c (minus_zero): Likewise.
46791         * tests/test-signbit.c (minus_zerol): Likewise.
46792         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46793         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46794         * tests/test-truncl.c (minus_zero): Likewise.
46795         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46796         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46797         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
46798         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46799
46800 2008-10-17  Bruno Haible  <bruno@clisp.org>
46801
46802         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
46803         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
46804         that it gets activated only for gcc >= 3.0.
46805         * lib/dirent.in.h: Likewise.
46806         * lib/errno.in.h: Likewise.
46807         * lib/fcntl.in.h: Likewise.
46808         * lib/float.in.h: Likewise.
46809         * lib/iconv.in.h: Likewise.
46810         * lib/inttypes.in.h: Likewise.
46811         * lib/locale.in.h: Likewise.
46812         * lib/math.in.h: Likewise.
46813         * lib/netdb.in.h: Likewise.
46814         * lib/netinet_in.in.h: Likewise.
46815         * lib/search.in.h: Likewise.
46816         * lib/signal.in.h: Likewise.
46817         * lib/spawn.in.h: Likewise.
46818         * lib/stdarg.in.h: Likewise.
46819         * lib/stdint.in.h: Likewise.
46820         * lib/stdio.in.h: Likewise.
46821         * lib/stdlib.in.h: Likewise.
46822         * lib/string.in.h: Likewise.
46823         * lib/strings.in.h: Likewise.
46824         * lib/sys_file.in.h: Likewise.
46825         * lib/sys_ioctl.in.h: Likewise.
46826         * lib/sys_select.in.h: Likewise.
46827         * lib/sys_socket.in.h: Likewise.
46828         * lib/sys_stat.in.h: Likewise.
46829         * lib/sys_time.in.h: Likewise.
46830         * lib/sysexits.in.h: Likewise.
46831         * lib/time.in.h: Likewise.
46832         * lib/unistd.in.h: Likewise.
46833         * lib/wchar.in.h: Likewise.
46834         * lib/wctype.in.h: Likewise.
46835         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46836
46837 2008-10-17  Jim Meyering  <meyering@redhat.com>
46838
46839         ignore-value: don't depend on inline module
46840         * modules/ignore-value (Depends-on): Remove 'inline'.
46841         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
46842         Suggestion from Bruno Haible.
46843
46844 2008-10-17  Bruno Haible  <bruno@clisp.org>
46845
46846         New implementation of condition variables for Win32.
46847         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
46848         (gl_linked_waitqueue_t): New type.
46849         (gl_cond_t): Use it.
46850         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
46851         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
46852         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
46853         (glthread_cond_init_func, glthread_cond_wait_func,
46854         glthread_cond_timedwait_func, glthread_cond_signal_func,
46855         glthread_cond_broadcast_func, glthread_cond_destroy_func):
46856         Reimplemented on the basis of gl_linked_waitqueue_t.
46857         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
46858         gl_waitqueue_t.
46859         (gl_rwlock_t): Update.
46860         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
46861
46862 2008-10-17  Simon Josefsson  <simon@josefsson.org>
46863
46864         * modules/recvfrom (Depends-on): Add dependency on getpeername.
46865         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46866
46867 2008-10-17  Jim Meyering  <meyering@redhat.com>
46868
46869         ignore-value: new module
46870         * modules/ignore-value: New file.
46871         * lib/ignore-value.h: New file.
46872         * MODULES.html.sh (Compiler warning management): New section,
46873         just for this module.  More to come.
46874
46875 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46876
46877         open-safer.c: avoid 'signed and unsigned in conditional...' warning
46878         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
46879         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
46880
46881 2008-10-16  Jim Meyering  <meyering@redhat.com>
46882
46883         openat-die.c: avoid 'no previous prototype' warning
46884         * lib/openat-die.c: Include "openat.h".
46885         Reported by Reuben Thomas <rrt@sc3d.org>.
46886
46887 2008-10-16  Simon Josefsson  <simon@josefsson.org>
46888
46889         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
46890         * lib/netdb.in.h: Fix typo.
46891         Reported by Bruno Haible  <bruno@clisp.org>
46892
46893         * lib/netdb.in.h: Include sys/socket.h for platforms without
46894         netdb.h, to get structures like hostent on MinGW.
46895         * modules/netdb (Depends-on): Add sys_socket.
46896
46897 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46898
46899         * modules/netdb, modules/netdb-tests: New file.
46900         * m4/netdb_h.m4: New file.
46901         * lib/netdb.in.h: Add, currently just an empty file pending
46902         definitions.
46903         * tests/test-netdb.c: New file.
46904         * doc/posix-headers/netdb.texi: Mention that we replace it if
46905         needed.
46906         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46907         netdb.
46908
46909 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46910
46911         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
46912         with code.
46913
46914 2008-10-13  Bruno Haible  <bruno@clisp.org>
46915
46916         * lib/glthread/cond.c (glthread_cond_wait_func,
46917         glthread_cond_timedwait_func): Add a comment.
46918
46919 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46920
46921         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
46922         * tests/test-select.c: Likewise,
46923
46924 2008-10-13  Bruno Haible  <bruno@clisp.org>
46925
46926         * lib/glthread/cond.c (glthread_cond_wait_func,
46927         glthread_cond_timedwait_func): Fix variable name.
46928         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46929
46930 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
46931
46932         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
46933         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
46934         struct sockaddr.sa_len.
46935         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
46936
46937 2008-10-13  Simon Josefsson  <simon@josefsson.org>
46938
46939         * build-aux/pmccabe2html: Add css and css_url parameters.
46940
46941 2008-10-12  Bruno Haible  <bruno@clisp.org>
46942
46943         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
46944         calling aclx_get.
46945         Reported by Rainer Tammer <tammer@tammer.net>.
46946
46947 2008-10-12  Bruno Haible  <bruno@clisp.org>
46948
46949         Use msvcrt aware primitives for creation/termination of Win32 threads.
46950         * lib/glthread/thread.c: Include <process.h>.
46951         (glthread_create_func): Use _beginthreadex instead of CreateThread.
46952         (wrapper_func): Update signature.
46953         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
46954
46955 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46956             Bruno Haible  <bruno@clisp.org>
46957
46958         Provide a Win32 implementation of the 'cond' module.
46959         * lib/glthread/cond.h [USE_WIN32]: New implementation.
46960         * lib/glthread/cond.c (glthread_cond_init_func,
46961         glthread_cond_wait_func, glthread_cond_timedwait_func,
46962         glthread_cond_signal_func, glthread_cond_broadcast_func,
46963         glthread_cond_destroy_func) [USE_WIN32]: New functions.
46964         * modules/cond (Dependencies): Add gettimeofday.
46965
46966 2008-10-11  Bruno Haible  <bruno@clisp.org>
46967
46968         Make sleep work on older versions of mingw.
46969         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
46970         only whether it exists.
46971         * doc/posix-functions/sleep.texi: Mention the problem with older
46972         versions of mingw.
46973
46974 2008-10-11  Bruno Haible  <bruno@clisp.org>
46975
46976         New module 'shutdown'.
46977         * modules/shutdown: New file.
46978         * lib/sys_socket.in.h (shutdown): New declaration.
46979         * lib/winsock.c (shutdown): New function.
46980         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46981         GNULIB_SHUTDOWN.
46982         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
46983         * doc/posix-functions/shutdown.texi: Document the new module.
46984
46985 2008-10-11  Jim Meyering  <meyering@redhat.com>
46986
46987         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
46988
46989 2008-10-11  Bruno Haible  <bruno@clisp.org>
46990
46991         New module 'fclose'.
46992         * modules/fclose: New file.
46993         * lib/stdio.in.h (fclose): New declaration.
46994         * lib/fclose.c: New file.
46995         * m4/fclose.m4: New file.
46996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
46997         REPLACE_FCLOSE.
46998         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
46999         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
47000         REPLACE_FCLOSE.
47001         * modules/close (Depends-on): fclose.
47002         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
47003
47004 2008-10-11  Bruno Haible  <bruno@clisp.org>
47005
47006         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
47007         set errno and don't call _close.
47008
47009 2008-10-10  Bruno Haible  <bruno@clisp.org>
47010
47011         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
47012         ACL, not afterwards. Fixes test failure on Cygwin.
47013
47014 2008-10-09  Ben Pfaff  <blp@gnu.org>
47015
47016         * build-aux/announce-gen: Fix gnulib version related part of usage
47017         message.  Die with a useful error message if no tarballs are
47018         found.
47019
47020 2008-10-10  Jim Meyering  <meyering@redhat.com>
47021
47022         bootstrap: use git's --depth=N option only if it's supported
47023         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
47024         recognize the --depth option.  Reported by Pádraig Brady.
47025
47026 2008-10-09  Bruno Haible  <bruno@clisp.org>
47027
47028         New module 'ioctl'.
47029         * modules/ioctl: New file.
47030         * lib/sys_socket.in.h (ioctl): Remove declaration.
47031         * lib/winsock.c: Include <sys/ioctl.h>.
47032         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
47033         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47034         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
47035         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
47036         * doc/posix-functions/ioctl.texi: Mention the new module.
47037
47038 2008-10-09  Bruno Haible  <bruno@clisp.org>
47039
47040         New module 'sys_ioctl'.
47041         * lib/sys_ioctl.in.h: New file.
47042         * m4/sys_ioctl_h.m4: New file.
47043         * modules/sys_ioctl: New file.
47044         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
47045
47046 2008-10-09  Bruno Haible  <bruno@clisp.org>
47047
47048         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
47049         * lib/winsock.c: Include <stdarg.h>.
47050         (rpl_ioctl): Change to second argument 'int' and then varargs.
47051
47052 2008-10-09  Bruno Haible  <bruno@clisp.org>
47053
47054         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
47055         when the sys_socket module is present and the system has <winsock2.h>.
47056
47057 2008-10-09  Bruno Haible  <bruno@clisp.org>
47058
47059         * doc/posix-functions/close.texi: Mention module 'close' instead of
47060         module 'sys_socket'.
47061
47062 2008-10-09  Bruno Haible  <bruno@clisp.org>
47063
47064         * doc/glibc-headers/sys_ioctl.texi: New file.
47065         * doc/gnulib.texi: Include it.
47066
47067 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47068             Bruno Haible  <bruno@clisp.org>
47069
47070         Combine the two replacements of 'close'.
47071         * lib/sys_socket.in.h (close): Define to a reminder to include
47072         <unistd.h>.
47073         (_gl_close_fd_maybe_socket): New declaration.
47074         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
47075         * lib/winsock.c (close): Remove undefinition.
47076         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
47077         needed for the gnulib module 'close'.
47078         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
47079         define to an error symbol or to a warning, if suitable.
47080         * lib/close.c: Include <sys/socket.h>.
47081         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
47082         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
47083         UNISTD_H_HAVE_WINSOCK2_H.
47084         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
47085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47086         UNISTD_H_HAVE_WINSOCK2_H.
47087         * modules/sys_socket (Files): Add m4/unistd_h.m4.
47088         (configure.ac): Set a module indicator.
47089         (Makefile.am): Substitute GNULIB_CLOSE.
47090         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
47091         * modules/poll-tests (Depends-on): Add close.
47092         * modules/select-tests (Depends-on): Likewise.
47093
47094 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47095             Bruno Haible  <bruno@clisp.org>
47096
47097         New module 'close'.
47098         * modules/close: New file.
47099         * lib/unistd.in.h (close): Move declaration out of the
47100         FCHDIR_REPLACEMENT scope.
47101         (_gl_unregister_fd): New declaration.
47102         * lib/close.c: New file.
47103         * lib/fchdir.c (rpl_close): Remove function.
47104         * m4/close.m4: New file.
47105         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47106         close.
47107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
47108         REPLACE_CLOSE.
47109         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
47110         REPLACE_CLOSE.
47111         * modules/fchdir (Depends-on): Add close.
47112
47113 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47114             Bruno Haible  <bruno@clisp.org>
47115
47116         * lib/fcntl.in.h (open): Simplify conditionals.
47117         (_gl_register_fd): New declaration.
47118         * lib/fchdir.c (rpl_open): Remove function.
47119         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
47120         also.
47121         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
47122         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47123         open.
47124
47125 2008-10-09  Jim Meyering  <meyering@redhat.com>
47126
47127         GNUmakefile: use the more name-space-friendly "_version"
47128         * top/GNUmakefile (_dummy): Update.
47129         (_version): Rename from "version".
47130
47131 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47132             Bruno Haible  <bruno@clisp.org>
47133
47134         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
47135         rpl_close.
47136         (_gl_register_fd): New function, extracted from rpl_open.
47137         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
47138         (rpl_open, rpl_opendir): Use _gl_register_fd.
47139
47140 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47141
47142         Fix organization of 'open' replacement.
47143         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
47144         (gl_FUNC_OPEN): Use it.
47145         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
47146
47147 2008-10-08  Bruno Haible  <bruno@clisp.org>
47148
47149         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
47150
47151 2008-10-08  Simon Josefsson  <simon@josefsson.org>
47152
47153         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
47154         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
47155         listen).
47156
47157 2008-10-08  Eric Blake  <ebb9@byu.net>
47158
47159         GNUmakefile: add 'make version' target
47160         * top/GNUmakefile (_curr-ver): Split version update rules...
47161         (version): ...into a target.
47162
47163 2008-10-07  Bruno Haible  <bruno@clisp.org>
47164
47165         Use a more portable replacement expression for -0.0L.
47166         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
47167         instead of -0.0L. Fix m4 quotation.
47168
47169         * tests/test-signbit.c: Include <float.h>.
47170         (minus_zero): New variable.
47171         (test_signbitl): Use minus_zero instead of -zero.
47172         * modules/signbit-tests (Depends-on): Add float.
47173
47174         * tests/test-ceill.c: Include <float.h>.
47175         (zero): Remove variable.
47176         (minus_zero): New variable.
47177         (main): Use minus_zero instead of -zero.
47178         * modules/ceill-tests (Depends-on): Add float.
47179
47180         * tests/test-floorl.c: Include <float.h>.
47181         (zero): Remove variable.
47182         (minus_zero): New variable.
47183         (main): Use minus_zero instead of -zero.
47184         * modules/floorl-tests (Depends-on): Add float.
47185
47186         * tests/test-roundl.c: Include <float.h>.
47187         (zero): Remove variable.
47188         (minus_zero): New variable.
47189         (main): Use minus_zero instead of -zero.
47190         * modules/roundl-tests (Depends-on): Add float.
47191
47192         * tests/test-truncl.c: Include <float.h>.
47193         (zero): Remove variable.
47194         (minus_zero): New variable.
47195         (main): Use minus_zero instead of -zero.
47196         * modules/truncl-tests (Depends-on): Add float.
47197
47198         * tests/test-frexpl.c (zero): Remove variable.
47199         (minus_zero): New variable.
47200         (main): Use minus_zero instead of -zero.
47201         * modules/frexpl-tests (Depends-on): Add float.
47202
47203         * tests/test-isnan.c (zerol): Remove variable.
47204         (minus_zerol): New variable.
47205         (test_long_double): Use minus_zerol instead of -zerol.
47206         * modules/isnan-tests (Depends-on): Add float.
47207
47208         * tests/test-isnanl.h (zero): Remove variable.
47209         (minus_zero): New variable.
47210         (main): Use minus_zero instead of -zero.
47211         * modules/isnanl-nolibm-tests (Depends-on): Add float.
47212         * modules/isnanl-tests (Depends-on): Add float.
47213
47214         * tests/test-ldexpl.c (zero): Remove variable.
47215         (minus_zero): New variable.
47216         (main): Use minus_zero instead of -zero.
47217         * modules/ldexpl-tests (Depends-on): Add float.
47218
47219         * tests/test-snprintf-posix.h (zerol): Remove variable.
47220         (minus_zerol): New variable.
47221         (test_function): Use minus_zerol instead of -zerol.
47222         * modules/snprintf-posix-tests (Depends-on): Add float.
47223         * modules/vsnprintf-posix-tests (Depends-on): Add float.
47224
47225         * tests/test-sprintf-posix.h (zerol): Remove variable.
47226         (minus_zerol): New variable.
47227         (test_function): Use minus_zerol instead of -zerol.
47228         * modules/sprintf-posix-tests (Depends-on): Add float.
47229         * modules/vsprintf-posix-tests (Depends-on): Add float.
47230
47231         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
47232         (minus_zerol): New variable.
47233         (test_function): Use minus_zerol instead of -zerol.
47234         * modules/vasnprintf-posix-tests (Depends-on): Add float.
47235
47236         * tests/test-vasprintf-posix.c (zerol): Remove variable.
47237         (minus_zerol): New variable.
47238         (test_function): Use minus_zerol instead of -zerol.
47239         * modules/vasprintf-posix-tests (Depends-on): Add float.
47240
47241 2008-10-07  Simon Josefsson  <simon@josefsson.org>
47242
47243         * MODULES.html.sh (Support for building documentation): Mention
47244         pmccabe2html.  Sort entries.
47245
47246         Add pmccabe2html module, from gnupdf.
47247         * build-aux/pmccabe.css: New file.
47248         * build-aux/pmccabe2html: New file.
47249         * m4/pmccabe2html.m4: New file.
47250         * modules/pmccabe2html: New file.
47251
47252 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
47253
47254         flock: new module
47255         * MODULES.html.sh: Add to list of modules.
47256         * lib/flock.c: flock implementation for Windows and Unix systems
47257         which have fcntl.
47258         * doc/glibc-functions/flock.texi: Update documentation.
47259         * lib/sys_file.in.h: <sys/file.h> header file.
47260         * m4/flock.m4: M4 macros.
47261         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
47262         * modules/flock: flock module.
47263         * modules/flock-tests: flock tests module.
47264         * modules/sys_file: sys/file.h module.
47265         * tests/test-flock.c: test suite for flock.
47266
47267 2008-10-06  Jim Meyering  <meyering@redhat.com>
47268
47269         bootstrap: check for LT_INIT more portably still ;-)
47270         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
47271         Spotted by Bruno Haible.
47272
47273 2008-10-06  Eric Blake  <ebb9@byu.net>
47274
47275         test-signbit: avoid tripping Irix cc bug on -0.0L
47276         * tests/test-signbit.c (minus_zerol): Delete, and replace with
47277         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
47278         entire testsuite consistent and avoids an Irix 6.2 bug.
47279
47280 2008-10-05  Bruno Haible  <bruno@clisp.org>
47281             Jim Meyering  <jim@meyering.net>
47282
47283         Add an option for ignoring EPIPE during close_stdout.
47284         * lib/closeout.h: Include <stdbool.h>.
47285         (close_stdout_set_ignore_EPIPE): New declaration.
47286         * lib/closeout.c: Include <stdbool.h>.
47287         (ignore_EPIPE): New variable.
47288         (close_stdout_set_ignore_EPIPE): New function.
47289         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
47290         * lib/close-stream.c (close_stream): Mention the possible EPIPE
47291         failure.
47292         * modules/closeout (Depends-on): Add stdbool.
47293
47294 2008-10-05  Bruno Haible  <bruno@clisp.org>
47295
47296         * modules/accept: New file.
47297         * modules/bind: New file.
47298         * modules/connect: New file.
47299         * modules/getpeername: New file.
47300         * modules/getsockname: New file.
47301         * modules/getsockopt: New file.
47302         * modules/listen: New file.
47303         * modules/recv: New file.
47304         * modules/recvfrom: New file.
47305         * modules/send: New file.
47306         * modules/sendto: New file.
47307         * modules/setsockopt: New file.
47308         * modules/socket: New file.
47309         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
47310         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47311         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
47312         the particular module is requested. Add a link warning when the
47313         particular module is not requested.
47314         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
47315         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
47316         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
47317         the particular module is requested.
47318         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
47319         gl_SYS_SOCKET_H_DEFAULTS): New macros.
47320         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
47321         * modules/sys_socket (Depends-on): Add link-warning.
47322         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
47323         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
47324         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
47325         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
47326         GL_LINK_WARNING.
47327         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
47328         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
47329         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
47330         * doc/posix-functions/getpeername.texi: Mention the new module
47331         'getpeername'.
47332         * doc/posix-functions/getsockname.texi: Mention the new module
47333         'getsockname'.
47334         * doc/posix-functions/getsockopt.texi: Mention the new module
47335         'getsockopt'.
47336         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
47337         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
47338         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
47339         * doc/posix-functions/send.texi: Mention the new module 'send'.
47340         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
47341         * doc/posix-functions/setsockopt.texi: Mention the new module
47342         'setsockopt'.
47343         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
47344         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
47345         listen, connect, accept.
47346         * modules/select-tests (Depends-on): Likewise.
47347
47348 2008-10-05  Bruno Haible  <bruno@clisp.org>
47349
47350         * lib/winsock.c (strerror): Remove unused #undef.
47351         (rpl_close): Remove unused local variable.
47352
47353         * modules/sys_socket (Depends-on); Add errno.
47354
47355 2008-10-05  Bruno Haible  <bruno@clisp.org>
47356
47357         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
47358         (select): Add a link warning when the 'select' module is not used.
47359         * modules/sys_select (Depends-on): Add link-warning.
47360         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
47361         Suggested by Paolo Bonzini.
47362
47363 2008-10-05  Jim Meyering  <meyering@redhat.com>
47364
47365         bootstrap: check for LT_INIT more portably
47366         * build-aux/bootstrap: Avoid using grep -E, since it's not
47367         portable enough.  Suggestion from Bruno Haible.
47368
47369 2008-10-05  Bruno Haible  <bruno@clisp.org>
47370
47371         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
47372         as being fixed by gnulib.
47373
47374 2008-10-05  Bruno Haible  <bruno@clisp.org>
47375
47376         * modules/select-tests: New file, mostly copied from
47377         modules/sys_select-tests.
47378         * tests/test-select.c: New file, mostly copied from
47379         tests/test-sys_select.c.
47380         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
47381         * modules/sys_select-tests (Depends-on): Remove all dependencies.
47382         (Makefile.am): Remove test_sys_select_LDADD.
47383
47384         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
47385         to an undefined symbol, for an error message.
47386         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
47387         (gl_SYS_SELECT_H_DEFAULTS): New macro.
47388         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
47389         winsock-select.c here.
47390         * modules/sys_select (Files): Remove lib/winsock-select.c.
47391         (Depends-on): Remove alloca.
47392         (Makefile.am): Substitute GNULIB_SELECT.
47393         * modules/select: New file.
47394         * doc/posix-functions/select.texi: Update.
47395
47396 2008-10-05  Bruno Haible  <bruno@clisp.org>
47397
47398         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
47399         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
47400         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
47401         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
47402         getdtablesize.
47403         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
47404         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
47405
47406 2008-10-05  Bruno Haible  <bruno@clisp.org>
47407
47408         * modules/getdtablesize-tests: New file.
47409         * tests/test-getdtablesize.c: New file.
47410
47411         New module 'getdtablesize'.
47412         * lib/unistd.in.h (getdtablesize): New declaration.
47413         * lib/getdtablesize.c: New file.
47414         * m4/getdtablesize.m4: New file.
47415         * modules/getdtablesize: New file.
47416         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47417         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
47418         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
47419         HAVE_GETDTABLESIZE.
47420         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
47421
47422 2008-10-05  Bruno Haible  <bruno@clisp.org>
47423
47424         * modules/sched (Makefile.am): Fix typo.
47425         Reported by Simon Josefsson.
47426
47427 2008-10-05  Jim Meyering  <meyering@redhat.com>
47428
47429         bootstrap: check for LT_INIT, too
47430         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
47431         are deprecated.  Suggestion from Ralf Wildenhues.
47432
47433 2008-10-05  Bruno Haible  <bruno@clisp.org>
47434
47435         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
47436         overriding them by ours.
47437         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
47438
47439 2008-10-05  Jim Meyering  <meyering@redhat.com>
47440
47441         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
47442         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
47443         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
47444
47445 2008-10-04  Bruno Haible  <bruno@clisp.org>
47446
47447         * modules/dup2 (License): Change to LGPLv2+.
47448         * modules/sleep (License): Likewise.
47449         * modules/perror (License): Likewise.
47450         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
47451         Blake.
47452         * modules/signal (License): Likewise.
47453         * modules/sigprocmask (License): Likewise.
47454         * modules/raise (License): Change to LGPLv2+, with approval by Jim
47455         Meyering.
47456
47457 2008-10-04  Bruno Haible  <bruno@clisp.org>
47458
47459         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
47460         Reported by Rainer Tammer <tammer@tammer.net>.
47461
47462 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
47463             Bruno Haible  <bruno@clisp.org>
47464
47465         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
47466         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
47467         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
47468
47469 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
47470
47471         filevercmp: new module
47472         * lib/filevercmp.h: New function filevercmp comparing version strings.
47473         * lib/filevercmp.c: Implementation of filevercmp function.
47474         * modules/filevercmp: Module metadata.
47475         * tests/test-filevercmp.c: Unit test for new module.
47476         * modules/filevercmp-tests: Unit test metadata.
47477         * MODULES.html.sh: Add filevercmp module.
47478
47479 2008-10-03  Bruno Haible  <bruno@clisp.org>
47480
47481         * lib/c-ctype.h: Add comment.
47482         Reported by Jim Meyering.
47483
47484 2008-10-02  Bruno Haible  <bruno@clisp.org>
47485
47486         * modules/posix_spawn-internal (Depends-on): Add 'open'.
47487
47488 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47489
47490         * build-aux/bootstrap: Allow renaming bootstrap, and change the
47491         name of bootstrap.conf accordingly.
47492
47493 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47494
47495         * build-aux/bootstrap: Install git-merge-changelog configuration
47496         items into .gitconfig if needed.
47497
47498 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47499
47500         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
47501         git repository, and initialize/update it accordingly.
47502
47503 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
47504
47505         * modules/fsync-tests: New file.
47506         * tests/test-fsync.c: New file.
47507
47508         New module 'fsync'.
47509         * lib/fsync.c: New file.
47510         * m4/fsync.m4: New file.
47511         * modules/fsync: New file.
47512         * lib/unistd.in.h (fsync): New declaration.
47513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
47514         GNULIB_FSYNC and HAVE_FSYNC.
47515         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
47516         * MODULES.html.sh (posix_functions): Add fsync.
47517         * doc/posix-functions/fsync.texi: Mention the new module.
47518
47519 2008-10-02  Jim Meyering  <meyering@redhat.com>
47520
47521         fts.c: sync with similar code from coreutils' remove.c
47522         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
47523         Guard also with "#if defined __linux__", since for now at least,
47524         this code is Linux-kernel-specific.
47525
47526 2008-10-02  Jim Meyering  <meyering@redhat.com>
47527
47528         fts: bug fixes
47529         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
47530         Include <sys/vfs.h>, not <sys/statfs.h>.
47531
47532         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
47533         Include <sys/vfs.h>, not <sys/statfs.h>.
47534
47535 2008-10-01  Bruno Haible  <bruno@clisp.org>
47536
47537         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
47538         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
47539         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
47540         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
47541         * doc/posix-functions/posix_spawnp.texi: Likewise.
47542         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
47543         whether posix_spawn actually works.
47544         * m4/pipe.m4 (gl_PIPE): Likewise.
47545         * modules/execute (Files): Add m4/posix_spawn.m4.
47546         * modules/pipe (Files): Add m4/posix_spawn.m4.
47547         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
47548
47549 2008-10-01  Jim Meyering  <meyering@redhat.com>
47550
47551         remove trailing spaces
47552         * NEWS: Likewise.
47553         * lib/poll.c (poll): Likewise.
47554         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
47555         * lib/winsock.c (rpl_close): Likewise.
47556         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
47557         * modules/yield: Likewise.
47558         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
47559         * tests/test-sys_select.c (connect_to_socket): Likewise.
47560
47561         fts.c: adjust a new interface to be more generally useful
47562         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
47563         (fts_build): Adjust caller.
47564
47565 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47566
47567         * modules/cond-tests: New file.
47568         * tests/test-cond.c: New file.
47569
47570 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47571             Bruno Haible  <bruno@clisp.org>
47572
47573         * modules/cond (Dependencies): Add errno, time.
47574         * lib/glthread/cond.h: Include <time.h>.
47575         (gl_cond_define, gl_cond_define_initialized): Use the same definition
47576         across platforms.
47577
47578 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47579             Bruno Haible  <bruno@clisp.org>
47580
47581         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
47582
47583 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47584             Bruno Haible  <bruno@clisp.org>
47585
47586         * modules/tls-tests (Depends-on): Add thread, yield.
47587         (configure.ac): Remove all checks.
47588         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
47589         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47590         gl_thread_self): Remove definitions. Include glthread/thread.h and
47591         glthread/yield.h instead.
47592         (test_tls): Pass an additional NULL argument to gl_thread_join.
47593
47594 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47595             Bruno Haible  <bruno@clisp.org>
47596
47597         * modules/lock-tests (Depends-on): Add thread, yield.
47598         (configure.ac): Remove all checks.
47599         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
47600         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47601         gl_thread_self): Remove definitions. Include glthread/thread.h and
47602         glthread/yield.h instead.
47603         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
47604         additional NULL argument to gl_thread_join.
47605
47606 2008-09-30  Bruno Haible  <bruno@clisp.org>
47607
47608         Fix the Win32 implementation of the 'thread' module.
47609         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
47610         pointer type.
47611         (gl_thread_self): Invoke gl_thread_self_func.
47612         (gl_thread_self_func): New declaration.
47613         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
47614         (do_init_self_key, init_self_key): New functions.
47615         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
47616         Remove some fields.
47617         (running_threads, running_lock): Remove variables.
47618         (get_current_thread_handle): New function.
47619         (gl_thread_self_func, wrapper_func, glthread_create_func,
47620         glthread_join_func, gl_thread_exit_func): Largely rewritten and
47621         simplified.
47622
47623 2008-09-30  Bruno Haible  <bruno@clisp.org>
47624
47625         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
47626         files.
47627
47628 2008-09-30  Jim Meyering  <meyering@redhat.com>
47629
47630         fts.m4: correct the test for statfs.f_type
47631         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
47632         when checking for statfs.f_type.
47633
47634 2008-09-15  Simon Josefsson  <simon@josefsson.org>
47635
47636         tests: avoid some compiler warnings
47637         * tests/test-memchr.c (main): Pass NULL indirectly.
47638         * tests/test-getdate.c (main): Remove unused variable 'ret'.
47639
47640 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
47641
47642         getdate.y: disallow countable dayshifts like "4 yesterday ago"
47643         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
47644         exactly specified dayshifts.
47645         (dayshift): New rule.
47646         (rel): Add dayshift.
47647         (relative_time_table) [tomorrow, yesterday, today, now]:
47648         Use tDAY_SHIFT in place of tDAY_UNIT.
47649         * tests/test-getdate.c: Add tests for now-disallowed countable
47650         dayshifts, e.g., "4 yesterday ago".
47651
47652 2008-09-29  Bruno Haible  <bruno@clisp.org>
47653
47654         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
47655         * tests/test-posix_spawn1.in.sh: Renamed from
47656         tests/test-posix_spawn.in.sh.
47657         * tests/test-posix_spawn2.c: New file.
47658         * tests/test-posix_spawn2.in.sh: New file.
47659         * modules/posix_spawnp-tests (Files): Update.
47660         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
47661
47662 2008-09-29  Bruno Haible  <bruno@clisp.org>
47663
47664         Propagate effects of putenv/setenv/unsetenv to child processes.
47665         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
47666         * lib/pipe.c (create_pipe): Likewise.
47667
47668 2008-09-29  Bruno Haible  <bruno@clisp.org>
47669
47670         Enable use of shell scripts as executables in mingw.
47671         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
47672         run the program as a shell script.
47673         * lib/pipe.c (create_pipe): Likewise.
47674         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
47675         resulting array.
47676
47677 2008-09-29  Eric Blake  <ebb9@byu.net>
47678
47679         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
47680
47681 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
47682
47683         * doc/posix-functions/accept.texi: Update mingw problems.
47684         * doc/posix-functions/bind.texi: Update mingw problems.
47685         * doc/posix-functions/close.texi: Update mingw problems.
47686         * doc/posix-functions/connect.texi: Update mingw problems.
47687         * doc/posix-functions/getpeername.texi: Update mingw problems.
47688         * doc/posix-functions/getsockname.texi: Update mingw problems.
47689         * doc/posix-functions/getsockopt.texi: Update mingw problems.
47690         * doc/posix-functions/ioctl.texi: Update mingw problems.
47691         * doc/posix-functions/listen.texi: Update mingw problems.
47692         * doc/posix-functions/recv.texi: Update mingw problems.
47693         * doc/posix-functions/recvfrom.texi: Update mingw problems.
47694         * doc/posix-functions/select.texi: Update mingw problems.
47695         * doc/posix-functions/send.texi: Update mingw problems.
47696         * doc/posix-functions/sendto.texi: Update mingw problems.
47697         * doc/posix-functions/setsockopt.texi: Update mingw problems.
47698         * doc/posix-functions/socket.texi: Update mingw problems.
47699
47700 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
47701             Bruno Haible  <bruno@clisp.org>
47702
47703         * lib/sys_select.in.h: Include sys/time.h.
47704         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
47705         * modules/sys_select: Depend on sys_time.
47706         * tests/test-sys_select.c: Test that sys/select.h defines struct
47707         timeval fully.
47708
47709 2008-09-29  Bruno Haible  <bruno@clisp.org>
47710
47711         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
47712         * lib/sys_select.in.h: Likewise.
47713
47714 2008-09-29  Bruno Haible  <bruno@clisp.org>
47715
47716         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
47717
47718 2008-09-29  Bruno Haible  <bruno@clisp.org>
47719
47720         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
47721         Set LIBSOCKET instead of augmenting LIBS.
47722         * modules/sockets (Link): New section.
47723         * modules/sockets-tests (test_sockets_LDADD): New variable.
47724         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
47725         * modules/poll-tests (test_poll_LDADD): New variable.
47726         * NEWS: Document the change.
47727
47728 2008-09-29  Bruno Haible  <bruno@clisp.org>
47729
47730         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
47731         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
47732         ARPA_INET_H directly.
47733         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47734
47735 2008-09-28  Bruno Haible  <bruno@clisp.org>
47736
47737         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
47738         from gl_HEADER_SYS_SOCKET.
47739         (gl_HEADER_SYS_SOCKET): Invoke it.
47740         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47741
47742 2008-09-28  Bruno Haible  <bruno@clisp.org>
47743
47744         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
47745         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
47746         Needed on OSF/1 4.0.
47747
47748 2008-09-28  Bruno Haible  <bruno@clisp.org>
47749
47750         Override open more carefully.
47751         * lib/open.c (orig_open): New function.
47752         (rpl_open): Use orig_open instead of open.
47753         * lib/fcntl.in.h: Add special invocation convention.
47754         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
47755         (gl_FUNC_OPEN): Invoke it.
47756
47757         Override freopen more carefully.
47758         * lib/freopen.c (orig_freopen): New function.
47759         (rpl_freopen): Use orig_freopen instead of freopen.
47760         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
47761         (gl_FUNC_FREOPEN): Invoke it.
47762
47763         Override fopen more carefully.
47764         * lib/fopen.c (orig_fopen): New function.
47765         (rpl_fopen): Use orig_fopen instead of fopen.
47766         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
47767         (gl_FUNC_FOPEN): Invoke it.
47768         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
47769
47770 2008-09-28  Bruno Haible  <bruno@clisp.org>
47771
47772         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
47773         SIGPIPE.
47774
47775 2008-09-28  Bruno Haible  <bruno@clisp.org>
47776
47777         * tests/test-sigaction.c (handler, main): Disable the check whether
47778         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
47779         glibc systems with LinuxThreads.
47780
47781 2008-09-28  Bruno Haible  <bruno@clisp.org>
47782
47783         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
47784
47785         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
47786         with AIX xlc.
47787         * lib/fcntl.in.h (open): Likewise.
47788         Reported by Rainer Tammer <tammer@tammer.net>.
47789
47790 2008-09-28  Bruno Haible  <bruno@clisp.org>
47791
47792         * modules/posix_spawnp-tests: New file.
47793         * tests/test-posix_spawn.c: New file.
47794         * tests/test-posix_spawn.in.sh: New file.
47795
47796         New module 'posix_spawnp'.
47797         * modules/posix_spawnp: New file.
47798         * lib/spawnp.c: New file, from GNU libc with modifications.
47799         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
47800
47801         New module 'posix_spawn'.
47802         * modules/posix_spawn: New file.
47803         * lib/spawn.c: New file, from GNU libc with modifications.
47804         * doc/posix-functions/posix_spawn.texi: Mention the new module.
47805
47806         New module 'posix_spawnattr_destroy'.
47807         * modules/posix_spawnattr_destroy: New file.
47808         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
47809         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
47810         module.
47811
47812         New module 'posix_spawnattr_setsigmask'.
47813         * modules/posix_spawnattr_setsigmask: New file.
47814         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
47815         modifications.
47816         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
47817         new module.
47818
47819         New module 'posix_spawnattr_getsigmask'.
47820         * modules/posix_spawnattr_getsigmask: New file.
47821         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
47822         modifications.
47823         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
47824         new module.
47825
47826         New module 'posix_spawnattr_setsigdefault'.
47827         * modules/posix_spawnattr_setsigdefault: New file.
47828         * lib/spawnattr_setdefault.c: New file, from GNU libc with
47829         modifications.
47830         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
47831         new module.
47832
47833         New module 'posix_spawnattr_getsigdefault'.
47834         * modules/posix_spawnattr_getsigdefault: New file.
47835         * lib/spawnattr_getdefault.c: New file, from GNU libc with
47836         modifications.
47837         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
47838         new module.
47839
47840         New module 'posix_spawnattr_setschedpolicy'.
47841         * modules/posix_spawnattr_setschedpolicy: New file.
47842         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
47843         modifications.
47844         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
47845         new module.
47846
47847         New module 'posix_spawnattr_getschedpolicy'.
47848         * modules/posix_spawnattr_getschedpolicy: New file.
47849         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
47850         modifications.
47851         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
47852         new module.
47853
47854         New module 'posix_spawnattr_setschedparam'.
47855         * modules/posix_spawnattr_setschedparam: New file.
47856         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
47857         modifications.
47858         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
47859         new module.
47860
47861         New module 'posix_spawnattr_getschedparam'.
47862         * modules/posix_spawnattr_getschedparam: New file.
47863         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
47864         modifications.
47865         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
47866         new module.
47867
47868         New module 'posix_spawnattr_setpgroup'.
47869         * modules/posix_spawnattr_setpgroup: New file.
47870         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
47871         modifications.
47872         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
47873         module.
47874
47875         New module 'posix_spawnattr_getpgroup'.
47876         * modules/posix_spawnattr_getpgroup: New file.
47877         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
47878         modifications.
47879         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
47880         module.
47881
47882         New module 'posix_spawnattr_setflags'.
47883         * modules/posix_spawnattr_setflags: New file.
47884         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
47885         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
47886         module.
47887
47888         New module 'posix_spawnattr_getflags'.
47889         * modules/posix_spawnattr_getflags: New file.
47890         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
47891         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
47892         module.
47893
47894         New module 'posix_spawnattr_init'.
47895         * modules/posix_spawnattr_init: New file.
47896         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
47897         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
47898         module.
47899
47900         New module 'posix_spawn_file_actions_destroy'.
47901         * modules/posix_spawn_file_actions_destroy: New file.
47902         * lib/spawn_faction_destroy.c: New file, from GNU libc with
47903         modifications.
47904         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
47905         the new module.
47906
47907         New module 'posix_spawn_file_actions_addopen'.
47908         * modules/posix_spawn_file_actions_addopen: New file.
47909         * lib/spawn_faction_addopen.c: New file, from GNU libc with
47910         modifications.
47911         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
47912         the new module.
47913
47914         New module 'posix_spawn_file_actions_adddup2'.
47915         * modules/posix_spawn_file_actions_adddup2: New file.
47916         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
47917         modifications.
47918         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
47919         the new module.
47920
47921         New module 'posix_spawn_file_actions_addclose'.
47922         * modules/posix_spawn_file_actions_addclose: New file.
47923         * lib/spawn_faction_addclose.c: New file, from GNU libc with
47924         modifications.
47925         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
47926         the new module.
47927
47928         New module 'posix_spawn_file_actions_init'.
47929         * modules/posix_spawn_file_actions_init: New file.
47930         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
47931         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
47932         new module.
47933
47934         New module 'posix_spawn-internal'.
47935         * modules/posix_spawn-internal: New file.
47936         * lib/spawn_int.h: New file, from GNU libc with modifications.
47937         * lib/spawni.c: New file, from GNU libc with modifications.
47938         * m4/posix_spawn.m4: New file.
47939
47940         New module 'spawn'.
47941         * modules/spawn: New file.
47942         * lib/spawn.in.h: New file, from GNU libc with modifications.
47943         * m4/spawn_h.m4: New file.
47944         * doc/posix-headers/spawn.texi: Mention the new module.
47945
47946 2008-09-28  Bruno Haible  <bruno@clisp.org>
47947
47948         * modules/sched-tests: New file.
47949         * tests/test-sched.c: New file.
47950
47951         New module 'sched'.
47952         * modules/sched: New file.
47953         * lib/sched.in.h: New file.
47954         * m4/sched_h.m4: New file.
47955         * doc/posix-headers/sched.texi: Mention the new module.
47956
47957 2008-09-27  Eric Blake  <ebb9@byu.net>
47958
47959         Fix previous patch, and tweak references to $0.
47960         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
47961         (func_version, func_gnulib_dir): Don't call this program
47962         gnulib-tool.
47963         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
47964         with using $0 in function.
47965         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
47966         (func_fatal_error): Reuse the name the user invoked us with.
47967
47968 2008-09-27  Bruno Haible  <bruno@clisp.org>
47969
47970         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
47971         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
47972         (gl_ICONV_H): Not here.
47973         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
47974         instead of assigning ICONV_H directly.
47975
47976         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
47977         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
47978         WCHAR_H directly.
47979
47980 2008-09-27  Bruno Haible  <bruno@clisp.org>
47981
47982         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
47983         * modules/arpa_inet (Depends-on): Add link-warning.
47984         (Makefile.am): Insert the definition of GL_LINK-WARNING.
47985         * modules/unistd (Makefile.am): Likewise.
47986
47987 2008-09-26  Bruno Haible  <bruno@clisp.org>
47988
47989         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
47990         variables.
47991         (func_version): Essentially copied from gnulib-tool.
47992         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
47993         func_readlink): Copied from gnulib-tool.
47994
47995 2008-09-26  Bruno Haible  <bruno@clisp.org>
47996
47997         * gnulib-tool (func_version): Change directory to $gnulib_dir before
47998         invoking git-version-gen.
47999
48000 2008-09-26  Bruno Haible  <bruno@clisp.org>
48001
48002         * posix-modules: Update to directory names changed on 2008-01-19.
48003         Remove commas in output before splitting into words. No more need to
48004         avoid 'ftruncate' since 2007-02-19.
48005
48006 2008-09-26  Bruno Haible  <bruno@clisp.org>
48007
48008         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
48009
48010 2008-09-26  Bruno Haible  <bruno@clisp.org>
48011
48012         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
48013         * modules/fwriteerror (Depends-on): Add errno.
48014
48015 2008-09-26  Bruno Haible  <bruno@clisp.org>
48016
48017         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
48018         * tests/test-vc-list-files-cvs.sh: Likewise.
48019
48020 2008-09-26  Bruno Haible  <bruno@clisp.org>
48021
48022         * doc/posix-headers/sys_resource.texi: Reorder items.
48023
48024 2008-09-26  Jim Meyering  <meyering@redhat.com>
48025
48026         fts: tweak inode comparison function
48027         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
48028         inode numbers, as documented.
48029
48030         fts: sort dirent entries on inode number before traversing
48031         This avoids a quadratic, seek-related performance penalty when
48032         operating on a directory containing many entries (measurable at 10k;
48033         3.5 hours at 2 million entries with a cold cache) on certain types
48034         of file systems, including ext3 and ext4, but not tmpfs.
48035         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
48036         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
48037         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
48038         (fs_handles_readdir_ordered_dirents_efficiently): New function.
48039         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
48040         (fts_build): Set the stat.st_ino member from D_INO.
48041         If it is likely to be useful, sort dirent entries on inode number.
48042
48043         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
48044         and the struct statfs.f_type member.
48045         * modules/fts (Depends-on): Add d-ino.
48046
48047 2008-09-26  Bruno Haible  <bruno@clisp.org>
48048
48049         * modules/sigpipe-die (Depends-on): Add sigpipe.
48050
48051         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
48052         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
48053         and GNULIB_STDIO_H_SIGPIPE are set.
48054         * lib/stdio-write.c: New file.
48055         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
48056         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48057         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48058         REPLACE_STDIO_WRITE_FUNCS.
48059         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
48060         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48061         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48062         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48063         * modules/stdio (Files): Add lib/stdio-write.c.
48064         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
48065         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48066         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48067         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48068         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
48069         REPLACE_FPRINTF_POSIX.
48070         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
48071         REPLACE_PRINTF_POSIX.
48072         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
48073         REPLACE_VFPRINTF_POSIX.
48074         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
48075         REPLACE_VPRINTF_POSIX.
48076         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
48077         SIGPIPE issue.
48078         * doc/posix-functions/fputc.texi: Likewise.
48079         * doc/posix-functions/fputs.texi: Likewise.
48080         * doc/posix-functions/fwrite.texi: Likewise.
48081         * doc/posix-functions/printf.texi: Likewise.
48082         * doc/posix-functions/putc.texi: Likewise.
48083         * doc/posix-functions/putchar.texi: Likewise.
48084         * doc/posix-functions/puts.texi: Likewise.
48085         * doc/posix-functions/vfprintf.texi: Likewise.
48086         * doc/posix-functions/vprintf.texi: Likewise.
48087
48088         * modules/safe-write (Depends-on): Add write.
48089
48090         * modules/sigpipe-tests: New file.
48091         * tests/test-sigpipe.c: New file.
48092         * tests/test-sigpipe.sh: New file.
48093
48094         * modules/write: New file.
48095         * lib/unistd.in.h: Include <sys/types.h>.
48096         (write): New declaration.
48097         * lib/write.c: New file.
48098         * m4/write.m4: New file.
48099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48100         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
48101         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
48102         GNULIB_WRITE, REPLACE_WRITE.
48103         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
48104         and the SIGPIPE issue.
48105
48106         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
48107         (raise): New declaration.
48108         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
48109         (ext_signal): New function.
48110         (rpl_raise): New function.
48111         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
48112         GNULIB_SIGNAL_H_SIGPIPE.
48113         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
48114         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
48115
48116         * modules/sigpipe: New file.
48117         * m4/sigpipe.m4: New file.
48118
48119 2008-09-25  Derek Price  <derek@ximbiot.com>
48120             Bruno Haible  <bruno@clisp.org>
48121
48122         * gnulib-tool (func_import): Report all license incompatibilities, not
48123         just the first one.
48124
48125 2008-09-25  Bruno Haible  <bruno@clisp.org>
48126
48127         * gnulib-tool (func_import): When computing the edits, consider not
48128         only the Makefile.ams that exist but also those that will be generated.
48129
48130 2008-09-25  Simon Josefsson  <simon@josefsson.org>
48131
48132         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
48133         fixes gnulib-tool --test warning about duplicate dependency.
48134
48135 2008-09-25  Bruno Haible  <bruno@clisp.org>
48136
48137         * gnulib-tool: Don't ask the user to perform edits in the generated
48138         Makefile.ams.
48139         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
48140         apply to the Makefile.am being generated.
48141         (func_emit_tests_Makefile_am): Execute edits that apply to the
48142         Makefile.am being generated.
48143         (func_import): Setup list of Makefile.am edits before emitting the
48144         Makefile.ams, not at the end.
48145         (func_create_testdir): Update.
48146         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48147
48148 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48149
48150         * gnulib-tool (func_import): Store the --tests-base option in the
48151         comment in gnulib-cache.m4.
48152
48153 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
48154
48155         * NEWS: Document increased portability that sys_select now provides.
48156
48157         * lib/sys_select.in.h: Install select wrapper.
48158         * lib/sys_socket.in.h: Use more descriptive name when there is no
48159         select wrapper.
48160         * lib/winsock-select.c: New.
48161         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
48162         Require gl_HEADER_SYS_SOCKET.
48163         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
48164         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
48165         * tests/test-sys_select.c: Add functional tests.
48166
48167 2008-09-24  Eric Blake  <ebb9@byu.net>
48168
48169         open, fopen: close fd leak in last patch
48170         * lib/open.c (rpl_open): Close fd before returning error.
48171         * lib/fopen.c (rpl_fopen): Close fd before returning error.
48172         * doc/posix-functions/open.texi (open): Document that Irix also
48173         has the bug.
48174         * doc/posix-functions/fopen.texi (fopen): Likewise.
48175         Reported by Paolo Bonzini.
48176
48177 2008-09-24  Bruno Haible  <bruno@clisp.org>
48178
48179         Ensure that a filename ending in a slash cannot be used to access a
48180         non-directory.
48181         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
48182         to check whether it's really a directory.
48183         * lib/fopen.c: Include fcntl.h, unistd.h.
48184         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
48185         and fdopen().
48186         * modules/fopen (Depends-on): Add unistd.
48187         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
48188         * tests/test-fopen.c (main): Likewise.
48189         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
48190         * doc/posix-functions/fopen.texi: Likewise.
48191         Reported by Eric Blake.
48192
48193 2008-09-23  Eric Blake  <ebb9@byu.net>
48194
48195         c-stack: avoid compiler optimizations when provoking overflow
48196         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
48197         recursion harder to optimize, to ensure a stack overflow occurs.
48198         * tests/test-c-stack.c (recurse): Likewise.
48199         Borrowed from libsigsegv.
48200
48201         c-stack: work around Irix sigaltstack bug
48202         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
48203         whether sigaltstack uses wrong end of stack_t (copied in part from
48204         libsigsegv).
48205         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
48206         Irix bug, without requiring an over-allocation.
48207         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
48208         bug.
48209
48210         fopen: document mingw bug on directories
48211         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
48212         not allowing a stream visiting a directory, even though reading
48213         from such a stream is not portable.
48214
48215 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48216
48217         * lib/poll.c: Rewrite.
48218         * modules/poll: Depend on alloca.
48219
48220 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48221
48222         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
48223         instead define prototypes for a full set of wrappers.  Ensure
48224         that Cygwin does not use the compatibility code, which is only
48225         for MinGW.
48226         * lib/winsock.c: New.
48227         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
48228         * modules/sys_socket: Add lib/winsock.c.
48229
48230         * modules/poll-tests: Add errno and perror.
48231         * tests/test-poll.c: Use ioctl, not ioctlsocket.
48232
48233 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48234
48235         * tests/test-poll.c: Downgrade minimum needed Winsock version.
48236
48237 2008-09-23  Bruno Haible  <bruno@clisp.org>
48238
48239         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
48240         * doc/glibc-functions/*: Likewise.
48241
48242 2008-09-23  Simon Josefsson  <simon@josefsson.org>
48243
48244         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
48245         success.
48246
48247 2008-09-22  Eric Blake  <ebb9@byu.net>
48248             Bruno Haible  <bruno@clisp.org>
48249
48250         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
48251         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
48252         supply %A but mishandle pseudo-NaN.
48253         Reported by Simon Josefsson.
48254
48255 2008-09-21  Bruno Haible  <bruno@clisp.org>
48256
48257         * tests/test-lock.c (main): Tweak skip message.
48258         * tests/test-tls.c (main): Likewise.
48259
48260 2008-09-21  Bruno Haible  <bruno@clisp.org>
48261
48262         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
48263         whether 'struct sigaction' has sa_sigaction here...
48264         (gl_PREREQ_SIG_HANDLER_H): ... not here.
48265         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
48266
48267 2008-09-21  Bruno Haible  <bruno@clisp.org>
48268
48269         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
48270         section.
48271         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
48272         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
48273         the new section.
48274         (Support for obsolete systems lacking POSIX:2001): New section.
48275         (String handling <string.h>): Move strdup to the new section.
48276         Suggested by Simon Josefsson and Paolo Bonzini.
48277
48278 2008-09-21  Bruno Haible  <bruno@clisp.org>
48279
48280         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
48281         exponents in %e and %g results on 'long double'. Needed for mingw's
48282         improved *printf functions.
48283         * tests/test-vasprintf-posix.c (test_function): Likewise.
48284         * tests/test-snprintf-posix.h (test_function): Likewise.
48285         * tests/test-sprintf-posix.h (test_function): Likewise.
48286         Reported by Eric Blake.
48287
48288 2008-09-21  Bruno Haible  <bruno@clisp.org>
48289
48290         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
48291         * tests/test-sprintf-posix.h (test_function): Likewise.
48292
48293 2008-09-21  Bruno Haible  <bruno@clisp.org>
48294
48295         * modules/getpass (Depends-on): Add strdup-posix.
48296
48297         New module 'strdup-posix'.
48298         * modules/strdup-posix: New file.
48299         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
48300         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
48301         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48302         REPLACE_STRDUP.
48303         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
48304         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
48305         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48306         strdup-posix.
48307
48308         * modules/strdup (Depends-on): Remove malloc-posix.
48309
48310 2008-09-20  Bruno Haible  <bruno@clisp.org>
48311
48312         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
48313         Wildenhues.
48314
48315 2008-09-20  Bruno Haible  <bruno@clisp.org>
48316
48317         Ensure that wint_t gets defined on IRIX 5.3.
48318         * lib/wchar.in.h (wint_t): Define if not defined by the system.
48319         * lib/wctype.in.h (wint_t): Likewise.
48320         (__wctype_wint_t): Remove type.
48321         (isw*): Use wint_t instead of __wctype_wint_t.
48322         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
48323         * modules/wchar (Files): Add m4/wint_t.m4.
48324         (Makefile.am): Substitute HAVE_WINT_T.
48325         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
48326         * tests/test-wctype.c: Check that wint_t is defined.
48327         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
48328         * doc/posix-headers/wctype.texi: Likewise.
48329         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48330
48331 2008-09-18  Bruno Haible  <bruno@clisp.org>
48332
48333         * gnulib-tool (func_exit): Update comment.
48334
48335 2008-09-18  Simon Josefsson  <simon@josefsson.org>
48336
48337         * modules/getaddrinfo (Depends-on): Remove strdup, this module
48338         assumes strdup exists and does not depend on strdup to return
48339         ENOMEM on out of memory conditions.
48340
48341 2008-09-18  Bruno Haible  <bruno@clisp.org>
48342
48343         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
48344         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
48345         digits for the exponent.
48346
48347 2008-09-18  Jim Meyering  <meyering@redhat.com>
48348             Bruno Haible  <bruno@clisp.org>
48349
48350         * lib/vasnprintf.c (decimal_point_char): Define also if
48351         NEED_PRINTF_INFINITE_LONG_DOUBLE.
48352
48353 2008-09-16  Bruno Haible  <bruno@clisp.org>
48354         and Eric Blake  <ebb9@byu.net>
48355
48356         vasnprintf: support Irix 5.3
48357         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
48358         that mishandle long double infinity.
48359         Reported by Tom G. Christensen.
48360
48361 2008-09-16  Bruno Haible  <bruno@clisp.org>
48362
48363         * doc/glibc-functions/scandir.texi: Mention the function is missing on
48364         Solaris 9.
48365         * doc/glibc-functions/alphasort.texi: Likewise.
48366         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
48367
48368 2008-09-16  Jim Meyering  <meyering@redhat.com>
48369
48370         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
48371         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
48372         a umask modification leak out of a subshell.  Otherwise, the
48373         opensolaris /bin/sh would be accepted and thus cause unwarranted
48374         failures in the coreutils test suite.
48375
48376 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
48377
48378         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
48379         to succeed.
48380
48381 2008-09-16  Jim Meyering  <meyering@redhat.com>
48382
48383         avoid spurious test failure when library is built without ACL support
48384         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
48385         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
48386         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
48387         * tests/test-copy-acl.sh: Likewise.
48388
48389 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48390
48391         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
48392         based on character occurrence counts.
48393
48394 2008-09-15  Eric Blake  <ebb9@byu.net>
48395
48396         tests: avoid some compiler warnings
48397         * tests/test-memchr.c (main): Pass NULL indirectly.
48398         * tests/test-closein.c (main): Avoid unused variable.
48399
48400 2008-09-15  Bruno Haible  <bruno@clisp.org>
48401
48402         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
48403         are missing on OpenBSD 4.0 individually.
48404         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48405
48406 2008-09-15  Bruno Haible  <bruno@clisp.org>
48407
48408         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
48409         * doc/posix-functions/strerror.texi: Mention also Cygwin.
48410         * doc/posix-functions/perror.texi: Likewise.
48411         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
48412         is missing.
48413         Reported by Eric Blake.
48414
48415         * lib/errno.in.h: Use replacement values >= 2000.
48416         Reported by Eric Blake.
48417
48418 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48419
48420         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
48421         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
48422         limit.
48423         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
48424         compareseq was aborted.
48425
48426 2008-09-14  Bruno Haible  <bruno@clisp.org>
48427
48428         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
48429         yvec_edit_count.
48430         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
48431         (fstrcmp_bounded): Simplify result computation accordingly.
48432
48433 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48434
48435         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
48436         (fstrcmp): Define in terms of fstrcmp_bounded.
48437         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
48438         lower_bound argument.
48439         Return quickly if the result is certainly < lower_bound.
48440         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
48441
48442 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48443
48444         * lib/diffseq.h (EARLY_ABORT): New macro.
48445         (compareseq): Change return type to bool. Return true when EARLY_ABORT
48446         evaluates to true.
48447
48448 2008-09-14  Bruno Haible  <bruno@clisp.org>
48449
48450         * modules/perror-tests: New file.
48451         * tests/test-perror.sh: New file.
48452         * tests/test-perror.c: New file.
48453
48454         New module 'perror'.
48455         * lib/stdio.in.h (perror): New declaration.
48456         * lib/perror.c: New file.
48457         * m4/perror.m4: New file.
48458         * modules/perror: New file.
48459         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
48460         * doc/posix-functions/perror.texi: Mention the perror module.
48461         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
48462         REPLACE_PERROR.
48463         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
48464         REPLACE_PERROR.
48465
48466 2008-09-14  Bruno Haible  <bruno@clisp.org>
48467
48468         * modules/stdio (Makefile.am): Reorder to match the order in
48469         lib/stdio.in.h.
48470         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48471
48472 2008-09-13  Bruno Haible  <bruno@clisp.org>
48473
48474         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
48475
48476 2008-09-13  Bruno Haible  <bruno@clisp.org>
48477
48478         Extend strerror to cover the added errno values.
48479         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
48480         (rpl_strerror): Provide error messages for the added errno values and
48481         for the WSA* values.
48482         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
48483         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
48484         strerror.
48485         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
48486         * modules/strerror (Depends-on): Add errno.
48487         * doc/posix-functions/strerror.texi: Document the change.
48488         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
48489         and EOVERFLOW.
48490
48491 2008-09-13  Bruno Haible  <bruno@clisp.org>
48492
48493         * modules/EOVERFLOW: Remove file.
48494         * m4/eoverflow.m4: Remove file.
48495         * modules/EOVERFLOW-tests: Remove file.
48496         * tests/test-EOVERFLOW.c: Remove file.
48497         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
48498         * modules/ftell (Depends-on): Likewise.
48499         * modules/getdelim (Depends-on): Likewise.
48500         * modules/getugroups (Depends-on): Likewise.
48501         * modules/poll (Depends-on): Likewise.
48502         * modules/snprintf (Depends-on): Likewise.
48503         * modules/sprintf-posix (Depends-on): Likewise.
48504         * modules/vasnprintf (Depends-on): Likewise.
48505         * modules/vasprintf (Depends-on): Likewise.
48506         * modules/vfprintf-posix (Depends-on): Likewise.
48507         * modules/vsnprintf (Depends-on): Likewise.
48508         * modules/vsprintf-posix (Depends-on): Likewise.
48509         * modules/xvasprintf (Depends-on): Likewise.
48510         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48511         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
48512         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
48513         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
48514         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48515         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
48516         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
48517         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
48518         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48519         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
48520         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
48521         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
48522         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48523         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
48524         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
48525         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
48526         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48527         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
48528         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
48529         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
48530         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48531         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
48532         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
48533         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
48534         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
48535         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48536         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
48537         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
48538         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
48539         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
48540         * MODULES.html.sh: Remove EOVERFLOW.
48541         * NEWS: Mention the change.
48542
48543 2008-09-13  Bruno Haible  <bruno@clisp.org>
48544
48545         * modules/errno-tests: New file.
48546         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
48547
48548         * lib/errno.in.h: New file.
48549         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
48550         * modules/errno: New file.
48551         * doc/posix-headers/errno.texi: Update documentation.
48552         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
48553
48554 2008-09-13  Bruno Haible  <bruno@clisp.org>
48555
48556         * tests/test-poll.c: Use #if for native Windows, rather than testing
48557         __MSVCRT__.
48558
48559 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48560             Bruno Haible  <bruno@clisp.org>
48561
48562         * lib/glob.c: Don't include <pwd.h> on native Windows.
48563         (WINDOWS32): New macro.
48564         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
48565
48566 2008-09-13  Bruno Haible  <bruno@clisp.org>
48567
48568         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
48569         (ETIMEDOUT): Remove macro.
48570         (glthread_cond_timedwait_multithreaded): New declaration.
48571         (glthread_cond_timedwait): Use it.
48572         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
48573         (glthread_cond_timedwait_multithreaded): New function.
48574
48575 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48576
48577         * modules/poll-tests: Do not check for io.h.
48578         * tests/test-poll.c: Check for __MSVCRT__ instead.
48579
48580 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48581
48582         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
48583         * modules/poll-tests: Add inet_pton, stdbool, sockets.
48584         * tests/test-poll.c: Use them.  Use _pipe on Windows.
48585
48586 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48587
48588         * modules/poll-tests: New.
48589         * tests/test-poll.c: New.
48590
48591 2008-09-12  Eric Blake  <ebb9@byu.net>
48592
48593         frexp: test for NetBSD failure on -0.0
48594         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
48595         not all, bugs from NetBSD 3.0 have been fixed.
48596         * doc/posix-functions/frexp.texi (frexp): Document bug.
48597         Reported by Thomas Klausner.
48598
48599         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
48600         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
48601         literal -0.0.
48602         Reported by Jonathan C. Patschke <jp@centtech.com>.
48603
48604 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48605
48606         * lib/glthread/cond.h: Use dummy implementation also if
48607         USE_WIN32_THREADS.
48608
48609 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48610
48611         * modules/fnmatch-posix (License): Change to LGPLv2+.
48612         * modules/fnmatch-gnu (License): Likewise.
48613
48614 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48615
48616         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
48617
48618 2008-09-11  Jim Meyering  <meyering@redhat.com>
48619
48620         * users.txt: Add gtk-vnc.
48621
48622 2008-09-08  Simon Josefsson  <simon@josefsson.org>
48623
48624         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
48625         rotate amounts.
48626
48627         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
48628         required for 16-bit and 8-bit rotates.
48629         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
48630         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
48631         UINT8_MAX instead of hard-coded constants.
48632         Suggested by Paul Eggert.
48633
48634 2008-09-07  Bruno Haible  <bruno@clisp.org>
48635
48636         * tests/test-striconveh.c (main): Check behaviour when converting from
48637         UTF-7.
48638
48639         Make striconveh work better with stateful encodings.
48640         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
48641         that iconv does not increment the inptr when returning -1/EINVAL.
48642
48643 2008-09-07  Bruno Haible  <bruno@clisp.org>
48644
48645         * build-aux/config.rpath: Update according to libtool-2.2.6.
48646         * build-aux/config.libpath: Likewise.
48647
48648 2008-09-06  Bruno Haible  <bruno@clisp.org>
48649
48650         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
48651         * lib/freadptr.c (freadptr): Likewise.
48652         * lib/freadseek.c (freadptrinc): Likewise.
48653         Reported by Simon Josefsson.
48654
48655 2008-09-06  Bruno Haible  <bruno@clisp.org>
48656
48657         * modules/freadptr (License): Change to LGPLv2+.
48658         * modules/freadseek (License): Likewise.
48659         Suggested by Eric Blake.
48660
48661         * modules/memchr2 (License): Change to LGPLv2+.
48662         Approved by Eric Blake.
48663
48664 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48665             Bruno Haible  <bruno@clisp.org>
48666
48667         Make gnulib-tool work with native 'sed' on AIX.
48668         * gnulib-tool (sed_noop): New variable.
48669         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
48670         func_add_or_update, func_create_testdir): Use it to initialize sed
48671         script variables.
48672         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48673
48674 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
48675             Bruno Haible  <bruno@clisp.org>
48676
48677         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
48678         also works after #include directives.
48679
48680 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
48681
48682         getdate.y: reject an out-of-range timezone value
48683         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
48684         the range [-24...+24].  When specified with only one or two digits,
48685         * tests/test-getdate.c: Tests for the fix.
48686         * doc/getdate.texi: Document this change.
48687
48688 2008-09-03  Bruno Haible  <bruno@clisp.org>
48689
48690         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
48691
48692 2008-09-02  Simon Josefsson  <simon@josefsson.org>
48693
48694         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
48695         <bruce.korb@gmail.com> with ideas from Ben Pfaff
48696         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
48697         Blake <ebb9@byu.net>.
48698
48699         * tests/test-bitrotate.c: Add more test vectors.
48700
48701 2008-09-02  Eric Blake  <ebb9@byu.net>
48702
48703         vasnprintf-posix: handle large precision via %.*d
48704         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
48705         when handling it ourselves.
48706         * tests/test-vasnprintf-posix.c (test_function): Add test.
48707         * tests/test-snprintf-posix.h (test_function): Likewise.
48708         * tests/test-sprintf-posix.h (test_function): Likewise.
48709         * tests/test-vasprintf-posix.c (test_function): Likewise.
48710         Reported by Alain Guibert.
48711
48712 2008-09-01  Eric Blake  <ebb9@byu.net>
48713
48714         c-stack: make configure-time check more robust
48715         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
48716         successful sigaction call.
48717         Reported by Tom G. Christensen.
48718
48719 2008-09-01  Bruno Haible  <bruno@clisp.org>
48720
48721         New module 'findprog-lgpl'.
48722         * modules/findprog-lgpl: New file.
48723         * lib/findprog-lgpl.c: New file.
48724         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
48725         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
48726         to decide whether to use strdup or xstrdup, concatenated_filename or
48727         xconcatenated_filename.
48728
48729 2008-09-01  Bruno Haible  <bruno@clisp.org>
48730
48731         Split module 'concat-filename' into 'concat-filename' (LGPL) and
48732         'xconcat-filename' (GPL).
48733         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
48734         (License): Change to LGPLv2+.
48735         * modules/xconcat-filename: New file.
48736         * lib/concat-filename.h (concatenated_filename): Change specification.
48737         (xconcatenated_filename): New declaration.
48738         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
48739         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
48740         memory situations.
48741         * lib/xconcat-filename.c: New file.
48742         * NEWS: Mention the change.
48743         * lib/findprog.c: Include concat-filename.h, not filename.h.
48744         (find_in_path): Use xconcatenated_filename instead of
48745         concatenated_filename.
48746         * lib/javacomp.c: Include concat-filename.h, not filename.h.
48747         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48748         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48749         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48750         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
48751         instead of concatenated_filename.
48752         * lib/javaexec.c: Include concat-filename.h, not filename.h.
48753         (execute_java_class): Use xconcatenated_filename instead of
48754         concatenated_filename.
48755         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
48756         * modules/javacomp (Depends-on): Likewise.
48757         * modules/javaexec (Depends-on): Likewise.
48758
48759 2008-09-01  Bruno Haible  <bruno@clisp.org>
48760
48761         Split module 'filename' into 'filename' and 'concat-filename'.
48762         * modules/filename: Keep only lib/filename.h.
48763         (License): Change to LGPLv2+.
48764         * modules/concat-filename: New file, extracted from modules/filename.
48765         * lib/filename.h (concatenated_filename): Remove declaration.
48766         * lib/concat-filename.h: New file, extracted from lib/filename.h.
48767         * lib/concat-filename.c: Include concat-filename.h.
48768         * NEWS: Mention the change.
48769
48770 2008-09-01  Simon Josefsson  <simon@josefsson.org>
48771
48772         * lib/bitrotate.h (rotl8, rotr8): Add.
48773
48774         * modules/bitrotate (configure.ac): Need
48775         AC_REQUIRE([AC_C_INLINE]).
48776         (Description): Mention stdint.h.  Reported by Bruno Haible
48777         <bruno@clisp.org>.
48778
48779         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
48780         Paolo Bonzini <bonzini@gnu.org>.
48781
48782 2008-08-31  Bruno Haible  <bruno@clisp.org>
48783
48784         Assume Solaris specific bi-arch conventions on Solaris systems.
48785         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
48786         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
48787         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
48788         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
48789         like acl_libdirstem.
48790         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
48791         acl_libdirstem.
48792         * NEWS: Mention the change.
48793         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
48794
48795 2008-08-31  Jim Meyering  <meyering@redhat.com>
48796
48797         * lib/strftime.h: Add comments describing the two added arguments.
48798
48799         remove duplicate #include directives
48800         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
48801         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
48802
48803 2008-08-31  Bruno Haible  <bruno@clisp.org>
48804
48805         New module 'sigpipe-die'.
48806         * modules/sigpipe-die: New file.
48807         * lib/sigpipe-die.h: New file.
48808         * lib/sigpipe-die.c: New file.
48809         * MODULES.html.sh (Signal handling): Add sigpipe-die.
48810
48811 2008-08-31  Bruno Haible  <bruno@clisp.org>
48812
48813         Don't override previously installed signal handlers.
48814         * lib/fatal-signal.c (saved_sigactions): New variable.
48815         (uninstall_handlers): Reset the signal to the saved handler, not
48816         to SIG_DFL (except when ignored).
48817         (install_handlers): Save the previous handlers.
48818
48819 2008-08-30  Bruno Haible  <bruno@clisp.org>
48820
48821         * gnulib-tool (func_reset_sigpipe): New function.
48822         (func_get_automake_snippet, func_modules_transitive_closure,
48823         func_import): Invoke it before a join command that reads from stdin,
48824         to avoid "echo: write error: Broken pipe" error messages on stderr.
48825         Reported by Sam Steingold <sds@gnu.org>.
48826
48827 2008-08-30  Bruno Haible  <bruno@clisp.org>
48828
48829         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
48830         Code copied from m4/open.m4.
48831         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
48832         access and the filename ends in a slash. Code copied from lib/open.c.
48833         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
48834         * tests/test-fopen.c (main): Check against bug with trailing slash.
48835
48836 2008-08-29  Bruno Haible  <bruno@clisp.org>
48837
48838         Avoid some "gcc -pedantic" warnings.
48839         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
48840         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
48841         * lib/dirent.in.h: Likewise.
48842         * lib/fcntl.in.h: Likewise.
48843         * lib/float.in.h: Likewise.
48844         * lib/iconv.in.h: Likewise.
48845         * lib/inttypes.in.h: Likewise.
48846         * lib/locale.in.h: Likewise.
48847         * lib/math.in.h: Likewise.
48848         * lib/netinet_in.in.h: Likewise.
48849         * lib/search.in.h: Likewise.
48850         * lib/signal.in.h: Likewise.
48851         * lib/stdarg.in.h: Likewise.
48852         * lib/stdint.in.h: Likewise.
48853         * lib/stdio.in.h: Likewise.
48854         * lib/stdlib.in.h: Likewise.
48855         * lib/string.in.h: Likewise.
48856         * lib/strings.in.h: Likewise.
48857         * lib/sys_select.in.h: Likewise.
48858         * lib/sys_socket.in.h: Likewise.
48859         * lib/sys_stat.in.h: Likewise.
48860         * lib/sys_time.in.h: Likewise.
48861         * lib/sysexits.in.h: Likewise.
48862         * lib/time.in.h: Likewise.
48863         * lib/unistd.in.h: Likewise.
48864         * lib/wchar.in.h: Likewise.
48865         * lib/wctype.in.h: Likewise.
48866         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
48867         * modules/fchdir (Makefile.am): Likewise.
48868         * modules/fcntl (Makefile.am): Likewise.
48869         * modules/float (Makefile.am): Likewise.
48870         * modules/iconv_open (Makefile.am): Likewise.
48871         * modules/inttypes (Makefile.am): Likewise.
48872         * modules/locale (Makefile.am): Likewise.
48873         * modules/math (Makefile.am): Likewise.
48874         * modules/netinet_in (Makefile.am): Likewise.
48875         * modules/search (Makefile.am): Likewise.
48876         * modules/signal (Makefile.am): Likewise.
48877         * modules/stdarg (Makefile.am): Likewise.
48878         * modules/stdint (Makefile.am): Likewise.
48879         * modules/stdio (Makefile.am): Likewise.
48880         * modules/stdlib (Makefile.am): Likewise.
48881         * modules/string (Makefile.am): Likewise.
48882         * modules/strings (Makefile.am): Likewise.
48883         * modules/sys_select (Makefile.am): Likewise.
48884         * modules/sys_socket (Makefile.am): Likewise.
48885         * modules/sys_stat (Makefile.am): Likewise.
48886         * modules/sys_time (Makefile.am): Likewise.
48887         * modules/sysexits (Makefile.am): Likewise.
48888         * modules/time (Makefile.am): Likewise.
48889         * modules/unistd (Makefile.am): Likewise.
48890         * modules/wchar (Makefile.am): Likewise.
48891         * modules/wctype (Makefile.am): Likewise.
48892         Reported by Reuben Thomas <rrt@sc3d.org>.
48893
48894 2008-08-29  Bruno Haible  <bruno@clisp.org>
48895
48896         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
48897         any more.
48898
48899 2008-08-29  Simon Josefsson  <simon@josefsson.org>
48900
48901         * MODULES.html.sh (Misc): Add bitrotate.
48902
48903         * modules/bitrotate: New file.
48904
48905         * lib/bitrotate.h: New file.
48906
48907         * modules/bitrotate-tests: New file.
48908
48909         * tests/test-bitrotate.c: New file.
48910
48911         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
48912         on the bitrotate module.
48913
48914         * lib/arctwo.c: Use new bitrotate module.
48915
48916 2008-08-29  Jim Meyering  <meyering@redhat.com>
48917
48918         bootstrap: merge changes from coreutils
48919         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
48920         of copied files.  Remove a kludge, now that this is fixed.
48921         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
48922         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
48923         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
48924
48925 2008-08-29  Bruno Haible  <bruno@clisp.org>
48926
48927         * MODULES.html.sh: Remove --cvs-urls option.
48928
48929 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
48930
48931         maint.mk: adjust to file name change
48932         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
48933
48934 2008-08-28  Jim Meyering  <meyering@redhat.com>
48935
48936         * modules/getndelim2 (License): Relicense to LGPLv2+.
48937         Approved by Richard Stallman for the version of 1995, and by
48938         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
48939
48940 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
48941
48942         * lib/getdelim.c (flockfile, funlockfile): Make all of them
48943         dummy if one is not available.  Do not touch them if
48944         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
48945         (getc_maybe_unlocked): New.
48946         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
48947
48948 2008-08-26  Eric Blake  <ebb9@byu.net>
48949
48950         doc/INSTALL: resync from autoconf
48951         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
48952         (INSTALL_PRELUDE): Delete; this is done more efficiently by
48953         moving...
48954         * install.texi [!autoconf]: ...here.  Resync from autoconf.
48955         * INSTALL: Regenerate.
48956         * INSTALL.ISO: New file.
48957         * INSTALL.UTF-8: Likewise.
48958
48959 2008-08-26  Jim Meyering  <meyering@redhat.com>
48960
48961         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
48962         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
48963         these definitions conditional, so that they may be overridden, too.
48964
48965 2008-08-26  Bruno Haible  <bruno@clisp.org>
48966
48967         Generate INSTALL file variants with prettier quotes.
48968         * doc/Makefile (INSTALL_PRELUDE): New macro.
48969         (INSTALL): Use it.
48970         (INSTALL.ISO, INSTALL.UTF-8): New rules.
48971
48972 2008-08-26  Bruno Haible  <bruno@clisp.org>
48973
48974         Run makeinfo in an English locale.
48975         * doc/Makefile (MAKEINFO): New variable.
48976
48977 2008-08-26  Bruno Haible  <bruno@clisp.org>
48978
48979         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
48980         Suggested by Eric Blake.
48981
48982 2008-08-25  Bruno Haible  <bruno@clisp.org>
48983
48984         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
48985
48986 2008-08-25  Eric Blake  <ebb9@byu.net>
48987
48988         c-stack: test that stack overflow can be caught
48989         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
48990         that platform allows handling stack overflow; at least OS/2 EMX
48991         has sigaltstack, but crashes before transferring control to
48992         handler on stack overflow.
48993         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
48994         check for HAVE_STACK_OVERFLOW_HANDLING.
48995         Reported by Elbert Pol.
48996
48997 2008-08-25  Bruno Haible  <bruno@clisp.org>
48998
48999         * doc/posix-functions/strftime.texi: Fix description of strftime
49000         module.
49001
49002 2008-08-24  Bruno Haible  <bruno@clisp.org>
49003
49004         * tests/uniwidth/test-uc_width2.c: New file.
49005         * tests/uniwidth/test-uc_width2.sh: New file.
49006         * modules/uniwidth/width-tests (Files): Add the new files.
49007         (TESTS): Add uniwidth/test-uc_width2.sh.
49008         (TESTS_ENVIRONMENT): New variable.
49009         (check_PROGRAMS): Add test-uc_width2.
49010         (test_uc_width2_SOURCES): New variable.
49011
49012         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
49013         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
49014         not 0x00AB.
49015         Reported by Alexander V. Lukyanov <lav@netis.ru>.
49016
49017 2008-08-22  Eric Blake  <ebb9@byu.net>
49018
49019         test-lock, test-tls: mention why a test is skipped
49020         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
49021         skipped.
49022         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
49023
49024         count-one-bits: relax license
49025         * modules/count-one-bits (License): Relicense to LGPLv2+.
49026         Suggested by Ludovic Courtès, approved by Ben Pfaff.
49027
49028 2008-08-22  Andreas Schwab  <schwab@suse.de>
49029
49030         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
49031         Remove spurious space in assignment.
49032
49033 2008-08-21  Simon Josefsson  <simon@josefsson.org>
49034
49035         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
49036         Paul Eggert <eggert@CS.UCLA.EDU>.
49037
49038 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
49039
49040         * modules/gettext: Add m4/threadlib.m4.
49041
49042 2008-08-19  Eric Blake  <ebb9@byu.net>
49043
49044         test-c-stack: fix compilation failure on FreeBSD 5.0
49045         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
49046         headers before <sys/resource.h>.
49047         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
49048         the bug.
49049         Reported by Nelson H. F. Beebe.
49050
49051         strverscmp: migrate from "strverscmp.h" to <string.h>
49052         * modules/string (Makefile.am): Add new hooks.
49053         * modules/strverscmp (Files): Remove strverscmp.h.
49054         (Depends-on): Add string.
49055         (configure.ac): Add indicator.
49056         (Include): Mention new header.
49057         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
49058         defaults.
49059         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
49060         results.
49061         * lib/strverscmp.h: Delete.
49062         * lib/string.in.h (strverscmp): Provide declaration, when needed.
49063         * tests/test-strverscmp.c (includes): Adjust client.
49064         * lib/check-version.c (includes): Likewise.
49065         * NEWS: Document the change.
49066
49067         strverscmp: add unit test
49068         * modules/strverscmp-tests: New file.
49069         * tests/test-strverscmp.c: Likewise.
49070
49071 2008-08-19  Simon Josefsson  <simon@josefsson.org>
49072
49073         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
49074         regarding Windows crypto stuff, from Mono.
49075
49076 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
49077
49078         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
49079         if present, for intel RND.  Return error on failures.
49080
49081 2008-08-18  Ben Pfaff  <blp@gnu.org>
49082
49083         gitlog-to-changelog: give better diagnostic for failed pipe-open
49084         * build-aux/gitlog-to-changelog: Improve error message: suggest
49085         that the version of Git may be too old.
49086
49087 2008-08-18  Simon Josefsson  <simon@josefsson.org>
49088
49089         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
49090         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
49091
49092 2008-08-18  Bruno Haible  <bruno@clisp.org>
49093
49094         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
49095         pthread_in_use().
49096
49097 2008-08-18  Bruno Haible  <bruno@clisp.org>
49098
49099         * lib/glthread/threadlib.c: Include <pthread.h>.
49100
49101 2008-08-18  Bruno Haible  <bruno@clisp.org>
49102
49103         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
49104         glthread_recursive_lock_* macros.
49105         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
49106         Fix syntax error.
49107
49108 2008-08-18  Bruno Haible  <bruno@clisp.org>
49109
49110         * lib/glthread/thread.c: Avoid forcing a context switch right after
49111         thread creation.
49112
49113 2008-08-17  Bruno Haible  <bruno@clisp.org>
49114
49115         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
49116         * lib/glthread/thread.h: Provide Win32 specific implementation.
49117         * modules/thread (Files): Add lib/glthread/thread.c.
49118         (Depends-on): Add lock.
49119         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
49120
49121 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49122
49123         New module 'yield'.
49124         * modules/yield: New file.
49125         * lib/glthread/yield.h: New file.
49126         * m4/yield.m4: New file.
49127         * MODULES.html.sh (Multithreading): Add yield.
49128
49129 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49130
49131         New module 'thread'.
49132         * modules/thread: New file.
49133         * lib/glthread/thread.h: New file.
49134         * m4/thread.m4: New file.
49135         * MODULES.html.sh (Multithreading): Add thread.
49136
49137 2008-08-17  Bruno Haible  <bruno@clisp.org>
49138
49139         * lib/glthread/lock.h: Include <stdlib.h> always.
49140         * lib/glthread/tls.h: Likewise.
49141         * lib/glthread/cond.h: Likewise.
49142
49143 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49144
49145         New module 'cond'.
49146         * modules/cond: New file.
49147         * lib/glthread/cond.h: New file.
49148         * lib/glthread/cond.c: New file.
49149         * m4/cond.m4: New file.
49150         * MODULES.html.sh (Multithreading): Add cond.
49151
49152 2008-08-16  Eric Blake  <ebb9@byu.net>
49153
49154         c-stack: fix regression on Irix 5.3 from 2008-06-21
49155         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
49156         sa_sigaction...
49157         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
49158         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
49159         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
49160         * modules/signal (Makefile.am): Use the value.
49161         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
49162         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
49163         * doc/posix-headers/signal.texi (signal.h): Document this
49164         portability issue.
49165         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
49166         Reported by Tom G. Christensen.
49167
49168 2008-08-17  Bruno Haible  <bruno@clisp.org>
49169
49170         New module 'threadlib'.
49171         * modules/threadlib: New file.
49172         * lib/glthread/threadlib.c: New file, extracted from
49173         lib/glthread/lock.c.
49174         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
49175         functions.
49176         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
49177         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
49178         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
49179         macros.
49180         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
49181         (gl_DISABLE_THREADS): Remove macro.
49182         * modules/lock (Files): Remove build-aux/config.rpath.
49183         (Depends-on): Remove havelib. Add threadlib.
49184         (configure.ac-early): Remove section.
49185         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
49186         * modules/tls (Depends-on): Remove lock. Add threadlib.
49187         (Link): New section, copied from threadlib.
49188         * MODULES.html.sh (Multithreading): Add threadlib.
49189
49190 2008-08-14  Bruno Haible  <bruno@clisp.org>
49191
49192         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
49193         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
49194         glthread_rwlock_unlock, glthread_rwlock_destroy,
49195         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
49196         glthread_recursive_lock_destroy): Define as macros always.
49197         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
49198         glthread_lock_lock.
49199         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
49200         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
49201         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
49202         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
49203         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
49204         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
49205         (glthread_recursive_lock_lock_func): Renamed from
49206         glthread_recursive_lock_lock.
49207         (glthread_recursive_lock_unlock_func): Renamed from
49208         glthread_recursive_lock_unlock.
49209         (glthread_recursive_lock_destroy_func): Renamed from
49210         glthread_recursive_lock_destroy.
49211
49212 2008-08-14  Bruno Haible  <bruno@clisp.org>
49213
49214         * lib/glthread/lock.h: Renamed from lib/lock.h.
49215         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
49216         * lib/glthread/tls.h: Renamed from lib/tls.h.
49217         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
49218         * lib/fstrcmp.c: Update includes.
49219         * lib/strsignal.c: Update includes.
49220         * modules/lock (Files, Makefile.am): Update.
49221         (Include): Change to "glthread/lock.h".
49222         * modules/tls (Files, Makefile.am): Update.
49223         (Include): Change to "glthread/tls.h".
49224         * tests/test-lock.c: Update includes.
49225         * tests/test-tls.c: Update includes.
49226         * NEWS: Mention the renamed header files.
49227
49228 2008-08-11  Jim Meyering  <meyering@redhat.com>
49229
49230         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
49231
49232 2008-08-11  Eric Blake  <ebb9@byu.net>
49233
49234         test-c-stack: avoid C99-ism
49235         * tests/test-c-stack.c (main): Fix whitespace, move declaration
49236         before statement.
49237         Reported by Alain Guibert.
49238
49239 2008-08-10  Jim Meyering  <meyering@redhat.com>
49240
49241         ensure that return value of uinttostr et al are not ignored
49242         * lib/inttostr.h (__GNUC_PREREQ): Define.
49243         (__attribute_warn_unused_result__): Define.
49244         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
49245
49246 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
49247
49248         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
49249         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
49250
49251 2008-08-07  Jim Meyering  <meyering@redhat.com>
49252
49253         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
49254
49255         * modules/mkstemp (License): Relicense under LGPLv2+.
49256         * modules/tempname (License): Likewise.
49257
49258 2008-08-06  Bruno Haible  <bruno@clisp.org>
49259
49260         * lib/poll.c (poll): Further micro-optimization.
49261
49262 2008-08-06  Jim Meyering  <meyering@redhat.com>
49263
49264         inet_pton.c: use locale-independent tolower
49265         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
49266         (inet_pton6): Use c_tolower rather than tolower.
49267         * modules/inet_pton (Depends-on): Add c-ctype.
49268
49269 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
49270
49271         * lib/poll.c (poll): Avoid division when timeout is 0, cache
49272         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
49273
49274 2008-08-06  Jim Meyering  <meyering@redhat.com>
49275
49276         * modules/inet_pton (License): Relicense under LGPLv2+.
49277
49278 2008-08-03  Bruno Haible  <bruno@clisp.org>
49279
49280         Additional non-aborting API for lock and tls.
49281         * lib/lock.h: Include <errno.h>.
49282         (glthread_lock_init): New macro/function.
49283         (gl_lock_init): Define as wrapper around glthread_lock_init.
49284         (glthread_lock_lock): New macro/function.
49285         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
49286         (glthread_lock_unlock): New macro/function.
49287         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
49288         (glthread_lock_destroy): New macro/function.
49289         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
49290         (glthread_rwlock_init): New macro/function.
49291         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
49292         (glthread_rwlock_rdlock): New macro/function.
49293         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
49294         (glthread_rwlock_wrlock): New macro/function.
49295         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
49296         (glthread_rwlock_unlock): New macro/function.
49297         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
49298         (glthread_rwlock_destroy): New macro/function.
49299         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
49300         (glthread_recursive_lock_init): New macro/function.
49301         (gl_recursive_lock_init): Define as wrapper around
49302         glthread_recursive_lock_init.
49303         (glthread_recursive_lock_lock): New macro/function.
49304         (gl_recursive_lock_lock): Define as wrapper around
49305         glthread_recursive_lock_lock.
49306         (glthread_recursive_lock_unlock): New macro/function.
49307         (gl_recursive_lock_unlock): Define as wrapper around
49308         glthread_recursive_lock_unlock.
49309         (glthread_recursive_lock_destroy): New macro/function.
49310         (gl_recursive_lock_destroy): Define as wrapper around
49311         glthread_recursive_lock_destroy.
49312         (glthread_once): New macro/function.
49313         (gl_once): Define as wrapper around glthread_once.
49314         Update function declarations.
49315         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
49316         glthread_rwlock_init. Return error code.
49317         (glthread_rwlock_rdlock_multithreaded): Renamed from
49318         glthread_rwlock_rdlock. Return error code.
49319         (glthread_rwlock_wrlock_multithreaded): Renamed from
49320         glthread_rwlock_wrlock. Return error code.
49321         (glthread_rwlock_unlock_multithreaded): Renamed from
49322         glthread_rwlock_unlock. Return error code.
49323         (glthread_rwlock_destroy_multithreaded): Renamed from
49324         glthread_rwlock_destroy. Return error code.
49325         (glthread_recursive_lock_init_multithreaded): Renamed from
49326         glthread_recursive_lock_init. Return error code.
49327         (glthread_recursive_lock_lock_multithreaded): Renamed from
49328         glthread_recursive_lock_lock. Return error code.
49329         (glthread_recursive_lock_unlock_multithreaded): Renamed from
49330         glthread_recursive_lock_unlock. Return error code.
49331         (glthread_recursive_lock_destroy_multithreaded): Renamed from
49332         glthread_recursive_lock_destroy. Return error code.
49333         (glthread_once_call): Make static.
49334         (glthread_once_multithreaded): Renamed from glthread_once.
49335         * lib/tls.h: Include <errno.h>.
49336         (glthread_tls_key_init): New macro/function.
49337         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
49338         (glthread_tls_set): New macro/function.
49339         (gl_tls_set): Define as wrapper around glthread_tls_set.
49340         (glthread_tls_key_destroy): New macro/function.
49341         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
49342         Update function declarations.
49343         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
49344         glthread_tls_get.
49345         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49346
49347 2008-08-04  Eric Blake  <ebb9@byu.net>
49348
49349         gnumakefile: use space, not TAB, outside of targets
49350         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
49351
49352 2008-08-02  Jim Meyering  <meyering@redhat.com>
49353
49354         getdate.y: avoid locale-dependent date parsing failure
49355         In Turkish locales, getdate would fail to recognize keywords
49356         containing a lowercase "i".  The solution is not to rely on
49357         locale-sensitive case-conversion.
49358         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
49359         (lookup_word): Use c_toupper in place of toupper.
49360         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
49361         Reported by Vefa Bicakci <bicave@superonline.com> in
49362         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
49363         * modules/getdate (Depends-on): Add c-ctype.
49364
49365 2008-08-02  Bruno Haible  <bruno@clisp.org>
49366
49367         * gnulib-tool (func_import): When updating or creating a .gitignore
49368         file, prepend each added line with a slash, and ignore leading slashes
49369         from the existing lines.
49370         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49371
49372 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49373
49374         Portability fix for GNU make 3.79.1.
49375         * top/GNUmakefile: Avoid 'else COND', which older GNU make
49376         versions do not understand.
49377
49378 2008-08-01  Bruno Haible  <bruno@clisp.org>
49379
49380         Work around bug of HP-UX 10.20 cc with -0.0 literal.
49381         * tests/test-isnanf.h (zero): New variable.
49382         (main): Avoid literal -0.0f.
49383         * tests/test-isnand.h (zero): New variable.
49384         (main): Avoid literal -0.0.
49385         * tests/test-isnanl.h (zero): New variable.
49386         (main): Avoid literal -0.0L.
49387         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
49388         (test_float, test_double, test_long_double): Avoid literals -0.0f,
49389         -0.0, -0.0L.
49390         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
49391         (test_signbitd): Avoid literal -0.0.
49392         (test_signbitl): Avoid literal -0.0L.
49393         * tests/test-ceilf1.c (zero): New variable.
49394         (main): Avoid literal -0.0f.
49395         * tests/test-ceill.c (zero): New variable.
49396         (main): Avoid literal -0.0L.
49397         * tests/test-floorf1.c (zero): New variable.
49398         (main): Avoid literal -0.0f.
49399         * tests/test-floorl.c (zero): New variable.
49400         (main): Avoid literal -0.0L.
49401         * tests/test-roundf1.c (zero): New variable.
49402         (main): Avoid literal -0.0f.
49403         * tests/test-round1.c (zero): New variable.
49404         (main): Avoid literal -0.0.
49405         * tests/test-roundl.c (zero): New variable.
49406         (main): Avoid literal -0.0L.
49407         * tests/test-truncf1.c (zero): New variable.
49408         (main): Avoid literal -0.0f.
49409         * tests/test-trunc1.c (zero): New variable.
49410         (main): Avoid literal -0.0.
49411         * tests/test-truncl.c (zero): New variable.
49412         (main): Avoid literal -0.0L.
49413         * tests/test-frexp.c (zero): New variable.
49414         (main): Avoid literal -0.0.
49415         * tests/test-frexpl.c (zero): New variable.
49416         (main): Avoid literal -0.0L.
49417         * tests/test-ldexpl.c (zero): New variable.
49418         (main): Avoid literal -0.0L.
49419         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49420         (zerod, zerol): New variables.
49421         (test_function): Avoid literals -0.0, -0.0L.
49422         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49423         (zerod, zerol): New variables.
49424         (test_function): Avoid literals -0.0, -0.0L.
49425         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49426         (zerod, zerol): New variables.
49427         (test_function): Avoid literals -0.0, -0.0L.
49428         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49429         (zerod, zerol): New variables.
49430         (test_function): Avoid literals -0.0, -0.0L.
49431         * tests/test-strtod.c (zero): New variable.
49432         (main): Avoid literal -0.0.
49433         Reported by Jonathan C. Patschke <jp@centtech.com>.
49434
49435 2008-07-31  Jim Meyering  <meyering@redhat.com>
49436
49437         sha256.h: correct definition of SHA224_DIGEST_SIZE
49438         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
49439         Reported by Paulie Pena IV <paulie4@gmail.com>.
49440         Define as 224 / 8, rather than as a literal.
49441         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
49442         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
49443         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
49444
49445 2008-07-31  Bruno Haible  <bruno@clisp.org>
49446
49447         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
49448         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
49449         Reported by Jonathan Patschke <jp@centtech.com>.
49450
49451 2008-07-31  Bruno Haible  <bruno@clisp.org>
49452
49453         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
49454         Reported by Paolo Bonzini <bonzini@gnu.org>.
49455
49456 2008-07-30  Eric Blake  <ebb9@byu.net>
49457
49458         test-strtod: allow compilation without -lm
49459         * tests/test-strtod.c (main): Avoid link dependence on fabs.
49460         Reported by Dennis Clarke <blastwave@gmail.com>.
49461
49462 2008-07-28  Jim Meyering  <meyering@redhat.com>
49463
49464         bootstrap: work also when there are no .po files in po/
49465         * build-aux/bootstrap (update_po_files): Complete the change
49466         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
49467
49468 2008-07-27  Jim Meyering  <meyering@redhat.com>
49469
49470         * users.txt: Add zile.
49471
49472 2008-07-26  Ben Pfaff  <blp@gnu.org>
49473
49474         Add missing dependencies on new m4/exponent[fdl].m4 files.
49475         * modules/isnanf-nolibm: Add m4/exponentf.m4.
49476         * modules/isnand-nolibm: Add m4/exponentd.m4.
49477         * modules/isnanl-nolibm: Add m4/exponentl.m4.
49478         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
49479         m4/isnan[fdl].m4, because the macros actually used moved.
49480         Reported by Jim Meyering.
49481
49482 2008-07-14  Ben Pfaff  <blp@gnu.org>
49483
49484         Add isinf module.
49485         * lib/isinf.c: New file.
49486         * lib/math.in.h: Define isinf macro if we have decided to replace
49487         it.
49488         * m4/isinf.m4: New file.
49489         * m4/math_h.m4: Initialize and substitute variables for isinf
49490         module.
49491         * modules/isinf: New file.
49492         * modules/isinf-tests: New file.
49493         * modules/math: Add substitutions for new module.
49494         * tests/test-isinf.c: New file.
49495         * doc/posix-functions/isinf.texi: Mention new module.
49496         * MODULES.html.sh: Mention new module.
49497
49498 2008-07-14  Ben Pfaff  <blp@gnu.org>
49499
49500         Factor out some macros for use by additional modules.
49501         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
49502         exponentf.m4.
49503         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
49504         exponentd.m4.
49505         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
49506         file exponentl.m4.
49507         * m4/exponentf.m4: New file.
49508         * m4/exponentd.m4: New file.
49509         * m4/exponentl.m4: New file.
49510         * modules/isnanf: Use new file m4/exponentf.m4.
49511         * modules/isnand: Use new file m4/exponentd.m4.
49512         * modules/isnanl: Use new file m4/exponentl.m4.
49513
49514 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
49515
49516         mktime.c: normalize tp->tm_isdst value to -1/0/1.
49517         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
49518         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
49519         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
49520
49521         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
49522         readlink on platforms without PATH_MAX.
49523
49524 2008-07-21  Eric Blake  <ebb9@byu.net>
49525
49526         Warn, not fail, on stale version.
49527         * top/GNUmakefile (_curr-ver): Tone down previous patch.
49528
49529         Don't allow installation with stale devel version number.
49530         * top/GNUmakefile (_is-install-target): New macro.
49531         (_curr-ver): Forbid installation with stale version number.
49532
49533 2008-07-20  Bruno Haible  <bruno@clisp.org>
49534
49535         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
49536         TESTS_ENVIRONMENT.
49537         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
49538
49539 2008-07-20  Bruno Haible  <bruno@clisp.org>
49540
49541         * lib/c-stack.h (c_stack_action): Add documentation.
49542         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
49543
49544 2008-07-20  Bruno Haible  <bruno@clisp.org>
49545
49546         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
49547         * modules/readlink (License): Likewise.
49548
49549 2008-07-17  Eric Blake  <ebb9@byu.net>
49550
49551         * modules/c-stack (Link): Fix typo.
49552
49553         Make c-stack use libsigsegv, when available.
49554         * modules/c-stack (Depends-on): Add libsigsegv.
49555         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
49556         needed.
49557         * lib/c-stack.c (SIGSTKSZ): Define fallback.
49558         (segv_handler, overflow_handler, c_stack_action)
49559         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
49560         implementation when libsigsegv is available, but only when using
49561         the library is necessary.
49562         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
49563         comment, explaining why XSI check fails on Linux.
49564         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
49565         * tests/test-c-stack2.sh: Tweak skip message.
49566         * NEWS: Document new link-time requirements.
49567
49568 2008-07-16  Eric Blake  <ebb9@byu.net>
49569
49570         c-stack: Expose false positives when not using libsigsegv.
49571         * modules/c-stack-tests (Files): Expand test.
49572         * tests/test-c-stack.c (main): Add means to conditionally trigger
49573         non-overflow SIGSEGV.
49574         * tests/test-c-stack2.sh: New file.
49575
49576 2008-07-14  Bruno Haible  <bruno@clisp.org>
49577
49578         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
49579         Reported by Eric Blake.
49580
49581 2008-07-14  Sam Steingold  <sds@gnu.org>
49582             Bruno Haible  <bruno@clisp.org>
49583
49584         New module libsigsegv.
49585         * modules/libsigsegv: New file.
49586         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
49587         modifications.
49588         * MODULES.html.sh (Signal handling): New section.
49589
49590 2008-07-14  Bruno Haible  <bruno@clisp.org>
49591
49592         * modules/unictype/ctype-* (Description): Add the word "function".
49593         Improves the resulting doc in MODULES.html.
49594
49595 2008-07-12  Ben Pfaff  <blp@gnu.org>
49596
49597         Add longlong module.
49598         * modules/longlong: New file.
49599
49600 2008-07-12  Bruno Haible  <bruno@clisp.org>
49601
49602         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
49603         to empty.
49604
49605 2008-07-10  Ben Pfaff  <blp@gnu.org>
49606
49607         Add isnan module.
49608         * doc/posix-functions/isnan.texi: Mention new module.
49609         * lib/math.in.h: Define isnan macro if we have decided to replace
49610         it.
49611         * m4/isnan.m4: New file.
49612         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
49613         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
49614         also.
49615         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
49616         redundancy.
49617         * m4/math_h.m4: Initialize and substitute variables for isnan
49618         module.
49619         * modules/isnan: New file.
49620         * modules/isnan-tests: New file.
49621         * modules/math: Add substitutions for new module.
49622         * tests/test-isnan.c: New file.
49623         * MODULES.html.sh: Mention new module.
49624
49625 2008-07-10  Ben Pfaff  <blp@gnu.org>
49626
49627         Add isnanf module.
49628         * lib/isnanf.m4: New file.
49629         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
49630         (gl_HAVE_ISNANF_IN_LIBM): New macro.
49631         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
49632         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
49633         * modules/isnanf: New file.
49634         * modules/isnanf-tests: New file.
49635         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
49636         files.
49637         * tests/test-isnanf-nolibm.c: factored most of its contents into
49638         new file tests/test-isnanf.h.
49639         * tests/test-isnanf.h: New file.
49640         * tests/test-isnanf.c: New file.
49641         * MODULES.html.sh: Mention new module.
49642         * doc/glibc-functions/isnanf.texi: Mention new module.
49643
49644 2008-07-10  Ben Pfaff  <blp@gnu.org>
49645
49646         Add isnand module.
49647         * lib/isnand.h: New file.
49648         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
49649         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
49650         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
49651         functionality also.
49652         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
49653         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
49654         (gl_HAVE_ISNAND_IN_LIBM): New macro.
49655         * modules/isnand: New file.
49656         * modules/isnand-tests: New file.
49657         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
49658         files.
49659         * tests/test-isnand-nolibm.c: factored most of its contents into
49660         new file tests/test-isnand.h.
49661         * tests/test-isnand.h: New file.
49662         * tests/test-isnand.c: New file.
49663         * MODULES.html.sh: Mention new module.
49664
49665 2008-07-10  Ben Pfaff  <blp@gnu.org>
49666
49667         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
49668         * lib/isnand.h: Rename lib/isnand-nolibm.h.
49669         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
49670         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
49671         * modules/isnanf-nolibm: Update references to renamed files.
49672         * modules/isnand-nolibm: Likewise.
49673         * modules/isnanf-nolibm-tests: Likewise.
49674         * modules/isnand-nolibm-tests: Likewise.
49675         * lib/frexp.c: Likewise.
49676         * lib/isfinite.c: Likewise.
49677         * lib/signbitd.c: Likewise.
49678         * lib/signbitf.c: Likewise.
49679         * lib/vasnprintf.c: Likewise.
49680         * tests/test-ceilf1.c: Likewise.
49681         * tests/test-ceilf2.c: Likewise.
49682         * tests/test-floorf1.c: Likewise.
49683         * tests/test-floorf2.c: Likewise.
49684         * tests/test-frexp.c: Likewise.
49685         * tests/test-round1.c: Likewise.
49686         * tests/test-round2.c: Likewise.
49687         * tests/test-roundf1.c: Likewise.
49688         * tests/test-strtod.c: Likewise.
49689         * tests/test-trunc1.c: Likewise.
49690         * tests/test-trunc2.c: Likewise.
49691         * tests/test-truncf1.c: Likewise.
49692         * tests/test-truncf2.c: Likewise.
49693         * NEWS: Mention the renamed header files.
49694
49695 2008-07-11  Jim Meyering  <meyering@redhat.com>
49696
49697         vc-list-files: make the last-resort awk code more portable
49698         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
49699         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
49700         does not support it.
49701
49702 2008-07-10  Eric Blake  <ebb9@byu.net>
49703
49704         Work with tar's bootstrap.
49705         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
49706         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
49707         an m4 comment.
49708
49709 2008-07-09  Jim Meyering  <meyering@redhat.com>
49710
49711         posix-shell.m4: fix typo that made this test malfunction
49712         * m4/posix-shell.m4: Remove capitalization in variable name.
49713
49714 2008-07-08  Bruno Haible  <bruno@clisp.org>
49715
49716         * m4/onceonly.m4: Update comments.
49717         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49718
49719 2008-07-04  Jim Meyering  <meyering@redhat.com>
49720
49721         * users.txt: Add vc-dwim.
49722         (bison, coreutils): Use the gitweb URL.
49723
49724 2008-07-03  Jim Meyering  <meyering@redhat.com>
49725
49726         * users.txt: Add libffcall.  From Sam Steingold.
49727
49728 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
49729
49730         getdate.y: do not ignore TZ with relative day, month or year offset
49731         * lib/getdate.y (get_date): Move the tz-handling block to follow the
49732         relative-date-handling, since otherwise, the latter would clobber the
49733         sole output (an updated Start value) of the tz-handling block.
49734         * tests/test-getdate.c: Tests for the fix
49735
49736 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49737
49738         Recognize 'foo_LIBRARIES += libgnu.a'.
49739         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
49740         makefile snippet has already specified an installation location,
49741         also using '+='.
49742
49743 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
49744
49745         getdate.y: factor out common actions
49746         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
49747         Use them in place of open-coded actions.
49748
49749 2008-07-01  Simon Josefsson  <simon@josefsson.org>
49750
49751         Add self-test for getdate module.
49752         * modules/getdate-tests: New file.
49753         * tests/test-getdate.c: New file.
49754
49755 2008-06-29  Bruno Haible  <bruno@clisp.org>
49756
49757         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
49758         .gitignore.
49759         Reported by Sylvain Beucler <beuc@beuc.net>.
49760
49761 2008-06-29  Bruno Haible  <bruno@clisp.org>
49762
49763         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
49764         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
49765
49766 2008-06-29  Bruno Haible  <bruno@clisp.org>
49767
49768         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
49769         EXTRA_DIST.
49770         Reported by Sylvain Beucler <beuc@beuc.net>.
49771
49772 2008-06-26  Jim Meyering  <meyering@redhat.com>
49773
49774         make several modules depend on the "open" module
49775         This provides slightly increased consistency when opening-for-write
49776         the name of a non-directory spelled with a trailing slash.
49777         * modules/chdir-safer: Likewise.
49778         * modules/chown: Likewise.
49779         * modules/clean-temp: Likewise.
49780         * modules/copy-file: Likewise.
49781         * modules/fchdir: Likewise.
49782         * modules/fcntl-safer: Likewise.
49783         * modules/pipe: Likewise.
49784         * modules/utime: Likewise.
49785         Prompted by Eric Blake and Bruno Haible.
49786
49787 2008-06-24  Andreas Schwab  <schwab@suse.de>
49788
49789         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
49790         literals can be used as initializers for global variables.
49791
49792 2008-06-23  Eric Blake  <ebb9@byu.net>
49793
49794         Make gnulib-cache.m4 easier to diff.
49795         * gnulib-tool (func_import): Allow newlines when reading cached
49796         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
49797
49798 2008-06-23  Bruno Haible  <bruno@clisp.org>
49799
49800         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
49801         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
49802         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
49803         m4/signalblocking.m4.
49804         (gl_PREREQ_SIGACTION): Don't invoke it.
49805         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
49806         gl_PREREQ_SIG_HANDLER_H.
49807         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49808         Don't check for sigaction here.
49809
49810 2008-06-23  Bruno Haible  <bruno@clisp.org>
49811
49812         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
49813         (install_handlers): Don't set the SA_RESETHAND flag.
49814
49815 2008-06-23  Bruno Haible  <bruno@clisp.org>
49816
49817         * m4/sigaction.m4: Comment fixes.
49818         * lib/signal.in.h: Likewise.
49819
49820 2008-06-23  Eric Blake  <ebb9@byu.net>
49821
49822         Fix typo.
49823         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
49824
49825         Avoid SA_ namespace.
49826         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
49827         Reported by Ralf Wildenhues.
49828
49829         Avoid test failure due to SA_RESTORER.
49830         * tests/test-sigaction.c (SA_MASK): New macro.
49831         (main): Avoid failing due to extension flags being set.
49832         Reported by Jim Meyering.
49833
49834         Revert use of sig-handler.h in sigprocmask.c.
49835         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
49836         it requires the existence of struct sigaction.
49837         * lib/sigprocmask.c (handler_t): Restore typedef.
49838         (rpl_signal, old_handlers): Use local type.
49839
49840 2008-06-22  Bruno Haible  <bruno@clisp.org>
49841
49842         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
49843         conditionally.
49844         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49845
49846 2008-06-22  Bruno Haible  <bruno@clisp.org>
49847
49848         * doc/posix-functions/siginterrupt.texi: Move note.
49849
49850         * lib/signal.in.h (SA_RESTART): New macro.
49851         * lib/sigaction.c: Update comment.
49852
49853         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
49854
49855         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
49856         (gl_PREREQ_SIGPROCMASK): Invoke it.
49857         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
49858
49859         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
49860
49861         * lib/sigprocmask.c: Update a comment.
49862
49863 2008-06-21  Eric Blake  <ebb9@byu.net>
49864
49865         Use sigaction module rather than signal().
49866         * modules/c-stack (Depends-on): Add sigaction.
49867         * modules/fatal-signal (Depends-on): Likewise.
49868         * modules/nanosleep (Depends-on): Likewise.
49869         * modules/sigprocmask (Files): Add sig-handler.h.
49870         * modules/sigaction (Files): Likewise.
49871         * lib/sig-handler.h (get_handler): New file, suggested by Paul
49872         Eggert.
49873         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
49874         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
49875         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
49876         (init_fatal_signals): Likewise.
49877         * lib/nanosleep.c (rpl_nanosleep): Likewise.
49878         (siginterrupt): Delete fallback.
49879         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
49880         instead.
49881         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
49882         siginterrupt.
49883
49884         New module sigaction, for mingw.
49885         * modules/sigaction: New module...
49886         * modules/sigaction-tests: ...and its test.
49887         * m4/sigaction.m4: New file.
49888         * lib/sigaction.c: Likewise.
49889         * tests/test-sigaction.c: Likewise.
49890         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
49891         * modules/signal (Makefile.am): Likewise.
49892         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
49893         needed.
49894         * doc/posix-headers/signal.texi (signal.h): Mention provided
49895         types.
49896         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
49897         that sigaction is preferable.
49898         * doc/posix-functions/sigaction.texi (sigaction): Mention new
49899         module.
49900         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49901         sigaction.
49902
49903         Improve robustness of sigprocmask by overriding signal.
49904         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
49905         is in use.
49906         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
49907         (SIGKILL, SIGSTOP): Provide fallbacks.
49908         (rpl_signal): Implement.
49909         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
49910         signal can be called inside handlers.
49911
49912         Fix nanosleep module on mingw.
49913         * modules/nanosleep (Depends-on): Add sys_select.
49914         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
49915
49916         Fix licensing of sigprocmask.
49917         * modules/raise (License): Relicense as LGPL.
49918
49919 2008-06-21  Bruno Haible  <bruno@clisp.org>
49920
49921         * lib/propername.c (proper_name_utf8): Don't use the transliterated
49922         result if it contains question marks.
49923         Reported by Michael Geng <linux@michaelgeng.de>.
49924
49925 2008-06-19  Bruno Haible  <bruno@clisp.org>
49926
49927         Fix CVS-ism.
49928         * doc/gnulib.texi: Include updated-stamp.texi.
49929         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
49930         (updated-stamp.texi): New rule.
49931         (gnulib.info): Depend on it.
49932         * doc/.gitignore: Add updated-stamp.texi.
49933         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
49934
49935 2008-06-19  Bruno Haible  <bruno@clisp.org>
49936
49937         * doc/Makefile (gnulib.info): Update and simplify dependencies.
49938         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49939
49940 2008-06-19  Eric Blake  <ebb9@byu.net>
49941
49942         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
49943         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
49944         Reported by Stepan Kasal.
49945
49946 2008-06-18  Bruno Haible  <bruno@clisp.org>
49947
49948         * lib/fatal-signal.c (init_fatal_signals): Add comment.
49949         Reported by Eric Blake.
49950
49951 2008-06-18  Eric Blake  <ebb9@byu.net>
49952
49953         Work around cygwin 1.5.25 strsignal bug.
49954         * tests/test-strsignal.c: Allow for const char *.
49955         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
49956
49957 2008-06-18  Simon Josefsson  <simon@josefsson.org>
49958
49959         * users.txt: Update URL to article and add author/date
49960         information.
49961
49962 2008-06-17  Bruno Haible  <bruno@clisp.org>
49963
49964         New macro gl_DISABLE_THREADS.
49965         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
49966         if the user did not pass --enable-threads or --disable-threads option.
49967         (gl_DISABLE_THREADS): New macro.
49968         Reported by Eric Blake <ebb9@byu.net>.
49969
49970 2008-06-17  Bruno Haible  <bruno@clisp.org>
49971
49972         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
49973         when the macro ignores it.
49974         Based on a patch by Eric Blake <ebb9@byu.net>.
49975
49976 2008-06-17  Bruno Haible  <bruno@clisp.org>
49977
49978         * modules/tls (License): Change to LGPLv2+.
49979         Reported by Eric Blake.
49980
49981 2008-06-17  Eric Blake  <ebb9@byu.net>
49982
49983         Simplify c-stack prerequisites.
49984         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
49985         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
49986         no longer requires <ucontext.h> to exist.  Optimize setrlimit
49987         check.
49988         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
49989         <sys/resource.h>.
49990
49991         Move c-stack test into testsuite.
49992         * modules/c-stack-tests: New file.
49993         * lib/c-stack.c [DEBUG]: Move test program...
49994         * tests/test-c-stack.c: ...into this new file.  Skip rather than
49995         fail test if sigaltstack is lacking.
49996         * tests/test-c-stack.sh: New driver file.
49997
49998 2008-06-16  Eric Blake  <ebb9@byu.net>
49999
50000         Use raise module consistently.
50001         * modules/fatal-signal (Depends-on): Add raise.
50002         * modules/sigprocmask (Depends-on): Likewise.
50003         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
50004         * lib/sigprocmask.c (sigprocmask): Likewise.
50005         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50006         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
50007
50008         Fix compliance bug in sigpending.
50009         * lib/sigprocmask.c (sigpending): Return pending array via
50010         parameter, not return value.
50011
50012 2008-06-14  Eric Blake  <ebb9@byu.net>
50013
50014         Improve obstack-printf test code.
50015         * tests/test-obstack-printf.c (test_function): Fix comment, and
50016         simplify usage of obstack_* in macros.  Add a test for coverage.
50017         Reported by Bruno Haible.
50018
50019 2008-06-14  Bruno Haible  <bruno@clisp.org>
50020
50021         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
50022         array size as a constant, not as a const variable.
50023         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
50024         AC_USE_SYSTEM_EXTENSIONS.
50025         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50026         Test whether the obstack_printf function actually exists.
50027         * modules/obstack-printf (Depends-on): Add extensions.
50028         (Include): Remove obstack.h.
50029         * modules/obstack-printf-posix (Depends-on): Add extensions.
50030         (Include): Remove obstack.h.
50031
50032 2008-06-13  Eric Blake  <ebb9@byu.net>
50033
50034         Add obstack-printf and obstack-printf-posix modules.
50035         * modules/obstack-printf: New file.
50036         * modules/obstack-printf-posix: Likewise.
50037         * MODULES.html.sh (Misc): Mention them.
50038         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50039         Likewise.
50040         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50041         Likewise.
50042         * modules/stdio (Makefile.am): Accomodate new modules.
50043         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50044         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
50045         Declare.
50046         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
50047         functions.
50048         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
50049         (gl_REPLACE_OBSTACK_PRINTF): New macros
50050         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
50051         * tests/test-obstack-printf.c: New file.
50052         * modules/obstack-printf-tests: Likewise.
50053         * modules/obstack-printf-posix-tests: Likewise.
50054
50055 2008-06-11  Bruno Haible  <bruno@clisp.org>
50056
50057         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
50058         * lib/open.c: Include errno.h.
50059         (open): Fail when attempting to write to a file that has a trailing
50060         slash.
50061         * tests/test-open.c (main): Test against trailing slash bug.
50062         * doc/posix-functions/open.texi: Mention the trailing slash bug.
50063
50064 2008-06-10  Bruno Haible  <bruno@clisp.org>
50065
50066         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
50067         for $? to work inside the trap command, with various /bin/sh-s.
50068         * tests/test-vc-list-files-cvs.sh: Likewise.
50069
50070 2008-06-10  Bruno Haible  <bruno@clisp.org>
50071
50072         * lib/acl-internal.h: Don't include gettext.h here.
50073         * lib/set-mode-acl.c: Include gettext.h here.
50074         * lib/copy-acl.c: Likewise.
50075
50076 2008-06-10  Bruno Haible  <bruno@clisp.org>
50077
50078         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
50079         * lib/wait-process.c (wait_subprocess): Likewise.
50080         * lib/execute.h (execute): Add termsigp argument.
50081         * lib/execute.c (execute): Likewise.
50082         * lib/csharpcomp.c (compile_csharp_using_pnet,
50083         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
50084         * lib/csharpexec.c (execute_csharp_using_pnet,
50085         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
50086         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
50087         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
50088         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
50089         is_jikes_present): Update.
50090         * lib/javaexec.c (execute_java_class): Update.
50091         * lib/javaversion.c (execute_and_read_line): Update.
50092         * NEWS: Document the changes.
50093         Reported by Eric Blake.
50094
50095 2008-06-10  Eric Blake  <ebb9@byu.net>
50096
50097         Add missing include.
50098         * tests/test-strstr.c (includes): Add <signal.h>.
50099         * tests/test-strcasestr.c (includes): Likewise.
50100         * tests/test-memmem.c (includes): Likewise.
50101
50102 2008-06-10  Bruno Haible  <bruno@clisp.org>
50103
50104         * lib/wait-process.c (wait_subprocess): Add an assertion.
50105
50106 2008-06-10  Bruno Haible  <bruno@clisp.org>
50107
50108         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
50109
50110 2008-06-10  Bruno Haible  <bruno@clisp.org>
50111
50112         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
50113         using alarm().
50114         * tests/test-strcasestr.c (main): Likewise.
50115         * tests/test-strstr.c (main): Likewise.
50116
50117 2008-06-09  Bruno Haible  <bruno@clisp.org>
50118
50119         Work around the Solaris 10 ACE ACLs ABI change.
50120         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
50121         declare if ACL_NO_TRIVIAL is present.
50122         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
50123         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
50124         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
50125         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
50126         define if ACL_NO_TRIVIAL is present.
50127         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
50128         and use the current ABI.
50129         (file_has_acl): Use same #if condition as elsewhere.
50130         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
50131         in use, and use the current ABI.
50132         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
50133         Reported by Jim Meyering.
50134
50135 2008-06-09  Eric Blake  <ebb9@byu.net>
50136
50137         Work around environments that (stupidly) ignore SIGALRM.
50138         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
50139         before using alarm().
50140         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50141         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50142         Reported by Ian Beckwith <ianb@erislabs.net>.
50143
50144         Produce autobuild blurb earlier in log.
50145         * modules/autobuild (configure.ac-early): Move AB_INIT here.
50146
50147 2008-06-09  Jim Meyering  <meyering@redhat.com>
50148         and OndÅ™ej Vašík  <ovasik@redhat.com>
50149
50150         utimens.c: correct kernel bug work-around
50151         OndÅ™ej Vašík found that the invalid return value of 280 indicates
50152         failure, not success, and the kernel bug we're trying to work
50153         around affects not just the utimensat call, but also the fallback
50154         futimens call.
50155         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
50156         not success.
50157         [HAVE_FUTIMENS]: Use the same work-around, here.
50158
50159 2008-06-09  Jim Meyering  <meyering@redhat.com>
50160
50161         add more guards around definition of ACE_-related code
50162         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
50163         ALLOW and ACE_OWNER are also defined.
50164
50165 2008-06-08  Bruno Haible  <bruno@clisp.org>
50166
50167         * lib/acl-internal.h: Add me as co-author.
50168         * lib/file-has-acl.c: Likewise.
50169         * lib/set-mode-acl.c: Likewise.
50170         * lib/copy-acl.c: Likewise.
50171
50172 2008-06-08  Bruno Haible  <bruno@clisp.org>
50173
50174         Add support for AIX ACLs.
50175         * lib/acl-internal.h (acl_nontrivial): New declaration.
50176         * lib/file-has-acl.c (acl_nontrivial): New function.
50177         (file_has_acl): Add implementation using AIX 4 ACL API.
50178         * lib/set-mode-acl.c (qset_acl): Likewise.
50179         * lib/copy-acl.c (qcopy_acl): Likewise.
50180
50181 2008-06-08  Bruno Haible  <bruno@clisp.org>
50182
50183         Add support for HP-UX ACLs.
50184         * lib/acl-internal.h (acl_nontrivial): New declaration.
50185         * lib/file-has-acl.c (acl_nontrivial): New function.
50186         (file_has_acl): Add implementation using HP-UX 11 ACL API.
50187         * lib/set-mode-acl.c (qset_acl): Likewise.
50188         * lib/copy-acl.c (qcopy_acl): Likewise.
50189
50190 2008-06-08  Bruno Haible  <bruno@clisp.org>
50191
50192         Add support for Cygwin ACLs.
50193         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
50194         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
50195         the chmod_or_fchmod call.
50196         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
50197
50198 2008-06-08  Bruno Haible  <bruno@clisp.org>
50199
50200         Fix bug with setuid modes in Solaris 10+ code.
50201         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
50202         succeeded, when the mode contains some special bits.
50203
50204 2008-06-08  Bruno Haible  <bruno@clisp.org>
50205
50206         Add support for Solaris 7..10 ACLs.
50207         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
50208         declarations.
50209         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
50210         functions.
50211         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
50212         * lib/set-mode-acl.c (qset_acl): Likewise.
50213         * lib/copy-acl.c (qcopy_acl): Likewise.
50214
50215 2008-06-08  Bruno Haible  <bruno@clisp.org>
50216
50217         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
50218         declaration.
50219         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
50220         (acl_access_nontrivial): Remove MacOS X case.
50221         (file_has_acl): Use acl_extended_nontrivial.
50222         * lib/copy-acl.c (qcopy_acl): Likewise.
50223
50224 2008-06-08  Bruno Haible  <bruno@clisp.org>
50225
50226         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
50227
50228 2008-06-08  Jim Meyering  <meyering@redhat.com>
50229
50230         * modules/acl (Maintainer): Add Bruno Haible.
50231
50232 2008-06-07  Bruno Haible  <bruno@clisp.org>
50233
50234         Improve support for Tru64 ACLs.
50235         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
50236         ACL on OSF/1.
50237
50238 2008-06-07  Bruno Haible  <bruno@clisp.org>
50239
50240         Add support for MacOS X ACLs.
50241         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
50242         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
50243         * lib/set-mode-acl.c (qset_acl): Likewise.
50244         * lib/copy-acl.c (qcopy_acl): Likewise.
50245
50246 2008-06-07  Bruno Haible  <bruno@clisp.org>
50247
50248         Fix memory leak introduced on 2008-05-22.
50249         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
50250         use.
50251
50252 2008-06-07  Bruno Haible  <bruno@clisp.org>
50253
50254         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
50255         to construct an empty ACL.
50256
50257 2008-06-07  Bruno Haible  <bruno@clisp.org>
50258
50259         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
50260         precisely.
50261         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
50262
50263 2008-06-07  Bruno Haible  <bruno@clisp.org>
50264
50265         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
50266         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
50267
50268 2008-06-07  Bruno Haible  <bruno@clisp.org>
50269
50270         * doc/posix-functions/_setjmp.texi: Explain the use of this function
50271         regardless of POSIX.
50272         * doc/posix-functions/_longjmp.texi: Likewise.
50273         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
50274         SystemV platform in this case.
50275
50276 2008-06-06  Eric Blake  <ebb9@byu.net>
50277
50278         Document abort() bugs.
50279         * doc/posix-functions/abort.texi (abort): Mention anomalies.
50280
50281         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
50282         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
50283         sigsetjmp.
50284         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
50285         siglongjmp, but only as a macro.
50286         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
50287         is obsolete.
50288         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
50289
50290         Tweak documentation to cover cygwin argz bugs.
50291         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
50292         argz bug fix; no code change needed since no cygwin releases
50293         occurred between the last fix and the bug being tested.
50294         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
50295         module and recently fixed cygwin bugs.
50296         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
50297         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
50298         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
50299         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
50300         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
50301         Likewise.
50302         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
50303         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
50304         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
50305         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
50306         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
50307         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
50308         Likewise.
50309
50310         Avoid gcc warning on cygwin.
50311         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
50312         !ACL_NO_TRIVIAL]: Avoid unused variable.
50313
50314 2008-06-05  Eric Blake  <ebb9@byu.net>
50315
50316         Be tolerant of UNKNOWN version in gnulib-tool test dir.
50317         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
50318         git-version-gen fails to come up with a version.
50319         Reported by Simon Josefsson.
50320
50321 2008-06-05  Jim Meyering  <meyering@redhat.com>
50322             Paul Eggert  <eggert@cs.ucla.edu>
50323
50324         utimens.c: work around a probable Linux kernel bug
50325         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
50326         appears to be a kernel bug that causes utimensat to return 280
50327         instead of 0, indicating success.
50328
50329 2008-06-04  Bruno Haible  <bruno@clisp.org>
50330
50331         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
50332         2008-06-01 commit.
50333
50334 2008-06-04  Bruno Haible  <bruno@clisp.org>
50335
50336         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
50337         * lib/file-has-acl.c (acl_access_nontrivial): New function.
50338         (file_has_acl): Use it. Save errno afterwards.
50339         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
50340
50341 2008-06-03  Bruno Haible  <bruno@clisp.org>
50342
50343         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
50344         draft code. Simplify #ifs.
50345         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
50346         Put Solaris code after POSIX-draft code. Fix comments regarding
50347         Solaris 10, HP-UX. Mention Cygwin.
50348         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
50349
50350 2008-06-03  Eric Blake  <ebb9@byu.net>
50351
50352         Provide fallback for older kernels.
50353         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
50354         Provide runtime fallback if kernel lacks support.
50355         Reported by Mike Frysinger.
50356
50357 2008-06-02  Bruno Haible  <bruno@clisp.org>
50358
50359         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
50360         it exists.
50361
50362 2008-06-02  Bruno Haible  <bruno@clisp.org>
50363
50364         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
50365         * lib/copy-acl.c (qcopy_acl): Update comment.
50366
50367 2008-06-02  Bruno Haible  <bruno@clisp.org>
50368
50369         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
50370         like ACL APIs.
50371
50372 2008-06-02  Bruno Haible  <bruno@clisp.org>
50373
50374         * tests/test-file-has-acl.sh: Use different code for Cygwin.
50375         * tests/test-set-mode-acl.sh: Likewise.
50376         * tests/test-copy-acl.sh: Likewise.
50377         * tests/test-copy-file.sh: Likewise.
50378
50379 2008-06-02  Bruno Haible  <bruno@clisp.org>
50380
50381         * tests/test-file-has-acl.sh: Remove unused code.
50382
50383 2008-06-01  Bruno Haible  <bruno@clisp.org>
50384
50385         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
50386         (copy_acl): Just a wrapper around qcopy_acl that emits the error
50387         messages.
50388         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
50389
50390 2008-06-01  Bruno Haible  <bruno@clisp.org>
50391
50392         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
50393         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
50394         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
50395         APIs.
50396         * modules/acl-tests (configure.ac): Remove tests now contained in
50397         m4/acl.m4.
50398
50399 2008-06-02  Jim Meyering  <meyering@redhat.com>
50400
50401         announce-gen: use a better key-server host name
50402         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
50403         it may be more consistently reliable.  Suggested by Werner Koch
50404         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
50405
50406 2008-06-01  Bruno Haible  <bruno@clisp.org>
50407
50408         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
50409         Reported by Voroskoi Andras <voroskoi@gmail.com>.
50410
50411 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
50412
50413         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
50414
50415 2008-06-01  Bruno Haible  <bruno@clisp.org>
50416
50417         New ACL tests.
50418         * tests/test-file-has-acl.sh: New file.
50419         * tests/test-file-has-acl.c: New file.
50420         * tests/test-set-mode-acl.sh: New file.
50421         * tests/test-set-mode-acl.c: New file.
50422         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
50423         * tests/test-copy-acl.c: New file.
50424         * modules/acl-tests: New file, based on modules/copy-file-tests.
50425         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
50426         (Depends-on): Add acl-tests.
50427         (configure.ac): Remove checks.
50428         (Makefile.am): Don't create test-sameacls program here any more.
50429
50430 2008-06-01  Bruno Haible  <bruno@clisp.org>
50431
50432         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
50433         * tests/test-sameacls.c: Include progname.h.
50434         (main): Invoke set_program_name. Portability fixes for MacOS X,
50435         Solaris, HP-UX.
50436
50437 2008-06-01  Bruno Haible  <bruno@clisp.org>
50438
50439         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
50440         function.
50441         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
50442
50443 2008-06-01  Bruno Haible  <bruno@clisp.org>
50444
50445         * modules/rpmatch (Depends-on): Add strdup.
50446
50447 2008-06-01  Bruno Haible  <bruno@clisp.org>
50448
50449         * lib/pipe.c: Include unistd-safer.h.
50450         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
50451         * modules/pipe (Depends-on): Add unistd-safer.
50452
50453 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50454
50455         * modules/autobuild (configure.ac): Call AB_INIT.
50456
50457 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50458
50459         * tests/test-getaddrinfo.c: Don't print debug messages by default.
50460         Suggested by Bruno Haible <bruno@clisp.org>.
50461
50462 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50463
50464         * tests/test-base64.c: Cast size_t to unsigned long when invoking
50465         printf.  Use %lu instead of %d.  Reported by Bruno Haible
50466         <bruno@clisp.org>.
50467
50468 2008-05-29  Eric Blake  <ebb9@byu.net>
50469
50470         Prefer new POSIX 200x interfaces over futimesat.
50471         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
50472         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
50473         when available.
50474         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
50475
50476 2008-05-28  Bruno Haible  <bruno@clisp.org>
50477
50478         * modules/stpcpy (License): Change to LGPLv2+.
50479         Requested by David Lutterkort <dlutter@redhat.com>.
50480
50481 2008-05-27  Bruno Haible  <bruno@clisp.org>
50482
50483         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
50484         current mingw.
50485         Reported by Jose E. Marchesi <jemarch@gnu.org>.
50486
50487 2008-05-27  Bruno Haible  <bruno@clisp.org>
50488
50489         * modules/iconv_open (Link): New section, from module 'iconv'.
50490         * modules/striconv (Link): Likewise.
50491         * modules/striconveh (Link): Likewise.
50492         * modules/xstriconv (Link): Likewise.
50493         * modules/unicodeio (Link): Likewise.
50494         * modules/propername (Link): Likewise.
50495         Reported by Jim Meyering.
50496
50497 2008-05-26  Jim Meyering  <meyering@redhat.com>
50498
50499         sha256: do not artificially restrict buffer length to be < 2^32
50500         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
50501         uint32_t to size_t.
50502         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
50503         to match.
50504
50505         avoid unaligned access errors, e.g., on sparc
50506         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
50507         direct access through a possibly-unaligned uint64* pointer.
50508         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
50509         direct access through a possibly-unaligned uint32* pointer.
50510         Prompted by this patch from Tom "spot" Callaway:
50511         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
50512
50513         sha512.c: fix typo in comment
50514         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
50515
50516 2008-05-25  Bruno Haible  <bruno@clisp.org>
50517
50518         * lib/set-mode-acl.c: Renamed from lib/acl.c.
50519         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
50520         (Makefile.am): Update lib_SOURCES.
50521
50522 2008-05-25  Bruno Haible  <bruno@clisp.org>
50523
50524         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
50525
50526 2008-05-25  Jim Meyering  <meyering@redhat.com>
50527
50528         useless-if-before-free: freed expr may have white-space differences
50529         * build-aux/useless-if-before-free: Recognize cases in which the
50530         freed expression differs from the tested one in embedded white
50531         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
50532         $1 was used, so we can't make any regexp shy.  Improved tests now
50533         detect this.
50534
50535         useless-if-before-free: accept white space in the expression.
50536         * build-aux/useless-if-before-free: For now, any white space
50537         in the expression must be identical in the free argument.
50538
50539         useless-if-before-free: efficiency tweak
50540         * build-aux/useless-if-before-free: Make the expression-matching
50541         regexp "shy".
50542         Make the *outer* regexp shy, not the expr-matching one.
50543
50544         update code-in-comment to accept cast of free arg
50545         * build-aux/useless-if-before-free: Update regexp.
50546
50547 2008-05-25  Bruno Haible  <bruno@clisp.org>
50548
50549         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
50550         * modules/copy-file-tests (Files, Makefile.am): Update.
50551         * tests/test-copy-file.c (func_test_copy): Update.
50552
50553 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
50554
50555         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
50556
50557 2008-05-23  Bruno Haible  <bruno@clisp.org>
50558
50559         Improve support for ACLs on OSF/1.
50560         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
50561         Remove fallback for unknown flavors of ACLs.
50562
50563 2008-05-22  Bruno Haible  <bruno@clisp.org>
50564
50565         Add support for ACLs on OSF/1.
50566         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
50567         replacements.
50568         (acl_free_text): New macro fallback.
50569         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
50570         acl_free.
50571         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
50572         acl_free_text function. Require AC_C_INLINE.
50573
50574 2008-05-22  Bruno Haible  <bruno@clisp.org>
50575
50576         Make copy_acl work on MacOS X 10.5.
50577         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
50578         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
50579         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
50580         If MODE_INSIDE_ACL, don't assume that every system has the same text
50581         representation for ACLs as FreeBSD.
50582         * lib/copy-acl.c (copy_acl): Add support for platforms with
50583         !MODE_INSIDE_ACL.
50584         * lib/file-has-acl.c (file_has_acl): Likewise.
50585         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
50586         FreeBSD, MacOS X, or IRIX, respectively.
50587
50588 2008-05-22  Bruno Haible  <bruno@clisp.org>
50589
50590         * lib/acl.h: Don't include <sys/acl.h>.
50591         (GETACLCNT): Move fallback to lib/acl-internal.h.
50592         * lib/acl-internal.h: Include <sys/acl.h> here.
50593         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
50594
50595 2008-05-22  Bruno Haible  <bruno@clisp.org>
50596
50597         Split off copy_acl function to separate file.
50598         * lib/copy-acl.c: New file, extracted from lib/acl.c.
50599         * lib/acl.c (copy_acl): Moved function to separate file.
50600         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
50601         * modules/acl (Files): Add lib/copy-acl.c.
50602         (Makefiles.am): Augment lib_SOURCES.
50603
50604 2008-05-22  Bruno Haible  <bruno@clisp.org>
50605
50606         * modules/copy-file-tests: New file.
50607         * tests/test-copy-file.sh: New file.
50608         * tests/test-copy-file.c: New file.
50609         * tests/test-copy-file-sameacls.c: New file.
50610
50611 2008-05-22  Eric Blake  <ebb9@byu.net>
50612
50613         Avoid gcc warning.
50614         * tests/test-memcmp.c (main): Pass NULL indirectly.
50615
50616 2008-05-21  Bruno Haible  <bruno@clisp.org>
50617
50618         Add reference doc about ACLs.
50619         * doc/acl-resources.txt: New file.
50620         * doc/acl-cygwin.txt: New file.
50621
50622 2008-05-21  Bruno Haible  <bruno@clisp.org>
50623
50624         Avoid one more warning from gcc.
50625         * lib/vasnprintf.c (IF_LINT): Update comments.
50626         (VASNPRINTF): Use it also for the 'prefix' array initializer.
50627
50628 2008-05-21  Jim Meyering  <meyering@redhat.com>
50629
50630         avoid a warning from gcc
50631         * lib/vasnprintf.c (IF_LINT): Define.
50632         (scale10_round_decimal_long_double):
50633         Use it to avoid a "may be used uninitialized" warning.
50634         (scale10_round_decimal_double): Likewise.
50635
50636 2008-05-21  Simon Josefsson  <simon@josefsson.org>
50637
50638         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
50639         declared.
50640
50641 2008-05-20  Bruno Haible  <bruno@clisp.org>
50642
50643         * tests/test-memcmp.c (main): Test also the sign of the result. Test
50644         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
50645
50646 2008-05-20  Simon Josefsson  <simon@josefsson.org>
50647
50648         * modules/memcmp-tests: New file.
50649         * tests/test-memcmp.c: New file.
50650
50651 2008-05-19  Bruno Haible  <bruno@clisp.org>
50652
50653         * modules/propername (Notice, configure.ac): Put quoted "..." into
50654         --keyword option.
50655         * lib/propername.h: Update comments accordingly.
50656         Reported by Eric Blake.
50657
50658 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
50659
50660         * modules/getpass-gnu (Depends-on): Add fseeko.
50661
50662 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50663
50664         * modules/base64-tests: New file.
50665
50666 2008-05-19  Bo Borgerson <gigabo@gmail.com>
50667
50668         * lib/base64.c (base64_decode_ctx): If a decode context structure
50669         was passed in use it to ignore newlines.  If a context structure
50670         was _not_ passed in, continue to treat newlines as garbage (this
50671         is the historical behavior).  Formerly base64_decode.
50672         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50673         takes a decode context structure.
50674         * lib/base64.h (base64_decode): Macro for four-argument calls.
50675         (base64_decode_alloc): Likewise.
50676         * lib/base64.c (base64_decode_ctx): If a decode context structure
50677         was passed in use it to ignore newlines.  If a context structure
50678         was _not_ passed in, continue to treat newlines as garbage (this
50679         is the historical behavior).  Formerly base64_decode.
50680         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50681         takes a decode context structure.
50682         * lib/base64.h (base64_decode): Macro for four-argument calls.
50683         (base64_decode_alloc): Likewise.
50684
50685 2008-05-19  Jim Meyering  <meyering@redhat.com>
50686
50687         avoid a warning from gcc
50688         * lib/trim.c (IF_LINT): Define.
50689         (trim2): Use it to avoid a "may be used uninitialized" warning.
50690
50691         Fix doc typo.
50692         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
50693
50694 2008-05-19  Bruno Haible  <bruno@clisp.org>
50695
50696         * doc/glibc-functions/getpass.texi: Document limits of other
50697         implementations.
50698
50699 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50700             Bruno Haible <bruno@clisp.org>
50701
50702         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
50703
50704 2008-05-18  Bruno Haible  <bruno@clisp.org>
50705
50706         * modules/propername: New file, from GNU gettext.
50707         * lib/propername.h: New file, from GNU gettext.
50708         * lib/propername.c: New file, from GNU gettext.
50709         * MODULES.html.sh (Internationalization functions): Add propername.
50710
50711 2008-05-16  Jim Meyering  <meyering@redhat.com>
50712             Bruno Haible  <bruno@clisp.org>
50713
50714         Avoid some warnings from "gcc -Wshadow".
50715         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
50716
50717 2008-05-15  Eric Blake  <ebb9@byu.net>
50718
50719         Extend previous patch to cygwin 1.7.0.
50720         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
50721         fast implementation in cygwin >= 1.7.0.
50722         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50723         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50724
50725 2008-05-15  Bruno Haible  <bruno@clisp.org>
50726
50727         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
50728         implementation in glibc >= 2.9.
50729         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50730         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50731
50732 2008-05-15  Bruno Haible  <bruno@clisp.org>
50733
50734         * MODULES.html.sh (Internationalization functions): Remove linebreak.
50735         (Unicode string functions): Add unilbrk/*.
50736         Reported by Karl Berry.
50737
50738 2008-05-15  Eric Blake  <ebb9@byu.net>
50739
50740         Fix violation of <stdbool.h> replacement in regex.
50741         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
50742         * lib/regexec.c (re_search_internal): Likewise.
50743         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
50744
50745 2008-05-15  Jim Meyering  <meyering@redhat.com>
50746
50747         avoid distracting test output when git or cvs is not found
50748         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
50749         * tests/test-vc-list-files-git.sh: Likewise.
50750
50751 2008-05-15  Eric Blake  <ebb9@byu.net>
50752
50753         Glibc finally accepted the memmem speedup code, bugzilla #5514.
50754         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
50755         glibc version.
50756         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
50757         * doc/posix-functions/strstr.texi (strstr): Likewise.
50758         * lib/str-two-way.h (MAX): Sychronize with glibc.
50759
50760 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
50761
50762         * lib/regcomp.c (optimize_utf8): Add a note on why we test
50763         opr.ctx_type.
50764         (calc_first): Initialize constraint field.
50765         (duplicate_node_closure): Use it instead of special casing ANCHORS.
50766         Fix grammar.
50767         (duplicate_node): Merge constraint field for all node types.
50768         (calc_eclosure_iter): Look at constraint field for all node types.
50769         * lib/regex_internal.c (create_cd_newstate): Don't look at
50770         opr.ctx_type.
50771
50772 2008-05-14  Bruno Haible  <bruno@clisp.org>
50773
50774         Help GCC to do better code generation.
50775         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
50776         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
50777         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
50778         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
50779         Declare with attribute 'malloc' if supported.
50780
50781 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
50782
50783         use "echo STR|wc -c" rather than unportable "expr length STR"
50784         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
50785         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
50786
50787 2008-05-14  Jim Meyering  <meyering@redhat.com>
50788
50789         use dd ibs=$n count=1 ... rather than less-portable head -c$n
50790         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
50791         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
50792         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
50793         via Collin Lasse.
50794
50795 2008-05-14  Eric Blake  <ebb9@byu.net>
50796
50797         Avoid quadratic growth in gl_LIBSOURCES.
50798         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
50799         Suggested by Bruno Haible.
50800
50801         Test xmemdup0.
50802         * modules/xmemdup0-tests: New file.
50803         * tests/test-xmemdup0.c: Likewise.
50804
50805 2008-05-13  Eric Blake  <ebb9@byu.net>
50806
50807         Split xmemdup0 into its own module.
50808         * modules/xmemdup0: New file.
50809         * lib/xmemdup0.h: Likewise.
50810         * lib/xmemdup0.c: Likewise.
50811         * MODULES.html.sh (Memory management functions): Add xmemdup0.
50812         * lib/xalloc.h (xmemdup0): Remove.
50813         * lib/xmalloc.c (xmemdup0): Likewise.
50814
50815 2008-05-13  Eric Blake  <ebb9@byu.net>
50816             Bruno Haible  <bruno@clisp.org>
50817
50818         Reduce number of forks required during autoconf.
50819         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
50820         and gl_LIBSOURCES_DIR.
50821         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
50822         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
50823         m4_syscmd per file.
50824         <m4_foreach_w>: Move...
50825         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
50826
50827 2008-05-13  Eric Blake  <ebb9@byu.net>
50828
50829         * gnulib-tool: Fix various comment typos.
50830
50831 2008-05-12  Bruno Haible  <bruno@clisp.org>
50832
50833         Tailor the linebreaking algorithm.
50834         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
50835
50836 2008-05-12  Bruno Haible  <bruno@clisp.org>
50837
50838         Update to Unicode 5.0.0.
50839         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50840         LBP_JV, LBP_JT. Redistribute values.
50841         (unilbrk_table): Change size.
50842         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
50843         Unicode TR#14 rev. 22.
50844         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50845         LBP_JV, LBP_JT. Redistribute values.
50846         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
50847         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
50848         Update.
50849         * lib/unilbrk/lbrkprop1.h: Regenerated.
50850         * lib/unilbrk/lbrkprop2.h: Regenerated.
50851         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
50852         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
50853         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
50854         Likewise.
50855         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
50856         Likewise.
50857         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
50858         result.
50859         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50860         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50861         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
50862         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
50863         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
50864         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
50865
50866 2008-05-11  Bruno Haible  <bruno@clisp.org>
50867
50868         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
50869
50870 2008-05-11  Bruno Haible  <bruno@clisp.org>
50871
50872         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
50873         * modules/unilbrk/gen-lbrk: New file.
50874
50875 2008-05-11  Bruno Haible  <bruno@clisp.org>
50876
50877         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
50878         * m4/sha512.m4 (gl_SHA512): Likewise.
50879
50880 2008-05-11  Jim Meyering  <meyering@redhat.com>
50881
50882         New modules: crypto/sha256, crypto/sha512 (from coreutils)
50883         * modules/crypto/sha256: New file.
50884         * modules/crypto/sha512: Likewise.
50885         * lib/sha256.c: Likewise.
50886         * lib/sha256.h: Likewise.
50887         * lib/sha512.c: Likewise.
50888         * lib/sha512.h: Likewise.
50889         * lib/u64.h: Likewise.
50890         * m4/sha256.m4: Likewise.
50891         * m4/sha512.m4: Likewise.
50892         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
50893
50894 2008-05-10  Bruno Haible  <bruno@clisp.org>
50895
50896         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
50897         (Input/Output <stdio.h>): Add xprintf.
50898         (Signal handling <signal.h>): Add strsignal.
50899         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
50900         (Core language properties): Add func.
50901         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
50902         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
50903         strings.
50904         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
50905         (Input/output): New section.
50906         (File system functions): Add openat-die, stat-macros.
50907         (Networking functions): Add sockets.
50908         (Unicode string functions): Add unictype/*.
50909         (Support for building libraries and executables): Add gperf.
50910         (Support for building documentation): Add agpl-3.0.
50911         (Misc): Add nocrash.
50912
50913 2008-05-10  Bruno Haible  <bruno@clisp.org>
50914
50915         * modules/unictype/gen-ctype: New file.
50916
50917 2008-05-10  Jim Meyering  <meyering@redhat.com>
50918
50919         Make chdir-safer.c more efficient on a system with no symlinks.
50920         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
50921         also if ELOOP is zero.  Suggested by Bruno Haible.
50922
50923         Make chdir-safer.c slightly safer.
50924         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
50925         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
50926
50927         Avoid compile failure on systems without ELOOP (like mingw).
50928         * lib/chdir-safer.c (ELOOP): Define if not already defined.
50929         Reported by Bruno Haible.
50930
50931 2008-05-10  Bruno Haible  <bruno@clisp.org>
50932
50933         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
50934         (is_utf8_encoding): Use a case-insensitive comparison.
50935         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
50936         streq.
50937
50938 2008-05-10  Bruno Haible  <bruno@clisp.org>
50939
50940         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
50941         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
50942         * lib/unilbrk/ulc-common.h (iconv_string_length,
50943         iconv_string_keeping_offsets): Remove declarations.
50944         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
50945         Don't include <iconv.h>, streq.h, xsize.h.
50946         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
50947         conversion.
50948         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
50949         <iconv.h>, streq.h, xsize.h.
50950         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
50951         conversion.
50952         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
50953         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
50954         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
50955         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
50956
50957 2008-05-10  Bruno Haible  <bruno@clisp.org>
50958
50959         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
50960         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
50961
50962         * modules/unilbrk/u32-width-linebreaks-tests: New file.
50963         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
50964
50965         * modules/unilbrk/u16-width-linebreaks-tests: New file.
50966         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
50967
50968         * modules/unilbrk/u8-width-linebreaks-tests: New file.
50969         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
50970
50971         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
50972         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
50973
50974         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
50975         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
50976
50977         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
50978         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
50979
50980         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
50981         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
50982
50983 2008-05-10  Bruno Haible  <bruno@clisp.org>
50984
50985         Split up 'linebreak' module.
50986         * lib/unilbrk.h: New file, based on lib/linebreak.h.
50987         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
50988         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
50989         modifications.
50990         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
50991         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
50992         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
50993         lib/linebreak.c.
50994         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
50995         lib/linebreak.c.
50996         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
50997         lib/linebreak.c.
50998         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
50999         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
51000         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
51001         lib/linebreak.c.
51002         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
51003         lib/linebreak.c.
51004         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
51005         lib/linebreak.c.
51006         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
51007         lib/linebreak.c.
51008         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
51009         lib/linebreak.c.
51010         * modules/unilbrk/base: New file.
51011         * modules/unilbrk/tables: New file.
51012         * modules/unilbrk/u8-possible-linebreaks: New file.
51013         * modules/unilbrk/u16-possible-linebreaks: New file.
51014         * modules/unilbrk/u32-possible-linebreaks: New file.
51015         * modules/unilbrk/ulc-common: New file.
51016         * modules/unilbrk/ulc-possible-linebreaks: New file.
51017         * modules/unilbrk/u8-width-linebreaks: New file.
51018         * modules/unilbrk/u16-width-linebreaks: New file.
51019         * modules/unilbrk/u32-width-linebreaks: New file.
51020         * modules/unilbrk/ulc-width-linebreaks: New file.
51021         * lib/linebreak.h: Remove file.
51022         * lib/linebreak.c: Remove file.
51023         * m4/linebreak.m4: Remove file.
51024         * modules/linebreak: Remove file.
51025         * NEWS: Mention the changes.
51026
51027 2008-05-09  Eric Blake  <ebb9@byu.net>
51028
51029         Add xmemdup0.
51030         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
51031         implementation.
51032         * lib/xmalloc.c (xmemdup0): New C implementation.
51033
51034 2008-05-08  Bruno Haible  <bruno@clisp.org>
51035
51036         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
51037
51038 2008-05-07  Eric Blake  <ebb9@byu.net>
51039
51040         Support cross-compilation of <wctype.h>.
51041         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
51042         AC_CACHE_CHECK.
51043
51044 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
51045
51046         * build-aux/vc-list-files: Add support for bzr.
51047
51048 2008-05-03  Jim Meyering  <meyering@redhat.com>
51049
51050         avoid failed assertion with tight malloc
51051         * tests/test-getndelim2.c: Correct an off-by-one assertion.
51052
51053 2008-05-03  Simon Josefsson  <simon@josefsson.org>
51054
51055         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
51056         are needed from arpa/inet.h.
51057         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
51058         Reported by Bruno Haible.
51059
51060 2008-05-02  Jim Meyering  <meyering@redhat.com>
51061
51062         avoid compilation error on FreeBSD 6
51063         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
51064
51065 2008-05-01  Jim Meyering  <meyering@redhat.com>
51066
51067         useless-if-before-free: correct --help's exit status description
51068         * build-aux/useless-if-before-free (usage): Like grep, exit 0
51069         for one or more matches, etc.  Reported by Bruno Haible.
51070
51071         vc-list-files: make the stand-alone gnulib test work
51072         * modules/vc-list-files-tests (configure.ac):
51073         Define and AC_SUBST abs_aux_dir.
51074         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
51075         $(abs_top_srcdir) to each script and having each of them
51076         duplicate the work of setting PATH, set PATH here, using
51077         the new variable, abs_aux_dir instead.
51078         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
51079         * tests/test-vc-list-files-git.sh: Likewise.
51080         Reported by Bruno Haible.
51081
51082 2008-05-01  Bruno Haible  <bruno@clisp.org>
51083
51084         * lib/getndelim2.c (getndelim2): Fix newsize computation during
51085         reallocation. Rename 'done' to 'found_delimiter'.
51086
51087 2008-05-01  Jim Meyering  <meyering@redhat.com>
51088
51089         vc-list-files: accommodate /bin/sh like the one from Solaris 10
51090         * build-aux/vc-list-files: Use `...`, not $(...).
51091
51092 2008-04-30  Jim Meyering  <meyering@redhat.com>
51093
51094         add tests for vc-list-files
51095         * modules/vc-list-files-tests: New module.
51096         * tests/test-vc-list-files-cvs.sh: New file.
51097         * tests/test-vc-list-files-git.sh: New file.
51098
51099         avoid a warning from gcc
51100         * lib/getndelim2.c (IF_LINT): Define.
51101         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
51102
51103         vc-list-files: work properly with build-aux/cvsu, too
51104         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
51105         to all cvs-based clauses.
51106
51107         vc-list-files: work properly in the CVS+awk case, too
51108         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
51109
51110         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
51111         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
51112         take more than one file argument, so .  Add quotes, just in case $dir
51113         ever contains a shell meta-character.  Prompted by Soren Hansen in
51114         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
51115
51116 2008-04-29  Eric Blake  <ebb9@byu.net>
51117
51118         Optimize getndelim2 to use block operations when possible.
51119         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
51120         freadseek, and memchr2.
51121         * lib/getndelim2.c (getndelim2): Use them for block reads.
51122
51123 2008-04-29  Bruno Haible  <bruno@clisp.org>
51124
51125         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
51126         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51127         * modules/inet_ntop (Depends-on): Add extensions.
51128         * modules/inet_pton (Depends-on): Likewise.
51129         Reported by Simon Josefsson.
51130
51131 2008-04-29  Jim Meyering  <meyering@redhat.com>
51132
51133         When the is more than one match in a block, match all of them.
51134         * build-aux/useless-if-before-free: Iterate through each block
51135         until there are no more matches.
51136
51137         Fix broken useless-if-before-free script.
51138         * build-aux/useless-if-before-free: Fix typo: missing "?" after
51139         the expression to match cast of argument to free-like function.
51140
51141 2008-04-29  Eric Blake  <ebb9@byu.net>
51142
51143         Use new header.
51144         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
51145
51146 2008-04-29  Jim Meyering  <meyering@redhat.com>
51147
51148         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
51149         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
51150         by gnulib to exist and to declare e.g., inet_ntop.
51151         Don't include "inet_ntop.h", now removed.
51152
51153         * m4/arpa_inet_h.m4: Remove trailing blanks.
51154
51155 2008-04-29  Eric Blake  <ebb9@byu.net>
51156
51157         Silence valgrind on safe reads beyond potential array bounds.
51158         * lib/rawmemchr.valgrind: New file.
51159         * lib/strchrnul.valgrind: Likewise.
51160         * modules/rawmemchr (Files): Distribute new file.
51161         * modules/strchrnul (Files): Likewise.
51162         Suggested by Bruno Haible.
51163
51164 2008-04-29  Bruno Haible  <bruno@clisp.org>
51165
51166         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
51167         (inet_ntop, inet_pton): Change portability warning's wording.
51168         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
51169         Invoke gl_CHECK_NEXT_HEADERS.
51170         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
51171         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
51172         set ARPA_INET_H.
51173         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51174         * modules/arpa_inet (Description): No longer only for systems that
51175         lack it.
51176         (Depends-on): Add include_next.
51177         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
51178         HAVE_ARPA_INET_H.
51179
51180 2008-04-29  Jim Meyering  <meyering@redhat.com>
51181
51182         * modules/mkdir (License): Re-license as LGPLv2+.
51183
51184 2008-04-29  Bruno Haible  <bruno@clisp.org>
51185
51186         * modules/rawmemchr (Maintainer): Set to Eric.
51187         * modules/strchrnul (Maintainer): Likewise.
51188
51189 2008-04-29  Simon Josefsson  <simon@josefsson.org>
51190
51191         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
51192         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
51193
51194         * modules/arpa_inet (arpa/inet.h): Use them.
51195
51196 2008-04-28  Eric Blake  <ebb9@byu.net>
51197
51198         Test getndelim2.
51199         * modules/getndelim2-tests: New file.
51200         * tests/test-getndelim2.c: Likewise.
51201         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
51202         stream.
51203         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
51204
51205         * MODULES.html.sh: Document new module.
51206
51207 2008-04-20  Bruno Haible  <bruno@clisp.org>
51208
51209         * lib/c-stack.c (die): Use raise.
51210         * modules/c-stack (Depends-on): Add raise.
51211
51212 2008-04-28  Bruno Haible  <bruno@clisp.org>
51213
51214         Expect rpmatch to be declared.
51215         * lib/yesno.c (rpmatch): Remove declaration.
51216
51217         Declare rpmatch.
51218         * lib/stdlib.in.h (rpmatch): New declaration.
51219         * lib/rpmatch.c: Include <stdlib.h> first.
51220         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
51221         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
51222         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
51223         HAVE_RPMATCH.
51224         * modules/rpmatch (Depends-on): Add stdlib, extensions.
51225         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51226         (Include): Set to <stdlib.h>.
51227         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
51228         HAVE_RPMATCH.
51229         * NEWS: Document the change.
51230
51231 2008-04-28  Bruno Haible  <bruno@clisp.org>
51232
51233         Change rpmatch to use nl_langinfo when appropriate.
51234         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
51235         (N_): New macro.
51236         (localized_pattern): New function/macro.
51237         (try): Remove match, nomatch arguments. Copy the pattern into safe
51238         memory before caching it.
51239         (rpmatch): Use localized_pattern. Add translator comments.
51240         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
51241         Suggested by Eric Blake.
51242         * modules/rpmatch (Depends-on): Add stdbool.
51243
51244 2008-04-28  Eric Blake  <ebb9@byu.net>
51245
51246         Add rawmemchr module, matching glibc.
51247         * modules/string (Makefile.am): New indicator.
51248         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
51249         * lib/string.in.h (rawmemchr): Declare when appropriate.
51250         * modules/rawmemchr: New file.
51251         * m4/rawmemchr.m4: Likewise.
51252         * lib/rawmemchr.c: Likewise.
51253         * modules/rawmemchr-tests: Likewise.
51254         * tests/test-rawmemchr.c: Likewise.
51255         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
51256         module.
51257         * modules/strchrnul (Depends-on): Add rawmemchr.
51258         * lib/strchrnul.c (strchrnul): Optimize a corner case.
51259
51260         Whitespace cleanup.
51261         * tests/test-strchrnul.c: Reindent.
51262         * lib/strchrnul.c: Likewise.
51263
51264         Optimize and test strchrnul.
51265         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
51266         * modules/strchrnul-tests: New file.
51267         * tests/test-strchrnul.c: Likewise.
51268
51269         Remove intprops dependency.
51270         * modules/memchr (Depends-on): Remove intprops.
51271         * modules/memrchr (Depends-on): Likewise.
51272         * modules/memchr2 (Depends-on): Likewise.
51273         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
51274         * lib/memrchr.c (__memrchr): Likewise.
51275         * lib/memrchr2.c (memchr2): Likewise.
51276         Reported by Simon Josefsson.
51277
51278 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51279
51280         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
51281         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51282
51283 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51284
51285         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
51286
51287         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
51288
51289         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
51290
51291         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
51292         declarations.
51293         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
51294
51295         * m4/inet_pton.m4: Don't check for header files.
51296
51297         * m4/inet_ntop.m4: Don't check for header files.
51298
51299 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51300
51301         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
51302         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
51303         trigger for cygwin).
51304         Reported by Bruno Haible  <bruno@clisp.org>.
51305
51306 2008-04-28  Bruno Haible  <bruno@clisp.org>
51307
51308         * doc/posix-functions/strdup.texi: Mention mingw problem.
51309
51310 2008-04-27  Bruno Haible  <bruno@clisp.org>
51311
51312         * modules/stat-time-tests (Depends-on): Add sleep.
51313         * tests/test-stat-time.c (force_unlink): New function.
51314         (cleanup): Use it.
51315         (test_mtime): Remove the ctime related tests.
51316         (test_ctime): New function, containing the ctime related tests.
51317         (main): Call test_ctime, except on native Windows platforms.
51318
51319 2008-04-27  Bruno Haible  <bruno@clisp.org>
51320
51321         * lib/rpmatch.c (rpmatch): Add some comments.
51322         Reported by James Youngman <jay@gnu.org>.
51323
51324 2008-04-27  Bruno Haible  <bruno@clisp.org>
51325
51326         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
51327         quiet NaNs.
51328
51329 2008-04-27  Bruno Haible  <bruno@clisp.org>
51330
51331         Make test-yesno.sh work on mingw.
51332         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
51333         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
51334         (main): Set stdin to binary mode.
51335         * modules/yesno-tests (Depends-on): Add binary-io.
51336
51337 2008-04-27  Bruno Haible  <bruno@clisp.org>
51338
51339         Fix 'isfinite' on x86, x86_64, ia64 platforms.
51340         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
51341         argument that lie outside the IEEE 854 domain.
51342         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
51343         (gl_ISFINITE): Use it.
51344         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
51345
51346 2008-04-27  Bruno Haible  <bruno@clisp.org>
51347
51348         Allow local renaming in config.h.
51349         * lib/memrchr.c (memrchr): Don't undefine outside libc.
51350
51351 2008-04-27  Bruno Haible  <bruno@clisp.org>
51352
51353         * lib/memchr.c (__memchr): Change type of 'i'.
51354         * lib/memchr2.c (memchr2): Likewise.
51355
51356 2008-04-26  Eric Blake  <ebb9@byu.net>
51357         and Bruno Haible  <bruno@clisp.org>
51358
51359         Optimize and test memrchr.
51360         * modules/memrchr (Depends-on): Add intprops.
51361         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
51362         * modules/memrchr-tests: New file.
51363         * tests/test-memrchr.c: New file.
51364
51365 2008-04-26  Bruno Haible  <bruno@clisp.org>
51366
51367         Add tentative support for DragonFly BSD.
51368         * lib/stdio-impl.h: Add macros for DragonFly BSD.
51369         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
51370         fp.
51371         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51372         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
51373         * lib/fpurge.c (fpurge): Likewise.
51374         * lib/freadable.c (freaadable): Likewise.
51375         * lib/freadahead.c (freadahead): Likewise.
51376         * lib/freading.c (freading): Likewise.
51377         * lib/freadptr.c (freadptr): Likewise.
51378         * lib/freadseek.c (freadptrinc): Likewise.
51379         * lib/fseeko.c (fseeko): Likewise.
51380         * lib/fseterr.c (fseterr): Likewise.
51381         * lib/fwritable.c (fwritable): Likewise.
51382         * lib/fwriting.c (fwriting): Likewise.
51383
51384 2008-04-26  Bruno Haible  <bruno@clisp.org>
51385
51386         * lib/stdio-impl.h: New file.
51387         * lib/fbufmode.c: Include stdio-impl.h.
51388         (fbufmode): Use fp_, remove redundant #defines.
51389         * lib/fflush.c: Include stdio-impl.h.
51390         (clear_ungetc_buffer): Remove redundant #defines.
51391         * lib/fpurge.c: Include stdio-impl.h.
51392         (fpurge): Remove redundant #defines.
51393         * lib/freadable.c: Include stdio-impl.h.
51394         (freadable): Remove redundant #defines.
51395         * lib/freadahead.c: Include stdio-impl.h.
51396         (freadahead): Remove redundant #defines.
51397         * lib/freading.c: Include stdio-impl.h.
51398         (freading): Remove redundant #defines.
51399         * lib/freadptr.c: Include stdio-impl.h.
51400         (freadptr): Remove redundant #defines.
51401         * lib/freadseek.c: Include stdio-impl.h.
51402         (freadptrinc): Remove redundant #defines.
51403         * lib/fseeko.c: Include stdio-impl.h.
51404         (rpl_fseeko): Remove redundant #defines.
51405         * lib/fseterr.c: Include stdio-impl.h.
51406         (fseterr): Remove redundant #defines.
51407         * lib/fwritable.c: Include stdio-impl.h.
51408         (fwritable: Remove redundant #defines.
51409         * lib/fwriting.c: Include stdio-impl.h.
51410         (fwriting): Remove redundant #defines.
51411         * modules/fbufmode (Files): Add lib/stdio-impl.h.
51412         * modules/fflush (Files): Likewise.
51413         * modules/fpurge (Files): Likewise.
51414         * modules/freadable (Files): Likewise.
51415         * modules/freadahead (Files): Likewise.
51416         * modules/freading (Files): Likewise.
51417         * modules/freadptr (Files): Likewise.
51418         * modules/freadseek (Files): Likewise.
51419         * modules/fseeko (Files): Likewise.
51420         * modules/fseterr (Files): Likewise.
51421         * modules/fwritable (Files): Likewise.
51422         * modules/fwriting (Files): Likewise.
51423
51424 2008-04-26  Bruno Haible  <bruno@clisp.org>
51425
51426         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51427         restore_seek_optimization, update_fpos_cache): New functions, extracted
51428         from rpl_fflush.
51429         (rpl_fflush): Use them.
51430         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
51431         (gl_REPLACE_FFLUSH): Use it.
51432
51433 2008-04-26  Bruno Haible  <bruno@clisp.org>
51434
51435         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
51436         on Solaris.
51437         * tests/test-xstrtoimax.sh: Likewise.
51438         * tests/test-xstrtoumax.sh: Likewise.
51439         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51440
51441 2008-04-26  Bruno Haible  <bruno@clisp.org>
51442
51443         * modules/memchr-tests: New file.
51444         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
51445
51446 2008-04-26  Eric Blake  <ebb9@byu.net>
51447             Bruno Haible  <bruno@clisp.org>
51448
51449         * lib/memchr.c: Include intprops.h.
51450         (__memchr): Optimize parallel detection of matching bytes. Rename local
51451         variables. Add explanatory comments.
51452
51453 2008-04-26  Bruno Haible  <bruno@clisp.org>
51454
51455         Fix module 'memchr', broken since 2000-10-28.
51456         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
51457
51458 2008-04-26  Bruno Haible  <bruno@clisp.org>
51459
51460         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
51461         comments.
51462
51463 2008-04-25  Eric Blake  <ebb9@byu.net>
51464
51465         Use native fstatat on cygwin 1.7.0.
51466         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
51467         first.
51468
51469 2008-04-23  Eric Blake  <ebb9@byu.net>
51470
51471         Improve memchr2 performance.
51472         * lib/memchr2.c (memchr2): Further optimize parallel detection of
51473         NUL bytes.
51474         * modules/memchr2 (Depends-on): Use intprops.h.
51475
51476 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51477
51478         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
51479         an inline function instead of a CPP macro.  Patch by Ben Pfaff
51480         <blp@cs.stanford.edu>.
51481
51482 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51483
51484         * lib/arpa_inet.in.h: New file.
51485
51486         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
51487         (Makefile.am): Sed in substitute header file.
51488
51489         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
51490         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
51491
51492         * modules/inet_ntop (configure.ac): Use
51493         gl_ARPA_INET_MODULE_INDICATOR.
51494
51495         * modules/inet_pton (configure.ac): Use
51496         gl_ARPA_INET_MODULE_INDICATOR.
51497
51498 2008-04-22  Jim Meyering  <meyering@redhat.com>
51499
51500         * modules/verify (License): Re-license as LGPLv2+.
51501
51502 2008-04-22  Simon Josefsson  <simon@josefsson.org>
51503
51504         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
51505         parameter to void* as per POSIX standard (MinGW uses char*).
51506
51507 2008-04-21  Bruno Haible  <bruno@clisp.org>
51508
51509         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51510         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51511         Define to replacements if REPLACE_ISWCNTRL is 1.
51512         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
51513         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
51514         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
51515         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
51516         what it fixes.
51517         * doc/posix-functions/iswalpha.texi: Likewise.
51518         * doc/posix-functions/iswblank.texi: Likewise.
51519         * doc/posix-functions/iswcntrl.texi: Likewise.
51520         * doc/posix-functions/iswdigit.texi: Likewise.
51521         * doc/posix-functions/iswgraph.texi: Likewise.
51522         * doc/posix-functions/iswlower.texi: Likewise.
51523         * doc/posix-functions/iswprint.texi: Likewise.
51524         * doc/posix-functions/iswpunct.texi: Likewise.
51525         * doc/posix-functions/iswspace.texi: Likewise.
51526         * doc/posix-functions/iswupper.texi: Likewise.
51527         * doc/posix-functions/iswxdigit.texi: Likewise.
51528         Reported by Alain Guibert.
51529
51530 2008-04-21  Bruno Haible  <bruno@clisp.org>
51531
51532         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
51533         Patch by Alain Guibert.
51534
51535 2008-04-21  Bruno Haible  <bruno@clisp.org>
51536
51537         Fix test failures on mingw.
51538         * tests/test-xstrtol.c (print_no_progname): New function.
51539         (main): Install it in error_print_progname hook.
51540         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
51541         * tests/test-xstrtoimax.sh: Likewise.
51542         * tests/test-xstrtoumax.sh: Likewise.
51543
51544 2008-04-21  Bruno Haible  <bruno@clisp.org>
51545
51546         Fix test failure on mingw.
51547         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
51548
51549 2008-04-21  Bruno Haible  <bruno@clisp.org>
51550
51551         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
51552         Actually assign a value.
51553
51554 2008-04-20  Bruno Haible  <bruno@clisp.org>
51555
51556         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
51557         take 2.
51558         * lib/canonicalize.c (canonicalize_file_name): Elide if the
51559         'canonicalize-lgpl' module is also used.
51560         * lib/canonicalize-lgpl.c: Undo last change.
51561         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
51562
51563 2008-04-20  Bruno Haible  <bruno@clisp.org>
51564
51565         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
51566         config.h. Provide _mkdir based fallback for mingw.
51567         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
51568         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
51569         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
51570         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
51571         rather than defining mkdir in config.h.
51572         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
51573         (gl_SYS_STAT_H_DEFAULTS): New macro.
51574         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
51575         HAVE_IO_H any more.
51576         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
51577         HAVE_DECL_MKDIR and HAVE_IO_H.
51578
51579 2008-04-20  Bruno Haible  <bruno@clisp.org>
51580
51581         * lib/isapipe.c: Port to native Windows platforms.
51582
51583 2008-04-20  Bruno Haible  <bruno@clisp.org>
51584
51585         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
51586
51587 2008-04-21  Eric Blake  <ebb9@byu.net>
51588
51589         Work around preprocessors that don't handle UINTMAX_MAX.
51590         * lib/memchr2.c (memchr2): Avoid embedded #if.
51591         Reported by Alain Guibert, fix suggested by Bruno Haible.
51592
51593 2008-04-21  Simon Josefsson  <simon@josefsson.org>
51594
51595         * doc/posix-functions/strftime.texi (strftime): Explain better
51596         Windows incompatibility.  Suggested by Micah Cowan
51597         <micah@cowan.name>.
51598
51599 2008-04-20  Bruno Haible  <bruno@clisp.org>
51600
51601         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
51602         unistr/u8-mblen.
51603
51604 2008-04-20  Bruno Haible  <bruno@clisp.org>
51605
51606         Fix test failure on platforms with non-GNU iconv.
51607         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
51608         (U_TO_U8): Use it, rather than u16_to_u8.
51609         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
51610         units at the end of the input string.
51611         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
51612
51613 2008-04-20  Bruno Haible  <bruno@clisp.org>
51614
51615         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
51616         when the resulting length is 0.
51617         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
51618
51619 2008-04-20  Bruno Haible  <bruno@clisp.org>
51620
51621         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
51622         works.
51623         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
51624
51625 2008-04-20  Bruno Haible  <bruno@clisp.org>
51626
51627         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
51628         * modules/tsearch-tests (configure.ac): Test for initstate function.
51629
51630 2008-04-20  Bruno Haible  <bruno@clisp.org>
51631
51632         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
51633         for nlink_t if missing.
51634         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
51635
51636 2008-04-19  Bruno Haible  <bruno@clisp.org>
51637
51638         Work around snprintf bug on Linux libc5.
51639         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
51640         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51641         gl_SNPRINTF_SIZE1.
51642         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51643         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
51644         that test failed.
51645         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51646         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
51647         * modules/snprintf (Files): Add m4/printf.m4.
51648         * modules/vsnprintf (Files): Likewise.
51649         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
51650         * doc/posix-functions/vsnprintf.texi: Likewise.
51651
51652 2008-04-19  Bruno Haible  <bruno@clisp.org>
51653
51654         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
51655         from 0.0058 to less than 10^-7.
51656
51657 2008-04-19  Bruno Haible  <bruno@clisp.org>
51658
51659         Fix rounding when a precision is given.
51660         * lib/vasnprintf.c (is_borderline): New function.
51661         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
51662         9...9x.
51663         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
51664         %e, %g.
51665         * tests/test-vasprintf-posix.c (test_function): Likewise.
51666         * tests/test-snprintf-posix.h (test_function): Likewise.
51667         * tests/test-sprintf-posix.h (test_function): Likewise.
51668         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
51669         * tests/test-printf-posix.h (test_function): Likewise.
51670         * tests/test-printf-posix.output: Update.
51671         Reported by John Darrington <john@darrington.wattle.id.au> via
51672         Ben Pfaff <blp@cs.stanford.edu>.
51673
51674 2008-04-18  Simon Josefsson  <simon@josefsson.org>
51675
51676         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
51677         Suggested by Bruno Haible <bruno@clisp.org>.
51678
51679 2008-04-17  Bruno Haible  <bruno@clisp.org>
51680
51681         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
51682         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
51683         implementation.
51684         Patch by Bruce Merry <bmerry@gmail.com>.
51685
51686 2008-04-17  Simon Josefsson  <simon@josefsson.org>
51687
51688         * doc/posix-functions/strftime.texi (strftime): Mention that %e
51689         doesn't work under Windows.
51690
51691 2008-04-16  Bruno Haible  <bruno@clisp.org>
51692
51693         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
51694         New macros.
51695         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
51696         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
51697         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
51698         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
51699         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
51700         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
51701         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
51702         macros.
51703         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
51704         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
51705         Northern Sotho, Uighur.
51706
51707 2008-04-16  Bruno Haible  <bruno@clisp.org>
51708
51709         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
51710         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
51711         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
51712         Reported by Daniel Bergström <daniel@octocode.com>.
51713
51714 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
51715             Bruno Haible  <bruno@clisp.org>
51716
51717         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
51718         function.
51719         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
51720         New functions, mostly extracted from gl_locale_name_default.
51721         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
51722
51723 2008-04-16  Eric Blake  <ebb9@byu.net>
51724
51725         Adjust strtod detection to catch glibc 2.7 bug.
51726         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
51727         Reported by John Gatewood Ham.
51728
51729 2008-04-16  Bruno Haible  <bruno@clisp.org>
51730
51731         Add tentative support for Linux libc5.
51732         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
51733         * lib/fpurge.c (fpurge): Likewise.
51734         * lib/freadable.c (freadable): Likewise.
51735         * lib/freadahead.c (freadahead): Likewise.
51736         * lib/freading.c (freading): Likewise.
51737         * lib/freadptr.c (freadptr): Likewise.
51738         * lib/freadseek.c (freadptrinc): Likewise.
51739         * lib/fseeko.c (rpl_fseeko): Likewise.
51740         * lib/fseterr.c (fseterr): Likewise.
51741         * lib/fwritable.c (fwritable): Likewise.
51742         * lib/fwriting.c (fwriting): Likewise.
51743         Reported by Alain Guibert <alguibert+bts@free.fr>.
51744
51745 2008-04-15  Bruno Haible  <bruno@clisp.org>
51746
51747         * modules/mathl (configure.ac): Define module indicator.
51748
51749 2008-04-15  Bruno Haible  <bruno@clisp.org>
51750
51751         * lib/logl.c (logl): Remove unused variables.
51752
51753 2008-04-15  Bruno Haible  <bruno@clisp.org>
51754
51755         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
51756         fails.
51757
51758 2008-04-15  Bruno Haible  <bruno@clisp.org>
51759
51760         * lib/trim.c (trim2): Fix argument of isspace() macro.
51761
51762 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
51763
51764         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
51765         to 0.
51766         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
51767
51768 2008-04-14  Bruno Haible  <bruno@clisp.org>
51769
51770         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
51771         AC_LANG_PROGRAM argument.
51772         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
51773         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
51774         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
51775         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51776         * m4/math_h.m4 (gl_MATH_H): Likewise.
51777         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
51778         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51779         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51780         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
51781         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51782         * m4/regex.m4 (gl_REGEX): Likewise.
51783         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
51784         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
51785         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51786         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
51787         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51788         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51789         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51790         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51791
51792 2008-04-14  Jim Meyering  <meyering@redhat.com>
51793
51794         test-strtod: fix typos: s/abs/fabs/
51795         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
51796
51797 2008-04-13  Bruno Haible  <bruno@clisp.org>
51798
51799         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
51800         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
51801         module is also used and while not building the reloc-wrapper.
51802
51803 2008-04-13  Bruno Haible  <bruno@clisp.org>
51804
51805         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
51806
51807 2008-04-13  Bruno Haible  <bruno@clisp.org>
51808
51809         Fix AIX compilation failure introduced on 2008-04-02.
51810         * tests/test-frexp.c (exp): Undefine before redefining.
51811         * tests/test-frexpl.c (exp): Likewise.
51812
51813 2008-04-13  Bruno Haible  <bruno@clisp.org>
51814
51815         Work around a HP-UX stdio bug.
51816         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
51817         * tests/test-ftello.c (main): Likewise.
51818         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
51819         * doc/posix-functions/ftello.texi: Likewise.
51820
51821 2008-04-13  Bruno Haible  <bruno@clisp.org>
51822
51823         Make test-signbit pass on HP-UX/hppa.
51824         * tests/test-signbit.c (minus_zerol): New variable.
51825         (test_signbitl): Use it.
51826
51827 2008-04-13  Bruno Haible  <bruno@clisp.org>
51828
51829         Make truncl work on OSF/1 4.0.
51830         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
51831         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51832         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51833         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
51834         HAVE_DECL_TRUNCL.
51835         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
51836         HAVE_DECL_TRUNCL.
51837         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
51838
51839 2008-04-13  Bruno Haible  <bruno@clisp.org>
51840
51841         * lib/unictype.h: Remove trailing comma from enumeration definitions.
51842
51843 2008-04-13  Bruno Haible  <bruno@clisp.org>
51844
51845         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
51846         expression, so as to avoid HP-UX 11 cc compiler bug.
51847
51848 2008-04-13  Bruno Haible  <bruno@clisp.org>
51849
51850         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
51851
51852 2008-04-13  Bruno Haible  <bruno@clisp.org>
51853
51854         * lib/git-merge-changelog.c: Remove empty declaration outside of
51855         functions.
51856
51857 2008-04-13  Bruno Haible  <bruno@clisp.org>
51858
51859         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
51860
51861 2008-04-13  Bruno Haible  <bruno@clisp.org>
51862
51863         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
51864         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
51865         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
51866         also if it exists but lacks definitions of the SHUT_* macros.
51867         * modules/sys_socket (Description): Update.
51868         Reported by Elbert Pol <e.pol@chello.nl>.
51869
51870 2008-04-13  Bruno Haible  <bruno@clisp.org>
51871
51872         * lib/localcharset.c (OS2): Don't redefine if already defined.
51873         Reported by Elbert Pol <e.pol@chello.nl>.
51874
51875 2008-04-13  Bruno Haible  <bruno@clisp.org>
51876
51877         * lib/binary-io.h [__EMX__]: Include <io.h>.
51878         Reported by Elbert Pol <e.pol@chello.nl>.
51879
51880 2008-04-12  Bruno Haible  <bruno@clisp.org>
51881
51882         * lib/fpucw.h: Enable the definitions also for x86_64.
51883         Needed for NetBSD/x86_64.
51884         Reported by Thomas Klausner <tk@giga.or.at>.
51885
51886 2008-04-12  Bruno Haible  <bruno@clisp.org>
51887
51888         * tests/test-strtod.c: Include isnand.h.
51889         (main): Use isnand instead of isnan.
51890         Reported by Jim Meyering.
51891
51892 2008-04-12  Bruno Haible  <bruno@clisp.org>
51893
51894         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
51895         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51896
51897 2008-04-12  Jim Meyering  <meyering@redhat.com>
51898
51899         * m4/math_h.m4 (gl_MATH_H): Fix typos.
51900
51901 2008-04-12  Bruno Haible  <bruno@clisp.org>
51902
51903         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
51904         Reported by Elbert Pol <e.pol@chello.nl>.
51905
51906 2008-04-12  Eric Blake  <ebb9@byu.net>
51907
51908         Work around Solaris 10 math.h bug.
51909         * m4/math_h.m4 (gl_MATH_H): Check for bug.
51910         (gl_MATH_H_DEFAULTS): Set up default.
51911         * modules/math (Makefile.am): Replace new indicators.
51912         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
51913         * tests/test-math.c (main): Test this.
51914         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
51915         * doc/posix-headers/math.texi (math.h): Mention bug.
51916         Reported by Nelson H. F. Beebe and Jim Meyering.
51917
51918 2008-04-11  Bruno Haible  <bruno@clisp.org>
51919
51920         Adapt to future versions of Apple GCC.
51921         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
51922         Reported by Peter O'Gorman <peter@pogma.com>.
51923
51924 2008-04-11  Bruno Haible  <bruno@clisp.org>
51925
51926         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
51927
51928 2008-04-11  Bruno Haible  <bruno@clisp.org>
51929
51930         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
51931
51932         * modules/getaddrinfo-tests (Makefile.am): Define
51933         test_getaddrinfo_LDADD.
51934
51935 2008-04-11  Bruno Haible  <bruno@clisp.org>
51936
51937         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
51938         (init): Fix syntax error.
51939         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
51940         is declared.
51941
51942 2008-04-11  Bruno Haible  <bruno@clisp.org>
51943
51944         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
51945         * modules/glob (Depends-on): Add stdbool.
51946
51947 2008-04-11  Bruno Haible  <bruno@clisp.org>
51948
51949         * lib/trim.c: Include <string.h>.
51950
51951 2008-04-11  Eric Blake  <ebb9@byu.net>
51952
51953         Avoid compile failure on OS/2.
51954         * lib/regex_internal.h (internal_function): Disable optimization
51955         on OS/2 (__EMX__), where it caused compiler error.
51956         Reported by Elbert Pol.
51957
51958 2008-04-11  Bruno Haible  <bruno@clisp.org>
51959
51960         Flush the standard error stream before aborting. Needed on mingw.
51961         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
51962         * tests/test-array_list.c (ASSERT): Likewise.
51963         * tests/test-array_oset.c (ASSERT): Likewise.
51964         * tests/test-avltree_list.c (ASSERT): Likewise.
51965         * tests/test-avltree_oset.c (ASSERT): Likewise.
51966         * tests/test-avltreehash_list.c (ASSERT): Likewise.
51967         * tests/test-binary-io.c (ASSERT): Likewise.
51968         * tests/test-byteswap.c (ASSERT): Likewise.
51969         * tests/test-c-ctype.c (ASSERT): Likewise.
51970         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
51971         * tests/test-c-strcasestr.c (ASSERT): Likewise.
51972         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
51973         * tests/test-c-strstr.c (ASSERT): Likewise.
51974         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
51975         * tests/test-canonicalize.c (ASSERT): Likewise.
51976         * tests/test-carray_list.c (ASSERT): Likewise.
51977         * tests/test-ceilf1.c (ASSERT): Likewise.
51978         * tests/test-ceilf2.c (ASSERT): Likewise.
51979         * tests/test-ceill.c (ASSERT): Likewise.
51980         * tests/test-count-one-bits.c (ASSERT): Likewise.
51981         * tests/test-fbufmode.c (ASSERT): Likewise.
51982         * tests/test-fflush2.c (ASSERT): Likewise.
51983         * tests/test-floorf1.c (ASSERT): Likewise.
51984         * tests/test-floorf2.c (ASSERT): Likewise.
51985         * tests/test-floorl.c (ASSERT): Likewise.
51986         * tests/test-fopen.c (ASSERT): Likewise.
51987         * tests/test-fpending.c (ASSERT): Likewise.
51988         * tests/test-fprintf-posix.c (ASSERT): Likewise.
51989         * tests/test-fpurge.c (ASSERT): Likewise.
51990         * tests/test-freadable.c (ASSERT): Likewise.
51991         * tests/test-freadahead.c (ASSERT): Likewise.
51992         * tests/test-freading.c (ASSERT): Likewise.
51993         * tests/test-freadptr.c (ASSERT): Likewise.
51994         * tests/test-freadptr2.c (ASSERT): Likewise.
51995         * tests/test-freadseek.c (ASSERT): Likewise.
51996         * tests/test-freopen.c (ASSERT): Likewise.
51997         * tests/test-frexp.c (ASSERT): Likewise.
51998         * tests/test-frexpl.c (ASSERT): Likewise.
51999         * tests/test-fseek.c (ASSERT): Likewise.
52000         * tests/test-fseeko.c (ASSERT): Likewise.
52001         * tests/test-fstrcmp.c (ASSERT): Likewise.
52002         * tests/test-ftell.c (ASSERT): Likewise.
52003         * tests/test-ftello.c (ASSERT): Likewise.
52004         * tests/test-func.c (ASSERT): Likewise.
52005         * tests/test-fwritable.c (ASSERT): Likewise.
52006         * tests/test-fwriting.c (ASSERT): Likewise.
52007         * tests/test-getdelim.c (ASSERT): Likewise.
52008         * tests/test-getline.c (ASSERT): Likewise.
52009         * tests/test-i-ring.c (ASSERT): Likewise.
52010         * tests/test-iconv-utf.c (ASSERT): Likewise.
52011         * tests/test-iconv.c (ASSERT): Likewise.
52012         * tests/test-isfinite.c (ASSERT): Likewise.
52013         * tests/test-isnand.c (ASSERT): Likewise.
52014         * tests/test-isnanf.c (ASSERT): Likewise.
52015         * tests/test-isnanl.h (ASSERT): Likewise.
52016         * tests/test-ldexpl.c (ASSERT): Likewise.
52017         * tests/test-linked_list.c (ASSERT): Likewise.
52018         * tests/test-linkedhash_list.c (ASSERT): Likewise.
52019         * tests/test-localename.c (ASSERT): Likewise.
52020         * tests/test-lseek.c (ASSERT): Likewise.
52021         * tests/test-mbscasecmp.c (ASSERT): Likewise.
52022         * tests/test-mbscasestr1.c (ASSERT): Likewise.
52023         * tests/test-mbscasestr2.c (ASSERT): Likewise.
52024         * tests/test-mbscasestr3.c (ASSERT): Likewise.
52025         * tests/test-mbscasestr4.c (ASSERT): Likewise.
52026         * tests/test-mbschr.c (ASSERT): Likewise.
52027         * tests/test-mbscspn.c (ASSERT): Likewise.
52028         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
52029         * tests/test-mbspbrk.c (ASSERT): Likewise.
52030         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
52031         * tests/test-mbsrchr.c (ASSERT): Likewise.
52032         * tests/test-mbsspn.c (ASSERT): Likewise.
52033         * tests/test-mbsstr1.c (ASSERT): Likewise.
52034         * tests/test-mbsstr2.c (ASSERT): Likewise.
52035         * tests/test-mbsstr3.c (ASSERT): Likewise.
52036         * tests/test-memchr2.c (ASSERT): Likewise.
52037         * tests/test-memmem.c (ASSERT): Likewise.
52038         * tests/test-open.c (ASSERT): Likewise.
52039         * tests/test-printf-frexp.c (ASSERT): Likewise.
52040         * tests/test-printf-frexpl.c (ASSERT): Likewise.
52041         * tests/test-printf-posix.c (ASSERT): Likewise.
52042         * tests/test-quotearg.c (ASSERT): Likewise.
52043         * tests/test-rbtree_list.c (ASSERT): Likewise.
52044         * tests/test-rbtree_oset.c (ASSERT): Likewise.
52045         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
52046         * tests/test-round1.c (ASSERT): Likewise.
52047         * tests/test-roundf1.c (ASSERT): Likewise.
52048         * tests/test-roundl.c (ASSERT): Likewise.
52049         * tests/test-signbit.c (ASSERT): Likewise.
52050         * tests/test-sleep.c (ASSERT): Likewise.
52051         * tests/test-snprintf-posix.c (ASSERT): Likewise.
52052         * tests/test-snprintf.c (ASSERT): Likewise.
52053         * tests/test-sprintf-posix.c (ASSERT): Likewise.
52054         * tests/test-stat-time.c (ASSERT): Likewise.
52055         * tests/test-strcasestr.c (ASSERT): Likewise.
52056         * tests/test-strerror.c (ASSERT): Likewise.
52057         * tests/test-striconv.c (ASSERT): Likewise.
52058         * tests/test-striconveh.c (ASSERT): Likewise.
52059         * tests/test-striconveha.c (ASSERT): Likewise.
52060         * tests/test-strsignal.c (ASSERT): Likewise.
52061         * tests/test-strstr.c (ASSERT): Likewise.
52062         * tests/test-strtod.c (ASSERT): Likewise.
52063         * tests/test-trunc1.c (ASSERT): Likewise.
52064         * tests/test-trunc2.c (ASSERT): Likewise.
52065         * tests/test-truncf1.c (ASSERT): Likewise.
52066         * tests/test-truncf2.c (ASSERT): Likewise.
52067         * tests/test-truncl.c (ASSERT): Likewise.
52068         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
52069         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
52070         * tests/test-vasnprintf.c (ASSERT): Likewise.
52071         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
52072         * tests/test-vasprintf.c (ASSERT): Likewise.
52073         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
52074         * tests/test-vprintf-posix.c (ASSERT): Likewise.
52075         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
52076         * tests/test-vsnprintf.c (ASSERT): Likewise.
52077         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
52078         * tests/test-wcwidth.c (ASSERT): Likewise.
52079         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
52080         * tests/test-xprintf-posix.c (ASSERT): Likewise.
52081         * tests/test-xvasprintf.c (ASSERT): Likewise.
52082         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
52083         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
52084         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
52085         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
52086         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
52087         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
52088         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
52089         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
52090         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
52091         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
52092         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
52093         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
52094         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
52095         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
52096         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
52097         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
52098         * tests/unictype/test-block_list.c (ASSERT): Likewise.
52099         * tests/unictype/test-block_of.c (ASSERT): Likewise.
52100         * tests/unictype/test-block_test.c (ASSERT): Likewise.
52101         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
52102         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
52103         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
52104         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
52105         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
52106         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
52107         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
52108         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
52109         * tests/unictype/test-combining.c (ASSERT): Likewise.
52110         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
52111         * tests/unictype/test-digit.c (ASSERT): Likewise.
52112         * tests/unictype/test-mirror.c (ASSERT): Likewise.
52113         * tests/unictype/test-numeric.c (ASSERT): Likewise.
52114         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
52115         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
52116         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
52117         * tests/unictype/test-scripts.c (ASSERT): Likewise.
52118         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
52119         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
52120         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
52121         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
52122         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
52123         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
52124         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
52125         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
52126         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
52127         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
52128         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
52129         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
52130         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
52131         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
52132         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
52133         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
52134         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
52135         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
52136         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
52137         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
52138         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
52139         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
52140         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
52141         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
52142         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
52143         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
52144         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
52145         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
52146         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
52147         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
52148         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
52149         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
52150         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
52151         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
52152         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
52153         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
52154         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
52155         Reported by Eric Blake.
52156
52157 2008-04-11  Bruno Haible  <bruno@clisp.org>
52158
52159         * lib/wchar.in.h: Tweak comment.
52160
52161 2008-04-11  Bruno Haible  <bruno@clisp.org>
52162
52163         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
52164         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
52165         gl_COMMON.
52166         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
52167
52168 2008-04-11  Bruno Haible  <bruno@clisp.org>
52169
52170         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
52171
52172 2008-04-11  Simon Josefsson  <simon@josefsson.org>
52173
52174         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
52175         of attempting to use non-existing /dev/*random.  Based on patch
52176         from Adam Strzelecki <ono@java.pl> in
52177         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
52178
52179 2008-04-08  Bruno Haible  <bruno@clisp.org>
52180
52181         Add tentative support for emx+gcc.
52182         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
52183         * lib/fpurge.c (fpurge): Likewise.
52184         * lib/freadable.c (freadable): Likewise.
52185         * lib/freadahead.c (freadahead): Likewise.
52186         * lib/freading.c (freading): Likewise.
52187         * lib/freadptr.c (freadptr): Likewise.
52188         * lib/freadseek.c (freadptrinc): Likewise.
52189         * lib/fseeko.c (rpl_fseeko): Likewise.
52190         * lib/fseterr.c (fseterr): Likewise.
52191         * lib/fwritable.c (fwritable): Likewise.
52192         * lib/fwriting.c (fwriting): Likewise.
52193         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
52194
52195 2008-04-09  Eric Blake  <ebb9@byu.net>
52196
52197         Avoid some autoconf warnings.
52198         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
52199         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
52200         * m4/afs.m4 (gl_AFS): Likewise.
52201         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
52202         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
52203         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52204         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
52205         (gl_INTEGER_TYPE_SUFFIX): Likewise.
52206         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
52207         (AC_CHECK_DECLS_ONCE): Likewise.
52208         Rename file...
52209         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
52210         gnulib-tool requires autoconf 2.59 or better.
52211         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
52212
52213 2008-04-08  Eric Blake  <ebb9@byu.net>
52214
52215         Use 'git describe --match' if present (added in git 1.5.5).
52216         * build-aux/git-version-gen: Limit result to tags that match 'v*'
52217         if possible.
52218
52219 2008-04-08  Bruno Haible  <bruno@clisp.org>
52220
52221         Add tentative support for OpenServer.
52222         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
52223         _ptr, _cnt.
52224         * lib/fpurge.c (fpurge): Likewise.
52225         * lib/freadable.c (freadable): Likewise.
52226         * lib/freadahead.c (freadahead): Likewise.
52227         * lib/freading.c (freading): Likewise.
52228         * lib/freadptr.c (freadptr): Likewise.
52229         * lib/freadseek.c (freadptrinc): Likewise.
52230         * lib/fseeko.c (rpl_fseeko): Likewise.
52231         * lib/fseterr.c (fseterr): Likewise.
52232         * lib/fwritable.c (fwritable): Likewise.
52233         * lib/fwriting.c (fwriting): Likewise.
52234         Reported by Roger Cornelius <rac@tenzing.org> and
52235         Brian K. White <brian@aljex.com>.
52236
52237 2008-04-06  Jim Meyering  <meyering@redhat.com>
52238
52239         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
52240
52241 2008-04-06  Bruno Haible  <bruno@clisp.org>
52242
52243         Avoid possible error with non-ASCII bytes in UTF-8 locales.
52244         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
52245         * tests/test-printf-posix.sh: Likewise.
52246         * tests/test-vfprintf-posix.sh: Likewise.
52247         * tests/test-vprintf-posix.sh: Likewise.
52248         * tests/test-xprintf-posix.sh: Likewise.
52249
52250 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52251
52252         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
52253         hide error from 'ls', needed on OS/2.
52254         Report by Elbert Pol <elbert.pol@gmail.com>.
52255
52256 2008-04-04  Eric Blake  <ebb9@byu.net>
52257
52258         Make test-fseeko.c failures meaningful.
52259         * tests/test-fseeko.c: Print line number on failure.
52260         * tests/test-fseek.c: Likewise.
52261         Reported by Nelson H. F. Beebe.
52262
52263         Improve strtod bug detection check.
52264         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
52265         required for Solaris 10.
52266         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
52267
52268 2008-04-04  Bruno Haible  <bruno@clisp.org>
52269
52270         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
52271         by m4/setenv.m4.
52272
52273 2008-04-03  Eric Blake  <ebb9@byu.net>
52274
52275         Ensure sane .version contents.
52276         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
52277         version string.
52278         * build-aux/git-version-gen: Improve documentation.
52279
52280         Make GNU make output nicer.
52281         * top/GNUmakefile [!_have-Makefile]: Add dependency on
52282         MAKECMDGOALS to enforce message for all command line targets.  Set
52283         srcdir for use in maint.mk.
52284
52285         Another maintainer tweak.
52286         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
52287         a target that regenerates version.
52288
52289 2008-04-03  Jim Meyering  <meyering@redhat.com>
52290
52291         vc-list-files: don't cause coreutils "make po-check" failure
52292         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
52293
52294 2008-04-03  Eric Blake  <ebb9@byu.net>
52295
52296         Allow VPATH usage of vc-list-files.
52297         * build-aux/vc-list-files (scriptversion): Add timestamp.
52298         (options): Add --help, --version, -C.
52299         (CVS): Support installed cvsu.
52300
52301 2008-04-02  Bruno Haible  <bruno@clisp.org>
52302
52303         Avoid some "statement with no effect" warnings from gcc.
52304         * tests/test-wctype.c (main): Explicitly ignore unused values.
52305         Reported by Jim Meyering.
52306
52307 2008-04-02  Jim Meyering  <meyering@redhat.com>
52308
52309         Avoid some warnings from "gcc -Wshadow".
52310         * tests/test-frexp.c (exp): Define to a different identifier.
52311         * tests/test-frexpl.c (exp): Likewise.
52312
52313 2008-04-03  Jim Meyering  <meyering@redhat.com>
52314
52315         bootstrap: remove dangling *.[ch] symlinks from lib
52316         * build-aux/bootstrap [dangling symlink removal]: Move find's
52317         -depth option to precede all others, to avoid a warning.
52318         Remove *.[ch] files too, and from "$source_base" (usually lib/).
52319
52320 2008-04-02  Bruno Haible  <bruno@clisp.org>
52321
52322         Avoid some warnings from "gcc -Wshadow".
52323         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
52324         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
52325         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
52326         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
52327         Reported by Jim Meyering.
52328
52329 2008-04-01  Bruno Haible  <bruno@clisp.org>
52330
52331         Fix test to work on IRIX 6.5 with cc.
52332         * tests/test-math.c (numeric_equal): New function.
52333         (main): Use it.
52334
52335 2008-04-01  Bruno Haible  <bruno@clisp.org>
52336
52337         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
52338
52339 2008-04-01  Bruno Haible  <bruno@clisp.org>
52340
52341         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
52342         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52343         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
52344         (Depends-on): Remove math.
52345
52346         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
52347         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52348         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
52349         (Depends-on): Remove math.
52350
52351         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
52352         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52353         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
52354         (Depends-on): Remove math.
52355         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
52356         (Depends-on): Remove math.
52357
52358         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
52359         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52360         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
52361         (Depends-on): Remove math.
52362         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
52363         (Depends-on): Remove math.
52364
52365         * tests/test-round1.c: Include nan.h.
52366         (main): Use NaNd instead of NAN.
52367         * modules/round-tests (Files): Add tests/nan.h.
52368
52369         * tests/test-trunc1.c: Include nan.h.
52370         (main): Use NaNd instead of NAN.
52371         * modules/trunc-tests (Files): Add tests/nan.h.
52372
52373         * tests/test-roundf1.c: Include nan.h.
52374         (main): Use NaNf instead of NAN.
52375         * modules/roundf-tests (Files): Add tests/nan.h.
52376
52377         * tests/test-truncf1.c: Include nan.h.
52378         (main): Use NaNf instead of NAN.
52379         * modules/truncf-tests (Files): Add tests/nan.h.
52380
52381         * tests/test-ceilf1.c: Include nan.h.
52382         (main): Use NaNf instead of NAN.
52383         * modules/ceilf-tests (Files): Add tests/nan.h.
52384
52385         * tests/test-floorf1.c: Include nan.h.
52386         (main): Use NaNf instead of NAN.
52387         * modules/floorf-tests (Files): Add tests/nan.h.
52388
52389         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
52390         (main): Use NaNf instead of NAN.
52391         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
52392
52393         * tests/test-isnand.c: Include nan.h instead of <math.h>.
52394         (main): Use NaNd instead of NAN.
52395         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
52396
52397         * tests/test-frexp.c: Include nan.h.
52398         (main): Use NaNd instead of NAN.
52399         * modules/frexp-tests (Files): Add tests/nan.h.
52400
52401         * lib/isnan.c: Don't include <math.h>.
52402         (FUNC): Don't use NAN macro.
52403         * modules/isnand-nolibm (Depends-on): Remove math.
52404         * modules/isnanf-nolibm (Depends-on): Remove math.
52405         * modules/isnanl (Depends-on): Remove math.
52406         * modules/isnanl-nolibm (Depends-on): Remove math.
52407
52408         * tests/nan.h: New file.
52409
52410 2008-04-01  Eric Blake  <ebb9@byu.net>
52411
52412         Fix typos.
52413         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
52414         values to be the right type.
52415
52416         For now, cater to gnulib strtod inaccuracies.
52417         * tests/test-strtod.c (main): Allow 1-ulp error on expected
52418         fractional results.  While not as nice from a QoI perspective, it
52419         is a quicker patch than correctly implementing decimal to binary
52420         rounding.
52421
52422 2008-03-31  Eric Blake  <ebb9@byu.net>
52423
52424         Guarantee a definition of NAN.
52425         * lib/math.in.h (NAN): Define if missing.
52426         * tests/test-math.c (main): Test it.
52427         * doc/posix-headers/math.texi (math.h): Document this.
52428         * lib/isnan.c (rpl_isnand): Use it.
52429         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
52430         * tests/test-floorf1.c (NaN): Likewise.
52431         * tests/test-frexp.c (NaN): Likewise.
52432         * tests/test-isnand.c (NaN): Likewise.
52433         * tests/test-isnanf.c (NaN): Likewise.
52434         * tests/test-round1.c (NaN): Likewise.
52435         * tests/test-roundf1.c (NaN): Likewise.
52436         * tests/test-snprintf-posix.h (NaN): Likewise.
52437         * tests/test-sprintf-posix.h (NaN): Likewise.
52438         * tests/test-trunc1.c (NaN): Likewise.
52439         * tests/test-truncf1.c (NaN): Likewise.
52440         * tests/test-vasnprintf-posix.c (NaN): Likewise.
52441         * tests/test-vasprintf-posix.c (NaN): Likewise.
52442         * modules/isnand-nolibm (Depends-on): Add math.
52443         * modules/isnanf-nolibm (Depends-on): Likewise.
52444         * modules/isnanl (Depends-on): Likewise.
52445         * modules/isnanl-nolibm (Depends-on): Likewise.
52446         * modules/snprintf-posix-tests (Depends-on): Likewise.
52447         * modules/sprintf-posix-tests (Depends-on): Likewise.
52448         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
52449         * modules/vsprintf-posix-tests (Depends-on): Likewise.
52450         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
52451         * modules/vasprintf-posix-tests (Depends-on): Likewise.
52452
52453 2008-03-31  Bruno Haible  <bruno@clisp.org>
52454
52455         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
52456         * doc/posix-functions/strtod.texi: Likewise.
52457
52458 2008-03-31  Bruno Haible  <bruno@clisp.org>
52459
52460         * tests/test-strtod.c (main): Don't use C99 syntax.
52461
52462 2008-03-31  Bruno Haible  <bruno@clisp.org>
52463
52464         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
52465         Reported by Eric Blake.
52466
52467 2008-03-31  Jim Meyering  <meyering@redhat.com>
52468
52469         Don't compare actual signbit return values.
52470         * tests/test-strtod.c (main): Rather, compare only their
52471         zero/non-zero nature.
52472
52473 2008-03-31  Eric Blake  <ebb9@byu.net>
52474
52475         More strtod documentation.
52476         * doc/posix-functions/strtod.texi (strtod): Interpret more test
52477         failures as distinct bugs.
52478
52479 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52480
52481         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
52482         Problem reported by Erik Benada in
52483         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
52484
52485 2008-03-30  Bruno Haible  <bruno@clisp.org>
52486
52487         * tests/test-strtod.c: Add comments about which assertion fails on which
52488         platform.
52489         * doc/posix-functions/strtod.texi: Add info about many more platforms.
52490
52491 2008-03-30  Eric Blake  <ebb9@byu.net>
52492
52493         Test signbit behavior on zeros.
52494         * tests/test-signbit.c (test_signbitf): Add tests for zero.
52495         (test_signbitd, test_signbitl): Likewise.
52496
52497         More strtod touchups.
52498         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
52499         sign of negative underflow, for now.  Use .5, not .1.
52500         * doc/posix-functions/strtod.texi (strtod): Mention these
52501         limitations.
52502         Reported by Jim Meyering.
52503
52504 2008-03-30  Bruno Haible  <bruno@clisp.org>
52505
52506         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
52507         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
52508
52509 2008-03-30  Bruno Haible  <bruno@clisp.org>
52510
52511         Avoid failure when attempting to return empty iconv results on some
52512         platforms.
52513         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
52514         allocation, don't report ENOMEM when the resulting string is empty.
52515
52516 2008-03-30  Bruno Haible  <bruno@clisp.org>
52517
52518         Fix buffer overrun.
52519         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
52520         Don't consider the width for tmp_length. Check count against tmp_length
52521         before doing the padding. Ensure enough allocation during padding.
52522
52523 2008-03-30  Eric Blake  <ebb9@byu.net>
52524
52525         strtod touchups.
52526         * lib/strtod.c (strtod): Avoid compiler warnings.
52527         Reported by Jim Meyering.
52528
52529 2008-03-30  Bruno Haible  <bruno@clisp.org>
52530
52531         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
52532         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
52533         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
52534         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
52535         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
52536         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
52537         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
52538         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
52539
52540         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
52541         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
52542         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
52543         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
52544         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
52545         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
52546         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
52547         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
52548
52549         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
52550         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
52551         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
52552         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
52553         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
52554         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
52555         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
52556         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
52557
52558         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
52559         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
52560
52561         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
52562         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
52563
52564         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
52565         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
52566
52567         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
52568         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
52569         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
52570
52571         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
52572         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
52573         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
52574
52575         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
52576         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
52577         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
52578
52579         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
52580         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
52581         * modules/vasprintf (Depends-on): Add EOVERFLOW.
52582
52583         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
52584         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
52585         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
52586         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
52587         (Depends-on): Add EOVERFLOW.
52588         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
52589         (Depends-on): Add EOVERFLOW.
52590         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52591         (Depends-on): Add EOVERFLOW.
52592         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52593         (Depends-on): Add EOVERFLOW.
52594         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52595         (Depends-on): Add EOVERFLOW.
52596         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52597         (Depends-on): Add EOVERFLOW.
52598         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52599         (Depends-on): Add EOVERFLOW.
52600         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52601         (Depends-on): Add EOVERFLOW.
52602
52603         * lib/sprintf.c (EOVERFLOW): Remove fallback.
52604         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
52605         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
52606
52607         * lib/snprintf.c (EOVERFLOW): Remove fallback.
52608         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
52609         * modules/snprintf (Depends-on): Add EOVERFLOW.
52610
52611         * lib/poll.c (EOVERFLOW): Remove fallback.
52612         * modules/poll (Depends-on): Add EOVERFLOW.
52613
52614         * lib/getugroups.c (EOVERFLOW): Remove fallback.
52615         * modules/getugroups (Depends-on): Add EOVERFLOW.
52616
52617         * lib/getdelim.c (EOVERFLOW): Remove fallback.
52618         * modules/getdelim (Depends-on): Add EOVERFLOW.
52619
52620         * lib/ftell.c (EOVERFLOW): Remove fallback.
52621         * modules/ftell (Depends-on): Add EOVERFLOW.
52622
52623         * lib/fprintf.c (EOVERFLOW): Remove fallback.
52624         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
52625         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
52626
52627         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
52628
52629         * modules/EOVERFLOW-tests: New file.
52630         * tests/test-EOVERFLOW.c: New file.
52631
52632         * modules/EOVERFLOW: New file.
52633         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
52634
52635 2008-03-30  Bruno Haible  <bruno@clisp.org>
52636
52637         Fix bug introduced on 2007-06-10.
52638         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
52639         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
52640
52641 2008-03-30  Bruno Haible  <bruno@clisp.org>
52642
52643         Improve freadseek's efficiency after ungetc.
52644         * lib/freadseek.c: Include freadahead.h.
52645         (freadptrinc): New function, extracted from freadseek.
52646         (freadseek): Use it in a loop. Use freadahead to determine the number
52647         of loop iterations.
52648         * modules/freadseek (Depends-on): Add freadahead.
52649         (configure.ac): Require AC_C_INLINE.
52650
52651 2008-03-30  Bruno Haible  <bruno@clisp.org>
52652
52653         * lib/freadseek.c (freadseek): Don't ignore the return value of
52654         freadptr.
52655
52656 2008-03-29  Eric Blake  <ebb9@byu.net>
52657
52658         Add hex float support.
52659         * modules/strtod (Depends-on): Add c-ctype.
52660         (Link): Mention POW_LIB.
52661         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
52662         whitespace between 'e' and exponent.
52663         * tests/test-strtod.c (main): Enable hex float tests.
52664         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
52665         now provides.
52666
52667         Document various strtod bugs, with some fixes.
52668         * doc/posix-functions/strtod.texi (strtod): Document bugs with
52669         "-0x", "inf", "nan", and hex constants.
52670         * doc/posix-functions/atof.texi (atof): Likewise.
52671         * modules/stdlib (Makefile.am): Support strtod.
52672         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
52673         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
52674         detect additional strtod bugs.
52675         * lib/stdlib.in.h (rpl_strtod): Add declarations.
52676         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
52677         bool where appropriate.  Parse 'inf' and 'nan'.
52678         * tests/test-strtod.c: New file.
52679         * modules/strtod (Depends-on): Add stdbool, stdlib.
52680         (configure.ac): Turn on module indicator.
52681         * modules/strtod-tests: New module.
52682
52683 2008-03-29  Eric Blake  <ebb9@byu.net>
52684
52685         Fix ftell on mingw.
52686         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
52687         * modules/ftell-tests (Depends-on): Add binary-io.
52688         * modules/ftello-tests (Depends-on): Likewise.
52689         * tests/test-ftell.c (main): Enhance test to cover behavior after
52690         ungetc.  Enforce binary mode.
52691         * tests/test-ftello.c (main): Likewise.
52692
52693         Pass test-freadseek on cygwin.
52694         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
52695         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
52696         ungetc buffer.
52697
52698         * tests/test-fflush2.c (main): Fix typo.
52699
52700 2008-03-29  Bruno Haible  <bruno@clisp.org>
52701
52702         * tests/test-fflush2.c (main): Temporarily disable the contents of
52703         this test.
52704         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
52705         Reported by Eric Blake.
52706
52707 2008-03-28  Simon Josefsson  <simon@josefsson.org>
52708
52709         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
52710         (GC_SHA224_DIGEST_SIZE): Add.
52711
52712         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
52713         (gc_hash_digest_length): Likewise.
52714         (gc_hash_buffer): Likewise.
52715
52716 2008-03-25  Bruno Haible  <bruno@clisp.org>
52717
52718         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
52719         detail which gettext release to use.
52720         Reported by Simon Josefsson.
52721
52722 2008-03-26  Jim Meyering  <meyering@redhat.com>
52723
52724         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
52725         * modules/gnumakefile (clean-GNUmakefile): Also, use
52726         test ... && ... || : syntax rather than if-then ... fi.
52727
52728         gnumakefile: Don't double-quote-expand $(VPATH) value.
52729         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
52730
52731 2008-03-24  Eric Blake  <ebb9@byu.net>
52732
52733         Alter GNUmakefile to install into top directory.
52734         * modules/maintainer-makefile: Split, and add dependency...
52735         * modules/gnumakefile: to this new module.
52736         * build-aux/GNUmakefile: Move...
52737         * top/GNUmakefile: ...here.
52738         * build-aux/maint.mk: Move...
52739         * top/maint.mk: ...here.
52740         * MODULES.html.sh (Support for maintaining...): Document new
52741         module.
52742
52743 2008-03-23  Bruno Haible  <bruno@clisp.org>
52744
52745         * gnulib-tool: New options --vc-files, --no-vc-files.
52746         (func_usage): Document them.
52747         (vc_files): New variable.
52748         (func_import): Consider vc_files.
52749         (func_create_testdir): Set vc_files to empty.
52750         Suggested by Jim Meyering and Karl Berry.
52751
52752 2008-03-23  Bruno Haible  <bruno@clisp.org>
52753
52754         Fix regex compilation error on HP-UX 11.
52755         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
52756         * modules/regex (Files): Add m4/mbstate_t.m4.
52757         Reported by Ton Voon <ton.voon@altinity.com>.
52758
52759 2008-03-23  Bruno Haible  <bruno@clisp.org>
52760
52761         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
52762
52763 2008-03-23  Eric Blake  <ebb9@byu.net>
52764             Bruno Haible  <bruno@clisp.org>
52765
52766         Install files from top/ in the destination directory.
52767         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52768         augmentation also for the files from top/.
52769         (func_import, func_create_testdir): Rewrite file names:
52770         top/filename -> filename.
52771
52772 2008-03-23  Bruno Haible  <bruno@clisp.org>
52773
52774         Tweak "gnulib --version" output.
52775         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
52776
52777 2008-03-23  Bruno Haible  <bruno@clisp.org>
52778
52779         Tweak "gnulib --version" output.
52780         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
52781         rather than contents of ChangeLog, when possible.
52782
52783 2008-03-21  Eric Blake  <ebb9@byu.net>
52784
52785         More --version tweaks.
52786         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
52787         date of last ChangeLog entry.
52788
52789 2008-03-21  Jim Meyering  <meyering@redhat.com>
52790
52791         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
52792
52793 2008-03-20  Eric Blake  <ebb9@byu.net>
52794
52795         VPATH fix.
52796         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
52797
52798 2008-03-20  Simon Josefsson  <simon@josefsson.org>
52799
52800         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
52801         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
52802
52803 2008-03-20  Eric Blake  <ebb9@byu.net>
52804
52805         Sync GNUmakefile with coreutils.
52806         * build-aux/GNUmakefile (have-Makefile): Rename...
52807         (_have-Makefile): ...to this, for namespace consideration.
52808         (GNUmakefile.cfg): Include, if present.
52809         (_autoreconf): Define a default.
52810         (_is-dist-target): New rule for rebuilds to pick up intra-release
52811         version.
52812         (maint-cfg.mk): Rename...
52813         (cfg.mk): ...to this.
52814
52815 2008-03-18  Jim Meyering  <meyering@redhat.com>
52816
52817         New script and module: mktempd
52818         * MODULES.html.sh (maint+release support): Add mktempd.
52819         * build-aux/mktempd: New file.
52820         * modules/mktempd: New file.
52821
52822 2008-03-15  Jim Meyering  <meyering@redhat.com>
52823
52824         Undo last change.
52825         * lib/sha1.c, lib/md5.c: 63 != ~63.
52826         Reported by Andreas Schwab.
52827
52828         sha1.c, md5.c: Hoist a redundant expression.
52829         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
52830         "ctx->buflen" only once, before calling *_process_block.
52831         * lib/md5.c (md5_process_bytes): Likewise.
52832
52833 2008-03-14  Eric Blake  <ebb9@byu.net>
52834
52835         Bump copyright year in files generated by gnulib-tool.
52836         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
52837         gnulib-tool, rather than hard-coding it.
52838
52839         Fix 'gnulib-tool --version' output to work with git.
52840         * gnulib-tool (func_gnulib_dir): New function, extracted from...
52841         (startup): ...here.
52842         (func_version): Use it to invoke git-version-gen, rather than
52843         relying on CVS keyword expansion.  Modernize wording.
52844         (cvsdatestamp, last_checkin_date, version): Kill unused
52845         variables.
52846
52847 2008-03-12  Jim Meyering  <meyering@redhat.com>
52848
52849         Recognize optional cast of the argument to free.
52850         * build-aux/useless-if-before-free: Update regexps.
52851
52852         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
52853
52854 2008-03-11  Bruno Haible  <bruno@clisp.org>
52855
52856         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
52857         by a single package.
52858         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
52859         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
52860         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
52861         Reported by Sam Steingold <sds@gnu.org>.
52862
52863 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52864
52865         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
52866         repositories.
52867
52868 2008-03-11  Bruno Haible  <bruno@clisp.org>
52869
52870         Avoid conflicts between local macro definitions.
52871         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52872         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
52873
52874 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
52875             Bruno Haible  <bruno@clisp.org>
52876
52877         Make va_copy work with some version of xlc on AIX 5.1.
52878         * lib/stdarg.in.h: New file.
52879         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
52880         On AIX, use a <stdarg.h> file substitute.
52881         * modules/stdarg (Files): Add lib/stdarg.in.h.
52882         (Depends-on): Add include_next.
52883         (Makefile.am): Build a stdarg.h substitute if requested.
52884         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
52885
52886 2008-03-10  Bruno Haible  <bruno@clisp.org>
52887
52888         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
52889         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52890         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52891
52892 2008-03-10  Bruno Haible  <bruno@clisp.org>
52893
52894         * modules/stdlib (Depends-on): Add include_next, remove
52895         absolute-header.
52896
52897 2008-03-09  Bruno Haible  <bruno@clisp.org>
52898
52899         * lib/freadahead.h (freadahead): Document more precisely.
52900         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
52901         the sum of both buffer sizes.
52902         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
52903         * NEWS: Document the change.
52904
52905 2008-03-09  Bruno Haible  <bruno@clisp.org>
52906
52907         Extend freadptr to return also the buffer size.
52908         * lib/freadptr.h (freadptr): Add sizep argument.
52909         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
52910         (freadptr): Add sizep argument. Determine buffer size like freadahead
52911         does.
52912         * tests/test-freadptr.c: Don't include freadahead.h.
52913         (main): Adapt for new calling convention of freadptr.
52914         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
52915         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
52916         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
52917         tests/test-freadptr2.sh.
52918         (Depends): Remove freadahead.
52919         (TESTS): Add test-freadptr2.sh.
52920         (check_PROGRAMS): Add test-freadptr2.
52921
52922 2008-03-09  Bruno Haible  <bruno@clisp.org>
52923
52924         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
52925         Report and solution by Simon Josefsson.
52926
52927 2008-03-06  Bruno Haible  <bruno@clisp.org>
52928
52929         Make fflush after ungetc work on BSD platforms.
52930         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
52931         * tests/test-fflush2.c: New file.
52932         * tests/test-fflush2.sh: New file.
52933         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
52934         tests/test-fflush2.c.
52935         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
52936         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
52937
52938 2008-03-06  Eric Blake  <ebb9@byu.net>
52939
52940         Likewise for ftello.
52941         * modules/ftello (Dependencies): Add extensions.
52942         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
52943
52944 2008-03-06  Bruno Haible  <bruno@clisp.org>
52945
52946         * modules/fseeko (Dependencies): Add extensions.
52947         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
52948         Needed on glibc systems.
52949
52950 2008-03-06  Bruno Haible  <bruno@clisp.org>
52951
52952         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
52953         email address.
52954         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52955
52956 2008-03-06  Bruno Haible  <bruno@clisp.org>
52957
52958         * users.txt: Add libgnupdf.
52959
52960 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52961
52962         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
52963         (Header File Substitutes, Function Substitutes,
52964         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
52965         (Build robot for gnulib): Fix typo.
52966
52967 2008-03-06  Bruno Haible  <bruno@clisp.org>
52968
52969         * doc/gnulib-tool.texi (VCS Issues): Small updates.
52970         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52971
52972 2008-03-06  Bruno Haible  <bruno@clisp.org>
52973
52974         * doc/func.texi: New file, extracted from doc/gnulib.texi.
52975         * doc/gnulib.texi: Include it.
52976
52977 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52978
52979         * modules/func (License): Change license to unlimited; there was
52980         no LGPL parts in the module anyway.
52981
52982 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52983
52984         * modules/__func__: Renamed to modules/func.
52985         * modules/__func__-tests: Renamed to modules/func-tests.
52986         * tests/test-__func__.c: Renamed to tests/test-func.c.
52987         * m4/__func__.m4: Renamed to m4/func.m4.
52988         * doc/gnulib.texi (__func__): Section renamed to func.
52989         Suggested by Eric Blake <ebb9@byu.net>.
52990
52991 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52992
52993         * doc/gnulib.texi (__func__): Use C99 terminology when talking
52994         about __func__.  Make example self-contained.  Suggested by Eric
52995         Blake <ebb9@byu.net>.
52996
52997         * tests/test-__func__.c (main): Avoid extraneous () around __func.
52998         Suggested by Eric Blake <ebb9@byu.net>.
52999
53000 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53001
53002         * modules/__func__: New file.
53003         * modules/__func__-tests: New file.
53004         * tests/test-__func__.c: New file.
53005         * m4/__func__.m4: New file.
53006         * doc/gnulib.texi (__func__): Document __func__ module.
53007
53008 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53009
53010         * modules/byteswap (License): Re-license as LGPLv2+.
53011
53012 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53013
53014         * doc/Makefile: Add pdf target.
53015
53016 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53017
53018         * modules/inline (License): Use 'unlimited', since there are only
53019         *.m4 files in this module.
53020
53021 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53022             Bruno Haible  <bruno@clisp.org>
53023
53024         Add support for HP C 7.1 on OpenVMS 8.3.
53025         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
53026
53027 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53028
53029         Update VMS specifics.
53030         * lib/getopt.c [VMS]: Remove include of unixlib.h.
53031
53032 2008-03-02  Jim Meyering  <meyering@redhat.com>
53033
53034         Remove the last dependency on the "free" module.
53035         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
53036         Reported by Bob Proulx.
53037
53038         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
53039
53040         Remove useless "if" tests before free.  Deprecate "free" module.
53041         * doc/posix-functions/free.texi: Mention that this
53042         module is no longer useful.
53043         * modules/free (Notice): Say this module is obsolete.
53044         * modules/readutmp (Depends-on): Remove free.
53045         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
53046         * lib/putenv.c (putenv): Likewise.
53047         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
53048         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
53049         * tests/test-c-strcasestr.c (main): Likewise.
53050         * tests/test-c-strstr.c (main): Likewise.
53051         * tests/test-mbscasestr1.c (main): Likewise.
53052         * tests/test-mbscasestr2.c (main): Likewise.
53053         * tests/test-mbsstr1.c (main): Likewise.
53054         * tests/test-mbsstr2.c (main): Likewise.
53055         * tests/test-memmem.c (main): Likewise.
53056         * tests/test-strcasestr.c (main): Likewise.
53057         * tests/test-striconv.c (main): Likewise.
53058         * tests/test-striconveh.c (main): Likewise.
53059         * tests/test-striconveha.c (main): Likewise.
53060         * tests/test-strstr.c (main): Likewise.
53061
53062         * build-aux/git-version-gen: Adjust a comment and the Usage string.
53063
53064         bootstrap: sync from coreutils again
53065         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
53066
53067 2008-03-01  Jim Meyering  <meyering@redhat.com>
53068
53069         bootstrap: sync from coreutils
53070         * build-aux/bootstrap (update_po_files): Copy a .po file into place
53071         also when the target doesn't exist.
53072
53073 2008-03-01  Eric Blake  <ebb9@byu.net>
53074
53075         Fix bugs in last patch.
53076         * lib/memchr2.c (memchr2): Fix typo.
53077         * tests/test-memchr2.c: Test previous bug, and don't use GNU
53078         extension.
53079         Reported by Bruce Korb.
53080
53081         New module 'memchr2'.
53082         * modules/memchr2: New file.
53083         * modules/memchr2-tests: Likewise.
53084         * lib/memchr2.h: Likewise.
53085         * lib/memchr2.c: Likewise, based on memchr.c.
53086         * tests/test-memchr2.c: New test.
53087         * MODULES.html.sh (String handling): Add memchr2.
53088
53089 2008-02-29  Bruno Haible  <bruno@clisp.org>
53090
53091         * modules/freadseek-tests: New file.
53092         * tests/test-freadseek.sh: New file.
53093         * tests/test-freadseek.c: New file.
53094
53095         New module 'freadseek'.
53096         * modules/freadseek: New file.
53097         * lib/freadseek.h: New file.
53098         * lib/freadseek.c: New file.
53099         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
53100
53101 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
53102
53103         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
53104         wydawca.
53105
53106         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
53107         program_invocation_name and program_invocation_short_name are
53108         present.
53109
53110 2008-02-28  Bruno Haible  <bruno@clisp.org>
53111
53112         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
53113         * tests/test-freadptr.sh: Also test non-seekable stdin.
53114
53115 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
53116
53117         * build-aux/bootstrap (source_base, m4_base)
53118         (doc_base, tests_base): New variables.
53119         (gnulib_tool_options): Do not hardcode base directories, use
53120         the above variables instead.
53121
53122 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
53123
53124         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
53125
53126 2008-02-28  Bruno Haible  <bruno@clisp.org>
53127
53128         * modules/freadptr-tests: New file.
53129         * tests/test-freadptr.sh: New file.
53130         * tests/test-freadptr.c: New file.
53131
53132         New module 'freadptr'.
53133         * modules/freadptr: New file.
53134         * lib/freadptr.h: New file.
53135         * lib/freadptr.c: New file.
53136         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
53137
53138 2008-02-26  Karl Berry  <karl@freefriends.org>
53139
53140         Sync from Libtool:
53141         * libltdl/argz.c (argz_add, argz_count): New functions.
53142         * libltdl/argz.in.h: Declare them.
53143         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
53144
53145 2008-02-22  Bruno Haible  <bruno@clisp.org>
53146
53147         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
53148         is a pointer type.  Needed for HP-UX 10.
53149         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
53150         * doc/posix-functions/gmtime_r.texi: Likewise.
53151         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53152
53153 2008-02-24  Bruno Haible  <bruno@clisp.org>
53154
53155         * modules/environ-tests: New file.
53156         * tests/test-environ.c: New file.
53157
53158         New module 'environ'.
53159         * modules/environ: New file.
53160         * lib/unistd.in.h (environ): New declaration.
53161         * m4/environ.m4: New file.
53162         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
53163         after use.
53164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
53165         HAVE_DECL_ENVIRON.
53166         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
53167         HAVE_DECL_ENVIRON.
53168         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
53169         wrong claim that 'environ' is missing on some systems.
53170         * modules/execute (Depends-on): Add environ.
53171         * lib/execute.c (environ): Remove fallback declaration.
53172         * modules/pipe (Depends-on): Add environ.
53173         * lib/pipe.c (environ): Remove fallback declaration.
53174         * modules/setenv (Depends-on): Add environ.
53175         * lib/setenv.c (environ): Remove fallback declaration.
53176         * modules/unsetenv (Depends-on): Add environ.
53177         * lib/unsetenv.c (environ): Remove fallback declaration.
53178         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
53179         m4/environ.m4.
53180         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
53181         (gl_PREREQ_UNSETENV): Likewise.
53182
53183 2008-02-24  Bruno Haible  <bruno@clisp.org>
53184
53185         * doc/posix-functions/environ.texi: Document the MacOS X problem.
53186
53187 2008-02-20  Bob Proulx  <bob@proulx.com>
53188
53189         Enable use of older two part flavor 'git describe'.
53190         * build-aux/git-version-gen: If using the older two part flavor of
53191         git version then recreate the third part now present in the
53192         newer three part flavor of git describe.
53193
53194 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
53195
53196         * lib/fts.c (fts_build): Typo correction to comment.
53197
53198 2008-02-17  Bruno Haible  <bruno@clisp.org>
53199
53200         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
53201         generating no-op conflicts.
53202
53203 2008-02-17  Bruno Haible  <bruno@clisp.org>
53204
53205         Speed up by 10%.
53206         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
53207         result_entries, rather than an index-based loop.
53208
53209 2008-02-17  Bruno Haible  <bruno@clisp.org>
53210
53211         Speed up by 25%.
53212         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
53213         'hashcode_cached'.
53214         (entry_create): New function.
53215         (entry_hashcode): Use the cached hashcode if possible.
53216         (read_changelog_file, try_split_merged_entry): Use entry_create.
53217
53218 2008-02-17  Bruno Haible  <bruno@clisp.org>
53219
53220         Speed up from O(n^2) to O(n) for long ChangeLog files.
53221         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
53222         (read_changelog_file): Change implementation of entries_reversed list
53223         to rbtreehash.
53224         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
53225
53226 2008-02-17  Bruno Haible  <bruno@clisp.org>
53227
53228         New option --split-merged-entry.
53229         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
53230         (find_paragraph_end, try_split_merged_entry): New functions.
53231         (long_options): Add option --split-merged-entry.
53232         (usage): Document option --split-merged-entry.
53233         (main): Implement option --split-merged-entry.
53234         Reported by Eric Blake.
53235
53236 2008-02-17  Bruno Haible  <bruno@clisp.org>
53237
53238         * lib/git-merge-changelog.c: Include c-strstr.h.
53239         (main): Support the "git pull --rebase" situation.
53240         * modules/git-merge-changelog (Depends-on): Add c-strstr.
53241         Reported by Eric Blake.
53242
53243 2008-02-16  Eric Blake  <ebb9@byu.net>
53244
53245         Avoid doubling \ in common case of "c-maybe" quoting style.
53246         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
53247         eliding outer quotes.
53248         * lib/quotearg.h: Document this.
53249         * tests/test-quotearg.c (result_strings, inputs, results_g)
53250         (flag_results, locale_results): Test it by adding a new string to
53251         each test group.
53252         (compare_strings): Test new string.
53253
53254 2008-02-13  Eric Blake  <ebb9@byu.net>
53255
53256         Avoid trigraph quoting in default output.
53257         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
53258         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
53259         unless explicitly requested.
53260         * tests/test-quotearg.c (flag_results, main): Add additional tests.
53261
53262 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
53263
53264         Don't rely on signed integer overflowing to negative value.
53265         * lib/getugroups.c (getugroups): Include <limits.h>.
53266         Instead, compare against INT_MAX, and increment only if the test passes.
53267
53268 2008-02-13  Jim Meyering  <meyering@redhat.com>
53269         and Eric Blake  <ebb9@byu.net>
53270
53271         Avoid shadowing warning and compile errors on Linux.
53272         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
53273         forwarding macros on Linux.
53274         (dcgettext): Define a stub, for Linux.
53275         (results_g, main): Avoid warnings.
53276
53277 2008-02-12  Eric Blake  <ebb9@byu.net>
53278
53279         Silence warning in last patch.
53280         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
53281
53282         Quotearg part 4: add tests, fix c-maybe colon quoting.
53283         * lib/quotearg.h: Improve documentation.
53284         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
53285         escapes when adding outer quotes.  When quoting trigraphs, use
53286         valid C notation.  When quoting NUL, omit extra characters if next
53287         character is not digit.  Alter prototype.
53288         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
53289         callers.
53290         * modules/quotearg-tests: New module.
53291         * tests/test-quotearg.c: New test.
53292
53293 2008-02-07  Eric Blake  <ebb9@byu.net>
53294
53295         Quotearg part 3: add flag to control outer quote elision.
53296         * lib/quotearg.h (c_maybe_quoting_style): New style.
53297         (enum quoting_flags): Better documentation of flags.
53298         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
53299         c-maybe style.
53300         (quotearg_buffer_restyled): Handle new flag to elide outer
53301         quotes.
53302
53303         Quotearg part 2: add flag that can control NUL elision.
53304         * lib/quotearg.h (set_quoting_flags): New prototype.
53305         * lib/quotearg.c (struct quoting_options): Add flag field.
53306         (set_quoting_flags): New function.
53307         (quotearg_buffer_restyled): Add flags parameter.
53308         (quotearg_alloc_mem): Set the flag if length cannot be returned.
53309         (quotearg_n_options): Set the flag, since length cannot be
53310         returned.
53311         (quoting_options_from_style): Default flags correctly.
53312
53313         Quotearg part 1: more wrappers, restore quotearg_char state.
53314         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
53315         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
53316         (quotearg_colon_mem): New wrappers.
53317         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
53318         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
53319         functions.
53320         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
53321         (quotearg_colon_mem): New functions.
53322
53323 2008-02-11  Bruno Haible  <bruno@clisp.org>
53324
53325         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
53326         library in the current directory: it does not work with parallel make.
53327         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53328
53329 2008-02-11  Bruno Haible  <bruno@clisp.org>
53330
53331         * .gitattributes: New file.
53332
53333 2008-02-11  Jim Meyering  <meyering@redhat.com>
53334
53335         useless-if-before-free: Fix reversed exit values.
53336         * build-aux/useless-if-before-free: Use correct values
53337         for EXIT_MATCH and EXIT_NO_MATCH.
53338
53339         * build-aux/useless-if-before-free: Close stdout carefully.
53340
53341 2008-02-10  Bruno Haible  <bruno@clisp.org>
53342
53343         New module 'git-merge-changelog'.
53344         * modules/git-merge-changelog: New file.
53345         * lib/git-merge-changelog.c: New file.
53346
53347 2008-02-10  Jim Meyering  <meyering@redhat.com>
53348
53349         useless-if-before-free: New option: --list (-l).
53350
53351         useless-if-before-free: Don't exit immediately upon open failure.
53352         * build-aux/useless-if-before-free: Exit 2 for errors.
53353         Upon failure to open a file, don't exit immediately.
53354         Rather, just warn and continue with any remaining files.
53355
53356 2008-02-10  Bruno Haible  <bruno@clisp.org>
53357
53358         New abstract list operation 'node_set_value'.
53359         * lib/gl_list.h (gl_list_node_set_value): New function.
53360         (struct gl_list_implementation): New field node_set_value.
53361         * lib/gl_list.c (gl_list_node_set_value): New function.
53362         * lib/gl_array_list.c (gl_array_node_set_value): New function.
53363         (gl_array_list_implementation): Update.
53364         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
53365         (gl_carray_list_implementation): Update.
53366         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
53367         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53368         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53369         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
53370         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53371         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53372         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53373         Update.
53374         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
53375         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
53376         (gl_sublist_list_implementation): Update.
53377
53378 2008-02-10  Bruno Haible  <bruno@clisp.org>
53379
53380         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
53381         Needed when ELEMENT is #defined to 'some_type *'.
53382
53383 2008-02-10  Jim Meyering  <meyering@redhat.com>
53384
53385         New script and module: useless-if-before-free
53386         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
53387         * build-aux/useless-if-before-free: New file.
53388         * modules/useless-if-before-free: New file.
53389
53390         * build-aux/gitlog-to-changelog: Use committer date, not author date.
53391
53392         xstrtol_error: Fix typo.
53393         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
53394         s/exit_failure/exit_status/.
53395
53396 2008-02-09  Jim Meyering  <meyering@redhat.com>
53397
53398         New script and module: gitlog-to-changelog
53399         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
53400         * modules/gitlog-to-changelog: New file.
53401         * build-aux/gitlog-to-changelog: New file.
53402
53403 2008-02-08  Jim Meyering  <meyering@redhat.com>
53404
53405         Avoid two "parameter unused" warnings.
53406         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
53407         Mark "st" as used.
53408
53409         Use "git COMMAND", not "git-COMMAND".
53410         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
53411         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
53412         * build-aux/git-version-gen: Use "git status", not "git-status".
53413
53414 2008-02-07  Bruno Haible  <bruno@clisp.org>
53415
53416         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
53417         Avoids a crash on Windows Vista.
53418         Reported by Adam Strzelecki <ono@java.pl> via
53419         Simon Josefsson <simon@josefsson.org>.
53420
53421 2008-02-06  Bruno Haible  <bruno@clisp.org>
53422
53423         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
53424         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
53425         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
53426         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
53427         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53428         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53429         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
53430         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
53431         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53432         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53433         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53434         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53435         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53436         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53437         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53438         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
53439         left-adjust flag.
53440         * tests/test-snprintf-posix.h (test_function): Likewise.
53441         * tests/test-sprintf-posix.h (test_function): Likewise.
53442         * tests/test-vasprintf-posix.c (test_function): Likewise.
53443         * doc/posix-functions/fprintf.texi: Update.
53444         * doc/posix-functions/printf.texi: Update.
53445         * doc/posix-functions/snprintf.texi: Update.
53446         * doc/posix-functions/sprintf.texi: Update.
53447         * doc/posix-functions/vfprintf.texi: Update.
53448         * doc/posix-functions/vprintf.texi: Update.
53449         * doc/posix-functions/vsnprintf.texi: Update.
53450         * doc/posix-functions/vsprintf.texi: Update.
53451         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53452
53453 2008-02-06  Bruno Haible  <bruno@clisp.org>
53454
53455         Fix bug introduced on 2008-01-26.
53456         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
53457
53458 2008-02-06  Bruno Haible  <bruno@clisp.org>
53459
53460         Fix bug introduced on 2007-06-10.
53461         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
53462         !NEED_PRINTF_FLAG_ZERO.
53463
53464 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
53465
53466         getloadavg: use libperfstat on AIX5
53467         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
53468
53469 2008-02-03  Bruno Haible  <bruno@clisp.org>
53470
53471         * lib/diffseq.h: Add comments about required #includes.
53472         Reported by Michael Biggs <gnulib@doubleplum.net>.
53473
53474 2008-02-01  Bruno Haible  <bruno@clisp.org>
53475
53476         * users.txt: Add gnuit.
53477
53478 2008-01-31  Bruno Haible  <bruno@clisp.org>
53479
53480         * lib/md4.c (set_uint32): Mark as inline.
53481         * lib/md5.c (set_uint32): Likewise.
53482         * lib/sha1.c (set_uint32): Likewise.
53483         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
53484         * m4/md5.m4 (gl_MD5): Likewise.
53485         * m4/sha1.m4 (gl_SHA1): Likewise.
53486
53487 2008-01-31  Jim Meyering  <meyering@redhat.com>
53488
53489         Use "sizeof VAR", rather than a literal "4".
53490         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
53491         * lib/md4.c (md4_read_ctx): Likewise.
53492         * lib/sha1.c (sha1_read_ctx): Likewise.
53493
53494 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53495
53496         * tests/test-sha1.c: New file, based on test-md5.c.
53497
53498         * modules/crypto/sha1-tests: New file.
53499
53500 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53501
53502         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
53503
53504 2008-01-31  Jim Meyering  <meyering@redhat.com>
53505
53506         Prefer "sizeof v" over the equivalent "4".
53507         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
53508         * lib/md5.c (set_uint32): Likewise.
53509         * lib/sha1.c (set_uint32): Likewise.
53510
53511 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53512
53513         * lib/sha1.c (set_uint32): Mark function as static.
53514
53515 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53516
53517         md2: clarify comments to say that alignment is not required.
53518         * lib/md2.h: Remove warning about alignment in comment.
53519         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
53520         never been required.
53521
53522 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53523
53524         md4: adapt alignment constraint fix from sha1.
53525         * lib/md4.c (set_uint32): New function, from sha1.c
53526         (md4_read_ctx): Use it.
53527         (md4_finish_ctx): Doc fix.
53528         * lib/md4.h: Doc fix.
53529
53530 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53531
53532         md5: adapt alignment constraint fix from sha1.
53533         * lib/md5.c (set_uint32): New function, from sha1.c
53534         (md5_read_ctx): Use it.
53535         (md5_finish_ctx): Doc fix.
53536         * lib/md5.h: Doc fix.
53537
53538 2008-01-30  Peter Palfrader  <weasel@debian.org>
53539
53540         sha1: remove the result buffer alignment constraint
53541         * lib/sha1.c (set_uint32): New function.
53542         (sha1_read_ctx): Rewrite to remove the result buffer alignment
53543         constraint.
53544         (sha1_finish_ctx): Remove comment warning about alignment constraint.
53545         * lib/sha1.h: Likewise.
53546
53547 2008-01-30  Andreas Schwab  <schwab@suse.de>
53548             Bruno Haible  <bruno@clisp.org>
53549
53550         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
53551         correct definition of LDBL_MIN_EXP.
53552
53553 2008-01-30  Karl Berry  <karl@gnu.org>
53554
53555         * config/srclist-update: try to preserve x bit on updates.
53556         * config/srclistvars.sh: update for karl.
53557
53558 2008-01-29  Jim Meyering  <meyering@redhat.com>
53559
53560         vasnprintf.c: Avoid warning about unused label
53561         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
53562         "overflow" label definition and associated code with the
53563         same cpp condition that guards the sole use of that label.
53564
53565 2008-01-26  Bruno Haible  <bruno@clisp.org>
53566
53567         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
53568         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
53569         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
53570         * lib/isnanl-nolibm.h (isnanl): Likewise.
53571         Reported by Paul Eggert <eggert@cs.ucla.edu>.
53572
53573 2008-01-26  Bruno Haible  <bruno@clisp.org>
53574
53575         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
53576         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
53577
53578 2008-01-26  Bruno Haible  <bruno@clisp.org>
53579
53580         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
53581         GCC >= 4.0 built-in.
53582         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
53583
53584 2008-01-26  Bruno Haible  <bruno@clisp.org>
53585
53586         Rename isnan, applicable to 'double' only, to isnand.
53587         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
53588         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
53589         (configure.ac): Update.
53590         (Include): Replace "isnan.h" with "isnand.h".
53591         * m4/isnand.m4: Renamed from m4/isnan.m4.
53592         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
53593         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
53594         instead of isnan.c.
53595         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
53596         instead of HAVE_ISNAN_IN_LIBC.
53597         (isnand): Renamed from isnan.
53598         * lib/isnand.c: New file.
53599         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
53600         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
53601         (Makefile.am): Update.
53602         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
53603         Include isnand.h instead of isnan.h.
53604         (main): Test isnand instead of isnan.
53605         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
53606         isnan-nolibm.
53607         * modules/frexp (Depends-on): Likewise.
53608         * modules/frexp-tests (Depends-on): Likewise.
53609         * modules/frexp-nolibm (Depends-on): Likewise.
53610         * modules/frexp-nolibm-tests (Depends-on): Likewise.
53611         * modules/isfinite (Depends-on): Likewise.
53612         * modules/round-tests (Depends-on): Likewise.
53613         * modules/signbit (Depends-on): Likewise.
53614         * modules/signbit-tests (Depends-on): Likewise.
53615         * modules/snprintf-posix (Depends-on): Likewise.
53616         * modules/sprintf-posix (Depends-on): Likewise.
53617         * modules/trunc-tests (Depends-on): Likewise.
53618         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53619         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53620         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53621         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53622         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53623         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53624         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53625         * modules/vasnprintf-posix (Depends-on): Likewise.
53626         * modules/vasprintf-posix (Depends-on): Likewise.
53627         * modules/vfprintf-posix (Depends-on): Likewise.
53628         * modules/vsnprintf-posix (Depends-on): Likewise.
53629         * modules/vsprintf-posix (Depends-on): Likewise.
53630         * lib/frexp.c: Include isnand.h instead of isnan.h.
53631         (ISNAN): Set to isnand instead of isnan.
53632         * lib/isfinite.c: Include isnand.h instead of isnan.h.
53633         (gl_isfinited): Use isnand instead of isnan.
53634         * lib/signbitd.c: Include isnand.h instead of isnan.h.
53635         (gl_signbitd): Use isnand instead of isnan.
53636         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
53637         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
53638         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
53639         (main): Use isnand instead of isnan.
53640         * tests/test-round1.c: Include isnand.h.
53641         (main): Use isnand instead of isnan.
53642         * tests/test-round2.c: Include isnand.h instead of isnan.h.
53643         (ISNAN): Set to isnand instead of isnan.
53644         * tests/test-trunc1.c: Include isnand.h.
53645         (main): Use isnand instead of isnan.
53646         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
53647         (equal): Use isnand instead of isnan.
53648         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
53649         isnand-nolibm.
53650         * NEWS: Mention the change.
53651
53652 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53653             Bruno Haible  <bruno@clisp.org>
53654
53655         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
53656         the GCC builtins for signbits are present and set
53657         REPLACE_SIGNBIT_USING_GCC if so.
53658         * lib/math.in.h (signbit): Define using GCC builtins if
53659         REPLACE_SIGNBIT_USING_GCC is set.
53660         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
53661         REPLACE_SIGNBIT_USING_GCC.
53662         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
53663
53664 2008-01-25  Jim Meyering  <meyering@redhat.com>
53665
53666         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
53667         * lib/poll.c: Include <config.h>, not "config.h".
53668         * tests/test-getaddrinfo.c: Likewise.
53669
53670 2008-01-25  Simon Josefsson  <simon@josefsson.org>
53671
53672         * modules/sockets-tests: New file.
53673
53674 2008-01-24  Simon Josefsson  <simon@josefsson.org>
53675
53676         * modules/sockets: New module, can be used to call WSA_Startup and
53677         WSA_Cleanup when needed.
53678
53679         * lib/sockets.h, lib/sockets.c: New files.
53680
53681         * m4/sockets.m4: New file.
53682
53683         * tests/test-sockets.c: New file.
53684
53685 2008-01-19  Bruno Haible  <bruno@clisp.org>
53686
53687         * doc/posix-headers: Renamed from doc/headers.
53688         * doc/posix-functions: Renamed from doc/functions.
53689         * doc/gnulib.texi: Update.
53690
53691 2008-01-19  Bruno Haible  <bruno@clisp.org>
53692
53693         * doc/glibc-functions/strcasestr.texi: Include contents of
53694         doc/functions/strcasestr.texi, fixing the list of platforms.
53695         * doc/functions/strcasestr.texi: Remove file.
53696
53697 2008-01-19  Bruno Haible  <bruno@clisp.org>
53698
53699         * doc/glibc-functions/memmem.texi: Include contents of
53700         doc/functions/memmem.texi.
53701         * doc/functions/memmem.texi: Remove file.
53702
53703 2008-01-18  Bruno Haible  <bruno@clisp.org>
53704
53705         * doc/glibc-functions/*.texi: New files.
53706         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
53707         to use the new files.
53708
53709 2008-01-17  Bruno Haible  <bruno@clisp.org>
53710
53711         * tests/test-gethostname.c (main): Fix printf statement.
53712
53713 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53714
53715         * modules/gethostname-tests: New file.
53716
53717         * tests/test-gethostname.c: New file.
53718
53719 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53720
53721         * lib/gethostname.c: Include string.h unconditionally, strncpy is
53722         used by the UNAME case.  Reported by Bruno Haible
53723         <bruno@clisp.org>.
53724
53725 2008-01-17  Eric Blake  <ebb9@byu.net>
53726
53727         Convert c-strcasestr to be more efficient.
53728         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
53729         (Depends-on): Add c-strcase, remove malloca, strnlen.
53730         * tests/test-c-strcasestr.c (main): Enhance test.
53731         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
53732
53733 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53734
53735         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
53736         Use it in creating po/Makevars.
53737
53738 2008-01-15  Simon Josefsson  <simon@josefsson.org>
53739
53740         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
53741         Applications that requires it should initialize libgcrypt
53742         manually.
53743
53744 2008-01-16  Simon Josefsson  <simon@josefsson.org>
53745
53746         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
53747
53748 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
53749
53750         Fix problem with getdate on mingw32 reported by Simon Josefsson
53751         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
53752         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
53753         tzname", when deciding whether to declare tzname.
53754         * lib/strftime.c (tzname): Likewise.
53755
53756 2008-01-15  Bruno Haible  <bruno@clisp.org>
53757
53758         Work around a MacOS X 10.5 bug in frexpl().
53759         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
53760         * doc/functions/frexpl.texi: Document the bug.
53761         Reported by Elias Pipping <pipping@gentoo.org>.
53762
53763 2008-01-14  Eric Blake  <ebb9@byu.net>
53764
53765         Touch up previous patch.
53766         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
53767         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
53768
53769         Convert strcasestr module to use Two-Way algorithm.
53770         * modules/strcasestr-simple: New module, based on the old
53771         strcasestr, but with Two-Way rather than KMP.
53772         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
53773         * lib/string.in.h (rpl_strcasestr): Declare.
53774         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
53775         performance.
53776         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
53777         * modules/string (Makefile.am): Support strcasestr.
53778         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
53779         * modules/strcasestr-tests (Depends-on): Check for alarm.
53780         * tests/test-strcasestr.c: Augment test.
53781         * lib/str-two-way.h: Clean up stray macro.
53782         * NEWS: Document new module.
53783         * MODULES.html.sh (string handling): Likewise.
53784         * doc/functions/strcasestr.texi: New file.
53785         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
53786         here, since it is not a POSIX function.
53787
53788 2008-01-14  Colin Watson  <cjwatson@debian.org>
53789             Bruno Haible  <bruno@clisp.org>
53790
53791         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
53792         works fine; if not, set REPLACE_STRSIGNAL.
53793         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
53794         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53795         REPLACE_STRSIGNAL.
53796         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
53797         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
53798         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
53799
53800 2008-01-14  Bruno Haible  <bruno@clisp.org>
53801
53802         * modules/strsignal (Include): Change to <string.h>.
53803
53804 2008-01-14  Colin Watson  <cjwatson@debian.org>
53805
53806         * modules/argp (Notice): Add a notice recommending to change
53807         XGETTEXT_OPTIONS.
53808         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
53809
53810 2008-01-13  Colin Watson  <cjwatson@debian.org>
53811
53812         * modules/strsignal-tests: New file.
53813         * tests/test-strsignal.c: New file.
53814
53815         * lib/strsignal.c: New file, from glibc with modifications.
53816         * lib/siglist.h: New file, from glibc with modifications.
53817         * lib/string.in.h (strsignal): New declaration.
53818         * m4/strsignal.m4: New file.
53819         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53820         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
53821         * modules/strsignal: New file.
53822         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
53823         HAVE_DECL_STRSIGNAL.
53824
53825 2008-01-13  Bruno Haible  <bruno@clisp.org>
53826
53827         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
53828         locale encoding is not ASCII. Needed for OpenBSD 4.0.
53829         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53830         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53831
53832 2008-01-13  Bruno Haible  <bruno@clisp.org>
53833
53834         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
53835         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
53836         * lib/argp.h (__attribute__): Likewise.
53837         * lib/c-stack.c (__attribute__): Likewise.
53838         * lib/error.h (__attribute__): Likewise.
53839         * lib/fts.c (__attribute__): Likewise.
53840         * lib/openat.h (__attribute__): Likewise.
53841         * lib/stdio.in.h (__attribute__): Likewise.
53842         * lib/string.in.h (__attribute__): Likewise.
53843         * lib/utimens.c (__attribute__): Likewise.
53844         * lib/vasnprintf.h (__attribute__): Likewise.
53845         * lib/xalloc.h (__attribute__): Likewise.
53846         * lib/xprintf.h (__attribute__): Likewise.
53847         * lib/xstrtol.h (__attribute__): Likewise.
53848         * lib/xvasprintf.h (__attribute__): Likewise.
53849
53850 2008-01-12  Bruno Haible  <bruno@clisp.org>
53851
53852         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
53853         * doc/glibc-headers/a.out.texi: New file.
53854         * doc/glibc-headers/aliases.texi: New file.
53855         * doc/glibc-headers/alloca.texi: New file.
53856         * doc/glibc-headers/ar.texi: New file.
53857         * doc/glibc-headers/argp.texi: New file.
53858         * doc/glibc-headers/argz.texi: New file.
53859         * doc/glibc-headers/byteswap.texi: New file.
53860         * doc/glibc-headers/crypt.texi: New file.
53861         * doc/glibc-headers/endian.texi: New file.
53862         * doc/glibc-headers/envz.texi: New file.
53863         * doc/glibc-headers/err.texi: New file.
53864         * doc/glibc-headers/error.texi: New file.
53865         * doc/glibc-headers/execinfo.texi: New file.
53866         * doc/glibc-headers/fpu_control.texi: New file.
53867         * doc/glibc-headers/fstab.texi: New file.
53868         * doc/glibc-headers/fts.texi: New file.
53869         * doc/glibc-headers/getopt.texi: New file.
53870         * doc/glibc-headers/ieee754.texi: New file.
53871         * doc/glibc-headers/ifaddrs.texi: New file.
53872         * doc/glibc-headers/libintl.texi: New file.
53873         * doc/glibc-headers/mcheck.texi: New file.
53874         * doc/glibc-headers/mntent.texi: New file.
53875         * doc/glibc-headers/obstack.texi: New file.
53876         * doc/glibc-headers/paths.texi: New file.
53877         * doc/glibc-headers/printf.texi: New file.
53878         * doc/glibc-headers/pty.texi: New file.
53879         * doc/glibc-headers/resolv.texi: New file.
53880         * doc/glibc-headers/shadow.texi: New file.
53881         * doc/glibc-headers/sysexits.texi: New file.
53882         * doc/glibc-headers/ttyent.texi: New file.
53883
53884 2008-01-12  Jim Meyering  <meyering@redhat.com>
53885
53886         announce-gen: emit Gnulib's git-based version string.
53887         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
53888         New option --gnulib-version=V, where V is expected to be
53889         the output of running git describe in the gnulib directory.
53890         (get_tool_versions): Request feedback on xdelta.  I suspect it's
53891         not useful, and plan to stop publishing an xdelta file with each
53892         coreutils release.
53893
53894         * build-aux/announce-gen: Also check for lzma-compressed files.
53895
53896 2008-01-11  Bruno Haible  <bruno@clisp.org>
53897
53898         * tests/test-memmem.c (main): Increase maximum allowed time.
53899         * tests/test-strstr.c (main): Likewise.
53900
53901 2008-01-11  Bruno Haible  <bruno@clisp.org>
53902
53903         * doc/functions/memmem.texi: Add more precisions about platforms.
53904         * doc/functions/strstr.texi: Likewise.
53905
53906 2008-01-10  Eric Blake  <ebb9@byu.net>
53907
53908         * m4/strstr.m4: Delete cruft from copy-n-paste.
53909         Reported by Bruno Haible.
53910
53911 2008-01-10  Bruno Haible  <bruno@clisp.org>
53912
53913         Make c-strstr rely on strstr.
53914         * lib/c-strstr.c: Don't include str-kmp.h.
53915         (c_strstr): Define in terms of strstr.
53916         * modules/c-strstr (Files): Remove lib/str-kmp.h.
53917         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
53918
53919 2008-01-10  Bruno Haible  <bruno@clisp.org>
53920
53921         * doc/gnulib.texi (String Functions in C Locale): New section.
53922         * doc/c-ctype.texi: New file.
53923         * doc/c-strcase.texi: New file.
53924         * doc/c-strcaseeq.texi: New file.
53925         * doc/c-strcasestr.texi: New file.
53926         * doc/c-strstr.texi: New file.
53927         * doc/c-strtod.texi: New file.
53928         * doc/c-strtold.texi: New file.
53929
53930 2008-01-10  Eric Blake  <ebb9@byu.net>
53931
53932         * lib/relocatable.h: Fix a comment.
53933
53934 2008-01-10  Eric Blake  <ebb9@byu.net>
53935
53936         Share two-way algorithm.
53937         * lib/str-two-way.h: New file, merged from...
53938         * lib/memmem.c: ...here...
53939         * lib/strstr.c: ...and here.
53940         * modules/memmem (Files): Use it.
53941         * modules/strstr (Files): Likewise.
53942
53943         Avoid quadratic strstr implementations.
53944         * lib/strstr.c: New file.
53945         * m4/strstr.m4: Likewise.
53946         * modules/strstr: Likewise.
53947         * modules/strstr-tests: Likewise.
53948         * tests/test-strstr.c: Likewise.
53949         * lib/string.in.h (rpl_strstr): Declare.
53950         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
53951         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
53952         * modules/string (Makefile.am): Likewise.
53953         * MODULES.html.sh (string handling): Mention new module.
53954         * doc/functions/strstr.texi (strstr): Document the bug.
53955
53956 2008-01-10  Bruno Haible  <bruno@clisp.org>
53957
53958         * lib/relocatable.h (relocate): State whether result is freshly
53959         allocated or not.
53960         * lib/relocatable.c (relocate): Return a freshly allocated string
53961         instead of a pointer to a privately held string.
53962         Reported by Sylvain Beucler <beuc@gnu.org>.
53963
53964 2008-01-10  Colin Watson  <cjwatson@debian.org>
53965
53966         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
53967         s/S_ISNLK/S_ISLNK/.
53968
53969 2008-01-09  Bruno Haible  <bruno@clisp.org>
53970
53971         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
53972         and other files.
53973         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
53974         if it's only a guess.
53975         * modules/memmem: Simplify by depending on memmem-simple.
53976
53977 2008-01-09  Bruno Haible  <bruno@clisp.org>
53978
53979         Work around OpenBSD 4.0 tdelete() bug.
53980         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
53981         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
53982         macros and don't redefine the enum values.
53983         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
53984         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
53985         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
53986
53987 2008-01-09  Bruno Haible  <bruno@clisp.org>
53988
53989         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
53990         (main): Don't perform the tests if setlocale did not install a UTF-8
53991         locale. Needed on OpenBSD 4.0.
53992         * modules/wcwidth-tests (Depends-on): Add localcharset.
53993
53994 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53995
53996         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
53997         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
53998         * NEWS: announce this.
53999         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
54000
54001 2008-01-09  Simon Josefsson  <simon@josefsson.org>
54002         and Eric Blake  <ebb9@byu.net>
54003
54004         Add memmem-simple module.
54005         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
54006         (gl_FUNC_MEMMEM): Separate performance from presence checks.
54007         * modules/memmem-simple: New file.
54008         * modules/memmem (Description): Tweak.
54009         * MODULES.html.sh (string handling): Mention new module.
54010         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
54011         addressed by memmem-simple.
54012         * NEWS: Document the difference.
54013
54014 2008-01-09  Eric Blake  <ebb9@byu.net>
54015
54016         Give gcc some memmem optimization hints.
54017         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
54018         (strcasestr): Declare as pure.
54019         * modules/memmem (Maintainer): Claim my implementation.
54020
54021 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54022
54023         Support AIX 6.1 and higher.
54024         * build-aux/config.libpath: Likewise.
54025         * build-aux/config.rpath: Likewise.
54026
54027 2008-01-08  Jim Meyering  <meyering@redhat.com>
54028             Bruno Haible  <bruno@clisp.org>
54029
54030         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
54031         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
54032         Reported by Peter Fales in
54033         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
54034
54035 2008-01-08  Bruno Haible  <bruno@clisp.org>
54036
54037         * modules/unictype/category-of (Depends-on): Add
54038         unictype/category-none.
54039         * modules/unictype/category-and-tests (Depends-on): Add
54040         unictype/category-{L,N,Lu,Nd}.
54041         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
54042         * modules/unictype/category-or-tests (Depends-on): Add
54043         unictype/category-{L,N}.
54044         * modules/unictype/category-name-tests (Depends-on): Add
54045         unictype/category-{Z,Nl}.
54046         Reported by Simon Josefsson.
54047
54048 2008-01-08  Bruno Haible  <bruno@clisp.org>
54049
54050         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
54051         convention better.
54052         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
54053         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
54054         Reported by Peter Miller <millerp@canb.auug.org.au>.
54055
54056 2008-01-08  Eric Blake  <ebb9@byu.net>
54057
54058         Rewrite memmem to guarantee linear complexity without malloc.
54059         * lib/memmem.c (memmem): Use Two-Way rather than
54060         Knuth-Morris-Pratt, to allow O(1) space usage.
54061         (critical_factorization, two_way_short_needle)
54062         (two_way_long_needle): New functions.
54063         (knuth_morris_pratt): Delete.
54064         * modules/memmem (Depends-on): No longer need malloca or stdbool.
54065         Add stdint.
54066         * tests/test-memmem.c (main): Add tests for periodic needle and
54067         sublinear performance.
54068         * doc/functions/memmem.texi (memmem): Document other deficiencies
54069         in cygwin and older glibc.
54070
54071 2008-01-08  Bruno Haible  <bruno@clisp.org>
54072
54073         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
54074         augmentation.
54075
54076 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
54077
54078         Add a configure time option: --disable-acl.
54079         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
54080         AC_ARG_ENABLE(acl).
54081
54082 2008-01-06  Simon Josefsson  <simon@josefsson.org>
54083
54084         * tests/test-localename.c: Don't include obsolete "setenv.h".
54085
54086         * modules/localename-tests (Depends-on): Need unsetenv.
54087
54088 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54089
54090         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
54091
54092 2008-01-06  Colin Watson  <cjwatson@debian.org>
54093
54094         * users.txt: Add man-db.
54095
54096 2008-01-07  Bruno Haible  <bruno@clisp.org>
54097
54098         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
54099         previous section name.
54100
54101 2008-01-07  Bruno Haible  <bruno@clisp.org>
54102
54103         * lib/progname.c (set_program_name): Don't strip off a leading
54104         "lt-" prefix outside a .libs directory.
54105         Suggested by Paul Eggert.
54106
54107 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
54108             Bruno Haible  <bruno@clisp.org>
54109
54110         Improve memory cleanup in 'relocatable' module.
54111         * lib/relocatable.h (compute_curr_prefix): Change return type to
54112         'char *'.
54113         * lib/relocatable.c (compute_curr_prefix): Change return type to
54114         'char *'. Free curr_installdir after use.
54115         (relocate): Free curr_prefix_better after use.
54116         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
54117
54118 2008-01-01  Bruno Haible  <bruno@clisp.org>
54119
54120         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
54121         failure on older glibc systems.
54122         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54123
54124 2008-01-05  Eric Blake  <ebb9@byu.net>
54125
54126         Avoid quadratic system memmem.
54127         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
54128         Reported by Ralf Wildenhues.
54129
54130         Fix memmem test for mingw.
54131         * modules/memmem-tests (configure.ac): Check for alarm.
54132         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
54133         it.
54134         * doc/functions/memmem.texi: New file.
54135         * doc/gnulib.texi (Function Substitutes): Add memmem.
54136         Reported by Bruno Haible.
54137
54138 2008-01-04  Bruno Haible  <bruno@clisp.org>
54139
54140         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
54141         Require gl_HEADER_STRINGS_H_DEFAULTS, not
54142         gl_HEADER_STRING_H_DEFAULTS.
54143
54144 2008-01-04  Eric Blake  <ebb9@byu.net>
54145
54146         Shorten duration of memmem test.
54147         * tests/test-memmem.c (main): Use alarm to declare failure if test
54148         is taking too long.
54149         Reported by Ralf Wildenhues.
54150
54151 2007-12-21  Simon Josefsson  <simon@josefsson.org>
54152
54153         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
54154         string, needed by strerror.
54155
54156 2008-01-03  Colin Watson  <cjwatson@debian.org>
54157             Bruno Haible  <bruno@clisp.org>
54158
54159         * doc/gnulib-tool.texi (Localization): New section.
54160
54161 2008-01-02  Bruno Haible  <bruno@clisp.org>
54162
54163         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
54164         variables to 'unsigned char *' type.
54165         Reported by Paul Eggert.
54166
54167 2008-01-02  Jim Meyering  <jim@meyering.net>
54168
54169         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
54170
54171 2007-12-31  Jim Meyering  <jim@meyering.net>
54172
54173         Avoid use of private FTS type name.
54174         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
54175
54176 2007-12-30  Karl Berry  <karl@gnu.org>
54177
54178         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
54179         work around defect in Texinfo and/or the standalone Info browser.
54180
54181 2007-12-30  Bruno Haible  <bruno@clisp.org>
54182
54183         Unify 5 copies of the KMP code.
54184         * lib/str-kmp.h: New file.
54185         * lib/c-strcasestr.c: Include str-kmp.h.
54186         (knuth_morris_pratt): Remove function.
54187         (c_strcasestr): Update.
54188         * lib/c-strstr.c: Include str-kmp.h.
54189         (knuth_morris_pratt): Remove function.
54190         (c_strcasestr): Update.
54191         * lib/mbscasestr.c: Include str-kmp.h.
54192         (knuth_morris_pratt_unibyte): Remove function.
54193         * lib/mbsstr.c: Include str-kmp.h.
54194         (knuth_morris_pratt_unibyte): Remove function.
54195         * lib/strcasestr.c: Include str-kmp.h.
54196         (knuth_morris_pratt): Remove function.
54197         (strcasestr): Update.
54198         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
54199         * modules/c-strstr (Files): Likewise.
54200         * modules/mbscasestr (Files): Likewise.
54201         * modules/mbsstr (Files): Likewise.
54202         * modules/strcasestr (Files): Likewise.
54203         Suggested by Paul Eggert.
54204
54205 2007-12-30  Bruno Haible  <bruno@clisp.org>
54206
54207         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
54208         defined.
54209
54210 2007-12-30  Bruno Haible  <bruno@clisp.org>
54211
54212         * lib/xmalloca.h: Include xalloc.h.
54213         (xnmalloca): New macro.
54214
54215 2007-12-30  Bruno Haible  <bruno@clisp.org>
54216
54217         * lib/malloca.h (nmalloca): New macro.
54218         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
54219         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
54220         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
54221         knuth_morris_pratt_multibyte): Likewise.
54222         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
54223         knuth_morris_pratt_multibyte): Likewise.
54224         * lib/memmem.c (knuth_morris_pratt): Likewise.
54225         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
54226
54227 2007-12-25  Bruno Haible  <bruno@clisp.org>
54228
54229         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
54230         * lib/glob.c: Don't include openat.h.
54231         (link_exists2_p): Add back the code that deals with the
54232         !GLOB_ALTDIRFUNC case.
54233         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
54234         let it do the filename concatenation.
54235         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
54236         * modules/glob (Depends-on): Remove openat.
54237
54238 2007-12-31  Bruno Haible  <bruno@clisp.org>
54239
54240         * modules/dirfd (License): Change to LGPLv2+.
54241         Approved by Jim Meyering.
54242
54243 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
54244
54245         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
54246         when multiplying M by sizeof (size_t).
54247
54248 2007-12-10  Martin Lambers  <marlam@marlam.de>
54249
54250         Override getpagesize on mingw.
54251         * lib/getpagesize.c: New file.
54252         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
54253         * modules/getpagesize (Files): Add lib/getpagesize.c.
54254         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
54255         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54256         REPLACE_GETPAGESIZE.
54257         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
54258
54259 2007-12-25  Bruno Haible  <bruno@clisp.org>
54260
54261         * modules/localcharset (Notice): New field.
54262         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
54263         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
54264
54265 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
54266             Bruno Haible  <bruno@clisp.org>
54267
54268         Avoid using the syntax symbol() in formatted documentation.
54269         * MODULES.html.sh (func_module): When replacing symbol() with a
54270         hyperlink, remove the parentheses. Show an error if some remain.
54271         Recognize and render the '...' syntax.
54272         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
54273         Rework. Add paragraph about GCC's inlining.
54274         * doc/alloca.texi: Likewise.
54275         * doc/error.texi: Remove parentheses from symbol reference.
54276         * doc/gnulib-intro.texi: Likewise.
54277         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
54278         * modules/fnmatch (Description): Reword to say "the ... function".
54279         * modules/full-read (Description): Likewise.
54280         * modules/full-write (Description): Likewise.
54281         * modules/safe-read (Description): Likewise.
54282         * modules/safe-write (Description): Likewise.
54283         * modules/strchrnul (Description): Likewise.
54284         * modules/trim (Description): Likewise.
54285         * modules/error (Description): Remove parentheses from symbol
54286         references.
54287         * modules/verror (Description): Likewise.
54288         Reported by Karl Berry.
54289
54290 2007-12-25  Bruno Haible  <bruno@clisp.org>
54291
54292         Fixup after 2007-10-16 commit.
54293         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
54294
54295 2007-12-24  Bruno Haible  <bruno@clisp.org>
54296
54297         Make --enable-relocatable work with DESTDIR.
54298         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
54299         to compute installdir from destprog.
54300         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
54301         also set the RELOC_DESTDIR variable.
54302         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54303
54304 2007-12-24  Bruno Haible  <bruno@clisp.org>
54305
54306         Fix link error due to xalloc_die().
54307         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
54308         of xreadlink.
54309         * lib/relocwrapper.c: Update comments.
54310         * build-aux/install-reloc: Remove xreadlink.c from file list.
54311         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
54312         xreadlink.c.
54313         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54314
54315 2007-12-24  Bruno Haible  <bruno@clisp.org>
54316
54317         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
54318         * lib/setenv.h: Remove file.
54319         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
54320         lib/setenv.h.
54321         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
54322         (Depends-on): Add stdlib.
54323         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
54324         gl_FUNC_UNSETENV.
54325         (Include): Replace setenv.h with <stdlib.h>.
54326         * modules/unsetenv: New file.
54327         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
54328         * lib/unsetenv.c: Include <stdlib.h> first.
54329         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
54330         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
54331         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
54332         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
54333         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
54334         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54335         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
54336         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54337         * doc/functions/unsetenv.texi: Update.
54338         * modules/xsetenv (Depends-on): Add unsetenv.
54339         * modules/getdate (Depends-on): Likewise.
54340         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
54341         * lib/xsetenv.c: Don't include setenv.h.
54342         * lib/getdate.y: Likewise.
54343         * lib/relocwrapper.c: Likewise.
54344         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
54345         (Depends-on): Add stdlib.
54346         * NEWS: Mention the changes.
54347         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54348
54349 2007-12-23  Bruno Haible  <bruno@clisp.org>
54350
54351         * lib/memmem.c (memmem): Use lowercase variable names. Tab
54352         indentation.
54353
54354 2007-12-23  Bruno Haible  <bruno@clisp.org>
54355
54356         * lib/c-strcasestr.c: Add more comments.
54357         * lib/c-strstr.c: Likewise.
54358         * lib/mbscasestr.c: Likewise.
54359         * lib/mbsstr.c: Likewise.
54360         * lib/strcasestr.c: Likewise.
54361         * lib/memmem.c: Likewise.
54362
54363 2007-12-23  Bruno Haible  <bruno@clisp.org>
54364
54365         * tests/test-memmem.c: Include <string.h> first.
54366
54367 2007-12-22  Bruno Haible  <bruno@clisp.org>
54368
54369         * gnulib-tool (func_create_testdir): Change $auxdir while generating
54370         the contents of $testsbase.
54371         Reported by Ralf Wildenhues.
54372
54373 2007-12-22  Bruno Haible  <bruno@clisp.org>
54374
54375         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
54376         two variables local_ldadd_before, local_ldadd_last.
54377
54378 2007-12-20  Eric Blake  <ebb9@byu.net>
54379
54380         Work around circular library issue when cross-compiling.
54381         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
54382         that progname.o does not need to pull in rpl_memcmp.
54383
54384 2007-12-19  Eric Blake  <ebb9@byu.net>
54385
54386         Fix memmem to avoid O(n^2) worst-case complexity.
54387         * lib/memmem.c (knuth_morris_pratt): New function.
54388         (memmem): Use it if first few naive iterations fail.
54389         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
54390         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
54391         * modules/memchr (License): Likewise.
54392         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
54393         malloca.
54394         * tests/test-memmem.c: Rewrite, borrowing ideas from
54395         test-mbsstr1.c; the old version wouldn't even compile!
54396         * modules/memmem-tests: New file.
54397         * lib/string.in.h (rpl_memmem): Add declaration.
54398         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
54399         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
54400         REPLACE_MEMMEM.
54401
54402 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54403
54404         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
54405         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
54406         before any system include files, and undef after them all.  This
54407         should fix a problem on VMS reported by John E. Malmberg in
54408         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
54409
54410 2007-12-17  Eric Blake  <ebb9@byu.net>
54411
54412         Revert addition of verify, for BSD/OS.
54413         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
54414         can't handle large files, for the sake of obsolete platforms.
54415         * modules/fseeko (Depends-on): Remove verify.
54416         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
54417         * doc/functions/ftello.texi (ftello): Likewise.
54418         * doc/functions/fgetpos.texi (fgetpos): Likewise.
54419         Reported by Larry Jones.
54420
54421 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
54422
54423         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
54424         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
54425
54426 2007-12-17  Jim Meyering  <meyering@redhat.com>
54427
54428         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
54429         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
54430         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
54431         * modules/getcwd (Depends-on): Add openat.
54432         Reported by Petr Salinger.
54433
54434 2007-12-17  Bruno Haible  <bruno@clisp.org>
54435
54436         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
54437         avoid a segmentation fault of the configure test on x86_64 systems.
54438
54439 2007-12-15  Jim Meyering  <meyering@redhat.com>
54440
54441         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
54442
54443 2007-12-13  Eric Blake  <ebb9@byu.net>
54444
54445         Another fseek test.
54446         * tests/test-fseek.c (main): Also test ungetc handling.
54447         * tests/test-fseeko.c (main): Likewise.
54448         * modules/fseeko (Depends-on): Add verify.
54449         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
54450         large.
54451         Reported by Larry Jones.
54452
54453         Fix fseeko on mingw.
54454         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
54455         seek.
54456
54457         Beef up fseek tests.
54458         * tests/test-fseek.c (main): Also test eof handling.
54459         * tests/test-fseeko.c (main): Likewise.
54460         Reported by Larry Jones.
54461
54462 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
54463
54464         Fix fseeko on BSD-based platforms.
54465         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
54466         successful seek.
54467
54468 2007-12-12  Eric Blake  <ebb9@byu.net>
54469
54470         Allow circular dependency of separate libtests.a
54471         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
54472         when use_libtests.
54473
54474 2007-12-11  Eric Blake  <ebb9@byu.net>
54475
54476         Fix bug with -0.0L in previous patch.
54477         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
54478         * tests/test-isnan.c (main): Also test on zeroes.
54479         * tests/test-isnanf.c (main): Likewise.
54480         * tests/test-isnanl.h (main): Likewise.
54481
54482         Detect pseudo-denormals on x86 even when cross-compiling.
54483         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
54484         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
54485         invalid bit patterns that happen to satisfy ==.
54486
54487         Avoid link failures with separate libtests.a.
54488         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
54489         last, to satisfy circular dependencies.
54490
54491 2007-12-11  Eric Blake  <ebb9@byu.net>
54492         and Bruno Haible  <bruno@clisp.org>
54493
54494         Fix OpenBSD 4.0 <float.h> handling of long double.
54495         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
54496         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
54497         * doc/headers/float.texi (float.h): Document OpenBSD bug.
54498
54499 2007-12-11  Jim Meyering  <meyering@redhat.com>
54500
54501         * users.txt: Add libvirt.
54502
54503         Support versions of autoconf prior to 2.59c.
54504         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
54505         if it is not already defined.
54506
54507 2007-12-09  Bruno Haible  <bruno@clisp.org>
54508
54509         Let 'gnulib-tool --import' collect sources needed for the tests in
54510         tests/ rather than in lib/.
54511         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
54512         argument. If true, add rules to generate libtests.a, and put libtests.a
54513         into $(LDADD). Consider source files in subdirectories and set
54514         uses_subdirs.
54515         (func_emit_initmacro_start, func_emit_initmacro_end,
54516         func_emit_initmacro_done): Pass all arguments explicitly.
54517         (func_import): Determine two module lists main_modules,
54518         testsrelated_modules. Determine use_libtests. Determine two variables
54519         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
54520         instead of just sed_transform_lib_file. Determine two variables
54521         main_files and testsrelated_files. Compute 'files' as the union of
54522         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
54523         func_add_or_update. In the generated gnulib-comp.m4, collect the
54524         object files for tests/ in different variables than those for lib/.
54525         Substitute LIBTESTS_LIBDEPS.
54526         (func_create_testdir): Combine the uses_subdirs results from
54527         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
54528
54529 2007-12-09  Bruno Haible  <bruno@clisp.org>
54530
54531         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
54532         the build-aux directory.
54533
54534 2007-12-09  Bruno Haible  <bruno@clisp.org>
54535
54536         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
54537         introduced on 2006-09-09.
54538
54539 2007-12-07  Jim Meyering  <meyering@redhat.com>
54540
54541         Let these macros work also with autoconf-2.59.
54542         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
54543         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
54544         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54545
54546 2007-12-06  Jim Meyering  <meyering@redhat.com>
54547
54548         Avoid a configure-time syntax error in gl_FUNC_ACL.
54549         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
54550         function in each branch, before testing the cache variable.
54551
54552 2007-12-04  Eric Blake  <ebb9@byu.net>
54553
54554         Make scripts executable.
54555         * build-aux/config.guess: Add execute permissions.
54556         * build-aux/config.sub: Likewise.
54557         * build-aux/gendocs.sh: Likewise.
54558
54559         Fix frexp on mingw.
54560         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
54561         cross-compiling.
54562         * doc/functions/frexp.texi (frexp): Document the bug.
54563
54564         Make cygwin fseeko check more reliable.
54565         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
54566         version numbers, rather than unrelated feature check.
54567         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
54568         * doc/functions/ftello.texi (ftello): Likewise.
54569         Reported by Bruno Haible.
54570
54571         * m4/strerror.m4: Bump version number.
54572
54573 2007-12-03  Bruno Haible  <bruno@clisp.org>
54574
54575         * doc/functions/mprotect.texi: Mention the mingw problem.
54576
54577 2007-12-03  Eric Blake  <ebb9@byu.net>
54578
54579         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
54580         REPLACE_STRERROR is initialized before this macro.
54581
54582 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54583
54584         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
54585         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
54586         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
54587         put -lsec in even for programs other than 'ls'.  This fixes a problem
54588         for gettext reported by Bruno Haible in
54589         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
54590         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
54591         Add support for Solaris 10.  This isn't efficient, but should get the
54592         job done for now.
54593
54594 2007-12-03  James Youngman  <jay@gnu.org>
54595
54596         * doc/regexprops-generic.texi: change "an close-group" to "a
54597         close-group" and "illegal" to "not allowed".
54598
54599 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54600
54601         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
54602         pr_byname.h. Needed for the rare case when the maintainer has done
54603         "make maintainer-clean" in the source directory and then attempts a
54604         build outside the source directory.
54605         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
54606         scripts_byname.h.
54607
54608 2007-12-02  Martin Lambers <marlam@marlam.de>
54609             Bruno Haible  <bruno@clisp.org>
54610
54611         * lib/getpagesize.h: Remove file.
54612         * lib/unistd.in.h: Include declaration of getpagesize here.
54613         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
54614         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
54615         HAVE_SYS_PARAM_H.
54616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
54617         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54618         * modules/getpagesize (Files): Remove lib/getpagesize.h.
54619         (Depends-on): Add unistd.
54620         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54621         (Include): Use <unistd.h> instead of getpagesize.h.
54622         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
54623         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54624         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
54625         gl_GETPAGESIZE invocation, already handled by module dependency.
54626         * lib/pagealign_alloc.c: Don't include getpagesize.h.
54627
54628 2007-12-02  Bruno Haible  <bruno@clisp.org>
54629
54630         * modules/strings-tests: New file.
54631         * tests/test-strings.c: New file.
54632
54633         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
54634         * lib/strings.in.h: New file.
54635         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
54636         * m4/strings_h.m4: New file.
54637         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
54638         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
54639         * modules/strings: New file.
54640         * modules/string (Makefile.am): Update.
54641         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
54642         Reported by Karl Berry.
54643
54644 2007-12-01  Eric Blake  <ebb9@byu.net>
54645
54646         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
54647         accomodate fix in cygwin 1.5.25.
54648
54649 2007-12-01  Jim Meyering  <meyering@redhat.com>
54650
54651         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
54652         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
54653         that would inhibit utf8-optimization of a regexp containing line-
54654         or buffer-anchors, e.g., `^', `$'.
54655
54656 2007-11-30  Bruno Haible  <bruno@clisp.org>
54657
54658         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
54659         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
54660         glthread_recursive_lock_init.
54661         * lib/lock.c (glthread_recursive_lock_init)
54662         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
54663         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54664
54665 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
54666
54667         New function qset_acl, like set_acl but with syscall semantics.
54668         * lib/acl.h (qset_acl): New decl.
54669         * lib/acl.c (qset_acl): New function.
54670         (set_acl): Use new function.  Use more-consistent diagnostics.
54671
54672 2007-11-28  Jim Meyering  <meyering@redhat.com>
54673
54674         * modules/physmem (License): Change from GPL to LGPLv2+.
54675
54676 2007-11-26  Bruno Haible  <bruno@clisp.org>
54677
54678         * lib/vasnprintf.c (decode_long_double): Don't abort if the
54679         'long double' type has excess precision.
54680         Reported by Jim Meyering in
54681         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
54682
54683 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54684
54685         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
54686         Sync from <http://gnu.org/licenses>.
54687         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
54688         with license text from same location.
54689         * doc/maintain.texi, doc/standards.texi:  Sync from
54690         <http://savannah.gnu.org/projects/gnustandards>.
54691
54692 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
54693         and Jim Meyering  <meyering@redhat.com>
54694
54695         Adjust getdate' grammar to accept a slightly more regular language.
54696         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
54697         Before, the former was rejected.
54698         * lib/getdate.y (digits_to_date_time): New function, factored
54699         out of ...
54700         (number): ...here.  Just call digits_to_date_time.
54701         (hybrid): New non-terminal to handle an <unsigned number,
54702         signed relative offset> sequence consistently.
54703
54704 2007-11-18  Jim Meyering  <meyering@redhat.com>
54705
54706         Pull my changes from coreutils:
54707         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
54708         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
54709         use of $gnulib_tool_option_extras, so that it's separated from the
54710         preceding argument.
54711
54712         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
54713         * build-aux/bootstrap (cp_mark_as_generated): Create any required
54714         parent destination directories before copying a file into place.
54715
54716 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54717
54718         bootstrap: work also with 4-argument variant of AC_INIT
54719         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
54720
54721 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54722
54723         Port test-getaddrinfo to Solaris.
54724         Problem reported by Bruno Haible in
54725         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
54726         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
54727         explanation of setting 'hints'.
54728         Don't reject an implementation merely because it returns EAI_SERVICE.
54729         (EAI_SERVICE): Define to 0 if not defined.
54730
54731 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54732
54733         The license of gnu-make and posix-shell is now "GPLed build tool".
54734         * modules/gnu-make (License): Likewise.
54735         * modules/posix-shell (License): Likewise.
54736
54737         New module posix-shell, for determining a POSIX shell
54738         or perhaps something that is close enough to a POSIX shell.
54739         * m4/posix-shell.m4: New file.
54740         * modules/posix-shell: New file.
54741
54742         * MODULES.html.sh: Mention new module.
54743
54744         New module gnu-make, for determining whether we're using GNU Make.
54745         * m4/gnu-make.m4: New file.
54746         * modules/gnu-make: New file.
54747         * MODULES.html.sh: Mention new module.
54748
54749 2007-11-14  Jim Meyering  <meyering@redhat.com>
54750
54751         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
54752         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
54753         use this macro to create a function _definition_.
54754         Remove useless "#undef ARGMATCH_DIE".
54755
54756 2007-11-14  Bruno Haible  <bruno@clisp.org>
54757
54758         * lib/config.charset: Update for OpenBSD 4.1.
54759         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
54760
54761 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
54762
54763         Document 64-bit #if problems in stdint.texi.
54764         * doc/headers/stdint.texi (stdint.h): Mention problems with
54765         64-bit-#if, and how to work around them.
54766
54767         Don't insist on 'long long int' support in the preprocessor.  It
54768         breaks too many things.  For example, PRIdMAX still uses a 'long
54769         long int' format with the latest Sun compiler, even though
54770         HAVE_LONG_LONG_INT isn't defined due to that compiler's
54771         preprocessor problem.  This causes the latest coreutils to dump
54772         core on Solaris 10 sparc with the Sun C compiler.
54773         Instead, fix the 2007-10-16 problem in a different way, by evaluating
54774         the troublesome expressions at configure-time, not at #if-time.
54775         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
54776         preprocessor.
54777         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
54778         compile-time C checks, done at 'configure'-time.
54779         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
54780         * modules/inttypes (Makefile): Substitute the new symbols that
54781         gl_INTTYPES_H now generates.
54782         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
54783
54784 2007-11-12  Bruno Haible  <bruno@clisp.org>
54785
54786         Tests for Unicode character classification functions.
54787
54788         * modules/unictype/bidicategory-byname-tests: New file.
54789         * modules/unictype/bidicategory-name-tests: New file.
54790         * modules/unictype/bidicategory-of-tests: New file.
54791         * modules/unictype/bidicategory-test-tests: New file.
54792         * modules/unictype/block-list-tests: New file.
54793         * modules/unictype/block-of-tests: New file.
54794         * modules/unictype/block-test-tests: New file.
54795         * modules/unictype/category-C-tests: New file.
54796         * modules/unictype/category-Cc-tests: New file.
54797         * modules/unictype/category-Cf-tests: New file.
54798         * modules/unictype/category-Cn-tests: New file.
54799         * modules/unictype/category-Co-tests: New file.
54800         * modules/unictype/category-Cs-tests: New file.
54801         * modules/unictype/category-L-tests: New file.
54802         * modules/unictype/category-Ll-tests: New file.
54803         * modules/unictype/category-Lm-tests: New file.
54804         * modules/unictype/category-Lo-tests: New file.
54805         * modules/unictype/category-Lt-tests: New file.
54806         * modules/unictype/category-Lu-tests: New file.
54807         * modules/unictype/category-M-tests: New file.
54808         * modules/unictype/category-Mc-tests: New file.
54809         * modules/unictype/category-Me-tests: New file.
54810         * modules/unictype/category-Mn-tests: New file.
54811         * modules/unictype/category-N-tests: New file.
54812         * modules/unictype/category-Nd-tests: New file.
54813         * modules/unictype/category-Nl-tests: New file.
54814         * modules/unictype/category-No-tests: New file.
54815         * modules/unictype/category-P-tests: New file.
54816         * modules/unictype/category-Pc-tests: New file.
54817         * modules/unictype/category-Pd-tests: New file.
54818         * modules/unictype/category-Pe-tests: New file.
54819         * modules/unictype/category-Pf-tests: New file.
54820         * modules/unictype/category-Pi-tests: New file.
54821         * modules/unictype/category-Po-tests: New file.
54822         * modules/unictype/category-Ps-tests: New file.
54823         * modules/unictype/category-S-tests: New file.
54824         * modules/unictype/category-Sc-tests: New file.
54825         * modules/unictype/category-Sk-tests: New file.
54826         * modules/unictype/category-Sm-tests: New file.
54827         * modules/unictype/category-So-tests: New file.
54828         * modules/unictype/category-Z-tests: New file.
54829         * modules/unictype/category-Zl-tests: New file.
54830         * modules/unictype/category-Zp-tests: New file.
54831         * modules/unictype/category-Zs-tests: New file.
54832         * modules/unictype/category-and-not-tests: New file.
54833         * modules/unictype/category-and-tests: New file.
54834         * modules/unictype/category-byname-tests: New file.
54835         * modules/unictype/category-name-tests: New file.
54836         * modules/unictype/category-none-tests: New file.
54837         * modules/unictype/category-of-tests: New file.
54838         * modules/unictype/category-or-tests: New file.
54839         * modules/unictype/category-test-withtable-tests: New file.
54840         * modules/unictype/combining-class-tests: New file.
54841         * modules/unictype/ctype-alnum-tests: New file.
54842         * modules/unictype/ctype-alpha-tests: New file.
54843         * modules/unictype/ctype-blank-tests: New file.
54844         * modules/unictype/ctype-cntrl-tests: New file.
54845         * modules/unictype/ctype-digit-tests: New file.
54846         * modules/unictype/ctype-graph-tests: New file.
54847         * modules/unictype/ctype-lower-tests: New file.
54848         * modules/unictype/ctype-print-tests: New file.
54849         * modules/unictype/ctype-punct-tests: New file.
54850         * modules/unictype/ctype-space-tests: New file.
54851         * modules/unictype/ctype-upper-tests: New file.
54852         * modules/unictype/ctype-xdigit-tests: New file.
54853         * modules/unictype/decimal-digit-tests: New file.
54854         * modules/unictype/digit-tests: New file.
54855         * modules/unictype/mirror-tests: New file.
54856         * modules/unictype/numeric-tests: New file.
54857         * modules/unictype/property-alphabetic-tests: New file.
54858         * modules/unictype/property-ascii-hex-digit-tests: New file.
54859         * modules/unictype/property-bidi-arabic-digit-tests: New file.
54860         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
54861         * modules/unictype/property-bidi-block-separator-tests: New file.
54862         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
54863         * modules/unictype/property-bidi-common-separator-tests: New file.
54864         * modules/unictype/property-bidi-control-tests: New file.
54865         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
54866         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
54867         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
54868         * modules/unictype/property-bidi-european-digit-tests: New file.
54869         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
54870         * modules/unictype/property-bidi-left-to-right-tests: New file.
54871         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
54872         * modules/unictype/property-bidi-other-neutral-tests: New file.
54873         * modules/unictype/property-bidi-pdf-tests: New file.
54874         * modules/unictype/property-bidi-segment-separator-tests: New file.
54875         * modules/unictype/property-bidi-whitespace-tests: New file.
54876         * modules/unictype/property-byname-tests: New file.
54877         * modules/unictype/property-combining-tests: New file.
54878         * modules/unictype/property-composite-tests: New file.
54879         * modules/unictype/property-currency-symbol-tests: New file.
54880         * modules/unictype/property-dash-tests: New file.
54881         * modules/unictype/property-decimal-digit-tests: New file.
54882         * modules/unictype/property-default-ignorable-code-point-tests: New file.
54883         * modules/unictype/property-deprecated-tests: New file.
54884         * modules/unictype/property-diacritic-tests: New file.
54885         * modules/unictype/property-extender-tests: New file.
54886         * modules/unictype/property-format-control-tests: New file.
54887         * modules/unictype/property-grapheme-base-tests: New file.
54888         * modules/unictype/property-grapheme-extend-tests: New file.
54889         * modules/unictype/property-grapheme-link-tests: New file.
54890         * modules/unictype/property-hex-digit-tests: New file.
54891         * modules/unictype/property-hyphen-tests: New file.
54892         * modules/unictype/property-id-continue-tests: New file.
54893         * modules/unictype/property-id-start-tests: New file.
54894         * modules/unictype/property-ideographic-tests: New file.
54895         * modules/unictype/property-ids-binary-operator-tests: New file.
54896         * modules/unictype/property-ids-trinary-operator-tests: New file.
54897         * modules/unictype/property-ignorable-control-tests: New file.
54898         * modules/unictype/property-iso-control-tests: New file.
54899         * modules/unictype/property-join-control-tests: New file.
54900         * modules/unictype/property-left-of-pair-tests: New file.
54901         * modules/unictype/property-line-separator-tests: New file.
54902         * modules/unictype/property-logical-order-exception-tests: New file.
54903         * modules/unictype/property-lowercase-tests: New file.
54904         * modules/unictype/property-math-tests: New file.
54905         * modules/unictype/property-non-break-tests: New file.
54906         * modules/unictype/property-not-a-character-tests: New file.
54907         * modules/unictype/property-numeric-tests: New file.
54908         * modules/unictype/property-other-alphabetic-tests: New file.
54909         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
54910         * modules/unictype/property-other-grapheme-extend-tests: New file.
54911         * modules/unictype/property-other-id-continue-tests: New file.
54912         * modules/unictype/property-other-id-start-tests: New file.
54913         * modules/unictype/property-other-lowercase-tests: New file.
54914         * modules/unictype/property-other-math-tests: New file.
54915         * modules/unictype/property-other-uppercase-tests: New file.
54916         * modules/unictype/property-paired-punctuation-tests: New file.
54917         * modules/unictype/property-paragraph-separator-tests: New file.
54918         * modules/unictype/property-pattern-syntax-tests: New file.
54919         * modules/unictype/property-pattern-white-space-tests: New file.
54920         * modules/unictype/property-private-use-tests: New file.
54921         * modules/unictype/property-punctuation-tests: New file.
54922         * modules/unictype/property-quotation-mark-tests: New file.
54923         * modules/unictype/property-radical-tests: New file.
54924         * modules/unictype/property-sentence-terminal-tests: New file.
54925         * modules/unictype/property-soft-dotted-tests: New file.
54926         * modules/unictype/property-space-tests: New file.
54927         * modules/unictype/property-terminal-punctuation-tests: New file.
54928         * modules/unictype/property-test-tests: New file.
54929         * modules/unictype/property-titlecase-tests: New file.
54930         * modules/unictype/property-unassigned-code-value-tests: New file.
54931         * modules/unictype/property-unified-ideograph-tests: New file.
54932         * modules/unictype/property-uppercase-tests: New file.
54933         * modules/unictype/property-variation-selector-tests: New file.
54934         * modules/unictype/property-white-space-tests: New file.
54935         * modules/unictype/property-xid-continue-tests: New file.
54936         * modules/unictype/property-xid-start-tests: New file.
54937         * modules/unictype/property-zero-width-tests: New file.
54938         * modules/unictype/scripts-tests: New file.
54939         * modules/unictype/syntax-c-ident-tests: New file.
54940         * modules/unictype/syntax-c-whitespace-tests: New file.
54941         * modules/unictype/syntax-java-ident-tests: New file.
54942         * modules/unictype/syntax-java-whitespace-tests: New file.
54943         * tests/unictype/test-bidi_byname.c: New file.
54944         * tests/unictype/test-bidi_name.c: New file.
54945         * tests/unictype/test-bidi_of.c: New file.
54946         * tests/unictype/test-bidi_test.c: New file.
54947         * tests/unictype/test-block_list.c: New file.
54948         * tests/unictype/test-block_of.c: New file.
54949         * tests/unictype/test-block_test.c: New file.
54950         * tests/unictype/test-categ_and.c: New file.
54951         * tests/unictype/test-categ_and_not.c: New file.
54952         * tests/unictype/test-categ_byname.c: New file.
54953         * tests/unictype/test-categ_name.c: New file.
54954         * tests/unictype/test-categ_none.c: New file.
54955         * tests/unictype/test-categ_of.c: New file.
54956         * tests/unictype/test-categ_or.c: New file.
54957         * tests/unictype/test-categ_test_withtable.c: New file.
54958         * tests/unictype/test-combining.c: New file.
54959         * tests/unictype/test-decdigit.c: New file.
54960         * tests/unictype/test-digit.c: New file.
54961         * tests/unictype/test-mirror.c: New file.
54962         * tests/unictype/test-numeric.c: New file.
54963         * tests/unictype/test-pr_byname.c: New file.
54964         * tests/unictype/test-pr_test.c: New file.
54965         * tests/unictype/test-predicate-part1.h: New file.
54966         * tests/unictype/test-predicate-part2.h: New file.
54967         * tests/unictype/test-scripts.c: New file.
54968         * tests/unictype/test-sy_c_ident.c: New file.
54969         * tests/unictype/test-sy_java_ident.c: New file.
54970
54971         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
54972         for Unicode 5.0.0.
54973         * tests/unictype/test-categ_Cc.c: Likewise.
54974         * tests/unictype/test-categ_Cf.c: Likewise.
54975         * tests/unictype/test-categ_Cn.c: Likewise.
54976         * tests/unictype/test-categ_Co.c: Likewise.
54977         * tests/unictype/test-categ_Cs.c: Likewise.
54978         * tests/unictype/test-categ_L.c: Likewise.
54979         * tests/unictype/test-categ_Ll.c: Likewise.
54980         * tests/unictype/test-categ_Lm.c: Likewise.
54981         * tests/unictype/test-categ_Lo.c: Likewise.
54982         * tests/unictype/test-categ_Lt.c: Likewise.
54983         * tests/unictype/test-categ_Lu.c: Likewise.
54984         * tests/unictype/test-categ_M.c: Likewise.
54985         * tests/unictype/test-categ_Mc.c: Likewise.
54986         * tests/unictype/test-categ_Me.c: Likewise.
54987         * tests/unictype/test-categ_Mn.c: Likewise.
54988         * tests/unictype/test-categ_N.c: Likewise.
54989         * tests/unictype/test-categ_Nd.c: Likewise.
54990         * tests/unictype/test-categ_Nl.c: Likewise.
54991         * tests/unictype/test-categ_No.c: Likewise.
54992         * tests/unictype/test-categ_P.c: Likewise.
54993         * tests/unictype/test-categ_Pc.c: Likewise.
54994         * tests/unictype/test-categ_Pd.c: Likewise.
54995         * tests/unictype/test-categ_Pe.c: Likewise.
54996         * tests/unictype/test-categ_Pf.c: Likewise.
54997         * tests/unictype/test-categ_Pi.c: Likewise.
54998         * tests/unictype/test-categ_Po.c: Likewise.
54999         * tests/unictype/test-categ_Ps.c: Likewise.
55000         * tests/unictype/test-categ_S.c: Likewise.
55001         * tests/unictype/test-categ_Sc.c: Likewise.
55002         * tests/unictype/test-categ_Sk.c: Likewise.
55003         * tests/unictype/test-categ_Sm.c: Likewise.
55004         * tests/unictype/test-categ_So.c: Likewise.
55005         * tests/unictype/test-categ_Z.c: Likewise.
55006         * tests/unictype/test-categ_Zl.c: Likewise.
55007         * tests/unictype/test-categ_Zp.c: Likewise.
55008         * tests/unictype/test-categ_Zs.c: Likewise.
55009         * tests/unictype/test-ctype_alnum.c: Likewise.
55010         * tests/unictype/test-ctype_alpha.c: Likewise.
55011         * tests/unictype/test-ctype_blank.c: Likewise.
55012         * tests/unictype/test-ctype_cntrl.c: Likewise.
55013         * tests/unictype/test-ctype_digit.c: Likewise.
55014         * tests/unictype/test-ctype_graph.c: Likewise.
55015         * tests/unictype/test-ctype_lower.c: Likewise.
55016         * tests/unictype/test-ctype_print.c: Likewise.
55017         * tests/unictype/test-ctype_punct.c: Likewise.
55018         * tests/unictype/test-ctype_space.c: Likewise.
55019         * tests/unictype/test-ctype_upper.c: Likewise.
55020         * tests/unictype/test-ctype_xdigit.c: Likewise.
55021         * tests/unictype/test-decdigit.h: Likewise.
55022         * tests/unictype/test-digit.h: Likewise.
55023         * tests/unictype/test-numeric.h: Likewise.
55024         * tests/unictype/test-pr_alphabetic.c: Likewise.
55025         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
55026         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
55027         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
55028         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
55029         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
55030         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
55031         * tests/unictype/test-pr_bidi_control.c: Likewise.
55032         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
55033         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
55034         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
55035         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
55036         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
55037         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
55038         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
55039         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
55040         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
55041         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
55042         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
55043         * tests/unictype/test-pr_combining.c: Likewise.
55044         * tests/unictype/test-pr_composite.c: Likewise.
55045         * tests/unictype/test-pr_currency_symbol.c: Likewise.
55046         * tests/unictype/test-pr_dash.c: Likewise.
55047         * tests/unictype/test-pr_decimal_digit.c: Likewise.
55048         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
55049         * tests/unictype/test-pr_deprecated.c: Likewise.
55050         * tests/unictype/test-pr_diacritic.c: Likewise.
55051         * tests/unictype/test-pr_extender.c: Likewise.
55052         * tests/unictype/test-pr_format_control.c: Likewise.
55053         * tests/unictype/test-pr_grapheme_base.c: Likewise.
55054         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
55055         * tests/unictype/test-pr_grapheme_link.c: Likewise.
55056         * tests/unictype/test-pr_hex_digit.c: Likewise.
55057         * tests/unictype/test-pr_hyphen.c: Likewise.
55058         * tests/unictype/test-pr_id_continue.c: Likewise.
55059         * tests/unictype/test-pr_id_start.c: Likewise.
55060         * tests/unictype/test-pr_ideographic.c: Likewise.
55061         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
55062         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
55063         * tests/unictype/test-pr_ignorable_control.c: Likewise.
55064         * tests/unictype/test-pr_iso_control.c: Likewise.
55065         * tests/unictype/test-pr_join_control.c: Likewise.
55066         * tests/unictype/test-pr_left_of_pair.c: Likewise.
55067         * tests/unictype/test-pr_line_separator.c: Likewise.
55068         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
55069         * tests/unictype/test-pr_lowercase.c: Likewise.
55070         * tests/unictype/test-pr_math.c: Likewise.
55071         * tests/unictype/test-pr_non_break.c: Likewise.
55072         * tests/unictype/test-pr_not_a_character.c: Likewise.
55073         * tests/unictype/test-pr_numeric.c: Likewise.
55074         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
55075         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
55076         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
55077         * tests/unictype/test-pr_other_id_continue.c: Likewise.
55078         * tests/unictype/test-pr_other_id_start.c: Likewise.
55079         * tests/unictype/test-pr_other_lowercase.c: Likewise.
55080         * tests/unictype/test-pr_other_math.c: Likewise.
55081         * tests/unictype/test-pr_other_uppercase.c: Likewise.
55082         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
55083         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
55084         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
55085         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
55086         * tests/unictype/test-pr_private_use.c: Likewise.
55087         * tests/unictype/test-pr_punctuation.c: Likewise.
55088         * tests/unictype/test-pr_quotation_mark.c: Likewise.
55089         * tests/unictype/test-pr_radical.c: Likewise.
55090         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
55091         * tests/unictype/test-pr_soft_dotted.c: Likewise.
55092         * tests/unictype/test-pr_space.c: Likewise.
55093         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
55094         * tests/unictype/test-pr_titlecase.c: Likewise.
55095         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
55096         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
55097         * tests/unictype/test-pr_uppercase.c: Likewise.
55098         * tests/unictype/test-pr_variation_selector.c: Likewise.
55099         * tests/unictype/test-pr_white_space.c: Likewise.
55100         * tests/unictype/test-pr_xid_continue.c: Likewise.
55101         * tests/unictype/test-pr_xid_start.c: Likewise.
55102         * tests/unictype/test-pr_zero_width.c: Likewise.
55103         * tests/unictype/test-sy_c_whitespace.c: Likewise.
55104         * tests/unictype/test-sy_java_whitespace.c: Likewise.
55105
55106 2007-11-12  Bruno Haible  <bruno@clisp.org>
55107
55108         Unicode character classification functions.
55109         * lib/unictype.h: New file.
55110         * modules/unictype/base: New file.
55111         * modules/unictype/category-L: New file.
55112         * modules/unictype/category-Lu: New file.
55113         * modules/unictype/category-Ll: New file.
55114         * modules/unictype/category-Lt: New file.
55115         * modules/unictype/category-Lm: New file.
55116         * modules/unictype/category-Lo: New file.
55117         * modules/unictype/category-M: New file.
55118         * modules/unictype/category-Mn: New file.
55119         * modules/unictype/category-Mc: New file.
55120         * modules/unictype/category-Me: New file.
55121         * modules/unictype/category-N: New file.
55122         * modules/unictype/category-Nd: New file.
55123         * modules/unictype/category-Nl: New file.
55124         * modules/unictype/category-No: New file.
55125         * modules/unictype/category-P: New file.
55126         * modules/unictype/category-Pc: New file.
55127         * modules/unictype/category-Pd: New file.
55128         * modules/unictype/category-Ps: New file.
55129         * modules/unictype/category-Pe: New file.
55130         * modules/unictype/category-Pi: New file.
55131         * modules/unictype/category-Pf: New file.
55132         * modules/unictype/category-Po: New file.
55133         * modules/unictype/category-S: New file.
55134         * modules/unictype/category-Sm: New file.
55135         * modules/unictype/category-Sc: New file.
55136         * modules/unictype/category-Sk: New file.
55137         * modules/unictype/category-So: New file.
55138         * modules/unictype/category-Z: New file.
55139         * modules/unictype/category-Zs: New file.
55140         * modules/unictype/category-Zl: New file.
55141         * modules/unictype/category-Zp: New file.
55142         * modules/unictype/category-C: New file.
55143         * modules/unictype/category-Cc: New file.
55144         * modules/unictype/category-Cf: New file.
55145         * modules/unictype/category-Cs: New file.
55146         * modules/unictype/category-Co: New file.
55147         * modules/unictype/category-Cn: New file.
55148         * modules/unictype/category-or: New file.
55149         * modules/unictype/category-of: New file.
55150         * modules/unictype/category-test: New file.
55151         * modules/unictype/category-test-withtable: New file.
55152         * modules/unictype/category-byname: New file.
55153         * modules/unictype/category-none: New file.
55154         * modules/unictype/category-and: New file.
55155         * modules/unictype/category-and-not: New file.
55156         * modules/unictype/category-name: New file.
55157         * modules/unictype/combining-class: New file.
55158         * modules/unictype/category-all: New file.
55159         * modules/unictype/bidicategory-all: New file.
55160         * modules/unictype/bidicategory-byname: New file.
55161         * modules/unictype/bidicategory-name: New file.
55162         * modules/unictype/bidicategory-of: New file.
55163         * modules/unictype/bidicategory-test: New file.
55164         * modules/unictype/decimal-digit: New file.
55165         * modules/unictype/digit: New file.
55166         * modules/unictype/numeric: New file.
55167         * modules/unictype/mirror: New file.
55168         * modules/unictype/property-white-space: New file.
55169         * modules/unictype/property-alphabetic: New file.
55170         * modules/unictype/property-other-alphabetic: New file.
55171         * modules/unictype/property-not-a-character: New file.
55172         * modules/unictype/property-default-ignorable-code-point: New file.
55173         * modules/unictype/property-other-default-ignorable-code-point: New
55174         file.
55175         * modules/unictype/property-deprecated: New file.
55176         * modules/unictype/property-logical-order-exception: New file.
55177         * modules/unictype/property-variation-selector: New file.
55178         * modules/unictype/property-private-use: New file.
55179         * modules/unictype/property-unassigned-code-value: New file.
55180         * modules/unictype/property-uppercase: New file.
55181         * modules/unictype/property-other-uppercase: New file.
55182         * modules/unictype/property-lowercase: New file.
55183         * modules/unictype/property-other-lowercase: New file.
55184         * modules/unictype/property-titlecase: New file.
55185         * modules/unictype/property-soft-dotted: New file.
55186         * modules/unictype/property-id-start: New file.
55187         * modules/unictype/property-other-id-start: New file.
55188         * modules/unictype/property-id-continue: New file.
55189         * modules/unictype/property-other-id-continue: New file.
55190         * modules/unictype/property-xid-start: New file.
55191         * modules/unictype/property-xid-continue: New file.
55192         * modules/unictype/property-pattern-white-space: New file.
55193         * modules/unictype/property-pattern-syntax: New file.
55194         * modules/unictype/property-join-control: New file.
55195         * modules/unictype/property-grapheme-base: New file.
55196         * modules/unictype/property-grapheme-extend: New file.
55197         * modules/unictype/property-other-grapheme-extend: New file.
55198         * modules/unictype/property-grapheme-link: New file.
55199         * modules/unictype/property-bidi-control: New file.
55200         * modules/unictype/property-bidi-left-to-right: New file.
55201         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
55202         * modules/unictype/property-bidi-arabic-right-to-left: New file.
55203         * modules/unictype/property-bidi-european-digit: New file.
55204         * modules/unictype/property-bidi-eur-num-separator: New file.
55205         * modules/unictype/property-bidi-eur-num-terminator: New file.
55206         * modules/unictype/property-bidi-arabic-digit: New file.
55207         * modules/unictype/property-bidi-common-separator: New file.
55208         * modules/unictype/property-bidi-block-separator: New file.
55209         * modules/unictype/property-bidi-segment-separator: New file.
55210         * modules/unictype/property-bidi-whitespace: New file.
55211         * modules/unictype/property-bidi-non-spacing-mark: New file.
55212         * modules/unictype/property-bidi-boundary-neutral: New file.
55213         * modules/unictype/property-bidi-pdf: New file.
55214         * modules/unictype/property-bidi-embedding-or-override: New file.
55215         * modules/unictype/property-bidi-other-neutral: New file.
55216         * modules/unictype/property-hex-digit: New file.
55217         * modules/unictype/property-ascii-hex-digit: New file.
55218         * modules/unictype/property-ideographic: New file.
55219         * modules/unictype/property-unified-ideograph: New file.
55220         * modules/unictype/property-radical: New file.
55221         * modules/unictype/property-ids-binary-operator: New file.
55222         * modules/unictype/property-ids-trinary-operator: New file.
55223         * modules/unictype/property-zero-width: New file.
55224         * modules/unictype/property-space: New file.
55225         * modules/unictype/property-non-break: New file.
55226         * modules/unictype/property-iso-control: New file.
55227         * modules/unictype/property-format-control: New file.
55228         * modules/unictype/property-dash: New file.
55229         * modules/unictype/property-hyphen: New file.
55230         * modules/unictype/property-punctuation: New file.
55231         * modules/unictype/property-line-separator: New file.
55232         * modules/unictype/property-paragraph-separator: New file.
55233         * modules/unictype/property-quotation-mark: New file.
55234         * modules/unictype/property-sentence-terminal: New file.
55235         * modules/unictype/property-terminal-punctuation: New file.
55236         * modules/unictype/property-currency-symbol: New file.
55237         * modules/unictype/property-math: New file.
55238         * modules/unictype/property-other-math: New file.
55239         * modules/unictype/property-paired-punctuation: New file.
55240         * modules/unictype/property-left-of-pair: New file.
55241         * modules/unictype/property-combining: New file.
55242         * modules/unictype/property-composite: New file.
55243         * modules/unictype/property-decimal-digit: New file.
55244         * modules/unictype/property-numeric: New file.
55245         * modules/unictype/property-diacritic: New file.
55246         * modules/unictype/property-extender: New file.
55247         * modules/unictype/property-ignorable-control: New file.
55248         * modules/unictype/property-test: New file.
55249         * modules/unictype/property-byname: New file.
55250         * modules/unictype/property-all: New file.
55251         * modules/unictype/scripts: New file.
55252         * modules/unictype/scripts-all: New file.
55253         * modules/unictype/block-of: New file.
55254         * modules/unictype/block-test: New file.
55255         * modules/unictype/block-list: New file.
55256         * modules/unictype/block-all: New file.
55257         * modules/unictype/syntax-c-whitespace: New file.
55258         * modules/unictype/syntax-java-whitespace: New file.
55259         * modules/unictype/syntax-c-ident: New file.
55260         * modules/unictype/syntax-java-ident: New file.
55261         * modules/unictype/ctype-alnum: New file.
55262         * modules/unictype/ctype-alpha: New file.
55263         * modules/unictype/ctype-cntrl: New file.
55264         * modules/unictype/ctype-digit: New file.
55265         * modules/unictype/ctype-graph: New file.
55266         * modules/unictype/ctype-lower: New file.
55267         * modules/unictype/ctype-print: New file.
55268         * modules/unictype/ctype-punct: New file.
55269         * modules/unictype/ctype-space: New file.
55270         * modules/unictype/ctype-upper: New file.
55271         * modules/unictype/ctype-xdigit: New file.
55272         * modules/unictype/ctype-blank: New file.
55273         * lib/unictype/bidi_byname.c: New file.
55274         * lib/unictype/bidi_name.c: New file.
55275         * lib/unictype/bidi_of.c: New file.
55276         * lib/unictype/bidi_test.c: New file.
55277         * lib/unictype/bitmap.h: New file.
55278         * lib/unictype/block_test.c: New file.
55279         * lib/unictype/blocks.c: New file.
55280         * lib/unictype/categ_C.c: New file.
55281         * lib/unictype/categ_Cc.c: New file.
55282         * lib/unictype/categ_Cf.c: New file.
55283         * lib/unictype/categ_Cn.c: New file.
55284         * lib/unictype/categ_Co.c: New file.
55285         * lib/unictype/categ_Cs.c: New file.
55286         * lib/unictype/categ_L.c: New file.
55287         * lib/unictype/categ_Ll.c: New file.
55288         * lib/unictype/categ_Lm.c: New file.
55289         * lib/unictype/categ_Lo.c: New file.
55290         * lib/unictype/categ_Lt.c: New file.
55291         * lib/unictype/categ_Lu.c: New file.
55292         * lib/unictype/categ_M.c: New file.
55293         * lib/unictype/categ_Mc.c: New file.
55294         * lib/unictype/categ_Me.c: New file.
55295         * lib/unictype/categ_Mn.c: New file.
55296         * lib/unictype/categ_N.c: New file.
55297         * lib/unictype/categ_Nd.c: New file.
55298         * lib/unictype/categ_Nl.c: New file.
55299         * lib/unictype/categ_No.c: New file.
55300         * lib/unictype/categ_P.c: New file.
55301         * lib/unictype/categ_Pc.c: New file.
55302         * lib/unictype/categ_Pd.c: New file.
55303         * lib/unictype/categ_Pe.c: New file.
55304         * lib/unictype/categ_Pf.c: New file.
55305         * lib/unictype/categ_Pi.c: New file.
55306         * lib/unictype/categ_Po.c: New file.
55307         * lib/unictype/categ_Ps.c: New file.
55308         * lib/unictype/categ_S.c: New file.
55309         * lib/unictype/categ_Sc.c: New file.
55310         * lib/unictype/categ_Sk.c: New file.
55311         * lib/unictype/categ_Sm.c: New file.
55312         * lib/unictype/categ_So.c: New file.
55313         * lib/unictype/categ_Z.c: New file.
55314         * lib/unictype/categ_Zl.c: New file.
55315         * lib/unictype/categ_Zp.c: New file.
55316         * lib/unictype/categ_Zs.c: New file.
55317         * lib/unictype/categ_and.c: New file.
55318         * lib/unictype/categ_and_not.c: New file.
55319         * lib/unictype/categ_byname.c: New file.
55320         * lib/unictype/categ_name.c: New file.
55321         * lib/unictype/categ_none.c: New file.
55322         * lib/unictype/categ_of.c: New file.
55323         * lib/unictype/categ_or.c: New file.
55324         * lib/unictype/categ_test.c: New file.
55325         * lib/unictype/combining.c: New file.
55326         * lib/unictype/ctype_alnum.c: New file.
55327         * lib/unictype/ctype_alpha.c: New file.
55328         * lib/unictype/ctype_blank.c: New file.
55329         * lib/unictype/ctype_cntrl.c: New file.
55330         * lib/unictype/ctype_digit.c: New file.
55331         * lib/unictype/ctype_graph.c: New file.
55332         * lib/unictype/ctype_lower.c: New file.
55333         * lib/unictype/ctype_print.c: New file.
55334         * lib/unictype/ctype_punct.c: New file.
55335         * lib/unictype/ctype_space.c: New file.
55336         * lib/unictype/ctype_upper.c: New file.
55337         * lib/unictype/ctype_xdigit.c: New file.
55338         * lib/unictype/decdigit.c: New file.
55339         * lib/unictype/digit.c: New file.
55340         * lib/unictype/identsyntaxmap.h: New file.
55341         * lib/unictype/mirror.c: New file.
55342         * lib/unictype/numeric.c: New file.
55343         * lib/unictype/pr_alphabetic.c: New file.
55344         * lib/unictype/pr_ascii_hex_digit.c: New file.
55345         * lib/unictype/pr_bidi_arabic_digit.c: New file.
55346         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
55347         * lib/unictype/pr_bidi_block_separator.c: New file.
55348         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
55349         * lib/unictype/pr_bidi_common_separator.c: New file.
55350         * lib/unictype/pr_bidi_control.c: New file.
55351         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
55352         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
55353         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
55354         * lib/unictype/pr_bidi_european_digit.c: New file.
55355         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
55356         * lib/unictype/pr_bidi_left_to_right.c: New file.
55357         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
55358         * lib/unictype/pr_bidi_other_neutral.c: New file.
55359         * lib/unictype/pr_bidi_pdf.c: New file.
55360         * lib/unictype/pr_bidi_segment_separator.c: New file.
55361         * lib/unictype/pr_bidi_whitespace.c: New file.
55362         * lib/unictype/pr_byname.c: New file.
55363         * lib/unictype/pr_byname.gperf: New file.
55364         * lib/unictype/pr_combining.c: New file.
55365         * lib/unictype/pr_composite.c: New file.
55366         * lib/unictype/pr_currency_symbol.c: New file.
55367         * lib/unictype/pr_dash.c: New file.
55368         * lib/unictype/pr_decimal_digit.c: New file.
55369         * lib/unictype/pr_default_ignorable_code_point.c: New file.
55370         * lib/unictype/pr_deprecated.c: New file.
55371         * lib/unictype/pr_diacritic.c: New file.
55372         * lib/unictype/pr_extender.c: New file.
55373         * lib/unictype/pr_format_control.c: New file.
55374         * lib/unictype/pr_grapheme_base.c: New file.
55375         * lib/unictype/pr_grapheme_extend.c: New file.
55376         * lib/unictype/pr_grapheme_link.c: New file.
55377         * lib/unictype/pr_hex_digit.c: New file.
55378         * lib/unictype/pr_hyphen.c: New file.
55379         * lib/unictype/pr_id_continue.c: New file.
55380         * lib/unictype/pr_id_start.c: New file.
55381         * lib/unictype/pr_ideographic.c: New file.
55382         * lib/unictype/pr_ids_binary_operator.c: New file.
55383         * lib/unictype/pr_ids_trinary_operator.c: New file.
55384         * lib/unictype/pr_ignorable_control.c: New file.
55385         * lib/unictype/pr_iso_control.c: New file.
55386         * lib/unictype/pr_join_control.c: New file.
55387         * lib/unictype/pr_left_of_pair.c: New file.
55388         * lib/unictype/pr_line_separator.c: New file.
55389         * lib/unictype/pr_logical_order_exception.c: New file.
55390         * lib/unictype/pr_lowercase.c: New file.
55391         * lib/unictype/pr_math.c: New file.
55392         * lib/unictype/pr_non_break.c: New file.
55393         * lib/unictype/pr_not_a_character.c: New file.
55394         * lib/unictype/pr_numeric.c: New file.
55395         * lib/unictype/pr_other_alphabetic.c: New file.
55396         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
55397         * lib/unictype/pr_other_grapheme_extend.c: New file.
55398         * lib/unictype/pr_other_id_continue.c: New file.
55399         * lib/unictype/pr_other_id_start.c: New file.
55400         * lib/unictype/pr_other_lowercase.c: New file.
55401         * lib/unictype/pr_other_math.c: New file.
55402         * lib/unictype/pr_other_uppercase.c: New file.
55403         * lib/unictype/pr_paired_punctuation.c: New file.
55404         * lib/unictype/pr_paragraph_separator.c: New file.
55405         * lib/unictype/pr_pattern_syntax.c: New file.
55406         * lib/unictype/pr_pattern_white_space.c: New file.
55407         * lib/unictype/pr_private_use.c: New file.
55408         * lib/unictype/pr_punctuation.c: New file.
55409         * lib/unictype/pr_quotation_mark.c: New file.
55410         * lib/unictype/pr_radical.c: New file.
55411         * lib/unictype/pr_sentence_terminal.c: New file.
55412         * lib/unictype/pr_soft_dotted.c: New file.
55413         * lib/unictype/pr_space.c: New file.
55414         * lib/unictype/pr_terminal_punctuation.c: New file.
55415         * lib/unictype/pr_test.c: New file.
55416         * lib/unictype/pr_titlecase.c: New file.
55417         * lib/unictype/pr_unassigned_code_value.c: New file.
55418         * lib/unictype/pr_unified_ideograph.c: New file.
55419         * lib/unictype/pr_uppercase.c: New file.
55420         * lib/unictype/pr_variation_selector.c: New file.
55421         * lib/unictype/pr_white_space.c: New file.
55422         * lib/unictype/pr_xid_continue.c: New file.
55423         * lib/unictype/pr_xid_start.c: New file.
55424         * lib/unictype/pr_zero_width.c: New file.
55425         * lib/unictype/scripts.c: New file.
55426         * lib/unictype/sy_c_ident.c: New file.
55427         * lib/unictype/sy_c_whitespace.c: New file.
55428         * lib/unictype/sy_java_ident.c: New file.
55429         * lib/unictype/sy_java_whitespace.c: New file.
55430
55431         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
55432         Unicode 5.0.0.
55433         * lib/unictype/blocks.h: Likewise.
55434         * lib/unictype/categ_C.h: Likewise.
55435         * lib/unictype/categ_Cc.h: Likewise.
55436         * lib/unictype/categ_Cf.h: Likewise.
55437         * lib/unictype/categ_Cn.h: Likewise.
55438         * lib/unictype/categ_Co.h: Likewise.
55439         * lib/unictype/categ_Cs.h: Likewise.
55440         * lib/unictype/categ_L.h: Likewise.
55441         * lib/unictype/categ_Ll.h: Likewise.
55442         * lib/unictype/categ_Lm.h: Likewise.
55443         * lib/unictype/categ_Lo.h: Likewise.
55444         * lib/unictype/categ_Lt.h: Likewise.
55445         * lib/unictype/categ_Lu.h: Likewise.
55446         * lib/unictype/categ_M.h: Likewise.
55447         * lib/unictype/categ_Mc.h: Likewise.
55448         * lib/unictype/categ_Me.h: Likewise.
55449         * lib/unictype/categ_Mn.h: Likewise.
55450         * lib/unictype/categ_N.h: Likewise.
55451         * lib/unictype/categ_Nd.h: Likewise.
55452         * lib/unictype/categ_Nl.h: Likewise.
55453         * lib/unictype/categ_No.h: Likewise.
55454         * lib/unictype/categ_P.h: Likewise.
55455         * lib/unictype/categ_Pc.h: Likewise.
55456         * lib/unictype/categ_Pd.h: Likewise.
55457         * lib/unictype/categ_Pe.h: Likewise.
55458         * lib/unictype/categ_Pf.h: Likewise.
55459         * lib/unictype/categ_Pi.h: Likewise.
55460         * lib/unictype/categ_Po.h: Likewise.
55461         * lib/unictype/categ_Ps.h: Likewise.
55462         * lib/unictype/categ_S.h: Likewise.
55463         * lib/unictype/categ_Sc.h: Likewise.
55464         * lib/unictype/categ_Sk.h: Likewise.
55465         * lib/unictype/categ_Sm.h: Likewise.
55466         * lib/unictype/categ_So.h: Likewise.
55467         * lib/unictype/categ_Z.h: Likewise.
55468         * lib/unictype/categ_Zl.h: Likewise.
55469         * lib/unictype/categ_Zp.h: Likewise.
55470         * lib/unictype/categ_Zs.h: Likewise.
55471         * lib/unictype/categ_of.h: Likewise.
55472         * lib/unictype/combining.h: Likewise.
55473         * lib/unictype/ctype_alnum.h: Likewise.
55474         * lib/unictype/ctype_alpha.h: Likewise.
55475         * lib/unictype/ctype_blank.h: Likewise.
55476         * lib/unictype/ctype_cntrl.h: Likewise.
55477         * lib/unictype/ctype_digit.h: Likewise.
55478         * lib/unictype/ctype_graph.h: Likewise.
55479         * lib/unictype/ctype_lower.h: Likewise.
55480         * lib/unictype/ctype_print.h: Likewise.
55481         * lib/unictype/ctype_punct.h: Likewise.
55482         * lib/unictype/ctype_space.h: Likewise.
55483         * lib/unictype/ctype_upper.h: Likewise.
55484         * lib/unictype/ctype_xdigit.h: Likewise.
55485         * lib/unictype/decdigit.h: Likewise.
55486         * lib/unictype/digit.h: Likewise.
55487         * lib/unictype/mirror.h: Likewise.
55488         * lib/unictype/numeric.h: Likewise.
55489         * lib/unictype/pr_alphabetic.h: Likewise.
55490         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
55491         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
55492         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
55493         * lib/unictype/pr_bidi_block_separator.h: Likewise.
55494         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
55495         * lib/unictype/pr_bidi_common_separator.h: Likewise.
55496         * lib/unictype/pr_bidi_control.h: Likewise.
55497         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
55498         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
55499         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
55500         * lib/unictype/pr_bidi_european_digit.h: Likewise.
55501         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
55502         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
55503         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
55504         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
55505         * lib/unictype/pr_bidi_pdf.h: Likewise.
55506         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
55507         * lib/unictype/pr_bidi_whitespace.h: Likewise.
55508         * lib/unictype/pr_combining.h: Likewise.
55509         * lib/unictype/pr_composite.h: Likewise.
55510         * lib/unictype/pr_currency_symbol.h: Likewise.
55511         * lib/unictype/pr_dash.h: Likewise.
55512         * lib/unictype/pr_decimal_digit.h: Likewise.
55513         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
55514         * lib/unictype/pr_deprecated.h: Likewise.
55515         * lib/unictype/pr_diacritic.h: Likewise.
55516         * lib/unictype/pr_extender.h: Likewise.
55517         * lib/unictype/pr_format_control.h: Likewise.
55518         * lib/unictype/pr_grapheme_base.h: Likewise.
55519         * lib/unictype/pr_grapheme_extend.h: Likewise.
55520         * lib/unictype/pr_grapheme_link.h: Likewise.
55521         * lib/unictype/pr_hex_digit.h: Likewise.
55522         * lib/unictype/pr_hyphen.h: Likewise.
55523         * lib/unictype/pr_id_continue.h: Likewise.
55524         * lib/unictype/pr_id_start.h: Likewise.
55525         * lib/unictype/pr_ideographic.h: Likewise.
55526         * lib/unictype/pr_ids_binary_operator.h: Likewise.
55527         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
55528         * lib/unictype/pr_ignorable_control.h: Likewise.
55529         * lib/unictype/pr_iso_control.h: Likewise.
55530         * lib/unictype/pr_join_control.h: Likewise.
55531         * lib/unictype/pr_left_of_pair.h: Likewise.
55532         * lib/unictype/pr_line_separator.h: Likewise.
55533         * lib/unictype/pr_logical_order_exception.h: Likewise.
55534         * lib/unictype/pr_lowercase.h: Likewise.
55535         * lib/unictype/pr_math.h: Likewise.
55536         * lib/unictype/pr_non_break.h: Likewise.
55537         * lib/unictype/pr_not_a_character.h: Likewise.
55538         * lib/unictype/pr_numeric.h: Likewise.
55539         * lib/unictype/pr_other_alphabetic.h: Likewise.
55540         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
55541         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
55542         * lib/unictype/pr_other_id_continue.h: Likewise.
55543         * lib/unictype/pr_other_id_start.h: Likewise.
55544         * lib/unictype/pr_other_lowercase.h: Likewise.
55545         * lib/unictype/pr_other_math.h: Likewise.
55546         * lib/unictype/pr_other_uppercase.h: Likewise.
55547         * lib/unictype/pr_paired_punctuation.h: Likewise.
55548         * lib/unictype/pr_paragraph_separator.h: Likewise.
55549         * lib/unictype/pr_pattern_syntax.h: Likewise.
55550         * lib/unictype/pr_pattern_white_space.h: Likewise.
55551         * lib/unictype/pr_private_use.h: Likewise.
55552         * lib/unictype/pr_punctuation.h: Likewise.
55553         * lib/unictype/pr_quotation_mark.h: Likewise.
55554         * lib/unictype/pr_radical.h: Likewise.
55555         * lib/unictype/pr_sentence_terminal.h: Likewise.
55556         * lib/unictype/pr_soft_dotted.h: Likewise.
55557         * lib/unictype/pr_space.h: Likewise.
55558         * lib/unictype/pr_terminal_punctuation.h: Likewise.
55559         * lib/unictype/pr_titlecase.h: Likewise.
55560         * lib/unictype/pr_unassigned_code_value.h: Likewise.
55561         * lib/unictype/pr_unified_ideograph.h: Likewise.
55562         * lib/unictype/pr_uppercase.h: Likewise.
55563         * lib/unictype/pr_variation_selector.h: Likewise.
55564         * lib/unictype/pr_white_space.h: Likewise.
55565         * lib/unictype/pr_xid_continue.h: Likewise.
55566         * lib/unictype/pr_xid_start.h: Likewise.
55567         * lib/unictype/pr_zero_width.h: Likewise.
55568         * lib/unictype/scripts.h: Likewise.
55569         * lib/unictype/scripts_byname.gperf: Likewise.
55570         * lib/unictype/sy_c_ident.h: Likewise.
55571         * lib/unictype/sy_c_whitespace.h: Likewise.
55572         * lib/unictype/sy_java_ident.h: Likewise.
55573         * lib/unictype/sy_java_whitespace.h: Likewise.
55574
55575         * lib/unictype/Makefile: New file.
55576         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
55577         glibc.
55578         * lib/unictype/3level.h: New file, copied from glibc.
55579         * lib/unictype/3levelbit.h: New file.
55580
55581 2007-11-11  Bruno Haible  <bruno@clisp.org>
55582
55583         * modules/gperf: New file.
55584         * modules/iconv_open (Depends-on): Add it.
55585         (Makefile.am): Remove the GPERF definition.
55586
55587 2007-11-11  Bruno Haible  <bruno@clisp.org>
55588
55589         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
55590         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
55591
55592 2007-11-11  Bruno Haible  <bruno@clisp.org>
55593
55594         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
55595         (usage): Remove function.
55596
55597 2007-11-11  Bruno Haible  <bruno@clisp.org>
55598
55599         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
55600         gl_FUNC_CEILF_LIBS.
55601         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
55602         gl_FUNC_CEIL_LIBS.
55603         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
55604         gl_FUNC_CEILL_LIBS.
55605         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
55606         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
55607         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
55608
55609 2007-11-11  Bruno Haible  <bruno@clisp.org>
55610
55611         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
55612         roundf were declared but do not exist on functions.
55613         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
55614         roundl were declared but do not exist on functions.
55615         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
55616         HAVE_FLOORL_AND_CEILL, respectively.
55617         Needed for Sun C on Solaris 10.
55618
55619 2007-11-11  Bruno Haible  <bruno@clisp.org>
55620
55621         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
55622         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
55623         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
55624         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
55625         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
55626         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
55627         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
55628         HAVE_DECL_ROUNDF.
55629         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
55630         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
55631         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
55632         of HAVE_DECL_ROUND*.
55633         * modules/math (Makefile.am): Update.
55634
55635 2007-11-10  Bruno Haible  <bruno@clisp.org>
55636
55637         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
55638         ptrdiff_t as m4/intl.m4.
55639
55640 2007-11-10  Jim Meyering  <meyering@redhat.com>
55641
55642         Avoid link failure for the argmatch test.
55643         * tests/test-argmatch.c (usage): Define function to avoid a link
55644         failure: argmatch_die requires a usage function.
55645
55646 2007-11-09  Bruno Haible  <bruno@clisp.org>
55647
55648         * doc/functions/snprintf.texi: Mention BeOS deficiency.
55649         * doc/functions/vsnprintf.texi: Likewise.
55650         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
55651         with a size argument < 2.
55652
55653 2007-11-09  Bruno Haible  <bruno@clisp.org>
55654
55655         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
55656         buffer. Fixes an inefficiency introduced on 2007-11-03.
55657
55658 2007-11-09  Bruno Haible  <bruno@clisp.org>
55659
55660         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
55661         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
55662
55663 2007-11-08  Jim Meyering  <meyering@redhat.com>
55664
55665         Change cache variable name prefix "jm_" to "gl_" everywhere.
55666         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
55667         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
55668         * m4/uptime.m4: s/gl_/jm_/
55669
55670 2007-11-07  Bruno Haible  <bruno@clisp.org>
55671
55672         Update to GNU gettext 0.17.
55673         * m4/intl.m4: Update to GNU gettext 0.17.
55674         * m4/po.m4: Likewise.
55675         * modules/gettext (Files): Remove m4/ulonglong.m4.
55676         (configure.ac): Require gettext infrastructure from version 0.17.
55677
55678 2007-11-06  Bruno Haible  <bruno@clisp.org>
55679
55680         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
55681         symbolic values are not defined in a public header.
55682         * lib/freadable.c (freadable) [QNX]: Likewise.
55683         * lib/freadahead.c (freadahead) [QNX]: Likewise.
55684         * lib/freading.c (freading) [QNX]: Likewise.
55685         * lib/fseterr.c (fseterr) [QNX]: Likewise.
55686         * lib/fwritable.c (fwritable) [QNX]: Likewise.
55687         * lib/fwriting.c (fwriting) [QNX]: Likewise.
55688         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
55689         Reported by Alain Magloire.
55690
55691         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
55692
55693 2007-11-05  Bruno Haible  <bruno@clisp.org>
55694
55695         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
55696         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
55697         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
55698         Reported by Eric Blake.
55699
55700 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55701             Bruno Haible  <bruno@clisp.org>
55702
55703         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
55704         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
55705         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
55706         (malloc): Undefine also before including <stdlib.h>.
55707         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
55708         Needed on OSF/1 4.0.
55709
55710 2007-11-05  Jim Meyering  <meyering@redhat.com>
55711
55712         git-version-gen: sync from coreutils.
55713         * build-aux/git-version-gen: Add comments.
55714         Change the first '-' to '.' in the snapshot version string,
55715         e.g., 6.9-377-08144 -> 6.9.377-08144
55716         Remove first parameter.
55717         Don't declare a version "-dirty" merely because a time
55718         stamp has changed.
55719
55720 2007-11-04  Bruno Haible  <bruno@clisp.org>
55721
55722         * lib/lock.h: Protect all macro definitions containing an 'if'
55723         statement through a "do { ... } while (0)".
55724         * lib/tls.h: Likewise.
55725
55726 2007-11-04  Bruno Haible  <bruno@clisp.org>
55727
55728         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
55729
55730 2007-11-04  Bruno Haible  <bruno@clisp.org>
55731
55732         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
55733         * modules/fprintf-posix (Depends-on): Add nocrash.
55734         * modules/snprintf-posix (Depends-on): Likewise.
55735         * modules/sprintf-posix (Depends-on): Likewise.
55736         * modules/vasnprintf-posix (Depends-on): Likewise.
55737         * modules/vasprintf-posix (Depends-on): Likewise.
55738         * modules/vfprintf-posix (Depends-on): Likewise.
55739         * modules/vsnprintf-posix (Depends-on): Likewise.
55740         * modules/vsprintf-posix (Depends-on): Likewise.
55741         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55742         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55743         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55744         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55745         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55746         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55747         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55748
55749 2007-11-04  Bruno Haible  <bruno@clisp.org>
55750
55751         * modules/nocrash: New file.
55752         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
55753         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
55754
55755 2007-11-04  Bruno Haible  <bruno@clisp.org>
55756
55757         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
55758         precision handling.
55759         * tests/test-vasprintf-posix.c (test_function): Likewise.
55760         * tests/test-snprintf-posix.h (test_function): Likewise.
55761         * tests/test-sprintf-posix.h (test_function): Likewise.
55762
55763         Fix *printf behaviour for large precisions on mingw and BeOS.
55764         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
55765         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
55766         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
55767         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55768         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55769         gl_PRINTF_PRECISION and test its result. Invoke
55770         gl_PREREQ_VASNPRINTF_PRECISION.
55771         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55772         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55773         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55774         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55775         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55776         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55777         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55778         * doc/functions/fprintf.texi: Update.
55779         * doc/functions/printf.texi: Update.
55780         * doc/functions/snprintf.texi: Update.
55781         * doc/functions/sprintf.texi: Update.
55782         * doc/functions/vfprintf.texi: Update.
55783         * doc/functions/vprintf.texi: Update.
55784         * doc/functions/vsnprintf.texi: Update.
55785         * doc/functions/vsprintf.texi: Update.
55786
55787 2007-11-04  Bruno Haible  <bruno@clisp.org>
55788
55789         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
55790
55791 2007-11-04  Bruno Haible  <bruno@clisp.org>
55792
55793         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
55794         Reported by Sylvain Beucler <beuc@gnu.org>.
55795
55796 2007-11-03  Bruno Haible  <bruno@clisp.org>
55797
55798         * tests/test-fprintf-posix2.sh: New file.
55799         * tests/test-fprintf-posix2.c: New file.
55800         * modules/fprintf-posix-tests (Files): Add them.
55801         (TESTS): Add test-fprintf-posix2.sh.
55802         (configure.ac): Check for getrlimit and setrlimit.
55803         (check_PROGRAMS): Add test-fprintf-posix2.
55804
55805         * tests/test-printf-posix2.sh: New file.
55806         * tests/test-printf-posix2.c: New file.
55807         * modules/printf-posix-tests (Files): Add them.
55808         (TESTS): Add test-printf-posix2.sh.
55809         (configure.ac): Check for getrlimit and setrlimit.
55810         (check_PROGRAMS): Add test-printf-posix2.
55811
55812         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
55813         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
55814         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
55815         (decode_double): New function, copied from decode_long_double.
55816         (scale10_round_decimal_decoded): New function, extracted from
55817         scale10_round_decimal_long_double.
55818         (scale10_round_decimal_long_double): Use it.
55819         (scale10_round_decimal_double): New function.
55820         (floorlog10): New function.
55821         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
55822         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
55823         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55824         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55825         gl_PRINTF_ENOMEM and test its result. Invoke
55826         gl_PREREQ_VASNPRINTF_ENOMEM.
55827         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55828         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55829         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55830         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55831         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55832         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55833         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55834         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
55835         * modules/snprintf-posix (Depends-on): Likewise.
55836         * modules/sprintf-posix (Depends-on): Likewise.
55837         * modules/vasnprintf-posix (Depends-on): Likewise.
55838         * modules/vasprintf-posix (Depends-on): Likewise.
55839         * modules/vfprintf-posix (Depends-on): Likewise.
55840         * modules/vsnprintf-posix (Depends-on): Likewise.
55841         * modules/vsprintf-posix (Depends-on): Likewise.
55842         * doc/functions/fprintf.texi: Update.
55843         * doc/functions/printf.texi: Update.
55844         * doc/functions/snprintf.texi: Update.
55845         * doc/functions/sprintf.texi: Update.
55846         * doc/functions/vfprintf.texi: Update.
55847         * doc/functions/vprintf.texi: Update.
55848         * doc/functions/vsnprintf.texi: Update.
55849         * doc/functions/vsprintf.texi: Update.
55850
55851 2007-11-03  Bruno Haible  <bruno@clisp.org>
55852
55853         * modules/frexp-nolibm-tests: New file.
55854
55855         * modules/frexp-nolibm: New file.
55856         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
55857
55858 2007-11-03  Bruno Haible  <bruno@clisp.org>
55859
55860         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
55861         value is C99 compliant.
55862         Needed for OSF/1 5.1.
55863
55864 2007-11-03  Bruno Haible  <bruno@clisp.org>
55865
55866         Fix out-of-memory handling of vasnprintf.
55867         * lib/printf-parse.c: Include <errno.h>.
55868         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
55869         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
55870         is already set.
55871
55872 2007-11-02  Eric Blake  <ebb9@byu.net>
55873
55874         Fix tests on cygwin.
55875         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
55876
55877 2007-11-01  Bruno Haible  <bruno@clisp.org>
55878
55879         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
55880         warning.
55881         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
55882         needed for POSIX compatibility.
55883
55884 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55885
55886         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
55887         for compatibility with GNU.
55888
55889 2007-11-01  Bruno Haible  <bruno@clisp.org>
55890
55891         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
55892         (putenv): Renamed from rpl_putenv. Change argument type from
55893         'const char *' to 'char *'.
55894         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
55895         of defining putenv in config.h, just set REPLACE_PUTENV.
55896         * modules/putenv (Depends-on): Add stdlib.
55897         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55898         (Include): Use <stdlib.h>.
55899         * lib/stdlib.in.h (putenv): New declaration.
55900         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
55901         REPLACE_PUTENV.
55902         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
55903         REPLACE_PUTENV.
55904         Needed for MacOS X 10.5.0.
55905         Reported by Peter O'Gorman <peter@pogma.com>.
55906
55907 2007-11-01  Jim Meyering  <meyering@redhat.com>
55908
55909         Treat an empty date string exactly like "0".
55910         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
55911         if the remaining date string (to be parsed) is empty, use "0".
55912         Reported by Mischa Molhoek and discussed in this thread:
55913         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
55914
55915 2007-10-31  Bruno Haible  <bruno@clisp.org>
55916
55917         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
55918         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
55919         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
55920         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
55921         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
55922         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
55923
55924 2007-10-31  Bruno Haible  <bruno@clisp.org>
55925
55926         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
55927         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
55928         (AC_TYPE_LONG_LONG_INT): Use it.
55929         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
55930         it as well.
55931         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
55932         to m4/longlong.m4.
55933         * modules/stdint (Files): Remove m4/ulonglong.m4.
55934         * modules/strtoull (Files): Use m4/longlong.m4 instead of
55935         m4/ulonglong.m4.
55936         * modules/strtoumax (Files): Likewise.
55937
55938 2007-10-30  Bruno Haible  <bruno@clisp.org>
55939
55940         * modules/xvasprintf-posix: New file.
55941         Suggested by Eric Blake.
55942
55943 2007-10-30  Bruno Haible  <bruno@clisp.org>
55944
55945         * modules/xprintf-posix-tests: New file.
55946         * tests/test-xprintf-posix.sh: New file.
55947         * tests/test-xprintf-posix.c: New file.
55948         * tests/test-xfprintf-posix.c: New file.
55949
55950         * modules/xprintf-posix: New file.
55951
55952 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55953
55954         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
55955         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
55956         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
55957
55958 2007-10-29  Bruno Haible  <bruno@clisp.org>
55959
55960         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
55961         contain the special marker '_cv_'.
55962         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
55963         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
55964         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
55965         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
55966         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
55967         Reported by Ralf Wildenhues.
55968
55969 2007-10-29  Bruno Haible  <bruno@clisp.org>
55970
55971         * gnulib-tool (func_import): When --lgpl is not specified, set
55972         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
55973         GPLv3.
55974         Reported by Simon Josefsson.
55975
55976 2007-10-28  Bruno Haible  <bruno@clisp.org>
55977
55978         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
55979         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
55980         HAVE_DECL_ISFINITE.
55981         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55982         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
55983         HAVE_DECL_ISFINITE.
55984
55985 2007-10-28  Bruno Haible  <bruno@clisp.org>
55986
55987         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
55988         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
55989
55990 2007-10-28  Bruno Haible  <bruno@clisp.org>
55991
55992         Fix link errors with Sun C 5.0 on Solaris 10.
55993         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
55994         function is declared but not present in the compiler's libm.
55995         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
55996         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
55997         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
55998         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
55999         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
56000         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
56001         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
56002         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56003         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
56004         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
56005         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
56006         HAVE_DECL_FLOORL.
56007
56008 2007-10-28  Bruno Haible  <bruno@clisp.org>
56009
56010         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
56011         gl_FUNC_FLOORL. Cache the result.
56012         (gl_FUNC_FLOORL): Use it.
56013         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
56014         gl_FUNC_CEILL. Cache the result.
56015         (gl_FUNC_CEILL): Use it.
56016
56017         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
56018         gl_FUNC_FLOOR. Cache the result.
56019         (gl_FUNC_FLOOR): Use it.
56020         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
56021         gl_FUNC_CEIL. Cache the result.
56022         (gl_FUNC_CEIL): Use it.
56023
56024         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
56025         gl_FUNC_FLOORF. Cache the result.
56026         (gl_FUNC_FLOORF): Use it.
56027         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
56028         gl_FUNC_CEILF. Cache the result.
56029         (gl_FUNC_CEILF): Use it.
56030
56031 2007-10-28  Bruno Haible  <bruno@clisp.org>
56032
56033         * gnulib-tool: Allow specifying the LGPL version number through
56034         --lgpl=2 or --lgpl=3.
56035         (func_usage): Document --lgpl with argument.
56036         Handle --lgpl=... arguments.
56037         (func_import): Recognize also gl_LGPL calls with an argument. When
56038         --lgpl=2 is used and the module's license is just LGPL, report an
56039         error. Set sed_transform_lib_file according to the lgpl variable. In
56040         the generated files, use --lgpl or gl_LGPL invocations with argument,
56041         if necessary.
56042         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
56043         an LGPv2+ license.
56044         * doc/gnulib-tool.texi (Modified imports): Update explanation of
56045         gl_LGPL macro.
56046
56047 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56048             Bruno Haible  <bruno@clisp.org>
56049
56050         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
56051         (u16_uctomb_aux): Likewise.
56052         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
56053         !HAVE_INLINE.
56054         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
56055
56056 2007-10-28  Bruno Haible  <bruno@clisp.org>
56057
56058         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
56059         Invoke AM_GETTEXT_OPTION if it exists.
56060         * modules/vasprintf: Likewise.
56061         * modules/verror: Likewise.
56062         * modules/xprintf: Likewise.
56063         * modules/xvasprintf: Likewise.
56064
56065 2007-10-27  Ben Pfaff  <blp@gnu.org>
56066
56067         * lib/math.in.h: Define isfinite macro and prototypes for
56068         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
56069         implementations.
56070         * m4/math_h.m4: New substitutions for isfinite module.
56071         * lib/isfinite.c: New file.
56072         * m4/isfinite.m4: New file.
56073         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
56074         * modules/isfinite: New file.
56075         * modules/isfinite-tests: New file.
56076         * tests/tests-isfinite.c: New file.
56077         * doc/functions/isfinite.texi: Mention isfinite module.
56078         * MODULES.html.sh: Mention new module.
56079
56080 2007-10-27  Ben Pfaff  <blp@gnu.org>
56081
56082         Ralf Wildenhues reported that Tru64 4.0D declares the round
56083         functions but does not have definitions.
56084         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
56085         cannot be found in any library, set the output variable to
56086         "missing" instead of "".
56087         * m4/round.m4: Also use our substitute if we cannot find round in
56088         any library, even if it is declared.
56089         * m4/roundf.m4: Likewise for roundf.
56090         * m4/roundl.m4: Likewise for roundl.
56091         * lib/math.in.h: Undefine roundf, round, roundl before defining
56092         their replacements, to allow for hypothetical systems where these
56093         may be defined as macros but not available in libraries.
56094
56095 2007-10-27  Bruno Haible  <bruno@clisp.org>
56096
56097         * doc/gnulib.texi: Invoke @firstparagraphindent.
56098         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
56099         changes in gnulib.
56100         (Source changes): New section.
56101
56102 2007-10-26  Bruno Haible  <bruno@clisp.org>
56103
56104         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
56105         borrowed from autoconf.
56106
56107 2007-10-26  Bruno Haible  <bruno@clisp.org>
56108
56109         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
56110         strerror returned the empty string. Needed on HP-UX 11.00.
56111
56112 2007-10-24  Micah Cowan  <micah@cowan.name>
56113
56114         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
56115         * build-aux/bootstrap: Remove support for now-unnecessary option,
56116         --cvs-user, and envvars CVS_USER, CVS_RSH.
56117
56118 2007-10-24  Jim Meyering  <meyering@redhat.com>
56119
56120         Avoid diagnostics from sha1sum when there is no cached checksum.
56121         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
56122         if the po.s1 file hasn't been created yet.
56123
56124         * build-aux/bootstrap: Sync from coreutils:
56125         2007-10-24  Jim Meyering  <meyering@redhat.com>
56126         Get gnulib from the git repository, not from an obsolete cvs one.
56127         * build-aux/bootstrap: Suggestion from Micah Cowan.
56128         2007-10-04  Jim Meyering  <jim@meyering.net>
56129         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
56130         (update_po_files): Work also when there are no .po files in po/.
56131
56132 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56133
56134         * README: Append ".git" to git and cg examples.
56135         Problem reported by Benoit Sigoure.
56136
56137 2007-10-23  Micah Cowan  <micah@cowan.name>
56138
56139         * users.txt: Add wget.
56140
56141 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56142
56143         Fix linking of some unistdio tests on FreeBSD.
56144         * modules/unistdio/u16-vsnprintf-tests
56145         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
56146         * modules/unistdio/u16-vsprintf-tests
56147         (test_u16_vsnprintf1_LDADD): Likewise.
56148         * modules/unistdio/u32-vsnprintf-tests
56149         (test_u32_vsnprintf1_LDADD): Likewise.
56150         * modules/unistdio/u32-vsprintf-tests
56151         (test_u32_vsprintf1_LDADD): Likewise.
56152         * modules/unistdio/u8-vsnprintf-tests
56153         (test_u8_vsnprintf1_LDADD): Likewise.
56154         * modules/unistdio/u8-vsprintf-tests
56155         (test_u8_vsprintf1_LDADD): Likewise.
56156         * modules/unistdio/ulc-vsnprintf-tests
56157         (test_ulc_vsnprintf1_LDADD): Likewise.
56158         * modules/unistdio/ulc-vsprintf-tests
56159         (test_ulc_vsprintf1_LDADD): Likewise.
56160
56161         Fix linking of some uniconv tests on FreeBSD.
56162         * modules/uniconv/u16-conv-from-enc-tests
56163         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
56164         * modules/uniconv/u16-conv-to-enc-tests
56165         (test_u16_conv_to_enc_LDADD): Likewise.
56166         * modules/uniconv/u16-strconv-from-enc-tests
56167         (test_u16_strconv_from_enc_LDADD): Likewise.
56168         * modules/uniconv/u16-strconv-to-enc-tests
56169         (test_u16_strconv_to_enc_LDADD): Likewise.
56170         * modules/uniconv/u32-conv-from-enc-tests
56171         (test_u32_conv_from_enc_LDADD): Likewise.
56172         * modules/uniconv/u32-conv-to-enc-tests
56173         (test_u32_conv_to_enc_LDADD): Likewise.
56174         * modules/uniconv/u32-strconv-from-enc-tests
56175         (test_u32_strconv_from_enc_LDADD): Likewise.
56176         * modules/uniconv/u32-strconv-to-enc-tests
56177         (test_u32_strconv_to_enc_LDADD): Likewise.
56178         * modules/uniconv/u8-conv-from-enc-tests
56179         (test_u8_conv_from_enc_LDADD): Likewise.
56180         * modules/uniconv/u8-conv-to-enc-tests
56181         (test_u8_conv_to_enc_LDADD): Likewise.
56182         * modules/uniconv/u8-strconv-from-enc-tests
56183         (test_u8_strconv_from_enc_LDADD): Likewise.
56184         * modules/uniconv/u8-strconv-to-enc-tests
56185         (test_u8_strconv_to_enc_LDADD): Likewise.
56186
56187 2007-10-22  Bruno Haible  <bruno@clisp.org>
56188
56189         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
56190         size.
56191
56192 2007-10-22  Eric Blake  <ebb9@byu.net>
56193
56194         Tweak x*printf documentation.
56195         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
56196         variable name and comments.
56197         Suggested by Bruno Haible.
56198
56199 2007-10-22  Bruno Haible  <bruno@clisp.org>
56200
56201         * lib/acl.c (copy_acl): Fix file name in comment.
56202
56203 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56204
56205         Fix Tru64 problem with stdbool.h.
56206         * lib/stdbool.in.h (false, true):
56207         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
56208         Don't declare as an enum in this situation; it runs afoul of Tru64.
56209         Problem reported by Steven M. Schweda in
56210         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
56211
56212 2007-10-22  Eric Blake  <ebb9@byu.net>
56213
56214         Also wrap vf?printf.
56215         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
56216         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
56217         (xvprintf, xvfprintf): New functions.
56218
56219 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56220
56221         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
56222         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
56223
56224         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
56225         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
56226
56227 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56228
56229         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
56230         by Bruno Haible.
56231
56232 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56233
56234         * lib/getloadavg.c
56235         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
56236         Undef `sys' after including sys/table.h, for Tru64 4.0D.
56237
56238         * tests/test-i-ring.c: Work for C89.
56239
56240 2007-10-22  Bruno Haible  <bruno@clisp.org>
56241
56242         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
56243         -1u, in preprocessor expression, so that we don't test for the bug
56244         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
56245         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
56246
56247 2007-10-22  Eric Blake  <ebb9@byu.net>
56248
56249         * tests/test-yesno.sh: Silence stderr during test.
56250
56251 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56252
56253         * modules/crypto/gc-camellia: New file.
56254
56255         * m4/gc-camellia.m4: New file.
56256
56257         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
56258
56259         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
56260
56261 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56262
56263         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
56264         --help to stdout.  Reported by sms@antinode.org (Steven
56265         M. Schweda).
56266
56267 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56268
56269         * users.txt: Fix link to libksba.
56270
56271 2007-10-21  Ben Pfaff  <blp@gnu.org>
56272
56273         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
56274         round.c roundf implementation that depends on floorf and ceilf to
56275         be tested unconditionally.
56276
56277 2007-10-21  Ben Pfaff  <blp@gnu.org>
56278
56279         * m4/check-libm-func.m4: Removed.
56280         * m4/check-math-lib.m4: New file.
56281         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
56282         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
56283         definition and lack of AC_LIBOBJ([roundf]).
56284         * m4/roundl.m4: Ditto, and similarly for roundl.
56285         * modules/round: Reference new m4 file.
56286         * modules/roundf: Ditto.
56287         * modules/roundl: Ditto.
56288         * tests/test-round2.c (main): Use ROUND instead of round.
56289         Bug report from Bruno Haible.
56290
56291 2007-10-21  Bruno Haible  <bruno@clisp.org>
56292
56293         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
56294         context.
56295
56296 2007-10-21  Bruno Haible  <bruno@clisp.org>
56297
56298         * tests/test-wcwidth.c (main): Allow negative result for some control
56299         characters.
56300
56301         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
56302         Needed on OSF/1 5.1.
56303
56304 2007-10-21  Bruno Haible  <bruno@clisp.org>
56305
56306         * tests/test-floorf1.c: Include isnanf.h.
56307         (main): Use isnanf() instead of isnan().
56308         * tests/test-ceilf1.c: Include isnanf.h.
56309         (main): Use isnanf() instead of isnan().
56310         * tests/test-truncf1.c: Include isnanf.h.
56311         (main): Use isnanf() instead of isnan().
56312         * tests/test-roundf1.c: Include isnanf.h.
56313         (main): Use isnanf() instead of isnan().
56314
56315 2007-10-21  Eric Blake  <ebb9@byu.net>
56316
56317         * users.txt: Update URL for m4.
56318
56319 2007-10-21  Bruno Haible  <bruno@clisp.org>
56320
56321         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
56322
56323 2007-10-21  Bruno Haible  <bruno@clisp.org>
56324
56325         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
56326         Git's management files if the CVS files are not present.
56327
56328 2007-10-20  Bruno Haible  <bruno@clisp.org>
56329
56330         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
56331         gcc-3.4.x.
56332
56333 2007-10-20  Ben Pfaff  <blp@gnu.org>
56334
56335         * lib/math.in.h: Declare round, roundf, roundl if we are providing
56336         implementations.
56337         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
56338         * lib/round.c: New file.
56339         * lib/roundf.c: New file.
56340         * lib/roundl.c: New file.
56341         * m4/round.m4: New file.
56342         * m4/roundf.m4: New file.
56343         * m4/roundl.m4: New file.
56344         * m4/check-libm-func-m4: New file.
56345         * modules/math: Replace round, roundf, roundl related @VARS@ in
56346         math.in.h.
56347         * modules/round: New file.
56348         * modules/round-tests: New file.
56349         * modules/roundf: New file.
56350         * modules/roundf-tests: New file.
56351         * modules/roundl: New file.
56352         * modules/roundl-tests: New file.
56353         * tests/test-round1.c: New file.
56354         * tests/test-round2.c: New file.
56355         * tests/test-roundf1.c: New file.
56356         * tests/test-roundf2.c: New file.
56357         * tests/test-roundl.c: New file.
56358         * doc/functions/round.texi: Mention round module.
56359         * doc/functions/roundf.texi: Mention roundf module.
56360         * doc/functions/roundl.texi: Mention roundl module.
56361         * MODULES.html.sh: Mention new modules.
56362         Thanks to Bruno Haible for suggestions.
56363
56364 2007-10-20  Jim Meyering  <meyering@redhat.com>
56365
56366         * lib/xprintf.c: Include <config.h> unconditionally.
56367
56368         Change xprintf's license to GPL.
56369         * modules/xprintf (License): s/LGPL/GPL/, since this module
56370         depends on modules (exit and exitfail) which are GPL.
56371         Suggestion from Bruno Haible.
56372
56373         xprintf fixes.
56374         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
56375         Use a clearer diagnostic.
56376         Patch from Bruno Haible.
56377
56378 2007-10-20  Bruno Haible  <bruno@clisp.org>
56379
56380         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
56381         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
56382         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56383
56384 2007-10-20  Bruno Haible  <bruno@clisp.org>
56385
56386         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
56387         precision in the comparison result > x - 1 or similar.
56388         * tests/test-ceilf2.c (correct_result_p): Likewise.
56389         * tests/test-truncf2.c (correct_result_p): Likewise.
56390         * tests/test-trunc2.c (correct_result_p): Likewise.
56391         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56392
56393 2007-10-20  Bruno Haible  <bruno@clisp.org>
56394
56395         * modules/ceil: New file.
56396         * m4/ceil.m4: New file.
56397         * doc/functions/ceil.texi: Mention the 'ceil' module.
56398
56399 2007-10-20  Bruno Haible  <bruno@clisp.org>
56400
56401         * modules/floor: New file.
56402         * m4/floor.m4: New file.
56403         * doc/functions/floor.texi: Mention the 'floor' module.
56404
56405 2007-10-20  Bruno Haible  <bruno@clisp.org>
56406
56407         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
56408         of %a.
56409         * modules/floorf-tests (Depends-on): Likewise.
56410         * modules/truncf-tests (Depends-on): Likewise.
56411         * modules/trunc-tests (Depends-on): Likewise.
56412         Reported by Ben Pfaff.
56413
56414 2007-10-19  Jim Meyering  <meyering@redhat.com>
56415
56416         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
56417         Don't bother testing specific errno values.  Just test ferror.
56418
56419         New module: xprintf
56420         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
56421
56422 2007-10-19  Bruno Haible  <bruno@clisp.org>
56423
56424         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
56425         syntax.
56426         * modules/javaexec (Makefile.am): Likewise.
56427         * modules/relocatable-prog (Makefile.am): Likewise.
56428         Suggested by Jim Meyering.
56429
56430 2007-10-18  Bruno Haible  <bruno@clisp.org>
56431
56432         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
56433         Reported by Jim Meyering.
56434
56435 2007-10-18  Eric Blake  <ebb9@byu.net>
56436
56437         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
56438
56439 2007-10-18  Bruno Haible  <bruno@clisp.org>
56440
56441         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
56442         the format string into writable memory. Needed in Fortify conditions.
56443
56444 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
56445             Bruno Haible  <bruno@clisp.org>
56446
56447         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
56448         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
56449         * modules/trim (Depends-on): Add mbchar.
56450         (configure.ac): Add gl_FUNC_MBRTOWC.
56451         (Makefile.am): Augment lib_SOURCES.
56452
56453 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56454
56455         Modify glob.c to use fstatat and dirfd, to simplify it.
56456         Suggested by Eric Blake.
56457         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
56458         Don't include <stdbool.h>; not used.
56459         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
56460         (link_exists_p): Simplify implementation, since we can now assume
56461         dirfd and fstatat.
56462         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
56463
56464 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56465
56466         * gnulib-tool (func_get_dependencies): Fix sed script to
56467         match only tests.
56468
56469 2007-10-17  Bruno Haible  <bruno@clisp.org>
56470
56471         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
56472         allow locale names without encoding suffix.
56473         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56474         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56475
56476 2007-10-16  Bruno Haible  <bruno@clisp.org>
56477
56478         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
56479         * lib/getgroups.c (getgroups): Likewise.
56480         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
56481
56482 2007-10-16  Bruno Haible  <bruno@clisp.org>
56483
56484         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
56485         * modules/malloc-posix (License): Likewise.
56486         * modules/realloc-posix (License): Likewise.
56487         * modules/calloc-posix (License): Likewise.
56488         * modules/intprops (License): Change from GPL to LGPL, with
56489         Paul Eggert's approval.
56490
56491 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56492
56493         Merge glibc changes into lib/glob.c.
56494
56495         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
56496         2007-10-15 04:59:03 UTC.  Here are the changes:
56497
56498         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
56499
56500         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
56501
56502         * lib/glob.c: Add some branch prediction throughout.
56503
56504         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
56505
56506         [BZ #5103]
56507         * lib/glob.c (glob): Recognize patterns starting \/.
56508
56509         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
56510
56511         [BZ #3996]
56512         * lib/glob.c (attribute_hidden): Define if not defined.
56513         (glob): Unescape dirname, filename or username when needed and not
56514         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
56515         is NULL.  Handle unescaped [ in pattern without closing ].
56516         Don't pass GLOB_CHECK down to recursive glob for directories.
56517         (__glob_pattern_type): New function.
56518         (__glob_pattern_p): Implement using __glob_pattern_type.
56519         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
56520         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
56521         Remove unreachable code.
56522
56523         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
56524
56525         * lib/glob.c (glob_in_dir): Add some comments and asserts to
56526         explain why there are no leaks.
56527
56528         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
56529
56530         [BZ #3253]
56531         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
56532         time, rather allocate increasingly bigger arrays of pointers, if
56533         possible with alloca, if too large with malloc.
56534
56535 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56536
56537         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
56538         Problem reported by H.Merijn Brand in
56539         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
56540         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
56541         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56542
56543 2007-10-15  Bruno Haible  <bruno@clisp.org>
56544
56545         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
56546         with explicit rpl_ prefix.
56547         * lib/fopen.c (fopen): Likewise.
56548         * lib/freopen.c (freopen): Likewise.
56549         * lib/iconv.c (iconv): Likewise.
56550         * lib/iconv_close.c (iconv_close): Likewise.
56551
56552 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56553
56554         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
56555
56556 2007-10-15  Bruno Haible  <bruno@clisp.org>
56557
56558         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
56559         <stddef.h> instead of <stdlib.h> since we only need NULL.
56560         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56561
56562 2007-10-15  Bruno Haible  <bruno@clisp.org>
56563
56564         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
56565         Replace paragraph talking about LIBOBJS.
56566         Reported by Colin Watson <cjwatson@debian.org>.
56567
56568 2007-10-15  Bruno Haible  <bruno@clisp.org>
56569
56570         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
56571         <stdlib.h> before using NULL.
56572
56573 2007-10-15  Simon Josefsson  <simon@josefsson.org>
56574
56575         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
56576         Reported by Albert Chin <china@thewrittenword.com>.
56577
56578 2007-10-14  Bruno Haible  <bruno@clisp.org>
56579
56580         * modules/iconv_open-utf-tests: New file.
56581         * tests/test-iconv-utf.c: New file.
56582
56583         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
56584         * modules/iconv_open-utf: New file.
56585         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
56586         (iconv, iconv_close): New declarations.
56587         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
56588         be defined.
56589         (iconv_open): Add special handling of conversion between UTF-8 and
56590         UTF-{16,32}{BE,LE}.
56591         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
56592         * lib/iconv_close.c: New file.
56593         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
56594         gl_FUNC_ICONV_OPEN.
56595         (gl_FUNC_ICONV_OPEN): Use it.
56596         (gl_FUNC_ICONV_OPEN_UTF): New macro.
56597         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
56598         and REPLACE_ICONV_UTF.
56599         * modules/iconv_open (Depends-on): Add c-strcase.
56600         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
56601         ICONV_CONST.
56602         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
56603
56604 2007-10-13  Albert Chin  <china@thewrittenword.com>
56605             Bruno Haible  <bruno@clisp.org>
56606
56607         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
56608         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
56609
56610 2007-10-13  Bruno Haible  <bruno@clisp.org>
56611
56612         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
56613         defined, use the ISO C99 inline semantics.
56614         * lib/argp.h (ARGP_EI): Likewise.
56615
56616 2007-10-13  Bruno Haible  <bruno@clisp.org>
56617
56618         Handle 'inline' change in gcc 4.3.0.
56619         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
56620         argp_fmtstream_write, argp_fmtstream_set_lmargin,
56621         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
56622         argp_fmtstream_point): Disable 'extern' declaration if the function
56623         definition is going to be provided inline.
56624         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
56625         semantics, not the ISO C99 inline semantics.
56626         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
56627         'extern' declaration if the function definition is going to be provided
56628         inline.
56629         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
56630         the GNU C inline semantics, not the ISO C99 inline semantics. With
56631         GCC 4.2, avoid a warning.
56632
56633 2007-10-13  Bruno Haible  <bruno@clisp.org>
56634
56635         * lib/freading.h (freading): Enable the use of __freading for
56636         glibc >= 2.7.
56637         * lib/freading.c (freading): Likewise.
56638
56639 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56640
56641         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
56642         "warning: C99 inline functions are not supported; using GNU89".
56643
56644 2007-10-12  Bruno Haible  <bruno@clisp.org>
56645
56646         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
56647         of 2.
56648         * tests/test-ceilf2.c: New file.
56649         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
56650
56651         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
56652         * modules/ceilf-tests: Update.
56653
56654 2007-10-12  Bruno Haible  <bruno@clisp.org>
56655
56656         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
56657         of 2.
56658         * tests/test-floorf2.c: New file.
56659         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
56660
56661         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
56662         * modules/floorf-tests: Update.
56663
56664 2007-10-12  Bruno Haible  <bruno@clisp.org>
56665
56666         * tests/test-trunc2.c: New file.
56667         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
56668
56669         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
56670         * modules/trunc-tests: Update.
56671
56672 2007-10-12  Bruno Haible  <bruno@clisp.org>
56673
56674         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
56675         of 2.
56676         * tests/test-truncf2.c: New file.
56677         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
56678
56679         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
56680         * modules/truncf-tests: Update.
56681
56682 2007-10-11  Eric Blake  <ebb9@byu.net>
56683
56684         Don't claim strerror is broken on Interix.
56685         * doc/functions/strerror.texi (strerror): Known broken systems are
56686         now Solaris 8, and not Interix.
56687         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
56688         Interix on cross-compile.
56689         Reported by Martin Koeppe in
56690         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
56691
56692 2007-10-11  Bruno Haible  <bruno@clisp.org>
56693
56694         * modules/i-ring-tests: New file.
56695         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
56696         instead of assert.
56697
56698 2007-10-11  Bruno Haible  <bruno@clisp.org>
56699
56700         * modules/filenamecat-tests: New file.
56701         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
56702         * lib/filenamecat.c: Remove test code.
56703
56704 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56705
56706         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
56707
56708         * lib/strerror.c: Include <string.h> always, to test interface,
56709         and to remove the need for the dummy.
56710         Include intprops.h to compute width instead of doing it ourselves
56711         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
56712         (strerror): Define it to return NULL if there's no system strerror.
56713         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
56714         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
56715         ancient pre-strerror Unix systems well any more.  Saying "unknown
56716         system error" is enough.
56717         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
56718         simpler strerror.c implementation.
56719         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
56720         Simplify the tests to reflect the simpler strerror implementation.
56721         * modules/strerror (Depends-on): Add intprops.
56722
56723 2007-10-09  Eric Blake  <ebb9@byu.net>
56724
56725         Silence test-fpending.
56726         * modules/fpending-tests (Files): Add wrapper script.
56727         * tests/test-fpending.sh: New file.
56728
56729 2007-10-09  Bruno Haible  <bruno@clisp.org>
56730
56731         * MODULES.html.sh (func_module): Don't create a hyperlink for
56732         function names like 'printf_frexp'.
56733         (Misc): Add crc, memxor.
56734         (Characteristics of floating types): New section.
56735         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
56736         isnanf-nolibm, signbit, trunc, truncf, truncl.
56737         (Enhancements for ISO C 99 functions): New subsection Input/output.
56738         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
56739         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
56740         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
56741         (Compatibility checks for POSIX:2001 functions): Add clock-time.
56742         (Enhancements for POSIX:2001 functions): Add chdir-long.
56743         (File system functions): Add areadlink, chdir-safer, read-file.
56744         Remove cycle-check.
56745         (File system as inode set): New section.
56746         (Date and time): Add gethrxtime.
56747         (Multithreading): Add openmp.
56748         (Internationalization functions): Add localename.
56749         (Unicode string functions): Add unistr/u*-mbsnlen.
56750         (Support for maintaining and releasing projects): Add git-version-gen.
56751         (Lone files): Remove directories.
56752
56753 2007-10-08  Ben Pfaff  <blp@gnu.org>
56754
56755         * lib/xmalloca.h: Fix typo in comment.
56756
56757 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56758
56759         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
56760         when avoiding problems with integer overflow.  Use a portable test
56761         instead.
56762
56763 2007-10-08  Simon Josefsson  <simon@josefsson.org>
56764
56765         * modules/dummy (License): Change to LGPLv2+.
56766         * modules/float (License): Likewise
56767         * modules/realloc (License): Likewise
56768         * modules/stdlib (License): Likewise
56769
56770 2007-10-07  Bruno Haible  <bruno@clisp.org>
56771
56772         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
56773         * floor.c (TWO_MANT_DIG): Likewise.
56774         * ceil.c (TWO_MANT_DIG): Likewise.
56775         Reported by Ben Pfaff.
56776
56777 2007-10-07  Bruno Haible  <bruno@clisp.org>
56778
56779         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
56780         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
56781         * lib/frexp.c (FUNC): Likewise.
56782         * lib/printf-frexp.h (printf_frexp): Likewise.
56783         * lib/printf-frexpl.h (printf_frexpl): Likewise.
56784         * lib/printf-frexp.c (FUNC): Likewise.
56785         Suggested by Jim Meyering.
56786
56787 2007-10-07  Jim Meyering  <meyering@redhat.com>
56788
56789         Make xnanosleep's integer overflow test more robust.
56790         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
56791         so that gcc-4.3.0 doesn't optimize away this test for overflow.
56792
56793 2007-10-07  Bruno Haible  <bruno@clisp.org>
56794
56795         * NEWS: Mention the license change.
56796
56797         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
56798         abbreviations in the modules files.
56799
56800         Change copyright notice from GPLv2+ to GPLv3+.
56801         * README: Change copyright notice.
56802         * MODULES.html.sh: Likewise.
56803         * build-aux/bootstrap.conf: Likewise.
56804         * build-aux/config.libpath: Likewise.
56805         * build-aux/csharpcomp.sh.in: Likewise.
56806         * build-aux/csharpexec.sh.in: Likewise.
56807         * build-aux/install-reloc: Likewise.
56808         * build-aux/javacomp.sh.in: Likewise.
56809         * build-aux/javaexec.sh.in: Likewise.
56810         * build-aux/ldd.sh.in: Likewise.
56811         * build-aux/reloc-ldflags: Likewise.
56812         * build-aux/relocatable.sh.in: Likewise.
56813         * build-aux/x-to-1.in: Likewise.
56814         * check-module: Likewise.
56815         * config/srclistvars.sh: Likewise.
56816         * gnulib-tool: Likewise.
56817         * lib/acl-internal.h: Likewise.
56818         * lib/acl.c: Likewise.
56819         * lib/acl.h: Likewise.
56820         * lib/acl_entries.c: Likewise.
56821         * lib/areadlink-with-size.c: Likewise.
56822         * lib/areadlink.c: Likewise.
56823         * lib/areadlink.h: Likewise.
56824         * lib/argmatch.c: Likewise.
56825         * lib/argmatch.h: Likewise.
56826         * lib/argp-ba.c: Likewise.
56827         * lib/argp-eexst.c: Likewise.
56828         * lib/argp-fmtstream.c: Likewise.
56829         * lib/argp-fmtstream.h: Likewise.
56830         * lib/argp-fs-xinl.c: Likewise.
56831         * lib/argp-help.c: Likewise.
56832         * lib/argp-namefrob.h: Likewise.
56833         * lib/argp-parse.c: Likewise.
56834         * lib/argp-pin.c: Likewise.
56835         * lib/argp-pv.c: Likewise.
56836         * lib/argp-pvh.c: Likewise.
56837         * lib/argp-xinl.c: Likewise.
56838         * lib/argp.h: Likewise.
56839         * lib/at-func.c: Likewise.
56840         * lib/atanl.c: Likewise.
56841         * lib/backupfile.c: Likewise.
56842         * lib/backupfile.h: Likewise.
56843         * lib/basename.c: Likewise.
56844         * lib/binary-io.h: Likewise.
56845         * lib/byteswap.in.h: Likewise.
56846         * lib/c-stack.c: Likewise.
56847         * lib/c-stack.h: Likewise.
56848         * lib/c-strcasestr.c: Likewise.
56849         * lib/c-strcasestr.h: Likewise.
56850         * lib/c-strstr.c: Likewise.
56851         * lib/c-strstr.h: Likewise.
56852         * lib/c-strtod.c: Likewise.
56853         * lib/calloc.c: Likewise.
56854         * lib/canon-host.c: Likewise.
56855         * lib/canon-host.h: Likewise.
56856         * lib/canonicalize-lgpl.c: Likewise.
56857         * lib/canonicalize.c: Likewise.
56858         * lib/canonicalize.h: Likewise.
56859         * lib/ceil.c: Likewise.
56860         * lib/ceilf.c: Likewise.
56861         * lib/ceill.c: Likewise.
56862         * lib/chdir-long.c: Likewise.
56863         * lib/chdir-long.h: Likewise.
56864         * lib/chdir-safer.c: Likewise.
56865         * lib/chdir-safer.h: Likewise.
56866         * lib/chown.c: Likewise.
56867         * lib/classpath.c: Likewise.
56868         * lib/classpath.h: Likewise.
56869         * lib/clean-temp.c: Likewise.
56870         * lib/clean-temp.h: Likewise.
56871         * lib/cloexec.c: Likewise.
56872         * lib/close-stream.c: Likewise.
56873         * lib/closein.c: Likewise.
56874         * lib/closein.h: Likewise.
56875         * lib/closeout.c: Likewise.
56876         * lib/closeout.h: Likewise.
56877         * lib/concat-filename.c: Likewise.
56878         * lib/copy-file.c: Likewise.
56879         * lib/copy-file.h: Likewise.
56880         * lib/count-one-bits.h: Likewise.
56881         * lib/crc.c: Likewise.
56882         * lib/crc.h: Likewise.
56883         * lib/creat-safer.c: Likewise.
56884         * lib/csharpcomp.c: Likewise.
56885         * lib/csharpcomp.h: Likewise.
56886         * lib/csharpexec.c: Likewise.
56887         * lib/csharpexec.h: Likewise.
56888         * lib/cycle-check.c: Likewise.
56889         * lib/cycle-check.h: Likewise.
56890         * lib/diacrit.c: Likewise.
56891         * lib/diacrit.h: Likewise.
56892         * lib/diffseq.h: Likewise.
56893         * lib/dirchownmod.c: Likewise.
56894         * lib/dirent.in.h: Likewise.
56895         * lib/dirfd.c: Likewise.
56896         * lib/dirfd.h: Likewise.
56897         * lib/dirname.c: Likewise.
56898         * lib/dirname.h: Likewise.
56899         * lib/dummy.c: Likewise.
56900         * lib/dup-safer.c: Likewise.
56901         * lib/dup2.c: Likewise.
56902         * lib/eealloc.h: Likewise.
56903         * lib/error.c: Likewise.
56904         * lib/error.h: Likewise.
56905         * lib/euidaccess.c: Likewise.
56906         * lib/exclude.c: Likewise.
56907         * lib/exclude.h: Likewise.
56908         * lib/execute.c: Likewise.
56909         * lib/execute.h: Likewise.
56910         * lib/exitfail.c: Likewise.
56911         * lib/exitfail.h: Likewise.
56912         * lib/expl.c: Likewise.
56913         * lib/fatal-signal.c: Likewise.
56914         * lib/fatal-signal.h: Likewise.
56915         * lib/fbufmode.c: Likewise.
56916         * lib/fbufmode.h: Likewise.
56917         * lib/fchdir.c: Likewise.
56918         * lib/fchmodat.c: Likewise.
56919         * lib/fchownat.c: Likewise.
56920         * lib/fcntl--.h: Likewise.
56921         * lib/fcntl-safer.h: Likewise.
56922         * lib/fcntl.in.h: Likewise.
56923         * lib/fd-safer.c: Likewise.
56924         * lib/fflush.c: Likewise.
56925         * lib/file-has-acl.c: Likewise.
56926         * lib/file-set.c: Likewise.
56927         * lib/file-type.c: Likewise.
56928         * lib/file-type.h: Likewise.
56929         * lib/fileblocks.c: Likewise.
56930         * lib/filemode.c: Likewise.
56931         * lib/filemode.h: Likewise.
56932         * lib/filename.h: Likewise.
56933         * lib/filenamecat.c: Likewise.
56934         * lib/filenamecat.h: Likewise.
56935         * lib/findprog.c: Likewise.
56936         * lib/findprog.h: Likewise.
56937         * lib/float.in.h: Likewise.
56938         * lib/floor.c: Likewise.
56939         * lib/floorf.c: Likewise.
56940         * lib/floorl.c: Likewise.
56941         * lib/fopen-safer.c: Likewise.
56942         * lib/fopen.c: Likewise.
56943         * lib/fpending.c: Likewise.
56944         * lib/fpending.h: Likewise.
56945         * lib/fprintf.c: Likewise.
56946         * lib/fprintftime.h: Likewise.
56947         * lib/fpucw.h: Likewise.
56948         * lib/fpurge.c: Likewise.
56949         * lib/fpurge.h: Likewise.
56950         * lib/freadable.c: Likewise.
56951         * lib/freadable.h: Likewise.
56952         * lib/freadahead.c: Likewise.
56953         * lib/freadahead.h: Likewise.
56954         * lib/freading.c: Likewise.
56955         * lib/freading.h: Likewise.
56956         * lib/free.c: Likewise.
56957         * lib/freopen.c: Likewise.
56958         * lib/frexp.c: Likewise.
56959         * lib/frexpl.c: Likewise.
56960         * lib/fseek.c: Likewise.
56961         * lib/fseterr.c: Likewise.
56962         * lib/fseterr.h: Likewise.
56963         * lib/fstatat.c: Likewise.
56964         * lib/fstrcmp.c: Likewise.
56965         * lib/fstrcmp.h: Likewise.
56966         * lib/fsusage.c: Likewise.
56967         * lib/fsusage.h: Likewise.
56968         * lib/ftell.c: Likewise.
56969         * lib/ftello.c: Likewise.
56970         * lib/fts-cycle.c: Likewise.
56971         * lib/fts.c: Likewise.
56972         * lib/fts_.h: Likewise.
56973         * lib/full-read.c: Likewise.
56974         * lib/full-read.h: Likewise.
56975         * lib/full-write.c: Likewise.
56976         * lib/full-write.h: Likewise.
56977         * lib/fwritable.c: Likewise.
56978         * lib/fwritable.h: Likewise.
56979         * lib/fwriteerror.c: Likewise.
56980         * lib/fwriteerror.h: Likewise.
56981         * lib/fwriting.c: Likewise.
56982         * lib/fwriting.h: Likewise.
56983         * lib/gcd.c: Likewise.
56984         * lib/gcd.h: Likewise.
56985         * lib/getcwd.c: Likewise.
56986         * lib/getdate.h: Likewise.
56987         * lib/getdate.y: Likewise.
56988         * lib/getdomainname.c: Likewise.
56989         * lib/getdomainname.h: Likewise.
56990         * lib/getgroups.c: Likewise.
56991         * lib/gethostname.c: Likewise.
56992         * lib/gethrxtime.c: Likewise.
56993         * lib/gethrxtime.h: Likewise.
56994         * lib/getloadavg.c: Likewise.
56995         * lib/getndelim2.c: Likewise.
56996         * lib/getndelim2.h: Likewise.
56997         * lib/getnline.c: Likewise.
56998         * lib/getnline.h: Likewise.
56999         * lib/getopt.c: Likewise.
57000         * lib/getopt.in.h: Likewise.
57001         * lib/getopt1.c: Likewise.
57002         * lib/getopt_int.h: Likewise.
57003         * lib/getpagesize.h: Likewise.
57004         * lib/getsubopt.c: Likewise.
57005         * lib/gettime.c: Likewise.
57006         * lib/getugroups.c: Likewise.
57007         * lib/getugroups.h: Likewise.
57008         * lib/getusershell.c: Likewise.
57009         * lib/gl_anyavltree_list1.h: Likewise.
57010         * lib/gl_anyavltree_list2.h: Likewise.
57011         * lib/gl_anyhash_list1.h: Likewise.
57012         * lib/gl_anyhash_list2.h: Likewise.
57013         * lib/gl_anylinked_list1.h: Likewise.
57014         * lib/gl_anylinked_list2.h: Likewise.
57015         * lib/gl_anyrbtree_list1.h: Likewise.
57016         * lib/gl_anyrbtree_list2.h: Likewise.
57017         * lib/gl_anytree_list1.h: Likewise.
57018         * lib/gl_anytree_list2.h: Likewise.
57019         * lib/gl_anytree_oset.h: Likewise.
57020         * lib/gl_anytreehash_list1.h: Likewise.
57021         * lib/gl_anytreehash_list2.h: Likewise.
57022         * lib/gl_array_list.c: Likewise.
57023         * lib/gl_array_list.h: Likewise.
57024         * lib/gl_array_oset.c: Likewise.
57025         * lib/gl_array_oset.h: Likewise.
57026         * lib/gl_avltree_list.c: Likewise.
57027         * lib/gl_avltree_list.h: Likewise.
57028         * lib/gl_avltree_oset.c: Likewise.
57029         * lib/gl_avltree_oset.h: Likewise.
57030         * lib/gl_avltreehash_list.c: Likewise.
57031         * lib/gl_avltreehash_list.h: Likewise.
57032         * lib/gl_carray_list.c: Likewise.
57033         * lib/gl_carray_list.h: Likewise.
57034         * lib/gl_linked_list.c: Likewise.
57035         * lib/gl_linked_list.h: Likewise.
57036         * lib/gl_linkedhash_list.c: Likewise.
57037         * lib/gl_linkedhash_list.h: Likewise.
57038         * lib/gl_list.c: Likewise.
57039         * lib/gl_list.h: Likewise.
57040         * lib/gl_oset.c: Likewise.
57041         * lib/gl_oset.h: Likewise.
57042         * lib/gl_rbtree_list.c: Likewise.
57043         * lib/gl_rbtree_list.h: Likewise.
57044         * lib/gl_rbtree_oset.c: Likewise.
57045         * lib/gl_rbtree_oset.h: Likewise.
57046         * lib/gl_rbtreehash_list.c: Likewise.
57047         * lib/gl_rbtreehash_list.h: Likewise.
57048         * lib/gl_sublist.c: Likewise.
57049         * lib/gl_sublist.h: Likewise.
57050         * lib/group-member.c: Likewise.
57051         * lib/group-member.h: Likewise.
57052         * lib/hard-locale.c: Likewise.
57053         * lib/hard-locale.h: Likewise.
57054         * lib/hash-pjw.c: Likewise.
57055         * lib/hash-pjw.h: Likewise.
57056         * lib/hash-triple.c: Likewise.
57057         * lib/hash.c: Likewise.
57058         * lib/hash.h: Likewise.
57059         * lib/human.c: Likewise.
57060         * lib/human.h: Likewise.
57061         * lib/i-ring.c: Likewise.
57062         * lib/i-ring.h: Likewise.
57063         * lib/idcache.c: Likewise.
57064         * lib/imaxabs.c: Likewise.
57065         * lib/imaxdiv.c: Likewise.
57066         * lib/inet_pton.c: Likewise.
57067         * lib/inet_pton.h: Likewise.
57068         * lib/intprops.h: Likewise.
57069         * lib/inttostr.c: Likewise.
57070         * lib/inttostr.h: Likewise.
57071         * lib/inttypes.in.h: Likewise.
57072         * lib/isapipe.c: Likewise.
57073         * lib/isdir.c: Likewise.
57074         * lib/isnan.c: Likewise.
57075         * lib/isnan.h: Likewise.
57076         * lib/isnanf.c: Likewise.
57077         * lib/isnanf.h: Likewise.
57078         * lib/isnanl-nolibm.h: Likewise.
57079         * lib/isnanl.c: Likewise.
57080         * lib/isnanl.h: Likewise.
57081         * lib/javacomp.c: Likewise.
57082         * lib/javacomp.h: Likewise.
57083         * lib/javaexec.c: Likewise.
57084         * lib/javaexec.h: Likewise.
57085         * lib/javaversion.c: Likewise.
57086         * lib/javaversion.h: Likewise.
57087         * lib/javaversion.java: Likewise.
57088         * lib/lbrkprop.h: Likewise.
57089         * lib/lchmod.h: Likewise.
57090         * lib/lchown.c: Likewise.
57091         * lib/ldexpl.c: Likewise.
57092         * lib/linebreak.c: Likewise.
57093         * lib/linebreak.h: Likewise.
57094         * lib/linebuffer.c: Likewise.
57095         * lib/linebuffer.h: Likewise.
57096         * lib/locale.in.h: Likewise.
57097         * lib/logl.c: Likewise.
57098         * lib/long-options.c: Likewise.
57099         * lib/long-options.h: Likewise.
57100         * lib/lstat.c: Likewise.
57101         * lib/lstat.h: Likewise.
57102         * lib/math.in.h: Likewise.
57103         * lib/mbchar.c: Likewise.
57104         * lib/mbchar.h: Likewise.
57105         * lib/mbfile.h: Likewise.
57106         * lib/mbiter.h: Likewise.
57107         * lib/mbscasecmp.c: Likewise.
57108         * lib/mbscasestr.c: Likewise.
57109         * lib/mbschr.c: Likewise.
57110         * lib/mbscspn.c: Likewise.
57111         * lib/mbslen.c: Likewise.
57112         * lib/mbsncasecmp.c: Likewise.
57113         * lib/mbsnlen.c: Likewise.
57114         * lib/mbspbrk.c: Likewise.
57115         * lib/mbspcasecmp.c: Likewise.
57116         * lib/mbsrchr.c: Likewise.
57117         * lib/mbssep.c: Likewise.
57118         * lib/mbsspn.c: Likewise.
57119         * lib/mbsstr.c: Likewise.
57120         * lib/mbstok_r.c: Likewise.
57121         * lib/mbswidth.c: Likewise.
57122         * lib/mbswidth.h: Likewise.
57123         * lib/mbuiter.h: Likewise.
57124         * lib/memcasecmp.c: Likewise.
57125         * lib/memcasecmp.h: Likewise.
57126         * lib/memchr.c: Likewise.
57127         * lib/memcmp.c: Likewise.
57128         * lib/memcoll.c: Likewise.
57129         * lib/memcoll.h: Likewise.
57130         * lib/memcpy.c: Likewise.
57131         * lib/memrchr.c: Likewise.
57132         * lib/mkancesdirs.c: Likewise.
57133         * lib/mkdir-p.c: Likewise.
57134         * lib/mkdir-p.h: Likewise.
57135         * lib/mkdir.c: Likewise.
57136         * lib/mkdirat.c: Likewise.
57137         * lib/mkdtemp.c: Likewise.
57138         * lib/mkstemp-safer.c: Likewise.
57139         * lib/mkstemp.c: Likewise.
57140         * lib/modechange.c: Likewise.
57141         * lib/modechange.h: Likewise.
57142         * lib/mountlist.c: Likewise.
57143         * lib/mountlist.h: Likewise.
57144         * lib/mpsort.c: Likewise.
57145         * lib/nanosleep.c: Likewise.
57146         * lib/obstack.c: Likewise.
57147         * lib/obstack.h: Likewise.
57148         * lib/open-safer.c: Likewise.
57149         * lib/open.c: Likewise.
57150         * lib/openat-die.c: Likewise.
57151         * lib/openat-priv.h: Likewise.
57152         * lib/openat-proc.c: Likewise.
57153         * lib/openat.c: Likewise.
57154         * lib/openat.h: Likewise.
57155         * lib/pagealign_alloc.c: Likewise.
57156         * lib/pagealign_alloc.h: Likewise.
57157         * lib/physmem.c: Likewise.
57158         * lib/physmem.h: Likewise.
57159         * lib/pipe-safer.c: Likewise.
57160         * lib/pipe.c: Likewise.
57161         * lib/pipe.h: Likewise.
57162         * lib/posixtm.c: Likewise.
57163         * lib/posixtm.h: Likewise.
57164         * lib/posixver.c: Likewise.
57165         * lib/printf-frexp.c: Likewise.
57166         * lib/printf-frexp.h: Likewise.
57167         * lib/printf-frexpl.c: Likewise.
57168         * lib/printf-frexpl.h: Likewise.
57169         * lib/printf.c: Likewise.
57170         * lib/progname.c: Likewise.
57171         * lib/progname.h: Likewise.
57172         * lib/progreloc.c: Likewise.
57173         * lib/putenv.c: Likewise.
57174         * lib/quote.c: Likewise.
57175         * lib/quote.h: Likewise.
57176         * lib/quotearg.c: Likewise.
57177         * lib/quotearg.h: Likewise.
57178         * lib/raise.c: Likewise.
57179         * lib/readline.c: Likewise.
57180         * lib/readline.h: Likewise.
57181         * lib/readlink.c: Likewise.
57182         * lib/readtokens.c: Likewise.
57183         * lib/readtokens.h: Likewise.
57184         * lib/readtokens0.c: Likewise.
57185         * lib/readtokens0.h: Likewise.
57186         * lib/readutmp.c: Likewise.
57187         * lib/readutmp.h: Likewise.
57188         * lib/realloc.c: Likewise.
57189         * lib/relocwrapper.c: Likewise.
57190         * lib/rename-dest-slash.c: Likewise.
57191         * lib/rename.c: Likewise.
57192         * lib/rmdir.c: Likewise.
57193         * lib/rpmatch.c: Likewise.
57194         * lib/safe-read.c: Likewise.
57195         * lib/safe-read.h: Likewise.
57196         * lib/safe-write.c: Likewise.
57197         * lib/safe-write.h: Likewise.
57198         * lib/same-inode.h: Likewise.
57199         * lib/same.c: Likewise.
57200         * lib/same.h: Likewise.
57201         * lib/save-cwd.c: Likewise.
57202         * lib/save-cwd.h: Likewise.
57203         * lib/savedir.c: Likewise.
57204         * lib/savedir.h: Likewise.
57205         * lib/savewd.c: Likewise.
57206         * lib/savewd.h: Likewise.
57207         * lib/search.in.h: Likewise.
57208         * lib/setenv.c: Likewise.
57209         * lib/setenv.h: Likewise.
57210         * lib/settime.c: Likewise.
57211         * lib/sh-quote.c: Likewise.
57212         * lib/sh-quote.h: Likewise.
57213         * lib/sig2str.c: Likewise.
57214         * lib/sig2str.h: Likewise.
57215         * lib/signal.in.h: Likewise.
57216         * lib/signbitd.c: Likewise.
57217         * lib/signbitf.c: Likewise.
57218         * lib/signbitl.c: Likewise.
57219         * lib/sigprocmask.c: Likewise.
57220         * lib/sincosl.c: Likewise.
57221         * lib/sleep.c: Likewise.
57222         * lib/sprintf.c: Likewise.
57223         * lib/sqrtl.c: Likewise.
57224         * lib/stat-time.h: Likewise.
57225         * lib/stdio--.h: Likewise.
57226         * lib/stdio-safer.h: Likewise.
57227         * lib/stdlib--.h: Likewise.
57228         * lib/stdlib-safer.h: Likewise.
57229         * lib/stdlib.in.h: Likewise.
57230         * lib/stpcpy.c: Likewise.
57231         * lib/stpncpy.c: Likewise.
57232         * lib/strchrnul.c: Likewise.
57233         * lib/strcspn.c: Likewise.
57234         * lib/strerror.c: Likewise.
57235         * lib/strftime.c: Likewise.
57236         * lib/strftime.h: Likewise.
57237         * lib/striconveh.c: Likewise.
57238         * lib/striconveh.h: Likewise.
57239         * lib/striconveha.c: Likewise.
57240         * lib/striconveha.h: Likewise.
57241         * lib/stripslash.c: Likewise.
57242         * lib/strnlen1.c: Likewise.
57243         * lib/strnlen1.h: Likewise.
57244         * lib/strtod.c: Likewise.
57245         * lib/strtoimax.c: Likewise.
57246         * lib/strtok_r.c: Likewise.
57247         * lib/strtol.c: Likewise.
57248         * lib/strtoll.c: Likewise.
57249         * lib/strtoul.c: Likewise.
57250         * lib/strtoull.c: Likewise.
57251         * lib/sysexits.in.h: Likewise.
57252         * lib/tempname.c: Likewise.
57253         * lib/tempname.h: Likewise.
57254         * lib/timespec.h: Likewise.
57255         * lib/tls.c: Likewise.
57256         * lib/tls.h: Likewise.
57257         * lib/tmpdir.c: Likewise.
57258         * lib/tmpdir.h: Likewise.
57259         * lib/tmpfile-safer.c: Likewise.
57260         * lib/tmpfile.c: Likewise.
57261         * lib/trigl.c: Likewise.
57262         * lib/trigl.h: Likewise.
57263         * lib/trim.c: Likewise.
57264         * lib/trim.h: Likewise.
57265         * lib/trunc.c: Likewise.
57266         * lib/truncf.c: Likewise.
57267         * lib/truncl.c: Likewise.
57268         * lib/tsearch.c: Likewise.
57269         * lib/unicodeio.c: Likewise.
57270         * lib/unicodeio.h: Likewise.
57271         * lib/unistd--.h: Likewise.
57272         * lib/unistd-safer.h: Likewise.
57273         * lib/unistdio/ulc-fprintf.c: Likewise.
57274         * lib/unistdio/ulc-vfprintf.c: Likewise.
57275         * lib/unlinkdir.c: Likewise.
57276         * lib/unlinkdir.h: Likewise.
57277         * lib/unlocked-io.h: Likewise.
57278         * lib/unsetenv.c: Likewise.
57279         * lib/userspec.c: Likewise.
57280         * lib/utime.c: Likewise.
57281         * lib/utimecmp.c: Likewise.
57282         * lib/utimecmp.h: Likewise.
57283         * lib/utimens.c: Likewise.
57284         * lib/verify.h: Likewise.
57285         * lib/verror.c: Likewise.
57286         * lib/verror.h: Likewise.
57287         * lib/version-etc-fsf.c: Likewise.
57288         * lib/version-etc.c: Likewise.
57289         * lib/version-etc.h: Likewise.
57290         * lib/vfprintf.c: Likewise.
57291         * lib/vprintf.c: Likewise.
57292         * lib/vsprintf.c: Likewise.
57293         * lib/w32spawn.h: Likewise.
57294         * lib/wait-process.c: Likewise.
57295         * lib/wait-process.h: Likewise.
57296         * lib/wcwidth.c: Likewise.
57297         * lib/write-any-file.c: Likewise.
57298         * lib/xalloc-die.c: Likewise.
57299         * lib/xalloc.h: Likewise.
57300         * lib/xasprintf.c: Likewise.
57301         * lib/xgetcwd.c: Likewise.
57302         * lib/xgetcwd.h: Likewise.
57303         * lib/xgetdomainname.c: Likewise.
57304         * lib/xgetdomainname.h: Likewise.
57305         * lib/xgethostname.c: Likewise.
57306         * lib/xmalloc.c: Likewise.
57307         * lib/xmalloca.c: Likewise.
57308         * lib/xmalloca.h: Likewise.
57309         * lib/xmemcoll.c: Likewise.
57310         * lib/xnanosleep.c: Likewise.
57311         * lib/xreadlink.c: Likewise.
57312         * lib/xreadlink.h: Likewise.
57313         * lib/xsetenv.c: Likewise.
57314         * lib/xsetenv.h: Likewise.
57315         * lib/xstriconv.c: Likewise.
57316         * lib/xstriconv.h: Likewise.
57317         * lib/xstrndup.c: Likewise.
57318         * lib/xstrndup.h: Likewise.
57319         * lib/xstrtod.c: Likewise.
57320         * lib/xstrtod.h: Likewise.
57321         * lib/xstrtol-error.c: Likewise.
57322         * lib/xstrtol.c: Likewise.
57323         * lib/xstrtol.h: Likewise.
57324         * lib/xtime.h: Likewise.
57325         * lib/xvasprintf.c: Likewise.
57326         * lib/xvasprintf.h: Likewise.
57327         * lib/yesno.c: Likewise.
57328         * lib/yesno.h: Likewise.
57329         * posix-modules: Likewise.
57330         * tests/test-alloca-opt.c: Likewise.
57331         * tests/test-arcfour.c: Likewise.
57332         * tests/test-arctwo.c: Likewise.
57333         * tests/test-argmatch.c: Likewise.
57334         * tests/test-argp-2.sh: Likewise.
57335         * tests/test-argp.c: Likewise.
57336         * tests/test-arpa_inet.c: Likewise.
57337         * tests/test-array_list.c: Likewise.
57338         * tests/test-array_oset.c: Likewise.
57339         * tests/test-atexit.c: Likewise.
57340         * tests/test-avltree_list.c: Likewise.
57341         * tests/test-avltree_oset.c: Likewise.
57342         * tests/test-avltreehash_list.c: Likewise.
57343         * tests/test-base64.c: Likewise.
57344         * tests/test-binary-io.c: Likewise.
57345         * tests/test-byteswap.c: Likewise.
57346         * tests/test-c-ctype.c: Likewise.
57347         * tests/test-c-strcasecmp.c: Likewise.
57348         * tests/test-c-strcasestr.c: Likewise.
57349         * tests/test-c-strncasecmp.c: Likewise.
57350         * tests/test-c-strstr.c: Likewise.
57351         * tests/test-canonicalize-lgpl.c: Likewise.
57352         * tests/test-canonicalize.c: Likewise.
57353         * tests/test-carray_list.c: Likewise.
57354         * tests/test-ceilf.c: Likewise.
57355         * tests/test-ceill.c: Likewise.
57356         * tests/test-count-one-bits.c: Likewise.
57357         * tests/test-crc.c: Likewise.
57358         * tests/test-dirname.c: Likewise.
57359         * tests/test-fbufmode.c: Likewise.
57360         * tests/test-fcntl.c: Likewise.
57361         * tests/test-fflush.c: Likewise.
57362         * tests/test-floorf.c: Likewise.
57363         * tests/test-floorl.c: Likewise.
57364         * tests/test-fopen.c: Likewise.
57365         * tests/test-fprintf-posix.c: Likewise.
57366         * tests/test-fprintf-posix.h: Likewise.
57367         * tests/test-fpurge.c: Likewise.
57368         * tests/test-freadable.c: Likewise.
57369         * tests/test-freadahead.c: Likewise.
57370         * tests/test-freading.c: Likewise.
57371         * tests/test-freopen.c: Likewise.
57372         * tests/test-frexp.c: Likewise.
57373         * tests/test-frexpl.c: Likewise.
57374         * tests/test-fseek.c: Likewise.
57375         * tests/test-fseeko.c: Likewise.
57376         * tests/test-fseterr.c: Likewise.
57377         * tests/test-fstrcmp.c: Likewise.
57378         * tests/test-ftell.c: Likewise.
57379         * tests/test-ftello.c: Likewise.
57380         * tests/test-fwritable.c: Likewise.
57381         * tests/test-fwriting.c: Likewise.
57382         * tests/test-getaddrinfo.c: Likewise.
57383         * tests/test-getpass.c: Likewise.
57384         * tests/test-gettimeofday.c: Likewise.
57385         * tests/test-hmac-md5.c: Likewise.
57386         * tests/test-hmac-sha1.c: Likewise.
57387         * tests/test-iconv.c: Likewise.
57388         * tests/test-iconvme.c: Likewise.
57389         * tests/test-inttypes.c: Likewise.
57390         * tests/test-isnan.c: Likewise.
57391         * tests/test-isnanf.c: Likewise.
57392         * tests/test-isnanl-nolibm.c: Likewise.
57393         * tests/test-isnanl.c: Likewise.
57394         * tests/test-isnanl.h: Likewise.
57395         * tests/test-ldexpl.c: Likewise.
57396         * tests/test-linked_list.c: Likewise.
57397         * tests/test-linkedhash_list.c: Likewise.
57398         * tests/test-locale.c: Likewise.
57399         * tests/test-localename.c: Likewise.
57400         * tests/test-lock.c: Likewise.
57401         * tests/test-lseek.c: Likewise.
57402         * tests/test-malloca.c: Likewise.
57403         * tests/test-math.c: Likewise.
57404         * tests/test-mbscasecmp.c: Likewise.
57405         * tests/test-mbscasestr1.c: Likewise.
57406         * tests/test-mbscasestr2.c: Likewise.
57407         * tests/test-mbscasestr3.c: Likewise.
57408         * tests/test-mbscasestr4.c: Likewise.
57409         * tests/test-mbschr.c: Likewise.
57410         * tests/test-mbscspn.c: Likewise.
57411         * tests/test-mbsncasecmp.c: Likewise.
57412         * tests/test-mbspbrk.c: Likewise.
57413         * tests/test-mbspcasecmp.c: Likewise.
57414         * tests/test-mbsrchr.c: Likewise.
57415         * tests/test-mbsspn.c: Likewise.
57416         * tests/test-mbsstr1.c: Likewise.
57417         * tests/test-mbsstr2.c: Likewise.
57418         * tests/test-mbsstr3.c: Likewise.
57419         * tests/test-md5.c: Likewise.
57420         * tests/test-memmem.c: Likewise.
57421         * tests/test-netinet_in.c: Likewise.
57422         * tests/test-open.c: Likewise.
57423         * tests/test-printf-frexp.c: Likewise.
57424         * tests/test-printf-frexpl.c: Likewise.
57425         * tests/test-printf-posix.c: Likewise.
57426         * tests/test-printf-posix.h: Likewise.
57427         * tests/test-rbtree_list.c: Likewise.
57428         * tests/test-rbtree_oset.c: Likewise.
57429         * tests/test-rbtreehash_list.c: Likewise.
57430         * tests/test-read-file.c: Likewise.
57431         * tests/test-rijndael.c: Likewise.
57432         * tests/test-search.c: Likewise.
57433         * tests/test-signbit.c: Likewise.
57434         * tests/test-sleep.c: Likewise.
57435         * tests/test-snprintf-posix.c: Likewise.
57436         * tests/test-snprintf-posix.h: Likewise.
57437         * tests/test-snprintf.c: Likewise.
57438         * tests/test-sprintf-posix.c: Likewise.
57439         * tests/test-sprintf-posix.h: Likewise.
57440         * tests/test-stat-time.c: Likewise.
57441         * tests/test-stdbool.c: Likewise.
57442         * tests/test-stdint.c: Likewise.
57443         * tests/test-stdio.c: Likewise.
57444         * tests/test-stdlib.c: Likewise.
57445         * tests/test-stpncpy.c: Likewise.
57446         * tests/test-strcasestr.c: Likewise.
57447         * tests/test-striconv.c: Likewise.
57448         * tests/test-striconveh.c: Likewise.
57449         * tests/test-striconveha.c: Likewise.
57450         * tests/test-string.c: Likewise.
57451         * tests/test-sys_select.c: Likewise.
57452         * tests/test-sys_socket.c: Likewise.
57453         * tests/test-sys_stat.c: Likewise.
57454         * tests/test-sys_time.c: Likewise.
57455         * tests/test-sysexits.c: Likewise.
57456         * tests/test-time.c: Likewise.
57457         * tests/test-tls.c: Likewise.
57458         * tests/test-trunc.c: Likewise.
57459         * tests/test-truncf.c: Likewise.
57460         * tests/test-truncl.c: Likewise.
57461         * tests/test-unistd.c: Likewise.
57462         * tests/test-vasnprintf-posix.c: Likewise.
57463         * tests/test-vasnprintf-posix2.c: Likewise.
57464         * tests/test-vasnprintf.c: Likewise.
57465         * tests/test-vasprintf-posix.c: Likewise.
57466         * tests/test-vasprintf.c: Likewise.
57467         * tests/test-verify.c: Likewise.
57468         * tests/test-vfprintf-posix.c: Likewise.
57469         * tests/test-vprintf-posix.c: Likewise.
57470         * tests/test-vsnprintf-posix.c: Likewise.
57471         * tests/test-vsnprintf.c: Likewise.
57472         * tests/test-vsprintf-posix.c: Likewise.
57473         * tests/test-wchar.c: Likewise.
57474         * tests/test-wctype.c: Likewise.
57475         * tests/test-wcwidth.c: Likewise.
57476         * tests/test-xstrtol.c: Likewise.
57477         * tests/test-xvasprintf.c: Likewise.
57478         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
57479         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
57480         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57481         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57482         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57483         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
57484         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57485         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57486         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57487         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
57488         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57489         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57490         * tests/uniname/test-uninames.c: Likewise.
57491         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
57492         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
57493         * tests/unistdio/test-u16-printf1.h: Likewise.
57494         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
57495         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
57496         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
57497         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
57498         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
57499         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
57500         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
57501         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
57502         * tests/unistdio/test-u32-printf1.h: Likewise.
57503         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
57504         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
57505         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
57506         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
57507         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
57508         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
57509         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
57510         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
57511         * tests/unistdio/test-u8-printf1.h: Likewise.
57512         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
57513         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
57514         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
57515         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
57516         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
57517         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
57518         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
57519         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
57520         * tests/unistdio/test-ulc-printf1.h: Likewise.
57521         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
57522         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
57523         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
57524         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
57525         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
57526         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
57527         * tests/uniwidth/test-u16-strwidth.c: Likewise.
57528         * tests/uniwidth/test-u16-width.c: Likewise.
57529         * tests/uniwidth/test-u32-strwidth.c: Likewise.
57530         * tests/uniwidth/test-u32-width.c: Likewise.
57531         * tests/uniwidth/test-u8-strwidth.c: Likewise.
57532         * tests/uniwidth/test-u8-width.c: Likewise.
57533         * tests/uniwidth/test-uc_width.c: Likewise.
57534         * config/srclist-update: Likewise.
57535         (fixlicense): Update to GPLv3+.
57536
57537         Change copyright notice from LGPLv2.1+ to LGPLv3+.
57538         * tests/test-tsearch.c: Change copyright notice.
57539
57540         Change copyright notice from LGPLv2.0+ to LGPLv3+.
57541         * lib/c-strcaseeq.h: Change copyright notice.
57542         * lib/streq.h: Likewise.
57543         * lib/uniconv.h: Likewise.
57544         * lib/uniconv/u-conv-from-enc.h: Likewise.
57545         * lib/uniconv/u-conv-to-enc.h: Likewise.
57546         * lib/uniconv/u-strconv-from-enc.h: Likewise.
57547         * lib/uniconv/u-strconv-to-enc.h: Likewise.
57548         * lib/uniconv/u16-conv-from-enc.c: Likewise.
57549         * lib/uniconv/u16-conv-to-enc.c: Likewise.
57550         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
57551         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
57552         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
57553         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
57554         * lib/uniconv/u32-conv-from-enc.c: Likewise.
57555         * lib/uniconv/u32-conv-to-enc.c: Likewise.
57556         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
57557         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
57558         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
57559         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
57560         * lib/uniconv/u8-conv-from-enc.c: Likewise.
57561         * lib/uniconv/u8-conv-to-enc.c: Likewise.
57562         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
57563         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
57564         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
57565         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
57566         * lib/uniname.h: Likewise.
57567         * lib/uniname/uniname.c: Likewise.
57568         * lib/unistdio.h: Likewise.
57569         * lib/unistdio/u-asnprintf.h: Likewise.
57570         * lib/unistdio/u-asprintf.h: Likewise.
57571         * lib/unistdio/u-printf-args.c: Likewise.
57572         * lib/unistdio/u-printf-args.h: Likewise.
57573         * lib/unistdio/u-printf-parse.h: Likewise.
57574         * lib/unistdio/u-snprintf.h: Likewise.
57575         * lib/unistdio/u-sprintf.h: Likewise.
57576         * lib/unistdio/u-vasprintf.h: Likewise.
57577         * lib/unistdio/u-vsnprintf.h: Likewise.
57578         * lib/unistdio/u-vsprintf.h: Likewise.
57579         * lib/unistdio/u16-asnprintf.c: Likewise.
57580         * lib/unistdio/u16-asprintf.c: Likewise.
57581         * lib/unistdio/u16-printf-parse.c: Likewise.
57582         * lib/unistdio/u16-snprintf.c: Likewise.
57583         * lib/unistdio/u16-sprintf.c: Likewise.
57584         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
57585         * lib/unistdio/u16-u16-asprintf.c: Likewise.
57586         * lib/unistdio/u16-u16-snprintf.c: Likewise.
57587         * lib/unistdio/u16-u16-sprintf.c: Likewise.
57588         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
57589         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
57590         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
57591         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
57592         * lib/unistdio/u16-vasnprintf.c: Likewise.
57593         * lib/unistdio/u16-vasprintf.c: Likewise.
57594         * lib/unistdio/u16-vsnprintf.c: Likewise.
57595         * lib/unistdio/u16-vsprintf.c: Likewise.
57596         * lib/unistdio/u32-asnprintf.c: Likewise.
57597         * lib/unistdio/u32-asprintf.c: Likewise.
57598         * lib/unistdio/u32-printf-parse.c: Likewise.
57599         * lib/unistdio/u32-snprintf.c: Likewise.
57600         * lib/unistdio/u32-sprintf.c: Likewise.
57601         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
57602         * lib/unistdio/u32-u32-asprintf.c: Likewise.
57603         * lib/unistdio/u32-u32-snprintf.c: Likewise.
57604         * lib/unistdio/u32-u32-sprintf.c: Likewise.
57605         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
57606         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
57607         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
57608         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
57609         * lib/unistdio/u32-vasnprintf.c: Likewise.
57610         * lib/unistdio/u32-vasprintf.c: Likewise.
57611         * lib/unistdio/u32-vsnprintf.c: Likewise.
57612         * lib/unistdio/u32-vsprintf.c: Likewise.
57613         * lib/unistdio/u8-asnprintf.c: Likewise.
57614         * lib/unistdio/u8-asprintf.c: Likewise.
57615         * lib/unistdio/u8-printf-parse.c: Likewise.
57616         * lib/unistdio/u8-snprintf.c: Likewise.
57617         * lib/unistdio/u8-sprintf.c: Likewise.
57618         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
57619         * lib/unistdio/u8-u8-asprintf.c: Likewise.
57620         * lib/unistdio/u8-u8-snprintf.c: Likewise.
57621         * lib/unistdio/u8-u8-sprintf.c: Likewise.
57622         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
57623         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
57624         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
57625         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
57626         * lib/unistdio/u8-vasnprintf.c: Likewise.
57627         * lib/unistdio/u8-vasprintf.c: Likewise.
57628         * lib/unistdio/u8-vsnprintf.c: Likewise.
57629         * lib/unistdio/u8-vsprintf.c: Likewise.
57630         * lib/unistdio/ulc-asnprintf.c: Likewise.
57631         * lib/unistdio/ulc-asprintf.c: Likewise.
57632         * lib/unistdio/ulc-printf-parse.c: Likewise.
57633         * lib/unistdio/ulc-snprintf.c: Likewise.
57634         * lib/unistdio/ulc-sprintf.c: Likewise.
57635         * lib/unistdio/ulc-vasnprintf.c: Likewise.
57636         * lib/unistdio/ulc-vasprintf.c: Likewise.
57637         * lib/unistdio/ulc-vsnprintf.c: Likewise.
57638         * lib/unistdio/ulc-vsprintf.c: Likewise.
57639         * lib/unistr.h: Likewise.
57640         * lib/unistr/u-cpy-alloc.h: Likewise.
57641         * lib/unistr/u-cpy.h: Likewise.
57642         * lib/unistr/u-endswith.h: Likewise.
57643         * lib/unistr/u-move.h: Likewise.
57644         * lib/unistr/u-set.h: Likewise.
57645         * lib/unistr/u-startswith.h: Likewise.
57646         * lib/unistr/u-stpcpy.h: Likewise.
57647         * lib/unistr/u-stpncpy.h: Likewise.
57648         * lib/unistr/u-strcat.h: Likewise.
57649         * lib/unistr/u-strcpy.h: Likewise.
57650         * lib/unistr/u-strcspn.h: Likewise.
57651         * lib/unistr/u-strdup.h: Likewise.
57652         * lib/unistr/u-strlen.h: Likewise.
57653         * lib/unistr/u-strncat.h: Likewise.
57654         * lib/unistr/u-strncpy.h: Likewise.
57655         * lib/unistr/u-strnlen.h: Likewise.
57656         * lib/unistr/u-strpbrk.h: Likewise.
57657         * lib/unistr/u-strspn.h: Likewise.
57658         * lib/unistr/u-strstr.h: Likewise.
57659         * lib/unistr/u-strtok.h: Likewise.
57660         * lib/unistr/u16-check.c: Likewise.
57661         * lib/unistr/u16-chr.c: Likewise.
57662         * lib/unistr/u16-cmp.c: Likewise.
57663         * lib/unistr/u16-cpy-alloc.c: Likewise.
57664         * lib/unistr/u16-cpy.c: Likewise.
57665         * lib/unistr/u16-endswith.c: Likewise.
57666         * lib/unistr/u16-mblen.c: Likewise.
57667         * lib/unistr/u16-mbsnlen.c: Likewise.
57668         * lib/unistr/u16-mbtouc-aux.c: Likewise.
57669         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
57670         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
57671         * lib/unistr/u16-mbtouc.c: Likewise.
57672         * lib/unistr/u16-mbtoucr.c: Likewise.
57673         * lib/unistr/u16-move.c: Likewise.
57674         * lib/unistr/u16-next.c: Likewise.
57675         * lib/unistr/u16-prev.c: Likewise.
57676         * lib/unistr/u16-set.c: Likewise.
57677         * lib/unistr/u16-startswith.c: Likewise.
57678         * lib/unistr/u16-stpcpy.c: Likewise.
57679         * lib/unistr/u16-stpncpy.c: Likewise.
57680         * lib/unistr/u16-strcat.c: Likewise.
57681         * lib/unistr/u16-strchr.c: Likewise.
57682         * lib/unistr/u16-strcmp.c: Likewise.
57683         * lib/unistr/u16-strcpy.c: Likewise.
57684         * lib/unistr/u16-strcspn.c: Likewise.
57685         * lib/unistr/u16-strdup.c: Likewise.
57686         * lib/unistr/u16-strlen.c: Likewise.
57687         * lib/unistr/u16-strmblen.c: Likewise.
57688         * lib/unistr/u16-strmbtouc.c: Likewise.
57689         * lib/unistr/u16-strncat.c: Likewise.
57690         * lib/unistr/u16-strncmp.c: Likewise.
57691         * lib/unistr/u16-strncpy.c: Likewise.
57692         * lib/unistr/u16-strnlen.c: Likewise.
57693         * lib/unistr/u16-strpbrk.c: Likewise.
57694         * lib/unistr/u16-strrchr.c: Likewise.
57695         * lib/unistr/u16-strspn.c: Likewise.
57696         * lib/unistr/u16-strstr.c: Likewise.
57697         * lib/unistr/u16-strtok.c: Likewise.
57698         * lib/unistr/u16-to-u32.c: Likewise.
57699         * lib/unistr/u16-to-u8.c: Likewise.
57700         * lib/unistr/u16-uctomb-aux.c: Likewise.
57701         * lib/unistr/u16-uctomb.c: Likewise.
57702         * lib/unistr/u32-check.c: Likewise.
57703         * lib/unistr/u32-chr.c: Likewise.
57704         * lib/unistr/u32-cmp.c: Likewise.
57705         * lib/unistr/u32-cpy-alloc.c: Likewise.
57706         * lib/unistr/u32-cpy.c: Likewise.
57707         * lib/unistr/u32-endswith.c: Likewise.
57708         * lib/unistr/u32-mblen.c: Likewise.
57709         * lib/unistr/u32-mbsnlen.c: Likewise.
57710         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
57711         * lib/unistr/u32-mbtouc.c: Likewise.
57712         * lib/unistr/u32-mbtoucr.c: Likewise.
57713         * lib/unistr/u32-move.c: Likewise.
57714         * lib/unistr/u32-next.c: Likewise.
57715         * lib/unistr/u32-prev.c: Likewise.
57716         * lib/unistr/u32-set.c: Likewise.
57717         * lib/unistr/u32-startswith.c: Likewise.
57718         * lib/unistr/u32-stpcpy.c: Likewise.
57719         * lib/unistr/u32-stpncpy.c: Likewise.
57720         * lib/unistr/u32-strcat.c: Likewise.
57721         * lib/unistr/u32-strchr.c: Likewise.
57722         * lib/unistr/u32-strcmp.c: Likewise.
57723         * lib/unistr/u32-strcpy.c: Likewise.
57724         * lib/unistr/u32-strcspn.c: Likewise.
57725         * lib/unistr/u32-strdup.c: Likewise.
57726         * lib/unistr/u32-strlen.c: Likewise.
57727         * lib/unistr/u32-strmblen.c: Likewise.
57728         * lib/unistr/u32-strmbtouc.c: Likewise.
57729         * lib/unistr/u32-strncat.c: Likewise.
57730         * lib/unistr/u32-strncmp.c: Likewise.
57731         * lib/unistr/u32-strncpy.c: Likewise.
57732         * lib/unistr/u32-strnlen.c: Likewise.
57733         * lib/unistr/u32-strpbrk.c: Likewise.
57734         * lib/unistr/u32-strrchr.c: Likewise.
57735         * lib/unistr/u32-strspn.c: Likewise.
57736         * lib/unistr/u32-strstr.c: Likewise.
57737         * lib/unistr/u32-strtok.c: Likewise.
57738         * lib/unistr/u32-to-u16.c: Likewise.
57739         * lib/unistr/u32-to-u8.c: Likewise.
57740         * lib/unistr/u32-uctomb.c: Likewise.
57741         * lib/unistr/u8-check.c: Likewise.
57742         * lib/unistr/u8-chr.c: Likewise.
57743         * lib/unistr/u8-cmp.c: Likewise.
57744         * lib/unistr/u8-cpy-alloc.c: Likewise.
57745         * lib/unistr/u8-cpy.c: Likewise.
57746         * lib/unistr/u8-endswith.c: Likewise.
57747         * lib/unistr/u8-mblen.c: Likewise.
57748         * lib/unistr/u8-mbsnlen.c: Likewise.
57749         * lib/unistr/u8-mbtouc-aux.c: Likewise.
57750         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
57751         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
57752         * lib/unistr/u8-mbtouc.c: Likewise.
57753         * lib/unistr/u8-mbtoucr.c: Likewise.
57754         * lib/unistr/u8-move.c: Likewise.
57755         * lib/unistr/u8-next.c: Likewise.
57756         * lib/unistr/u8-prev.c: Likewise.
57757         * lib/unistr/u8-set.c: Likewise.
57758         * lib/unistr/u8-startswith.c: Likewise.
57759         * lib/unistr/u8-stpcpy.c: Likewise.
57760         * lib/unistr/u8-stpncpy.c: Likewise.
57761         * lib/unistr/u8-strcat.c: Likewise.
57762         * lib/unistr/u8-strchr.c: Likewise.
57763         * lib/unistr/u8-strcmp.c: Likewise.
57764         * lib/unistr/u8-strcpy.c: Likewise.
57765         * lib/unistr/u8-strcspn.c: Likewise.
57766         * lib/unistr/u8-strdup.c: Likewise.
57767         * lib/unistr/u8-strlen.c: Likewise.
57768         * lib/unistr/u8-strmblen.c: Likewise.
57769         * lib/unistr/u8-strmbtouc.c: Likewise.
57770         * lib/unistr/u8-strncat.c: Likewise.
57771         * lib/unistr/u8-strncmp.c: Likewise.
57772         * lib/unistr/u8-strncpy.c: Likewise.
57773         * lib/unistr/u8-strnlen.c: Likewise.
57774         * lib/unistr/u8-strpbrk.c: Likewise.
57775         * lib/unistr/u8-strrchr.c: Likewise.
57776         * lib/unistr/u8-strspn.c: Likewise.
57777         * lib/unistr/u8-strstr.c: Likewise.
57778         * lib/unistr/u8-strtok.c: Likewise.
57779         * lib/unistr/u8-to-u16.c: Likewise.
57780         * lib/unistr/u8-to-u32.c: Likewise.
57781         * lib/unistr/u8-uctomb-aux.c: Likewise.
57782         * lib/unistr/u8-uctomb.c: Likewise.
57783         * lib/unitypes.h: Likewise.
57784         * lib/uniwidth.h: Likewise.
57785         * lib/uniwidth/cjk.h: Likewise.
57786         * lib/uniwidth/u16-strwidth.c: Likewise.
57787         * lib/uniwidth/u16-width.c: Likewise.
57788         * lib/uniwidth/u32-strwidth.c: Likewise.
57789         * lib/uniwidth/u32-width.c: Likewise.
57790         * lib/uniwidth/u8-strwidth.c: Likewise.
57791         * lib/uniwidth/u8-width.c: Likewise.
57792         * lib/uniwidth/width.c: Likewise.
57793
57794 2007-10-07  Bruno Haible  <bruno@clisp.org>
57795
57796         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
57797         The file is still under LGPL (see modules/inttypes).
57798
57799 2007-10-06  Bruno Haible  <bruno@clisp.org>
57800
57801         * modules/trunc (Dependencies): Add 'extensions'.
57802         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
57803         Reported by Ben Pfaff <blp@gnu.org>.
57804
57805 2007-10-06  Bruno Haible  <bruno@clisp.org>
57806
57807         * modules/freopen-tests: New file.
57808         * tests/test-freopen.c: New file.
57809
57810         * modules/fopen-tests: New file.
57811         * tests/test-fopen.c: New file.
57812
57813         * modules/fopen: New file.
57814         * lib/fopen.c: New file.
57815         * m4/fopen.m4: New file.
57816         * modules/freopen: New file.
57817         * lib/freopen.c: New file.
57818         * m4/freopen.m4: New file.
57819         * lib/stdio.in.h (fopen, freopen): New declarations.
57820         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
57821         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57822         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
57823         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57824         * doc/functions/fopen.texi: Mention the 'fopen' module.
57825         * doc/functions/freopen.texi: Mention the 'freopen' module.
57826
57827 2007-10-06  Bruno Haible  <bruno@clisp.org>
57828
57829         * modules/open-tests: New file.
57830         * tests/test-open.c: New file.
57831
57832         * modules/open: New file.
57833         * lib/open.c: New file.
57834         * m4/open.m4: New file.
57835         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
57836         lib/open.c does.
57837         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
57838         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
57839         macros.
57840         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
57841         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
57842         REPLACE_OPEN.
57843         * doc/functions/open.texi: Mention the 'open' module.
57844
57845 2007-10-04  Bruno Haible  <bruno@clisp.org>
57846
57847         * modules/ceill-tests: New file.
57848         * tests/test-ceill.c: New file.
57849
57850         * modules/ceill: New file.
57851         * lib/ceill.c: Replace entire file.
57852         * m4/ceill.m4: New file.
57853         * lib/math.in.h (ceill): Replace declaration.
57854         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
57855         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
57856         * doc/functions/ceill.texi: Mention the 'ceill' module.
57857         * modules/mathl (Files): Remove lib/ceill.c.
57858         (Depends-on): Add ceill.
57859
57860 2007-10-04  Bruno Haible  <bruno@clisp.org>
57861
57862         * modules/ceilf-tests: New file.
57863         * tests/test-ceilf.c: New file.
57864
57865         * modules/ceilf: New file.
57866         * lib/ceil.c: New file.
57867         * lib/ceilf.c: New file.
57868         * m4/ceilf.m4: New file.
57869         * lib/math.in.h (ceilf): New declaration.
57870         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
57871         HAVE_DECL_CEILF.
57872         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
57873         HAVE_DECL_CEILF.
57874         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
57875
57876 2007-10-04  Bruno Haible  <bruno@clisp.org>
57877
57878         * modules/floorl-tests: New file.
57879         * tests/test-floorl.c: New file.
57880
57881         * modules/floorl: New file.
57882         * lib/floorl.c: Replace entire file.
57883         * m4/floorl.m4: New file.
57884         * lib/math.in.h (floorl): Replace declaration.
57885         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
57886         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
57887         * doc/functions/floorl.texi: Mention the 'floorl' module.
57888         * modules/mathl (Files): Remove lib/floorl.c.
57889         (Depends-on): Add floorl.
57890
57891 2007-10-04  Bruno Haible  <bruno@clisp.org>
57892
57893         * modules/floorf-tests: New file.
57894         * tests/test-floorf.c: New file.
57895
57896         * modules/floorf: New file.
57897         * lib/floor.c: New file.
57898         * lib/floorf.c: New file.
57899         * m4/floorf.m4: New file.
57900         * lib/math.in.h (floorf): New declaration.
57901         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
57902         HAVE_DECL_FLOORF.
57903         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
57904         HAVE_DECL_FLOORF.
57905         * doc/functions/floorf.texi: Mention the 'floorf' module.
57906
57907 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
57908             Bruno Haible  <bruno@clisp.org>
57909
57910         Advertise for the Git server instead of the CVS server.
57911         * doc/gnulib-intro.texi (Steady Development): Mention the Git
57912         repository instead of the CVS one.
57913         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
57914         about all VCS systems generically.
57915         * doc/gnulib.texi (Introduction): Capitalize `Git'.
57916
57917 2007-10-04  Bruno Haible  <bruno@clisp.org>
57918
57919         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
57920         means.
57921         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
57922
57923 2007-10-04  Bruno Haible  <bruno@clisp.org>
57924
57925         * modules/truncl-tests: New file.
57926         * tests/test-truncl.c: New file.
57927
57928         * modules/truncl: New file.
57929         * lib/truncl.c: New file.
57930         * m4/truncl.m4: New file.
57931         * lib/math.in.h (truncl): New declaration.
57932         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
57933         HAVE_DECL_TRUNCL.
57934         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
57935         HAVE_DECL_TRUNCL.
57936         * doc/functions/truncl.texi: Mention the 'truncl' module.
57937
57938 2007-10-04  Bruno Haible  <bruno@clisp.org>
57939
57940         * modules/truncf-tests: New file.
57941         * tests/test-truncf.c: New file.
57942
57943         * modules/truncf: New file.
57944         * lib/trunc.c: Make paramerizable through USE_* macros.
57945         * lib/truncf.c: New file.
57946         * m4/truncf.m4: New file.
57947         * lib/math.in.h (truncf): New declaration.
57948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
57949         HAVE_DECL_TRUNCF.
57950         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
57951         HAVE_DECL_TRUNCF.
57952         * doc/functions/truncf.texi: Mention the 'truncf' module.
57953
57954 2007-10-03  Bruno Haible  <bruno@clisp.org>
57955
57956         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57957         augmentation also for tests modules.
57958         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
57959         * modules/atexit-tests (Makefile.am): Likewise.
57960         * modules/binary-io-tests (Makefile.am): Likewise.
57961         * modules/c-strcase-tests (Makefile.am): Likewise.
57962         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
57963         * modules/canonicalize-tests (Makefile.am): Likewise.
57964         * modules/closein-tests (Makefile.am): Likewise.
57965         * modules/fprintf-posix-tests (Makefile.am): Likewise.
57966         * modules/freadahead-tests (Makefile.am): Likewise.
57967         * modules/fseek-tests (Makefile.am): Likewise.
57968         * modules/fseeko-tests (Makefile.am): Likewise.
57969         * modules/ftell-tests (Makefile.am): Likewise.
57970         * modules/ftello-tests (Makefile.am): Likewise.
57971         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
57972         * modules/isnanl-tests (Makefile.am): Likewise.
57973         * modules/lseek-tests (Makefile.am): Likewise.
57974         * modules/mbscasecmp-tests (Makefile.am): Likewise.
57975         * modules/mbscasestr-tests (Makefile.am): Likewise.
57976         * modules/mbschr-tests (Makefile.am): Likewise.
57977         * modules/mbscspn-tests (Makefile.am): Likewise.
57978         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
57979         * modules/mbspbrk-tests (Makefile.am): Likewise.
57980         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
57981         * modules/mbsrchr-tests (Makefile.am): Likewise.
57982         * modules/mbsspn-tests (Makefile.am): Likewise.
57983         * modules/mbsstr-tests (Makefile.am): Likewise.
57984         * modules/printf-posix-tests (Makefile.am): Likewise.
57985         * modules/snprintf-posix-tests (Makefile.am): Likewise.
57986         * modules/sprintf-posix-tests (Makefile.am): Likewise.
57987         * modules/tsearch-tests (Makefile.am): Likewise.
57988         * modules/uniname/uniname-tests (Makefile.am): Likewise.
57989         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
57990         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
57991         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
57992         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
57993         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
57994         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
57995         * modules/vprintf-posix-tests (Makefile.am): Likewise.
57996         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
57997         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
57998         * modules/xstrtoimax-tests (Makefile.am): Likewise.
57999         * modules/xstrtol-tests (Makefile.am): Likewise.
58000         * modules/xstrtoumax-tests (Makefile.am): Likewise.
58001         * modules/yesno-tests (Makefile.am): Likewise.
58002
58003 2007-10-03  Bruno Haible  <bruno@clisp.org>
58004
58005         * modules/trunc-tests: New file.
58006         * tests/test-trunc.c: New file.
58007
58008         * modules/trunc: New file.
58009         * lib/trunc.c: New file.
58010         * m4/trunc.m4: New file.
58011         * lib/math.in.h (trunc): New declaration.
58012         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
58013         HAVE_DECL_TRUNC.
58014         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
58015         HAVE_DECL_TRUNC.
58016         * doc/functions/trunc.texi: Mention the 'trunc' module.
58017
58018 2007-10-03  Bruno Haible  <bruno@clisp.org>
58019
58020         * tests/test-fpending.c: New file, mostly copied
58021         from coreutils/lib/t-fpending.c.
58022         * modules/fpending-tests: New file.
58023
58024 2007-10-03  Bruno Haible  <bruno@clisp.org>
58025
58026         Port the stdio extensions to QNX (untested).
58027         * lib/fseterr.c (fseterr): Add support for QNX.
58028         * lib/fbufmode.c (fbufmode): Likewise.
58029         * lib/freadable.c (freadable): Likewise.
58030         * lib/fwritable.c (fwritable): Likewise.
58031         * lib/freading.c (freading): Likewise.
58032         * lib/fwriting.c (fwriting): Likewise.
58033         * lib/freadahead.c (freadahed): Likewise.
58034         * lib/fpurge.c (fpurge): Likewise.
58035         * lib/fseeko.c (rpl_fseeko): Likewise.
58036
58037 2007-10-03  Bruno Haible  <bruno@clisp.org>
58038             Jim Meyering  <jim@meyering.net>
58039             Eric Blake  <ebb9@byu.net>
58040
58041         * doc/relocatable.texi: Use @command instead of @program.
58042
58043 2007-10-02  Jim Meyering  <jim@meyering.net>
58044
58045         Perform one more "_.h" -> ".in.h" substitution.
58046         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
58047         instead of unistd_.h here, too.
58048
58049 2007-10-01  Bruno Haible  <bruno@clisp.org>
58050
58051         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
58052         Needed for the alloca-opt module.
58053
58054 2007-09-30  Bruno Haible  <bruno@clisp.org>
58055
58056         * lib/alloca.in.h: Renamed from lib/alloca_.h.
58057         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
58058         alloca_.h.
58059         * lib/argz.in.h: Renamed from lib/argz_.h.
58060         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
58061         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
58062         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
58063         byteswap_.h.
58064         * lib/dirent.in.h: Renamed from lib/dirent_.h.
58065         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
58066         dirent_.h.
58067         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
58068         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
58069         fcntl_.h.
58070         * lib/float.in.h: Renamed from lib/float_.h.
58071         * modules/float (Files, Makefile.am): Use float.in.h instead of
58072         float_.h.
58073         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
58074         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
58075         fnmatch_.h.
58076         * lib/getopt.in.h: Renamed from lib/getopt_.h.
58077         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
58078         getopt_.h.
58079         * lib/glob.in.h: Renamed from lib/glob_.h.
58080         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
58081         * lib/iconv.in.h: Renamed from lib/iconv_.h.
58082         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
58083         iconv_.h.
58084         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
58085         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
58086         inttypes_.h.
58087         * lib/locale.in.h: Renamed from lib/locale_.h.
58088         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
58089         locale_.h.
58090         * lib/math.in.h: Renamed from lib/math_.h.
58091         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
58092         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
58093         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
58094         of netinet_in_.h. Add dependency.
58095         * lib/poll.in.h: Renamed from lib/poll_.h.
58096         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
58097         * lib/search.in.h: Renamed from lib/search_.h.
58098         * modules/search (Files, Makefile.am): Use search.in.h instead of
58099         search_.h.
58100         * lib/signal.in.h: Renamed from lib/signal_.h.
58101         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
58102         _signal.h.
58103         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
58104         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
58105         stdbool_.h.
58106         * lib/stdint.in.h: Renamed from lib/stdint_.h.
58107         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
58108         stdint_.h.
58109         * lib/stdio.in.h: Renamed from lib/stdio_.h.
58110         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
58111         stdio_.h.
58112         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
58113         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
58114         stdlib_.h.
58115         * lib/string.in.h: Renamed from lib/string_.h.
58116         * modules/string (Files, Makefile.am): Use string.in.h instead of
58117         string_.h.
58118         * doc/gnulib-tool.texi (Initial import): Update.
58119         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
58120         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
58121         of sys_select_.h. Add dependency.
58122         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
58123         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
58124         of sys_socket_.h.
58125         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
58126         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
58127         sys_stat_.h.
58128         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
58129         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
58130         sys_time_.h.
58131         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
58132         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
58133         sysexits_.h.
58134         * lib/time.in.h: Renamed from lib/time_.h.
58135         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
58136         * lib/unistd.in.h: Renamed from lib/unistd_.h.
58137         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
58138         unistd_.h.
58139         * lib/wchar.in.h: Renamed from lib/wchar_.h.
58140         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
58141         wchar_.h.
58142         * lib/wctype.in.h: Renamed from lib/wctype_.h.
58143         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
58144         wctype_.h.
58145         * build-aux/bootstrap (slurp): Update.
58146         * lib/.cppi-disable: Update.
58147
58148 2007-09-30  Bruno Haible  <bruno@clisp.org>
58149
58150         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
58151         Needed on BeOS.
58152
58153 2007-09-30  Bruno Haible  <bruno@clisp.org>
58154
58155         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
58156
58157 2007-09-29  Bruno Haible  <bruno@clisp.org>
58158
58159         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
58160
58161 2007-09-29  Bruno Haible  <bruno@clisp.org>
58162
58163         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
58164         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
58165         * build-aux/install-reloc: Compile also areadlink.c.
58166         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
58167
58168 2007-09-29  Bruno Haible  <bruno@clisp.org>
58169
58170         * gnulib-tool (func_emit_initmacro_done): Indentation.
58171
58172 2007-09-29  Bruno Haible  <bruno@clisp.org>
58173
58174         * README: Add CVS checkout update instructions.
58175         Info from Bob Proulx <bob@proulx.com>.
58176
58177 2007-09-28  Eric Blake  <ebb9@byu.net>
58178
58179         Provide move-if-change.
58180         * build-aux/move-if-change: New file, based on best practice
58181         rather than any canonical upstream location.
58182
58183 2007-09-28  Jim Meyering  <jim@meyering.net>
58184
58185         Fix canonicalize loop-detection corner case.
58186         Do not attempt to stat the symlink values stored via seen_triple.
58187         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
58188         on linux-2.6.18, (but not 2.6.22).
58189         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
58190         triple_compare.  The former compares dev,ino,filename, while the latter
58191         would actually stat dirname(filename) when dev and ino were equal.
58192         * lib/hash-triple.c: Install <string.h>.
58193         (STREQ): Define.
58194         (triple_compare_ino_str): New function.
58195         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
58196
58197 2007-09-28  Eric Blake  <ebb9@byu.net>
58198
58199         Enforce that AC_REPLACE_FUNCS files exist.
58200         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
58201         override check for typos.
58202
58203         Fix test-closein on Solaris 10.
58204         * tests/test-closein.c (main): Don't assume stdin can be inherited
58205         closed on all systems.
58206         * tests/test-closein.sh: Likewise.
58207         Reported by Piotr Tarnowski.
58208
58209 2007-09-28  Jim Meyering  <jim@meyering.net>
58210
58211         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
58212
58213 2007-09-27  Jim Meyering  <jim@meyering.net>
58214
58215         canonicalize: Avoid a false-positive cycle failure.
58216         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
58217         Sort.  Remove cycle-check.
58218         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
58219         not cycle-check.h.
58220         (seen_triple): New function.
58221         (canonicalize_filename_mode): Use it instead of cycle-check.
58222         * tests/test-canonicalize.c: Add a test for this bug.
58223         * tests/test-canonicalize.sh: Set up and run the test.
58224
58225         New module, file-set, from coreutils.
58226         * modules/file-set: Define it.
58227         * lib/file-set.c, lib/file-set.h: Implement.
58228
58229         New module, hash-triple, from coreutils.
58230         * modules/hash-triple: Define it.
58231         * lib/hash-triple.c, lib/hash-triple.h: Implement.
58232
58233 2007-09-25  Eric Blake  <ebb9@byu.net>
58234
58235         Fix strerror on Interix.
58236         * lib/string_.h (strerror): Declare replacement.
58237         * doc/functions/strerror.texi (strerror): Document the Interix
58238         shortcoming.
58239         * modules/string (Makefile.am): Support new hooks.
58240         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
58241         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
58242         gl_FUNC_STRERROR_SEPARATE.
58243         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
58244         * lib/strerror.c (rpl_strerror): Provide replacement.
58245         * modules/strerror (Depends-on): Add string.
58246         (configure.ac): Detect use of module.
58247         * tests/test-strerror.c: New file.
58248         * modules/strerror-tests: New test module.
58249         * modules/argp (Depends-on): Add strerror.
58250         * modules/error (Depends-on): Likewise.
58251         Reported by Martin Koeppe.
58252
58253 2007-09-24  Bruno Haible  <bruno@clisp.org>
58254
58255         * README: Update git instructions.
58256
58257 2007-09-24  Eric Blake  <ebb9@byu.net>
58258
58259         Revert fpending breakage from 2007-09-08.
58260         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
58261         __fpending.c.
58262
58263 2007-09-24  Jim Meyering  <jim@meyering.net>
58264
58265         filenamecat.c: Add a test.
58266         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
58267         showing how the function works when DIR is the empty string.
58268
58269 2007-09-21  Simon Josefsson  <simon@josefsson.org>
58270
58271         * tests/test-canonicalize.sh: Turn on executable bit.
58272
58273 2007-09-19  Eric Blake  <ebb9@byu.net>
58274
58275         * README: Update CVS instructions.
58276
58277 2007-09-18  Bruno Haible  <bruno@clisp.org>
58278
58279         * modules/areadlink: New file.
58280         * lib/areadlink.h (areadlink): New declaration.
58281         * lib/areadlink.c: New file, based on lib/xreadlink.c.
58282
58283 2007-09-17  Jim Meyering  <jim@meyering.net>
58284
58285         * lib/savewd.c (ESTALE) [!defined]: Define.
58286         Reported to be required on Interix by Martin Koeppe.
58287
58288 2007-09-17  Bruno Haible  <bruno@clisp.org>
58289
58290         * gnulib-tool (func_version): Use $version.
58291
58292 2007-09-16  Bruno Haible  <bruno@clisp.org>
58293
58294         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
58295         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
58296         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
58297         Reported by Greg Schafer <gschafer@zip.com.au>.
58298
58299 2007-09-15  Bruno Haible  <bruno@clisp.org>
58300
58301         * gnulib-tool (sed): Try a little harder to make bash understand the
58302         alias.
58303         Reported by Bruce Korb <bruce.korb@gmail.com>.
58304
58305 2007-09-13  Eric Blake  <ebb9@byu.net>
58306
58307         * ChangeLog: Remove conflict markers.
58308
58309 2007-09-13  Simon Josefsson  <simon@josefsson.org>
58310
58311         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
58312         Reported by Bruno Haible <bruno@clisp.org>.
58313
58314 2007-09-12  Bruno Haible  <bruno@clisp.org>
58315
58316         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
58317         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
58318         is not defined.
58319
58320 2007-09-12  Eric Blake  <ebb9@byu.net>
58321
58322         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
58323         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
58324         Autoconf definition.
58325         * modules/euidaccess (Depends-on): Add extensions, for
58326         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
58327         * modules/fnmatch (Depends-on): Likewise.
58328         * modules/getaddrinfo (Depends-on): Likewise.
58329         * modules/getdelim (Depends-on): Likewise.
58330         * modules/getline (Depends-on): Likewise.
58331         * modules/getsubopt (Depends-on): Likewise.
58332         * modules/gettext (Depends-on): Likewise.
58333         * modules/group-member (Depends-on): Likewise.
58334         * modules/mbchar (Depends-on): Likewise.
58335         * modules/memmem (Depends-on): Likewise.
58336         * modules/mempcpy (Depends-on): Likewise.
58337         * modules/memrchr (Depends-on): Likewise.
58338         * modules/pagealign_alloc (Depends-on): Likewise.
58339         * modules/readutmp (Depends-on): Likewise.
58340         * modules/stpcpy (Depends-on): Likewise.
58341         * modules/stpncpy (Depends-on): Likewise.
58342         * modules/strchrnul (Depends-on): Likewise.
58343         * modules/strndup (Depends-on): Likewise.
58344         * modules/strsep (Depends-on): Likewise.
58345         * modules/strverscmp (Depends-on): Likewise.
58346         * modules/vasprintf (Depends-on): Likewise.
58347         * modules/wcwidth (Depends-on): Likewise.
58348         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
58349         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
58350         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
58351         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
58352         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58353         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58354         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
58355         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58356         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
58357         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58358         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58359         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58360         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58361         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
58362         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
58363         * m4/readutmp.m4 (gl_READUTMP): Likewise.
58364         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58365         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58366         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58367         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58368         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58369         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58370         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58371         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
58372         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
58373         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58374         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
58375         so that lock.m4 can be used in gettext without extensions module.
58376
58377 2007-09-11  Bruno Haible  <bruno@clisp.org>
58378
58379         * m4/isc-posix.m4: Remove file.
58380         Suggested by Eric Blake.
58381
58382 2007-09-11  Eric Blake  <ebb9@byu.net>
58383
58384         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
58385
58386 2007-09-10  Bruno Haible  <bruno@clisp.org>
58387
58388         * posix-modules: Fix typo in error message.
58389         Reported by Matt <mkraai@beckman.com>.
58390
58391 2007-09-09  Bruno Haible  <bruno@clisp.org>
58392
58393         * doc/functions/getdelim.texi: Update list of platforms lacking the
58394         function.
58395         * doc/functions/getline.texi: Likewise.
58396
58397 2007-09-09  Jim Meyering  <jim@meyering.net>
58398
58399         * lib/hash.c (hash_initialize): Detect calloc failure.
58400         Reported by Bruno Haible.
58401
58402 2007-09-09  Bruno Haible  <bruno@clisp.org>
58403
58404         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
58405         malloc or realloc fails.
58406
58407 2007-09-09  Bruno Haible  <bruno@clisp.org>
58408
58409         * modules/getcwd (Depends-on): Add malloc-posix.
58410         * modules/glob (Depends-on): Likewise.
58411         * modules/putenv (Depends-on): Likewise.
58412         * modules/strdup (Depends-on): Likewise.
58413         * modules/getdelim (Depends-on): Add realloc-posix.
58414         * modules/read-file (Depends-on): Likewise.
58415
58416 2007-09-09  Bruno Haible  <bruno@clisp.org>
58417
58418         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
58419         (gl_FUNC_MALLOC_POSIX): Require it.
58420         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
58421         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
58422         * modules/realloc (Files): Add m4/malloc.m4.
58423         * modules/calloc (Files): Likewise.
58424
58425 2007-09-09  Bruno Haible  <bruno@clisp.org>
58426
58427         * modules/malloc-posix: New file.
58428         * modules/malloc (Depends-on): Add malloc-posix.
58429         * lib/malloc.c: Include errno.h.
58430         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
58431         and a POSIX-compatible malloc into a single function. Set ENOMEM
58432         when returning NULL.
58433         * m4/malloc.m4: New file.
58434         * doc/functions/malloc.texi: Mention the malloc-posix module.
58435         * lib/stdlib_.h (malloc): New declaration.
58436         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58437         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
58438         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
58439         and HAVE_MALLOC_POSIX.
58440
58441 2007-09-09  Bruno Haible  <bruno@clisp.org>
58442
58443         * modules/realloc-posix: New file.
58444         * modules/realloc (Depends-on): Add realloc-posix.
58445         * lib/realloc.c: Include errno.h.
58446         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
58447         and a POSIX-compatible realloc into a single function. Set ENOMEM
58448         when returning NULL.
58449         * m4/realloc.m4: New file.
58450         * doc/functions/realloc.texi: Mention the realloc-posix module.
58451         * lib/stdlib_.h (realloc): New declaration.
58452         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58453         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
58454         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
58455         and HAVE_REALLOC_POSIX.
58456
58457 2007-09-09  Bruno Haible  <bruno@clisp.org>
58458
58459         * modules/calloc-posix: New file.
58460         * modules/calloc (Depends-on): Add calloc-posix.
58461         * lib/calloc.c: Include errno.h.
58462         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
58463         and a POSIX-compatible calloc into a single function. Set ENOMEM
58464         when returning NULL.
58465         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
58466         * doc/functions/calloc.texi: Mention the calloc-posix module.
58467         * lib/stdlib_.h (calloc): New declaration.
58468         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58469         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
58470         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
58471         and HAVE_CALLOC_POSIX.
58472
58473 2007-09-09  Bruno Haible  <bruno@clisp.org>
58474
58475         Allow for modules to show an arbitrary notice.
58476         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
58477         * gnulib-tool: New option --extract-notice.
58478         (func_usage): Document it.
58479         (sed_extract_prog): Update.
58480         (func_get_notice): New function.
58481         (func_modules_notice): New function.
58482         (func_import, func_create_testdir): Invoke it.
58483         Suggested by Jim Meyering.
58484
58485 2007-09-09  Bruno Haible  <bruno@clisp.org>
58486
58487         * gnulib-tool: New options --verbose, --quiet.
58488         (func_usage): Document them.
58489         (verbose): New variable.
58490         (func_execute_command): New function.
58491         (func_import): Don't show the module list and the file list if
58492         $verbose < 0.
58493         (func_create_testdir): Likewise. Use func_execute_command.
58494         (func_create_megatestdir): Use func_execute_command.
58495
58496 2007-09-08  Bruno Haible  <bruno@clisp.org>
58497
58498         * gnulib-tool (func_import): Prefer rsync over wget when available,
58499         for fetching the PO files.
58500
58501 2007-09-08  Bruno Haible  <bruno@clisp.org>
58502
58503         * posix-modules: New file. Portions copied from gnulib-tool.
58504         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
58505
58506 2007-09-08  Jim Meyering  <jim@meyering.net>
58507
58508         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
58509         * lib/fpending.h: Rename from __fpending.h.
58510         * lib/fpending.c: Rename from __fpending.c.
58511         Include "fpending.h", not "__fpending.h".
58512         * lib/__fpending.h, lib/__fpending.c: Remove files.
58513         * modules/fpending (Files): Reflect new file names.
58514         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
58515
58516 2007-09-08  Bruno Haible  <bruno@clisp.org>
58517
58518         * m4/inttypes-h.m4: Remove stub file.
58519
58520 2007-09-07  Simon Josefsson  <simon@josefsson.org>
58521
58522         * doc/headers/stdint.texi: Discuss #include_next issue.
58523
58524 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58525
58526         * build-aux/bootstrap: Remove obsolete comment about wget --help.
58527
58528 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58529
58530         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
58531         in variable name.
58532
58533 2007-09-03  Jim Meyering  <jim@meyering.net>
58534
58535         New module: git-version-gen.
58536         * modules/git-version-gen: New file.
58537
58538         Import changes from coreutils for bootstrap script.
58539
58540         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
58541
58542         bootstrap: uses rsync to download the .po files
58543         * build-aux/bootstrap (po_download_command_format): New global.
58544         (download_po_files): Use rsync.
58545         (update_po_files): Don't remove .po files after download,
58546         so future rsync runs can take advantage of the copies.
58547
58548         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
58549
58550         Solve the unnecessary-.po-file-regeneration problem once and for all.
58551         * build-aux/bootstrap (download_po_files): New function, renamed from
58552         get_translations.  Now, downloads, but doesn't update LINGUAS.
58553         (update_po_files): New function.
58554
58555         bootstrap: Ignore more.
58556         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
58557         uniwidth to e.g., lib/.gitignore.
58558         (slurp): Handle the sys_stat_.h -> sys mapping, too.
58559
58560         * build-aux/bootstrap: New setting: vc_ignore.
58561         (insert_sorted_if_absent): Create $file if absent.
58562         Adapt to new, possibly empty, list: $vc_ignore.
58563
58564         bootstrap: generate more ignorable names
58565         * build-aux/bootstrap (slurp): When generating ignorable names,
58566         also map .sin to .sed, .gperf to .c, and .y to .c.
58567
58568 2007-09-03  Jim Meyering  <jim@meyering.net>
58569
58570         * build-aux/git-version-gen: New file, from coreutils.  For details, see
58571         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
58572
58573 2007-09-02  Bruno Haible  <bruno@clisp.org>
58574
58575         Fix mis-recognition of 'mcs' on QNX 6.
58576         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
58577         output contains the string "Mono".
58578         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
58579         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
58580
58581 2007-09-01  Bruno Haible  <bruno@clisp.org>
58582
58583         Fix collision between uniwidth/* and linebreak modules.
58584         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
58585         u32_width): Remove declarations.
58586         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
58587         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
58588         streq3, streq2, streq1, streq0): Remove functions.
58589         (STREQ): Remove macro.
58590         (is_cjk_encoding): Remove function.
58591         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
58592         (uc_width, u8_width, u16_width, u32_width): Remove functions.
58593         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
58594         * NEWS: Document the change.
58595
58596 2007-09-01  Bruno Haible  <bruno@clisp.org>
58597
58598         * lib/streq.h: Add double-inclusion guard.
58599
58600 2007-09-01  Karl Berry  <karl@gnu.org>
58601
58602         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
58603
58604 2007-08-28  Jim Meyering  <jim@meyering.net>
58605
58606         Rename mreadlink_with_size to areadlink_with_size.
58607         * NEWS: Document the change.
58608         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
58609         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
58610         * lib/mreadlink.h: Rename this to...
58611         * lib/areadlink.h: ...this.
58612         * modules/mreadlink-with-size: Rename this to...
58613         * modules/areadlink-with-size: ...this.
58614         * lib/canonicalize.c: Reflect the renaming.
58615         * modules/canonicalize: Likewise.
58616
58617 2007-08-26  Bruno Haible  <bruno@clisp.org>
58618
58619         * gnulib-tool (func_import): When deciding which files to remove,
58620         consider also dangling symbolic links.
58621         Reported by Eric Blake.
58622
58623 2007-08-26  Bruno Haible  <bruno@clisp.org>
58624
58625         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
58626
58627 2007-08-23  Simon Josefsson  <simon@josefsson.org>
58628
58629         * lib/readline.c: Don't include getline.h, the prototype is now
58630         found in stdio.h.
58631
58632 2007-08-23  Jim Meyering  <jim@meyering.net>
58633
58634         Getdelim touchup.
58635         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
58636         around the funlockfile call, since funlockfile never sets errno.
58637         Don't set errno upon failed realloc.
58638
58639 2007-08-22  Eric Blake  <ebb9@byu.net>
58640
58641         Getline touchups.
58642         * lib/getdelim.c (getdelim): Revert regression that required *n to
58643         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
58644         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
58645         getdelim, rather than whether implementation is missing.
58646         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
58647         * lib/stdio_.h (getline): Also declare if replacement is
58648         required.
58649         * doc/functions/getdelim.texi: New file.
58650         * doc/functions/getline.texi: Likewise.
58651         * doc/gnulib.texi (Function Substitutes): Add new files.
58652         Reported by Bruno Haible.
58653
58654 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
58655
58656         * users.txt: Add Guile.
58657
58658 2007-08-22  Eric Blake  <ebb9@byu.net>
58659
58660         * tests/test-getdelim.c (main): Use remove, not unlink.
58661         * tests/test-getline.c (main): Likewise.
58662
58663         Move getline and getdelim into stdio.h, per POSIX 200x.
58664         * modules/getline (Files): Remove getline.h.
58665         (Depends-on): Add stdio.
58666         (configure.ac): Add module indicator.
58667         * modules/getdelim (Files): Remove getdelim.h.
58668         (Depends-on): Add stdio.
58669         (configure.ac): Add module indicator.
58670         * modules/stdio (Makefile.am): Work with new indicators.
58671         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
58672         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
58673         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58674         * lib/getdelim.h: Delete.
58675         * lib/getline.h: Delete.
58676         * lib/stdio_.h (getdelim, getline): Declare.
58677         * modules/getdelim-tests: New module.
58678         * modules/getline-tests: Likewise.
58679         * tests/test-getdelim.c: New file.
58680         * tests/test-getline.c: Likewise.
58681         * NEWS: Document the change.
58682         * lib/getline.c: Update choice of header.
58683         * lib/csharpcomp.c: Likewise.
58684         * lib/getpass.c: Likewise.
58685         * lib/javacomp.c: Likewise.
58686         * lib/javaversion.c: Likewise.
58687         * lib/yesno.c: Likewise.
58688         * lib/getdelim.c: Likewise.
58689         (getdelim): Set errno on failure, and avoid memory leak.
58690
58691 2007-08-19  Bruno Haible  <bruno@clisp.org>
58692
58693         * modules/closein (Depends-on): Add freadahead.
58694         * lib/closein.c: Include freadahead.h.
58695         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
58696         is zero.
58697
58698 2007-08-19  Bruno Haible  <bruno@clisp.org>
58699
58700         * modules/freadahead-tests: New file.
58701         * tests/test-freadahead.sh: New file.
58702         * tests/test-freadahead.c: New file.
58703
58704         * modules/freadahead: New file.
58705         * lib/freadahead.h: New file.
58706         * lib/freadahead.c: New file.
58707         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
58708         fbufmode, fpurge, freadable, fwritable.
58709
58710 2007-08-19  Eric Blake  <ebb9@byu.net>
58711
58712         Test yesno in combination with closein.
58713         * lib/yesno.c (yesno): Document use of stdin.
58714         * modules/yesno-tests (Files): New module.
58715         * tests/test-yesno.c (main): New file.
58716         * tests/test-yesno.sh: Likewise.
58717
58718 2007-08-19  Bruno Haible  <bruno@clisp.org>
58719
58720         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
58721         * lib/fseeko.c (rpl_fseeko): Likewise.
58722         * lib/fseterr.c (fseterr): Likewise.
58723
58724 2007-08-19  Bruno Haible  <bruno@clisp.org>
58725
58726         * tests/test-lseek.c (main): Disable a test for BeOS.
58727         * doc/functions/lseek.texi: Document the BeOS bug.
58728
58729 2007-08-19  Bruno Haible  <bruno@clisp.org>
58730             Eric Blake  <ebb9@byu.net>
58731
58732         * lib/lseek.c: Include <sys/stat.h>.
58733         (rpl_lseek): Add workaround code also for Unix platforms.
58734         Needed for BeOS.
58735         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
58736         * doc/functions/lseek.texi: Document BeOS definiency.
58737
58738 2007-08-18  Bruno Haible  <bruno@clisp.org>
58739
58740         * modules/fstrcmp-tests: New file.
58741         * tests/test-fstrcmp.c: New file.
58742
58743 2007-08-18  Bruno Haible  <bruno@clisp.org>
58744
58745         * modules/fstrcmp: New file, from GNU gettext with modifications.
58746         * lib/fstrcmp.h: New file, from GNU gettext.
58747         * lib/fstrcmp.c: New file, from GNU gettext.
58748         * MODULES.html.sh (String handling): Add fstrcmp.
58749
58750 2007-08-18  Bruno Haible  <bruno@clisp.org>
58751
58752         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
58753         'bool'.
58754         (diag, compareseq): Remove const from the ctxt argument.
58755         (USE_HEURISTIC): Undefine at the end.
58756
58757 2007-08-18  Jim Meyering  <jim@meyering.net>
58758
58759         New file: lib/idcache.h
58760         * NEWS: Mention the addition.
58761         * modules/idcache (Files): Add lib/idcache.h
58762         * lib/idcache.c: Include "idcache.h".
58763         Don't include <sys/types.h>.
58764         Add a FIXME comment.
58765         Move file-scoped "static" declarations to the top.
58766         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
58767
58768 2007-08-17  Bruno Haible  <bruno@clisp.org>
58769         and Paul Eggert  <eggert@cs.ucla.edu>
58770
58771         * MODULES.html.sh: Add diffseq.
58772         * modules/diffseq: New file.
58773         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
58774         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
58775
58776 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58777
58778         Import changes from coreutils for bootstrap script.
58779
58780         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
58781
58782         * build-aux/bootstrap (slurp): Work even in environments where
58783         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
58784         current code does not slurp files whose names start with ".", and
58785         this looks like it might be a troublesome area.
58786
58787         2007-07-11  Jim Meyering  <jim@meyering.net>
58788
58789         If there's a GPL vN copyright comment, require that N == 3.
58790
58791         2007-07-08  Jim Meyering  <jim@meyering.net>
58792
58793         Run the coreutils-specific code only if tests/Makefile.am.in exists.
58794         * build-aux/bootstrap (mam_template): Move definition out of loop.
58795
58796         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
58797
58798         * build-aux/bootstrap (symlink_to_dir): Rename function from
58799         symlink_to_gnulib.  Add a directory parameter.  Update all
58800         callers.
58801         (cp_mark_as_generated): Also check for -- and link to -- files in
58802         gl/.
58803
58804         2007-07-08  Jim Meyering  <jim@meyering.net>
58805
58806         Adapt to deeper hierarchy in gnulib.
58807         * build-aux/bootstrap (symlink_to_dir): If the destination
58808         directory doesn't exist, create it. This is required at least for
58809         "lib/uniwidth/cjk.h".
58810
58811         2007-05-15  Jim Meyering  <jim@meyering.net>
58812
58813         * build-aux/bootstrap: Now that generated Makefile.am files
58814         are no longer under version control, they must be created at
58815         bootstrap time.
58816
58817 2007-08-14  Ben Pfaff  <blp@gnu.org>
58818
58819         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
58820
58821 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58822
58823         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
58824         given the changes below.
58825         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
58826         even on hosts that have padding bits beyond the supported 64.
58827
58828 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58829
58830         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
58831         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
58832         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
58833         depends on it.
58834         (xstrtol_error): Remove.
58835         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
58836         but with a different signature.
58837         (ATTRIBUTE_NORETURN, __attribute__): New macros.
58838         * lib/xstrtol-error.c: Include exitfail.h.
58839         (xstrtol_fatal): New function, with a different signature from the
58840         old xstrtol_error, so that the caller need not worry about passing
58841         in an exit status, or about storage management of the option argument.
58842         (xstrtol_error): Now a static function.  Redo signature to
58843         implement xstrtol_fatal.  Output the correct number of hyphens in
58844         front of the option so that the caller need not worry about
58845         storage management.
58846         (N_): New macro.
58847         (_): Remove; not used now.
58848         * modules/xstrtol: Depend on getopt.
58849         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
58850         of old STRTOL_FATAL_ERROR macro.
58851         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
58852         of test program.
58853         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
58854         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
58855
58856 2007-08-08  Eric Blake  <ebb9@byu.net>
58857
58858         * lib/xstrtol-error.c: Add missing include.
58859
58860         Move xstrtol messages into gnulib domain, when --pobase is used.
58861         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
58862         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
58863         * modules/xstrtol (Files): Distribute new file.
58864         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
58865         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
58866         * tests/test-xstrtol.c: ...into new file.
58867         * tests/test-xstrtoul.c: Also test xstrtoul.
58868         * tests/test-xstrtoimax.c: Also test xstrtoimax.
58869         * tests/test-xstrtoumax.c: Also test xstrtoumax.
58870         * tests/test-xstrtol.sh: Drive the tests.
58871         * tests/test-xstrtoimax.sh: Likewise.
58872         * tests/test-xstrtoumax.sh: Likewise.
58873         * modules/xstrtol-tests: New module.
58874         * modules/xstrtoimax-tests: Likewise.
58875         * modules/xstrtoumax-tests: Likewise.
58876
58877 2007-08-08  Jim Meyering  <jim@meyering.net>
58878
58879         New function: mfile_name_concat.
58880         * lib/filenamecat.c (mfile_name_concat): New function, just like
58881         file_name_concat, but return NULL upon failure rather than exiting
58882         with a diagnostic.
58883         * lib/filenamecat.h: Declare it.
58884
58885 2007-08-07  Bruno Haible  <bruno@clisp.org>
58886
58887         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
58888         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
58889         warning from gcc.
58890         Reported by Eric Blake.
58891
58892 2007-08-07  Simon Josefsson  <simon@josefsson.org>
58893
58894         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
58895         * modules/crypto/arcfour (License): Likewise.
58896         * modules/crypto/des-tests (License): Likewise.
58897         * modules/crypto/gc-arctwo-tests (License): Likewise.
58898         * modules/crypto/gc-des-tests (License): Likewise.
58899         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
58900         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
58901         * modules/crypto/gc-md2-tests (License): Likewise.
58902         * modules/crypto/gc-md4-tests (License): Likewise.
58903         * modules/crypto/gc-md5-tests (License): Likewise.
58904         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
58905         * modules/crypto/gc-rijndael-tests (License): Likewise.
58906         * modules/crypto/gc-sha1-tests (License): Likewise.
58907         * modules/crypto/gc-tests (License): Likewise.
58908         * modules/crypto/hmac-md5 (License): Likewise.
58909         * modules/crypto/hmac-sha1 (License): Likewise.
58910         * modules/crypto/md2-tests (License): Likewise.
58911         * modules/crypto/md4-tests (License): Likewise.
58912         * modules/crypto/md5 (License): Likewise.
58913         * modules/crypto/rijndael (License): Likewise.
58914         * modules/crypto/sha1 (License): Likewise.
58915         * modules/memxor (License): Likewise.
58916
58917 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58918         and Bruno Haible  <bruno@clisp.org>
58919
58920         * NEWS: Describe interface changes to human, xstrtol.
58921         * lib/human.h: Include <xstrtol.h>.
58922         (human_options): Return enum strtol_error, not int.  Remove
58923         bool arg; take int * instead.
58924         * lib/human.c: Don't include "gettext.h".
58925         (_): Remove; no longer used.
58926         Don't include <xstrtol.h>, since human.h does it.
58927         (human_options): Adjust to abovementioned interface changes.
58928         Do not report error to stderr; that's now the caller's
58929         responsibility.
58930         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
58931         interface change.
58932         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
58933         Str, Argument_type_string.  All uses changed.  Put " argument"
58934         in diagnostics to make them clearer.  Change wording of suffix
58935         message for clarity.
58936         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
58937         Argument_type_string.
58938         (STRTOL_FATAL_WARN): Remove; no longer used.
58939         * modules/human (Depends-on): Remove gettext-h.
58940
58941 2007-08-06  Simon Josefsson  <simon@josefsson.org>
58942
58943         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
58944
58945 2007-07-31  Bruno Haible  <bruno@clisp.org>
58946
58947         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
58948         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
58949         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
58950
58951 2007-07-31  Bruno Haible  <bruno@clisp.org>
58952
58953         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
58954         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
58955
58956 2007-07-30  Bruno Haible  <bruno@clisp.org>
58957
58958         * modules/base64 (License): Use the synonymous term "LGPLv2+".
58959         * modules/c-ctype (License): Likewise.
58960         * modules/c-strcase (License): Likewise.
58961         * modules/check-version (License): Likewise.
58962         * modules/iconv (License): Likewise.
58963         * modules/iconv_open (License): Likewise.
58964         * modules/read-file (License): Likewise.
58965         * modules/striconv (License): Likewise.
58966         * modules/strverscmp (License): Likewise.
58967         * modules/vasprintf (License): Likewise.
58968         * modules/crypto/des (License): Likewise.
58969         * modules/crypto/gc (License): Likewise.
58970         * modules/crypto/gc-arcfour (License): Likewise.
58971         * modules/crypto/gc-arctwo (License): Likewise.
58972         * modules/crypto/gc-des (License): Likewise.
58973         * modules/crypto/gc-hmac-md5 (License): Likewise.
58974         * modules/crypto/gc-hmac-sha1 (License): Likewise.
58975         * modules/crypto/gc-md2 (License): Likewise.
58976         * modules/crypto/gc-md4 (License): Likewise.
58977         * modules/crypto/gc-md5 (License): Likewise.
58978         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
58979         * modules/crypto/gc-random (License): Likewise.
58980         * modules/crypto/gc-rijndael (License): Likewise.
58981         * modules/crypto/gc-sha1 (License): Likewise.
58982         * modules/crypto/md2 (License): Likewise.
58983         * modules/crypto/md4 (License): Likewise.
58984
58985 2007-07-30  Jim Meyering  <jim@meyering.net>
58986
58987         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
58988         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
58989         it has valid stat data.  This bug would cause du not to count the
58990         sizes of inaccessible directories.
58991         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
58992         in <http://bugzilla.redhat.com/250077>.
58993
58994 2007-07-25  Peter O'Gorman  <peter@pogma.com>
58995             Bruno Haible  <bruno@clisp.org>
58996
58997         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
58998         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
58999         #include_next, gives a diagnostic about it, but reports no error in
59000         the exit code.
59001         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
59002
59003 2007-07-24  Ben Pfaff  <blp@gnu.org>
59004
59005         Improve name: "count-one-bits" is better than "popcount".
59006         * MODULES.html.sh: Update name.
59007         * lib/popcount.h: Renamed lib/count-one-bits.h.
59008         (popcount): Renamed count_one_bits.
59009         (popcountl): Renamed count_one_bits_l.
59010         (popcountll): Renamed count_one_bits_ll.
59011         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
59012         * modules/popcount: Renamed module/count-one-bits.
59013         * modules/popcount-tests: Renamed module/count-one-bits-tests.
59014         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
59015
59016 2007-07-23  Ben Pfaff  <blp@gnu.org>
59017
59018         * lib/popcount.h (popcount32): Reduce size of constants, to allow
59019         better code generation, and add U to large constants to avoid
59020         warnings, in non-GCC case.
59021         Suggested by Bruno Haible.
59022
59023 2007-07-23  Ben Pfaff  <blp@gnu.org>
59024
59025         * lib/popcount.h: Use verify_true instead of if...abort.
59026         * modules/popcount: Depend on verify module.
59027         Suggested by Jim Meyering.
59028
59029 2007-07-23  Bruno Haible  <bruno@clisp.org>
59030
59031         * gnulib-tool (func_import): Create a .cvsignore file also when the
59032         directory is not yet in CVS but the toplevel directory is. When
59033         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
59034         Reported by Karl Berry.
59035
59036 2007-07-22  Ben Pfaff  <blp@gnu.org>
59037
59038         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
59039         case.
59040         Suggested by Eric Blake.
59041
59042 2007-07-22  Ben Pfaff  <blp@gnu.org>
59043
59044         New module: popcount.
59045         * MODULES.html.sh: Add popcount.
59046         * modules/popcount: New file.
59047         * modules/popcount-tests: New file.
59048         * tests/test-popcount.c: New file.
59049         * lib/popcount.h: New file.
59050         * m4/popcount.m4: New file.
59051
59052 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59053
59054         * build-aux/announce-gen: Update to GPLv3.
59055
59056         * build-aux/config.guess: Update from config.
59057
59058 2007-07-21  Bruno Haible  <bruno@clisp.org>
59059
59060         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
59061         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
59062
59063 2007-07-20  Jim Meyering  <jim@meyering.net>
59064
59065         * check-module: Diagnose a self-dependency.
59066
59067 2007-07-19  Bruno Haible  <bruno@clisp.org>
59068
59069         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
59070         empty.
59071         Reported by Eric Blake.
59072
59073 2007-07-18  Bruno Haible  <bruno@clisp.org>
59074
59075         * gnulib-tool: New options --po-base, --po-domain.
59076         (func_usage): Document them.
59077         (pobase, po_domain): New variables.
59078         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
59079         DEFAULT_TEXT_DOMAIN.
59080         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
59081         (func_import): Consider pobase and po_domain. Create a po/ directory.
59082         (func_create_testdir): Set pobase and po_domain to empty.
59083         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
59084         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
59085
59086 2007-07-18  Bruno Haible  <bruno@clisp.org>
59087
59088         * gnulib-tool (func_get_automake_snippet): Synthesize also an
59089         EXTRA_DIST augmentation for files in build-aux/.
59090
59091 2007-07-16  Bruno Haible  <bruno@clisp.org>
59092
59093         * modules/lseek (License): Use the synonymous term "LGPLv2+".
59094         * modules/getdelim (License): Likewise.
59095
59096 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59097
59098         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
59099         * modules/d-type (License): Likewise.
59100         * modules/extensions (License): Likewise.
59101         * modules/fnmatch (License): Likewise.
59102         * modules/fseeko (License): Likewise.
59103         * modules/getaddrinfo (License): Likewise.
59104         * modules/getline (License): Likewise.
59105         * modules/getlogin_r (License): Likewise.
59106         * modules/getpass (License): Likewise.
59107         * modules/gettimeofday (License): Likewise.
59108         * modules/glob (License): Likewise.
59109         * modules/inet_ntop (License): Likewise.
59110         * modules/malloc (License): Likewise.
59111         * modules/malloca (License): Likewise.
59112         * modules/memmem (License): Likewise.
59113         * modules/mempcpy (License): Likewise.
59114         * modules/memset (License): Likewise.
59115         * modules/minmax (License): Likewise.
59116         * modules/mktime (License): Likewise.
59117         * modules/netinet_in (License): Likewise.
59118         * modules/pathmax (License): Likewise.
59119         * modules/poll (License): Likewise.
59120         * modules/regex (License): Likewise.
59121         * modules/snprintf (License): Likewise.
59122         * modules/stdbool (License): Likewise.
59123         * modules/stdint (License): Likewise.
59124         * modules/stdio (License): Likewise.
59125         * modules/strcase (License): Likewise.
59126         * modules/strcasestr (License): Likewise.
59127         * modules/strdup (License): Likewise.
59128         * modules/string (License): Likewise.
59129         * modules/strndup (License): Likewise.
59130         * modules/strnlen (License): Likewise.
59131         * modules/strpbrk (License): Likewise.
59132         * modules/strptime (License): Likewise.
59133         * modules/strsep (License): Likewise.
59134         * modules/sys_select (License): Likewise.
59135         * modules/sys_socket (License): Likewise.
59136         * modules/sys_stat (License): Likewise.
59137         * modules/sys_time (License): Likewise.
59138         * modules/time (License): Likewise.
59139         * modules/time_r (License): Likewise.
59140         * modules/timegm (License): Likewise.
59141         * modules/unistd (License): Likewise.
59142         * modules/vsnprintf (License): Likewise.
59143         * modules/wctype (License): Likewise.
59144
59145 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59146
59147         * modules/argz (License): LGPLv2+.
59148
59149 2007-07-15  Karl Berry  <karl@gnu.org>
59150
59151         * doc/gnulib.texi: revise node structure per new fdl.texi.
59152
59153 2007-07-14  Bruno Haible  <bruno@clisp.org>
59154
59155         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
59156         the output file.
59157         * lib/uniname/uninames.h: Regenerated.
59158
59159 2007-07-14  Karl Berry  <karl@gnu.org>
59160
59161         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
59162         omitting sectioning and index commands.
59163
59164 2007-07-13  Bruno Haible  <bruno@clisp.org>
59165
59166         New gnulib-tool option --more-symlinks.
59167         * gnulib-tool (func_usage): Document --more-symlinks.
59168         (do_copyrights): New variable.
59169         Recognize option --more-symlinks.
59170         (func_import): Don't add a copyright notice transform to
59171         sed_transform_lib_file if do_copyrights is empty.
59172
59173 2007-07-13  Bruno Haible  <bruno@clisp.org>
59174
59175         * lib/vasnprintf.c (decimal_point_char): Define also if
59176         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
59177         && !NEED_PRINTF_DIRECTIVE_A.
59178         Reported by Clemens Koller <clemens.koller@anagramm.de> via
59179         Gary V. Vaughan <gary@gnu.org>.
59180
59181 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
59182
59183         * lib/inttypes_.h: Undo previous change, since it was fixed
59184         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
59185
59186 2007-07-13  Bruno Haible  <bruno@clisp.org>
59187
59188         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
59189         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
59190
59191 2007-07-13  Jim Meyering  <jim@meyering.net>
59192
59193         df: Don't fail for Tru64's "file-on-file mount".
59194         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
59195         so we fall through and use statfs instead.  Details here:
59196         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
59197         Reported by Albert Chin.
59198
59199 2007-07-13  Bruno Haible  <bruno@clisp.org>
59200
59201         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
59202         * modules/configmake (License): Likewise.
59203         * modules/gettext (License): Likewise.
59204         * modules/gettext-h (License): Likewise.
59205         * modules/include_next (License): Likewise.
59206         * modules/link-warning (License): Likewise.
59207         * modules/localcharset (License): Likewise.
59208         * modules/localename (License): Likewise.
59209         * modules/lock (License): Likewise.
59210         * modules/relocatable-lib-lgpl (License): Likewise.
59211         * modules/size_max (License): Likewise.
59212         * modules/vasnprintf (License): Likewise.
59213         * modules/wchar (License): Likewise.
59214         * modules/xsize (License): Likewise.
59215
59216 2007-07-13  Bruno Haible  <bruno@clisp.org>
59217
59218         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
59219         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
59220
59221 2007-07-12  Bruno Haible  <bruno@clisp.org>
59222
59223         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
59224         in the modules files.
59225
59226 2007-07-11  Karl Berry  <karl@gnu.org>
59227
59228         * MODULES.html.sh (func_module): use
59229          sed -e '\|^'"${includefile}"'$|d'
59230          instead of /.../d, to avoid errors on $includefile's containing /.
59231
59232 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59233
59234         * gnulib-tool (func_import): Avoid duplication of --avoid
59235         statements
59236         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
59237         names to `_' in variable names.
59238
59239 2007-07-10  Eric Blake  <ebb9@byu.net>
59240
59241         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
59242         * NEWS: Document this change.
59243
59244 2007-07-08  Bruno Haible  <bruno@clisp.org>
59245
59246         Update to Unicode 5.0.
59247         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
59248         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
59249         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
59250         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
59251         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
59252         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
59253         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
59254         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
59255         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
59256         U+10A3F, U+1D242..U+1D244.
59257         (nonspacing_table_ind): Update.
59258         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
59259         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
59260
59261 2007-07-08  Bruno Haible  <bruno@clisp.org>
59262
59263         Update to Unicode 5.0.
59264         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
59265         code transform. Extend the name index field of unicode_name_to_code and
59266         unicode_code_to_name from 16 to 24 bits.
59267         * lib/uniname/uniname.c (unicode_character_name,
59268         unicode_name_character): Add the range 0x12xxx to the code transform.
59269         * lib/uniname/uninames.h: Regenerated.
59270         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
59271
59272 2007-07-07  Bruno Haible  <bruno@clisp.org>
59273
59274         * modules/wcwidth-tests: New file.
59275         * tests/test-wcwidth.c: New file.
59276
59277         Work around MacOS X wcwidth() bug.
59278         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
59279         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
59280         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
59281         original wcwidth in non-UTF-8 locales.
59282         * modules/wcwidth (Depends-on): Add localcharset, streq,
59283         uniwidth/width.
59284         * doc/functions/wcwidth.texi: Update.
59285
59286 2007-07-07  Bruno Haible  <bruno@clisp.org>
59287
59288         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
59289         (wcwidth): New declaration.
59290         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
59291         macros.
59292         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
59293         here. Prepare for creating <wchar.h> unconditionally.
59294         * modules/wchar (Depends-on): Add link-warning.
59295         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
59296         REPLACE_WCWIDTH, and GL_LINK_WARNING.
59297         * lib/wcwidth.h: Remove file.
59298         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
59299         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
59300         * modules/wcwidth (Files): Remove lib/wcwidth.h.
59301         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
59302         (Include): Replace wcwidth.h with <wchar.h>.
59303         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
59304         * lib/mbchar.h: Don't include wcwidth.h.
59305         * lib/mbswidth.c: Likewise.
59306         * NEWS: Mention the change.
59307
59308 2007-07-07  Bruno Haible  <bruno@clisp.org>
59309
59310         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
59311         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
59312         definition with an external declaration.
59313         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
59314         defined as a function. Remove AC_C_INLINE requirement.
59315         * modules/wcwidth (Files): Add lib/wcwidth.c.
59316         (Makefile.am): Remove redundant statement.
59317
59318 2007-07-07  Bruno Haible  <bruno@clisp.org>
59319
59320         * MODULES.html.sh (Unicode string functions): Add the new modules.
59321
59322         * tests/uniwidth/test-u32-strwidth.c: New file.
59323         * modules/uniwidth/u32-strwidth-tests: New file.
59324
59325         * lib/uniwidth/u32-strwidth.c: New file.
59326         * modules/uniwidth/u32-strwidth: New file.
59327
59328         * tests/uniwidth/test-u16-strwidth.c: New file.
59329         * modules/uniwidth/u16-strwidth-tests: New file.
59330
59331         * lib/uniwidth/u16-strwidth.c: New file.
59332         * modules/uniwidth/u16-strwidth: New file.
59333
59334         * tests/uniwidth/test-u8-strwidth.c: New file.
59335         * modules/uniwidth/u8-strwidth-tests: New file.
59336
59337         * lib/uniwidth/u8-strwidth.c: New file.
59338         * modules/uniwidth/u8-strwidth: New file.
59339
59340         * tests/uniwidth/test-u32-width.c: New file.
59341         * modules/uniwidth/u32-width-tests: New file.
59342
59343         * lib/uniwidth/u32-width.c: New file.
59344         * modules/uniwidth/u32-width: New file.
59345
59346         * tests/uniwidth/test-u16-width.c: New file.
59347         * modules/uniwidth/u16-width-tests: New file.
59348
59349         * lib/uniwidth/u16-width.c: New file.
59350         * modules/uniwidth/u16-width: New file.
59351
59352         * tests/uniwidth/test-u8-width.c: New file.
59353         * modules/uniwidth/u8-width-tests: New file.
59354
59355         * lib/uniwidth/u8-width.c: New file.
59356         * modules/uniwidth/u8-width: New file.
59357
59358         * tests/uniwidth/test-uc_width.c: New file.
59359         * modules/uniwidth/width-tests: New file.
59360
59361         * lib/uniwidth/width.c: New file, from GNU libiconv.
59362         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
59363         * modules/uniwidth/width: New file.
59364
59365         * lib/uniwidth.h: New file, from GNU libiconv.
59366         * modules/uniwidth/base: New file.
59367
59368 2007-07-07  Bruno Haible  <bruno@clisp.org>
59369
59370         * lib/uniname.h: New file, from GNU gettext.
59371         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
59372         * lib/uniname/uninames.h: New file, from GNU gettext.
59373         * lib/uniname/uniname.c: New file, from GNU gettext.
59374         * tests/uniname/test-uninames.sh: New file.
59375         * tests/uniname/test-uninames.c: New file, from GNU gettext.
59376         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
59377         * modules/uniname/base: New file.
59378         * modules/uniname/uniname: New file.
59379         * modules/uniname/uniname-tests: New file.
59380         * MODULES.html.sh (Unicode string functions): Add the new modules.
59381
59382 2007-07-06  Bruno Haible  <bruno@clisp.org>
59383
59384         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
59385
59386 2007-07-06  Bruno Haible  <bruno@clisp.org>
59387
59388         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
59389         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
59390         includes <cygwin/sys_time.h> which includes <sys/select.h> which
59391         include <sys/time.h>.
59392         Reported by Eric Blake.
59393
59394 2007-07-06  Eric Blake  <ebb9@byu.net>
59395
59396         Fix testing canonicalize on cygwin.
59397         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59398         Revert patch from 2007-06-19.
59399         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
59400         canonicalize module is also in use.
59401         * tests/test-canonicalize.c: New file.
59402         * tests/test-canonicalize.sh: Likewise.
59403         * modules/canonicalize-tests: Likewise.
59404
59405 2007-07-06  Jim Meyering  <jim@meyering.net>
59406
59407         * lib/getugroups.c (getugroups): Detect getgrent failure.
59408         Adjust comment to reflect reality: this function may return -1.
59409
59410 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
59411
59412         * build-aux/bootstrap (TP_URL,get_translations): Update to use
59413         the new TP address.
59414         (usage): Fix typo
59415         (gnulib_mk): New variable.
59416
59417 2007-07-05  Jim Meyering  <jim@meyering.net>
59418
59419         Don't let endgrent clobber errno, no matter how improbable.
59420         * lib/getugroups.c (getugroups): Save and restore errno around
59421         endgrent call.
59422
59423         Close the group DB even when failing with 2^31 or more members.
59424         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
59425
59426 2007-07-04  Jim Meyering  <jim@meyering.net>
59427
59428         * lib/getugroups.h: New file.
59429         * lib/getugroups.c: Include "getugroups.h".
59430         Remove uses of "register" keyword.
59431         Move local variable, "cp", down into scope where used.
59432         Give "username" parameter the "const" attribute.
59433         * modules/getugroups (Files): Add lib/getugroups.h
59434
59435 2007-07-04  Karl Berry  <karl@gnu.org>
59436
59437         * MODULES.html.sh (func_all_modules): Complete rename of
59438         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
59439
59440 2007-07-02  Bruno Haible  <bruno@clisp.org>
59441
59442         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
59443         mode, when inttypes.h comes from gnulib.
59444         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59445
59446 2007-07-02  Simon Josefsson  <simon@josefsson.org>
59447
59448         * NEWS: Mention lgpl module name change.
59449
59450         * modules/lgpl-2.1: Renamed from lgpl.
59451
59452         * NEWS: Mention gpl module name change.
59453
59454         * modules/gpl-3.0: New file, based on gpl-2.0.
59455
59456         * modules/gpl-2.0: Renamed from gpl.
59457
59458         * modules/gpl: Fix filename, doc/gpl.texi is now found at
59459         doc/gpl-2.0.texi.
59460
59461 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59462
59463         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
59464         #define __STDC_LIMIT_MACROS temporarily while including
59465         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
59466         Problem reported by Joel E. Denny in
59467         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
59468
59469 2007-07-01  Bruno Haible  <bruno@clisp.org>
59470
59471         * lib/unistdio.h: New file.
59472         * lib/unistdio/u-asnprintf.h: New file.
59473         * lib/unistdio/u-asprintf.h: New file.
59474         * lib/unistdio/u-printf-args.c: New file.
59475         * lib/unistdio/u-printf-args.h: New file.
59476         * lib/unistdio/u-printf-parse.h: New file.
59477         * lib/unistdio/u-snprintf.h: New file.
59478         * lib/unistdio/u-sprintf.h: New file.
59479         * lib/unistdio/u-vasprintf.h: New file.
59480         * lib/unistdio/u-vsnprintf.h: New file.
59481         * lib/unistdio/u-vsprintf.h: New file.
59482         * lib/unistdio/ulc-asnprintf.c: New file.
59483         * lib/unistdio/ulc-asprintf.c: New file.
59484         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
59485         * lib/unistdio/ulc-printf-parse.c: New file.
59486         * lib/unistdio/ulc-snprintf.c: New file.
59487         * lib/unistdio/ulc-sprintf.c: New file.
59488         * lib/unistdio/ulc-vasnprintf.c: New file.
59489         * lib/unistdio/ulc-vasprintf.c: New file.
59490         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
59491         * lib/unistdio/ulc-vsnprintf.c: New file.
59492         * lib/unistdio/ulc-vsprintf.c: New file.
59493         * lib/unistdio/u8-asnprintf.c: New file.
59494         * lib/unistdio/u8-asprintf.c: New file.
59495         * lib/unistdio/u8-printf-parse.c: New file.
59496         * lib/unistdio/u8-snprintf.c: New file.
59497         * lib/unistdio/u8-sprintf.c: New file.
59498         * lib/unistdio/u8-vasnprintf.c: New file.
59499         * lib/unistdio/u8-vasprintf.c: New file.
59500         * lib/unistdio/u8-vsnprintf.c: New file.
59501         * lib/unistdio/u8-vsprintf.c: New file.
59502         * lib/unistdio/u8-u8-asnprintf.c: New file.
59503         * lib/unistdio/u8-u8-asprintf.c: New file.
59504         * lib/unistdio/u8-u8-snprintf.c: New file.
59505         * lib/unistdio/u8-u8-sprintf.c: New file.
59506         * lib/unistdio/u8-u8-vasnprintf.c: New file.
59507         * lib/unistdio/u8-u8-vasprintf.c: New file.
59508         * lib/unistdio/u8-u8-vsnprintf.c: New file.
59509         * lib/unistdio/u8-u8-vsprintf.c: New file.
59510         * lib/unistdio/u16-asnprintf.c: New file.
59511         * lib/unistdio/u16-asprintf.c: New file.
59512         * lib/unistdio/u16-printf-parse.c: New file.
59513         * lib/unistdio/u16-snprintf.c: New file.
59514         * lib/unistdio/u16-sprintf.c: New file.
59515         * lib/unistdio/u16-vasnprintf.c: New file.
59516         * lib/unistdio/u16-vasprintf.c: New file.
59517         * lib/unistdio/u16-vsnprintf.c: New file.
59518         * lib/unistdio/u16-vsprintf.c: New file.
59519         * lib/unistdio/u16-u16-asnprintf.c: New file.
59520         * lib/unistdio/u16-u16-asprintf.c: New file.
59521         * lib/unistdio/u16-u16-snprintf.c: New file.
59522         * lib/unistdio/u16-u16-sprintf.c: New file.
59523         * lib/unistdio/u16-u16-vasnprintf.c: New file.
59524         * lib/unistdio/u16-u16-vasprintf.c: New file.
59525         * lib/unistdio/u16-u16-vsnprintf.c: New file.
59526         * lib/unistdio/u16-u16-vsprintf.c: New file.
59527         * lib/unistdio/u32-asnprintf.c: New file.
59528         * lib/unistdio/u32-asprintf.c: New file.
59529         * lib/unistdio/u32-printf-parse.c: New file.
59530         * lib/unistdio/u32-snprintf.c: New file.
59531         * lib/unistdio/u32-sprintf.c: New file.
59532         * lib/unistdio/u32-vasnprintf.c: New file.
59533         * lib/unistdio/u32-vasprintf.c: New file.
59534         * lib/unistdio/u32-vsnprintf.c: New file.
59535         * lib/unistdio/u32-vsprintf.c: New file.
59536         * lib/unistdio/u32-u32-asnprintf.c: New file.
59537         * lib/unistdio/u32-u32-asprintf.c: New file.
59538         * lib/unistdio/u32-u32-snprintf.c: New file.
59539         * lib/unistdio/u32-u32-sprintf.c: New file.
59540         * lib/unistdio/u32-u32-vasnprintf.c: New file.
59541         * lib/unistdio/u32-u32-vasprintf.c: New file.
59542         * lib/unistdio/u32-u32-vsnprintf.c: New file.
59543         * lib/unistdio/u32-u32-vsprintf.c: New file.
59544         * tests/unistdio/test-ulc-asnprintf1.c: New file.
59545         * tests/unistdio/test-ulc-asnprintf1.h: New file.
59546         * tests/unistdio/test-ulc-printf1.h: New file.
59547         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
59548         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
59549         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
59550         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
59551         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
59552         * tests/unistdio/test-ulc-vasprintf1.c: New file.
59553         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
59554         * tests/unistdio/test-ulc-vsprintf1.c: New file.
59555         * tests/unistdio/test-u8-asnprintf1.c: New file.
59556         * tests/unistdio/test-u8-asnprintf1.h: New file.
59557         * tests/unistdio/test-u8-printf1.h: New file.
59558         * tests/unistdio/test-u8-vasnprintf1.c: New file.
59559         * tests/unistdio/test-u8-vasnprintf2.c: New file.
59560         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
59561         * tests/unistdio/test-u8-vasnprintf3.c: New file.
59562         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
59563         * tests/unistdio/test-u8-vasprintf1.c: New file.
59564         * tests/unistdio/test-u8-vsnprintf1.c: New file.
59565         * tests/unistdio/test-u8-vsprintf1.c: New file.
59566         * tests/unistdio/test-u16-asnprintf1.c: New file.
59567         * tests/unistdio/test-u16-asnprintf1.h: New file.
59568         * tests/unistdio/test-u16-printf1.h: New file.
59569         * tests/unistdio/test-u16-vasnprintf1.c: New file.
59570         * tests/unistdio/test-u16-vasnprintf2.c: New file.
59571         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
59572         * tests/unistdio/test-u16-vasnprintf3.c: New file.
59573         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
59574         * tests/unistdio/test-u16-vasprintf1.c: New file.
59575         * tests/unistdio/test-u16-vsnprintf1.c: New file.
59576         * tests/unistdio/test-u16-vsprintf1.c: New file.
59577         * tests/unistdio/test-u32-asnprintf1.c: New file.
59578         * tests/unistdio/test-u32-asnprintf1.h: New file.
59579         * tests/unistdio/test-u32-printf1.h: New file.
59580         * tests/unistdio/test-u32-vasnprintf1.c: New file.
59581         * tests/unistdio/test-u32-vasnprintf2.c: New file.
59582         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
59583         * tests/unistdio/test-u32-vasnprintf3.c: New file.
59584         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
59585         * tests/unistdio/test-u32-vasprintf1.c: New file.
59586         * tests/unistdio/test-u32-vsnprintf1.c: New file.
59587         * tests/unistdio/test-u32-vsprintf1.c: New file.
59588         * modules/unistdio/base: New file.
59589         * modules/unistdio/u-printf-args: New file.
59590         * modules/unistdio/ulc-asnprintf: New file.
59591         * modules/unistdio/ulc-asprintf: New file.
59592         * modules/unistdio/ulc-fprintf: New file.
59593         * modules/unistdio/ulc-printf-parse: New file.
59594         * modules/unistdio/ulc-snprintf: New file.
59595         * modules/unistdio/ulc-sprintf: New file.
59596         * modules/unistdio/ulc-vasnprintf: New file.
59597         * modules/unistdio/ulc-vasprintf: New file.
59598         * modules/unistdio/ulc-vfprintf: New file.
59599         * modules/unistdio/ulc-vsnprintf: New file.
59600         * modules/unistdio/ulc-vsprintf: New file.
59601         * modules/unistdio/u8-asnprintf: New file.
59602         * modules/unistdio/u8-asprintf: New file.
59603         * modules/unistdio/u8-printf-parse: New file.
59604         * modules/unistdio/u8-snprintf: New file.
59605         * modules/unistdio/u8-sprintf: New file.
59606         * modules/unistdio/u8-vasnprintf: New file.
59607         * modules/unistdio/u8-vasprintf: New file.
59608         * modules/unistdio/u8-vsnprintf: New file.
59609         * modules/unistdio/u8-vsprintf: New file.
59610         * modules/unistdio/u8-u8-asnprintf: New file.
59611         * modules/unistdio/u8-u8-asprintf: New file.
59612         * modules/unistdio/u8-u8-snprintf: New file.
59613         * modules/unistdio/u8-u8-sprintf: New file.
59614         * modules/unistdio/u8-u8-vasnprintf: New file.
59615         * modules/unistdio/u8-u8-vasprintf: New file.
59616         * modules/unistdio/u8-u8-vsnprintf: New file.
59617         * modules/unistdio/u8-u8-vsprintf: New file.
59618         * modules/unistdio/u16-asnprintf: New file.
59619         * modules/unistdio/u16-asprintf: New file.
59620         * modules/unistdio/u16-printf-parse: New file.
59621         * modules/unistdio/u16-snprintf: New file.
59622         * modules/unistdio/u16-sprintf: New file.
59623         * modules/unistdio/u16-vasnprintf: New file.
59624         * modules/unistdio/u16-vasprintf: New file.
59625         * modules/unistdio/u16-vsnprintf: New file.
59626         * modules/unistdio/u16-vsprintf: New file.
59627         * modules/unistdio/u16-u16-asnprintf: New file.
59628         * modules/unistdio/u16-u16-asprintf: New file.
59629         * modules/unistdio/u16-u16-snprintf: New file.
59630         * modules/unistdio/u16-u16-sprintf: New file.
59631         * modules/unistdio/u16-u16-vasnprintf: New file.
59632         * modules/unistdio/u16-u16-vasprintf: New file.
59633         * modules/unistdio/u16-u16-vsnprintf: New file.
59634         * modules/unistdio/u16-u16-vsprintf: New file.
59635         * modules/unistdio/u32-asnprintf: New file.
59636         * modules/unistdio/u32-asprintf: New file.
59637         * modules/unistdio/u32-printf-parse: New file.
59638         * modules/unistdio/u32-snprintf: New file.
59639         * modules/unistdio/u32-sprintf: New file.
59640         * modules/unistdio/u32-vasnprintf: New file.
59641         * modules/unistdio/u32-vasprintf: New file.
59642         * modules/unistdio/u32-vsnprintf: New file.
59643         * modules/unistdio/u32-vsprintf: New file.
59644         * modules/unistdio/u32-u32-asnprintf: New file.
59645         * modules/unistdio/u32-u32-asprintf: New file.
59646         * modules/unistdio/u32-u32-snprintf: New file.
59647         * modules/unistdio/u32-u32-sprintf: New file.
59648         * modules/unistdio/u32-u32-vasnprintf: New file.
59649         * modules/unistdio/u32-u32-vasprintf: New file.
59650         * modules/unistdio/u32-u32-vsnprintf: New file.
59651         * modules/unistdio/u32-u32-vsprintf: New file.
59652         * modules/unistdio/ulc-asnprintf-tests: New file.
59653         * modules/unistdio/ulc-vasnprintf-tests: New file.
59654         * modules/unistdio/ulc-vasprintf-tests: New file.
59655         * modules/unistdio/ulc-vsnprintf-tests: New file.
59656         * modules/unistdio/ulc-vsprintf-tests: New file.
59657         * modules/unistdio/u8-asnprintf-tests: New file.
59658         * modules/unistdio/u8-vasnprintf-tests: New file.
59659         * modules/unistdio/u8-vasprintf-tests: New file.
59660         * modules/unistdio/u8-vsnprintf-tests: New file.
59661         * modules/unistdio/u8-vsprintf-tests: New file.
59662         * modules/unistdio/u16-asnprintf-tests: New file.
59663         * modules/unistdio/u16-vasnprintf-tests: New file.
59664         * modules/unistdio/u16-vasprintf-tests: New file.
59665         * modules/unistdio/u16-vsnprintf-tests: New file.
59666         * modules/unistdio/u16-vsprintf-tests: New file.
59667         * modules/unistdio/u32-asnprintf-tests: New file.
59668         * modules/unistdio/u32-vasnprintf-tests: New file.
59669         * modules/unistdio/u32-vasprintf-tests: New file.
59670         * modules/unistdio/u32-vsnprintf-tests: New file.
59671         * modules/unistdio/u32-vsprintf-tests: New file.
59672         * MODULES.html.sh (Unicode string functions): Add the new modules.
59673
59674 2007-07-01  Bruno Haible  <bruno@clisp.org>
59675
59676         * lib/sprintf.c (sprintf): Limit the available length estimation,
59677         to avoid address wraparound.
59678         * lib/vsprintf.c (vsprintf): Likewise.
59679         * modules/sprintf-posix (Dependencies): Add stdint.
59680         * modules/vsprintf-posix (Dependencies): Likewise.
59681
59682 2007-07-01  Bruno Haible  <bruno@clisp.org>
59683
59684         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
59685         Windows PATH as well. Conservative double-quoting. Comments.
59686
59687 2007-07-01  Bruno Haible  <bruno@clisp.org>
59688             Eric Blake  <ebb9@byu.net>
59689             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59690
59691         * gnulib-tool (self_abspathname): Fix algorithm to cope with
59692         empty components in $PATH, denoting '.'.
59693
59694 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59695
59696         * gnulib-tool: Fix indentation.
59697         (func_create_megatestdir): Likewise.
59698         Report by Bruno Haible.
59699
59700 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59701
59702         Sync from Automake.
59703         * build-aux/gnupload: Fix shell portability issues with for loops.
59704         Report by Karl Berry.
59705
59706 2007-06-29  Simon Josefsson  <simon@josefsson.org>
59707
59708         * build-aux/maint.mk (POURL): Use translationproject.org.
59709
59710 2007-06-27  Simon Josefsson  <simon@josefsson.org>
59711             Bruno Haible  <bruno@clisp.org>
59712
59713         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
59714         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
59715         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
59716         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
59717         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
59718
59719 2007-06-27  Bruno Haible  <bruno@clisp.org>
59720
59721         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
59722         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
59723
59724 2007-06-26  Karl Berry  <karl@gnu.org>
59725
59726         * MODULES.html.sh: remove xreadlink-with-size.
59727
59728 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59729
59730         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
59731         method that I hope also handles the double-include problem noted
59732         by Bruno Haible in
59733         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
59734
59735 2007-06-23  Bruno Haible  <bruno@clisp.org>
59736
59737         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59738         Don't let the 'mostlyclean' target fail if the last subdirectory could
59739         not be removed.
59740         Reported by Karl Berry.
59741
59742 2007-06-23  Bruno Haible  <bruno@clisp.org>
59743
59744         * gnulib-tool (echo): Add a speedier workaround for ksh.
59745         * tests/test-echo.sh: Likewise.
59746
59747 2007-06-23  Bruno Haible  <bruno@clisp.org>
59748
59749         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
59750         * tests/test-echo.sh: Likewise.
59751
59752 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59753
59754         * gnulib-tool (IFS): Initialize early, so we don't set it to
59755         empty later.
59756         (self_abspathname): Rewrite algorithm to set it, reindent.
59757         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
59758         (func_create_megatestdir): Merge some sed scripts.
59759
59760 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59761
59762         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
59763         exposed by Sun Studio 11 cc on Solaris 8.
59764
59765 2007-06-22  Bruno Haible  <bruno@clisp.org>
59766
59767         * gnulib-tool (echo): Ensure the echo primitive does not interpret
59768         backslashes.
59769         * tests/test-echo.sh: New file.
59770
59771 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59772
59773         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
59774         simplify `sed_replace_build_aux' scripts, they are portable but
59775         echoing them with `echo' is not.
59776         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
59777
59778 2007-06-21  Karl Berry  <karl@gnu.org>
59779
59780         * config/srclist.txt: guess we can't handle the licenses via
59781         srclist at the moment.
59782
59783 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59784
59785         * MODULES.html.sh: Add include_next.
59786         * modules/include_next: New file.
59787
59788 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59789
59790         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
59791         INCLUDE_NEXT.
59792         (gl_CHECK_NEXT_HEADERS): New macro.
59793         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
59794         the obsolescent gl_ABSOLUTE_HEADER.
59795         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
59796         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
59797         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
59798         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59799         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
59800         * m4/math_h.m4 (gl_MATH_H): Likewise.
59801         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59802         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59803         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
59804         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59805         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
59806         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
59807         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
59808         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59809         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59810         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
59811         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
59812         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
59813         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
59814         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59815         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59816         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59817         * m4/inttypes.m4 (gl_INTTYPES_H): Define
59818         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
59819         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
59820         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
59821         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
59822         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
59823         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
59824         * lib/float_.h: Likewise.
59825         * lib/inttypes_.h: Likewise.
59826         * lib/math_.h: Likewise.
59827         * lib/search_.h: Likewise.
59828         * lib/signal_.h: Likewise.
59829         * lib/stdint_.h: Likewise.
59830         * lib/stdio_.h: Likewise.
59831         * lib/stdlib_.h: Likewise.
59832         * lib/string_.h: Likewise.
59833         * lib/sys_stat_.h: Likewise.
59834         * lib/sys_time_.h: Likewise.
59835         * lib/time_.h: Likewise.
59836         * lib/unistd_.h: Likewise.
59837         * lib/wchar_.h: Likewise.
59838         * lib/wctype_.h: Likewise.
59839         * lib/dirent_.h: Likewise.
59840         * lib/iconv_.h: Likewise.
59841         * lib/locale_.h: Likewise.
59842         * lib/netinet_in_.h: Likewise.
59843         * lib/sys_select_.h: Likewise.
59844         * lib/sys_socket_.h: Likewise.
59845         * lib/sysexits_.h: Likewise.
59846         * modules/fcntl (Depends-on): Depend on include_next, not
59847         absolute_header.
59848         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
59849         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
59850         * modules/fchdir: Likewise.
59851         * modules/float: Likewise.
59852         * modules/iconv_open: Likewise.
59853         * modules/inttypes: Likewise.
59854         * modules/locale: Likewise.
59855         * modules/math: Likewise.
59856         * modules/netinet_in: Likewise.
59857         * modules/search: Likewise.
59858         * modules/signal: Likewise.
59859         * modules/stdint: Likewise.
59860         * modules/stdio: Likewise.
59861         * modules/stdlib: Likewise.
59862         * modules/string: Likewise.
59863         * modules/sys_select: Likewise.
59864         * modules/sys_socket: Likewise.
59865         * modules/sys_stat: Likewise.
59866         * modules/sys_time: Likewise.
59867         * modules/sysexits: Likewise.
59868         * modules/time: Likewise.
59869         * modules/unistd: Likewise.
59870         * modules/wchar: Likewise.
59871         * modules/wctype: Likewise.
59872         * modules/sys_stat: Change maintainer to "all".
59873         * modules/unistd: Likewise.
59874
59875 2007-06-20  Karl Berry  <karl@gnu.org>
59876
59877         * config/srclist.txt: track www changes in license files.
59878
59879 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
59880
59881         * build-aux/bootstrap: Remove stray dot.
59882         Make sure build_aux settings are honored when linking
59883         gnulib_extra_files.
59884
59885 2007-06-19  Eric Blake  <ebb9@byu.net>
59886
59887         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59888         Allow compilation on cygwin.
59889
59890 2007-06-19  Jim Meyering  <jim@meyering.net>
59891
59892         xreadlink-with-size: Remove module.  No longer used.
59893         Ex-callers now use xreadlink or mreadlink-with-size.
59894         * modules/xreadlink-with-size: Remove module.
59895         * lib/xreadlink-with-size.c: Remove file.
59896         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
59897         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
59898         just before the function definition *is* accurate.
59899
59900         Eliminate one way canonicalize_filename_mode could exit.
59901         * lib/canonicalize.c (canonicalize_filename_mode):
59902         Use mreadlink_with_size, not xreadlink_with_size.
59903
59904 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
59905
59906         Detect porting problems to FreeBSD/arm, which has time_t wider than
59907         long int.  Original problem reported for GNU diff by Xin Li in
59908         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
59909         * modules/getdate (Depends-on): Add intprops, verify.
59910         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
59911         is an integer type no wider than long int.
59912
59913 2007-06-18  Jim Meyering  <jim@meyering.net>
59914
59915         New module: mreadlink-with-size.
59916         * MODULES.html.sh: Add mreadlink-with-size.
59917         * modules/mreadlink-with-size: New module
59918         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
59919         not xreadlink-with-size.
59920         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
59921
59922 2007-06-16  Bruno Haible  <bruno@clisp.org>
59923
59924         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
59925         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
59926         Reported by Gary V. Vaughan <gary@gnu.org>.
59927
59928 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
59929
59930         Revamp lchown so that it lives in unistd.h where it belongs.
59931         * lib/lchown.h: Remove.
59932         * lib/dirchownmod.c: Don't include lib/lchown.h.
59933         * lib/fchownat.c: Likewise.
59934         * lib/openat.c: Likewise.
59935         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
59936         does not follow symlinks.
59937         (EOPNOTSUPP): Define if not defined.
59938         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
59939         is defined to 0.
59940         (lchown): New decl.
59941         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
59942         Do not check for lchown decl.
59943         Set REPLACE_LCHOWN.
59944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
59945         REPLACE_LCHOWN.
59946         * modules/chown: Make it clear it follows symlinks.
59947         * modules/lchown: Make it clear it doesn't follow symlinks.
59948         (Files): Remove lib/lchown.h
59949         (Depends-on): Add unistd.
59950         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
59951         (Include): Include <unistd.h>, not "lchown.h".
59952         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
59953         REPLACE_LCHOWN.
59954
59955 2007-06-15  Jim Meyering  <jim@meyering.net>
59956
59957         Change license (GPL to LGPL) of fsusage and dependents.
59958         * modules/fsusage (License): Change to LGPL.
59959         * modules/full-read (License): Likewise.
59960         * modules/full-write (License): Likewise.
59961         * modules/safe-read (License): Likewise.
59962         * modules/safe-write (License): Likewise.
59963
59964 2007-06-14  Ben Pfaff  <blp@gnu.org>
59965
59966         Missing part of allocsa -> malloca transition.
59967         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
59968         gl_MALLOCA.
59969
59970 2007-06-12  Bruno Haible  <bruno@clisp.org>
59971
59972         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
59973         to ia64, x86_64, i386.
59974         Reported by Eric Blake.
59975
59976 2007-06-12  Bruno Haible  <bruno@clisp.org>
59977
59978         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
59979         cross-compiling to x86_64.
59980
59981 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
59982
59983         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
59984         glitch reported by Ralf Wildenhues in
59985         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
59986
59987         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
59988         Vin Shelton.
59989
59990 2007-06-11  Bruno Haible  <bruno@clisp.org>
59991
59992         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
59993         replacement string.
59994         Reported by Eric Blake.
59995
59996 2007-06-10  Bruno Haible  <bruno@clisp.org>
59997
59998         Prepare vasnprintf code for use with Unicode strings.
59999         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
60000         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
60001         TYPE_U32_STRING.
60002         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
60003         a_u32_string variants.
60004         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60005         * lib/printf-args.c: Don't include config.h and the specification
60006         header if PRINTF_FETCHARGS is already defined.
60007         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60008         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
60009         TYPE_U16_STRING, TYPE_U32_STRING.
60010         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
60011         u16_directive, u16_directives, u32_directive, u32_directives): New
60012         types.
60013         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
60014         New declarations.
60015         * lib/printf-parse.c: Don't include config.h and the specification
60016         header if PRINTF_PARSE is already defined. Eliminate the set of
60017         parameters for WIDE_CHAR_VERSION; the user of this file must provide
60018         them now. Include c-ctype.h.
60019         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
60020         directive and CHAR_T_ONLY_ASCII.
60021         * lib/vasnprintf.c: Don't include config.h and the specification header
60022         if VASNPRINTF is already defined.
60023         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
60024         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
60025         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
60026         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
60027         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
60028         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
60029         code accordingly.
60030         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
60031         pad_ourselves also in this case, with the 'c' and 's' directives, and
60032         with a different notion of "width".
60033         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
60034
60035 2007-06-10  Bruno Haible  <bruno@clisp.org>
60036
60037         * modules/unistr/u32-mbsnlen: New file.
60038         * lib/unistr/u32-mbsnlen.c: New file.
60039
60040         * modules/unistr/u16-mbsnlen: New file.
60041         * lib/unistr/u16-mbsnlen.c: New file.
60042
60043         * modules/unistr/u8-mbsnlen: New file.
60044         * lib/unistr/u8-mbsnlen.c: New file.
60045
60046         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
60047         declarations.
60048
60049 2007-06-10  Bruno Haible  <bruno@clisp.org>
60050
60051         * lib/string_.h (mbsnlen): New declaration.
60052         * lib/mbsnlen.c: New file.
60053         * m4/mbsnlen.m4: New file.
60054         * modules/mbsnlen: New file.
60055         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
60056         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
60057         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
60058
60059 2007-06-10  Bruno Haible  <bruno@clisp.org>
60060
60061         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
60062
60063 2007-06-10  Bruno Haible  <bruno@clisp.org>
60064
60065         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
60066         * lib/mbuiter.h: Likewise.
60067
60068 2007-06-10  Bruno Haible  <bruno@clisp.org>
60069
60070         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
60071         declaration.
60072
60073 2007-06-10  Karl Berry  <karl@gnu.org>
60074
60075         * config/srclist.txt: remove gettext entries, Bruno prefers
60076         to update individually.
60077
60078 2007-06-10  Bruno Haible  <bruno@clisp.org>
60079
60080         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
60081         'maxlen'. Ensure only length + width bytes are allocated, not
60082         length + 1 + width.
60083
60084 2007-06-09  Bruno Haible  <bruno@clisp.org>
60085
60086         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
60087         (CHAR_T): Remove macro.
60088         (VASNPRINTF): Update.
60089
60090 2007-06-09  Bruno Haible  <bruno@clisp.org>
60091
60092         * MODULES.html.sh (Unicode string functions): Add the new modules.
60093
60094         * modules/uniconv/u32-conv-to-enc: New file.
60095         * lib/uniconv/u32-conv-to-enc.c: New file.
60096         * modules/uniconv/u32-conv-to-enc-tests: New file.
60097         * tests/uniconv/test-u32-conv-to-enc.c: New file.
60098
60099         * modules/uniconv/u16-conv-to-enc: New file.
60100         * lib/uniconv/u16-conv-to-enc.c: New file.
60101         * lib/uniconv/u-conv-to-enc.h: New file.
60102         * modules/uniconv/u16-conv-to-enc-tests: New file.
60103         * tests/uniconv/test-u16-conv-to-enc.c: New file.
60104
60105         * modules/uniconv/u8-conv-to-enc: New file.
60106         * lib/uniconv/u8-conv-to-enc.c: New file.
60107         * modules/uniconv/u8-conv-to-enc-tests: New file.
60108         * tests/uniconv/test-u8-conv-to-enc.c: New file.
60109
60110         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
60111         u32_conv_to_encoding): New declarations.
60112
60113 2007-06-09  Bruno Haible  <bruno@clisp.org>
60114
60115         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
60116
60117 2007-06-09  Bruno Haible  <bruno@clisp.org>
60118
60119         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
60120         * modules/malloca: Renamed from modules/allocsa, updated.
60121         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
60122         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
60123         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
60124         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
60125         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
60126         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
60127         * modules/xmalloca: Renamed from modules/xallocsa, updated.
60128         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
60129         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
60130         * modules/c-strcasestr (Depends-on): Update.
60131         * lib/c-strcasestr.c: Update.
60132         * modules/c-strstr (Depends-on): Update.
60133         * lib/c-strstr.c: Update.
60134         * modules/canonicalize-lgpl (Depends-on): Update.
60135         * lib/canonicalize-lgpl.c: Update.
60136         * modules/clean-temp (Depends-on): Update.
60137         * lib/clean-temp.c: Update.
60138         * modules/csharpcomp (Depends-on): Update.
60139         * lib/csharpcomp.c: Update.
60140         * modules/csharpexec (Depends-on): Update.
60141         * lib/csharpexec.c: Update.
60142         * modules/javacomp (Depends-on): Update.
60143         * lib/javacomp.c: Update.
60144         * modules/javaexec (Depends-on): Update.
60145         * lib/javaexec.c: Update.
60146         * modules/mbscasestr (Depends-on): Update.
60147         * lib/mbscasestr.c: Update.
60148         * modules/mbsstr (Depends-on): Update.
60149         * lib/mbsstr.c: Update.
60150         * modules/setenv (Depends-on): Update.
60151         * lib/setenv.c: Update.
60152         * modules/strcasestr (Depends-on): Update.
60153         * lib/strcasestr.c: Update.
60154         * modules/striconveha (Depends-on): Update.
60155         * lib/striconveha.c: Update.
60156         * modules/relocatable-prog-wrapper (Files): Update.
60157         * lib/relocwrapper.c: Update.
60158         * build-aux/install-reloc: Update.
60159         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
60160
60161 2007-06-08  Bruno Haible  <bruno@clisp.org>
60162
60163         Port to uClibc.
60164         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
60165         * lib/fpurge.c (fpurge): Likewise.
60166         * lib/freading.c (freading): Likewise.
60167         * lib/fseeko.c (rpl_fseeko): Likewise.
60168         * lib/fseterr.c (fseterr): Likewise.
60169         * lib/fwriting.c (fwriting): Likewise.
60170         * tests/test-fflush.c (main): Avoid a failure on uClibc.
60171
60172 2007-06-08  Bruno Haible  <bruno@clisp.org>
60173
60174         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
60175         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
60176         * modules/gettext (Files): Add m4/intlmacosx.m4.
60177
60178 2007-06-07  Bruno Haible  <bruno@clisp.org>
60179
60180         * modules/localename-tests: New file.
60181         * tests/test-localename.c: New file.
60182
60183         New module 'localename'.
60184         * lib/localename.h: New file.
60185         * lib/localename.c: New file, from GNU gettext.
60186         * m4/localename.m4: New file.
60187         * modules/localename: New file.
60188
60189 2007-06-07  Bruno Haible  <bruno@clisp.org>
60190
60191         Work around the lack of <wchar.h> on some builds of uClibc.
60192         * doc/headers/wchar.texi: Update.
60193         * lib/wchar_.h: Include <wchar.h> only if it exists.
60194         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
60195         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
60196         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
60197         doesn't exist.
60198         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
60199         * modules/mbfile (Depends-on): Add wchar.
60200         * modules/mbiter (Depends-on): Likewise.
60201         * modules/mbuiter (Depends-on): Likewise.
60202         Reported by Simon Josefsson.
60203
60204 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60205
60206         Work around problem reported by Steven M. Schweda in
60207         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
60208         Tru64 5.1B with the Compaq compiler environment installed declares
60209         an 'isblank' function but does not define it in the C library.
60210         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
60211         * lib/regex_internal.h (isblank): Likewise.
60212         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
60213         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60214
60215 2007-06-05  Bruno Haible  <bruno@clisp.org>
60216
60217         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
60218         ia64.
60219         * modules/printf-safe: New file.
60220         * modules/fprintf-posix (Depends-on): Add printf-safe.
60221         * modules/printf-posix (Depends-on): Likewise.
60222         * modules/snprintf-posix (Depends-on): Likewise.
60223         * modules/sprintf-posix (Depends-on): Likewise.
60224         * modules/vasnprintf-posix (Depends-on): Likewise.
60225         * modules/vasprintf-posix (Depends-on): Likewise.
60226         * modules/vfprintf-posix (Depends-on): Likewise.
60227         * modules/vprintf-posix (Depends-on): Likewise.
60228         * modules/vsnprintf-posix (Depends-on): Likewise.
60229         * modules/vsprintf-posix (Depends-on): Likewise.
60230         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
60231         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
60232         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
60233         "no" on i386, x86_64, ia64.
60234         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
60235         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60236         on i386, x86_64, ia64.
60237         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
60238         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60239         on i386, x86_64, ia64.
60240         * tests/test-vasnprintf-posix.c: Include float.h.
60241         (LDBL80_WORDS): New macro.
60242         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60243         on i386, x86_64, ia64.
60244         * tests/test-vasprintf-posix.c: Include float.h.
60245         (LDBL80_WORDS): New macro.
60246         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60247         on i386, x86_64, ia64.
60248         * tests/test-snprintf-posix.c: Include float.h.
60249         * tests/test-sprintf-posix.c: Likewise.
60250         * tests/test-vsnprintf-posix.c: Likewise.
60251         * tests/test-vsprintf-posix.c: Likewise.
60252
60253 2007-06-05  Bruno Haible  <bruno@clisp.org>
60254
60255         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
60256         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
60257         non-IEEE numbers on i386, x86_64, ia64.
60258         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
60259         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
60260         * tests/test-isnanl.h: Include float.h.
60261         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
60262
60263 2007-06-05  Bruno Haible  <bruno@clisp.org>
60264
60265         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
60266         also the %a / %A. Handle the %a / %A code before this extra handling.
60267
60268 2007-06-05  Bruno Haible  <bruno@clisp.org>
60269
60270         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
60271         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
60272
60273 2007-06-05  Bruno Haible  <bruno@clisp.org>
60274
60275         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
60276         typo in variable name.
60277
60278 2007-06-05  Eric Blake  <ebb9@byu.net>
60279
60280         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
60281         Reported by Simon Josefsson.
60282
60283 2007-06-04  Bruno Haible  <bruno@clisp.org>
60284
60285         Avoid test failures on some PowerPC platforms.
60286         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
60287         Define differently for PowerPC.
60288         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
60289         Reported by Gary V. Vaughan <gary@gnu.org>.
60290
60291 2007-06-02  Bruno Haible  <bruno@clisp.org>
60292
60293         Fix test-stdint failure on FreeBSD/ia64.
60294         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
60295         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
60296         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
60297         * doc/headers/stdint.texi: Update.
60298
60299 2007-06-01  Bruno Haible  <bruno@clisp.org>
60300
60301         * tests/test-binary-io.c (main): Pass a third argument to open().
60302         Reported by Gary V. Vaughan <gary@gnu.org>.
60303
60304 2007-06-01  Bruno Haible  <bruno@clisp.org>
60305
60306         * doc/functions/frexpl.texi: Update for mingw.
60307
60308 2007-06-01  Bruno Haible  <bruno@clisp.org>
60309
60310         * tests/test-lseek.c (main): Disable test of errno for invalid third
60311         argument.
60312         * doc/functions/lseek.texi: Update.
60313         Reported by Gary V. Vaughan <gary@gnu.org>.
60314
60315 2007-05-28  Bruno Haible  <bruno@clisp.org>
60316
60317         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
60318
60319 2007-05-31  Eric Blake  <ebb9@byu.net>
60320
60321         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
60322         cross compiling.
60323
60324 2007-05-30  Eric Blake  <ebb9@byu.net>
60325         and Bruno Haible  <bruno@clisp.org>
60326
60327         Work around mingw test failures exposed by m4-1.4.9b.
60328         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
60329         * tests/test-unistd.c: Disable uid_t and git_t tests for the
60330         moment.
60331
60332 2007-05-30  Bruno Haible  <bruno@clisp.org>
60333
60334         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
60335         assuming that they are closed. Needed on HP-UX 11.
60336
60337 2007-05-29  Bruno Haible  <bruno@clisp.org>
60338
60339         Fix a problem with #include_next.
60340         * lib/dirent_.h: Split the double-inclusion guard.
60341         * lib/fcntl_.h: Likewise.
60342         * lib/float_.h: Likewise.
60343         * lib/iconv_.h: Likewise.
60344         * lib/inttypes_.h: Likewise.
60345         * lib/locale_.h: Likewise.
60346         * lib/math_.h: Likewise.
60347         * lib/netinet_in_.h: Likewise.
60348         * lib/search_.h: Likewise.
60349         * lib/signal_.h: Likewise.
60350         * lib/stdint_.h: Likewise.
60351         * lib/stdio_.h: Likewise.
60352         * lib/stdlib_.h: Likewise.
60353         * lib/string_.h: Likewise.
60354         * lib/sys_select_.h: Likewise.
60355         * lib/sys_socket_.h: Likewise.
60356         * lib/sys_stat_.h: Likewise.
60357         * lib/sys_time_.h: Likewise.
60358         * lib/sysexits_.h: Likewise.
60359         * lib/time_.h: Likewise.
60360         * lib/unistd_.h: Likewise.
60361         * lib/wchar_.h: Likewise.
60362         * lib/wctype_.h: Likewise.
60363
60364 2007-05-29  Bruno Haible  <bruno@clisp.org>
60365
60366         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
60367         for the moment.
60368
60369 2007-05-29  Bruno Haible  <bruno@clisp.org>
60370
60371         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
60372         invocation.
60373         Reported by Eric Blake.
60374
60375 2007-05-29  Bruno Haible  <bruno@clisp.org>
60376
60377         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
60378         compiling case.
60379
60380 2007-05-29  Eric Blake  <ebb9@byu.net>
60381             Bruno Haible  <bruno@clisp.org>
60382
60383         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
60384         cross compiles.
60385
60386 2007-05-28  Eric Blake  <ebb9@byu.net>
60387
60388         * modules/closein-tests (test_closein_LDADD): Support test on
60389         cygwin with libtool.
60390
60391 2007-05-28  Bruno Haible  <bruno@clisp.org>
60392
60393         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
60394         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60395         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60396         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60397         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60398         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60399         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60400         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60401         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60402
60403 2007-05-28  Eric Blake  <ebb9@byu.net>
60404
60405         Unconditionally include <config.h> in unit tests.
60406         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
60407         * tests/test-allocsa.c, tests/test-arcfour.c,
60408         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
60409         tests/test-array_list.c, tests/test-array_oset.c,
60410         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
60411         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
60412         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
60413         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
60414         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
60415         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
60416         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
60417         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
60418         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
60419         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
60420         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
60421         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
60422         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
60423         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
60424         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
60425         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
60426         test-md5.c, test-memmem.c, test-printf-posix.c,
60427         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
60428         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
60429         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
60430         test-strcasestr.c, test-striconv.c, test-striconveh.c,
60431         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
60432         test-vasnprintf-posix2.c, test-vasnprintf.c,
60433         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
60434         test-vfprintf-posix.c, test-vprintf-posix.c,
60435         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
60436         test-xvasprintf.c: Likewise.
60437
60438 2007-05-28  Bruno Haible  <bruno@clisp.org>
60439
60440         * gnulib-tool (func_import): Remember the --with-tests command-line
60441         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
60442         Reported by Eric Blake.
60443
60444 2007-05-28  Bruno Haible  <bruno@clisp.org>
60445
60446         * modules/ftell-tests: New file.
60447         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
60448         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
60449
60450         * lib/ftell.c: New file.
60451         * modules/ftell: New file.
60452         * m4/ftell.m4: New file.
60453         * doc/functions/ftell.texi: Update.
60454         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
60455         REPLACE_FTELL.
60456         * lib/stdio_.h (rpl_ftell): New declaration.
60457         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
60458         REPLACE_FTELL.
60459
60460 2007-05-28  Eric Blake  <ebb9@byu.net>
60461
60462         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
60463
60464 2007-05-28  Bruno Haible  <bruno@clisp.org>
60465
60466         * modules/fseek-tests: New file.
60467         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
60468         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
60469
60470         * lib/fseek.c: New file.
60471         * modules/fseek: New file.
60472         * m4/fseek.m4: New file.
60473         * doc/functions/fseek.texi: Update.
60474         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
60475         REPLACE_FSEEK.
60476         * lib/stdio_.h (rpl_fseek): New declaration.
60477         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
60478         REPLACE_FSEEK.
60479
60480 2007-05-28  Bruno Haible  <bruno@clisp.org>
60481
60482         * lib/stdio_.h (fflush): More comments.
60483
60484 2007-05-28  Bruno Haible  <bruno@clisp.org>
60485
60486         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
60487         runtime test.
60488
60489 2007-05-28  Eric Blake  <ebb9@byu.net>
60490
60491         Improve lseek module.
60492         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
60493         * lib/unistd_.h (lseek): Scale back link warning message.
60494         * tests/test-lseek.c: Beef up test.
60495         * tests/test-lseek.sh: Exercise more facets of lseek.
60496         Reported by Bruno Haible.
60497
60498 2007-05-28  Bruno Haible  <bruno@clisp.org>
60499
60500         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
60501         to define.
60502
60503 2007-05-27  Bruno Haible  <bruno@clisp.org>
60504
60505         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
60506
60507 2007-05-27  Bruno Haible  <bruno@clisp.org>
60508
60509         * modules/openmp: New file.
60510         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
60511         Noah Misch.
60512
60513 2007-05-26  Bruno Haible  <bruno@clisp.org>
60514
60515         * modules/chdir-long (Depends-on): Add fchdir.
60516         * modules/chdir-safer (Depends-on): Likewise.
60517         * modules/fts (Depends-on): Likewise.
60518         * modules/fts-lgpl (Depends-on): Likewise.
60519         * modules/openat (Depends-on): Likewise.
60520         * modules/savewd (Depends-on): Likewise.
60521
60522 2007-05-24  Eric Blake  <ebb9@byu.net>
60523
60524         Fix lseek on mingw.
60525         * modules/lseek: New module.
60526         * m4/lseek.m4: New file.
60527         * lib/lseek.c: New file.
60528         * modules/lseek-tests: New file.
60529         * tests/test-lseek.c: New file.
60530         * tests/test-lseek.sh: New file.
60531         * MODULES.html.sh: Document lseek module.
60532         * modules/fflush (Depends-on): Add lseek, fseeko.
60533         * modules/fseeko (Depends-on): Likewise.
60534         * modules/ftello (Depends-on): Likewise.
60535         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
60536         broken.
60537         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
60538         broken.
60539         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
60540         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
60541         * lib/ftello.c (rpl_ftello): Likewise.
60542         * tests/test-fseeko.c (main): Test this.
60543         * tests/test-fseeko.sh: Likewise.
60544         * tests/test-ftello.c (main): Likewise.
60545         * tests/test-ftello.sh: Likewise.
60546         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
60547         implies replacing fseek.
60548         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
60549         HAVE_FTELLO.
60550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
60551         * modules/unistd (Makefile.am): Likewise.
60552         * lib/unistd_.h (lseek): Declare a replacement.
60553         * doc/functions/lseek.texi (lseek): Document this fix.
60554         * doc/functions/fseek.texi (fseek): Likewise.
60555         * doc/functions/ftell.texi (ftell): Likewise.
60556
60557 2007-05-24  Bruno Haible  <bruno@clisp.org>
60558
60559         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
60560         in the printed representation of a NaN.
60561         * tests/test-vasprintf-posix.c (test_function): Likewise.
60562         * tests/test-snprintf-posix.h (test_function): Likewise.
60563         * tests/test-sprintf-posix.h (test_function): Likewise.
60564         Reported by Eric Blake.
60565
60566 2007-05-23  Eric Blake  <ebb9@byu.net>
60567
60568         Fix fseeko/ftello on cygwin 1.5.24.
60569         * doc/functions/fseeko.texi (fseeko): Document the fix.
60570         * doc/functions/ftello.texi (ftello): Document the fix.
60571         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
60572         * doc/functions/stdout.text (stdout): New file.
60573         * doc/functions/stderr.text (stderr): New file.
60574         * doc/gnulib.texi (Function Substitutes): Use new files.
60575         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
60576         prior to 1.7.0.
60577         * tests/test-ftello.c (main): Likewise for ftello.
60578         * tests/test-fseeko.sh: New file.
60579         * tests/test-ftello.sh: New file.
60580         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
60581         with seekable stdin.
60582         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
60583         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
60584         (gl_REPLACE_FSEEKO): New macro.
60585         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
60586         * modules/fseeko (Files): Distribute fseeko.c.
60587         * modules/ftello (Files): Distribute ftello.c.
60588         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
60589         mode.
60590         * lib/ftello.c (rpl_ftello): New file.
60591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
60592         fseeko, ftello.
60593         (gl_STDIN_LARGE_OFFSET): New macro.
60594         * modules/stdio (Makefile.am): Perform the replacement.
60595         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
60596
60597 2007-05-23  Bruno Haible  <bruno@clisp.org>
60598
60599         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
60600         GNULIB_POSIXCHECK is defined.
60601
60602 2007-05-21  Bruno Haible  <bruno@clisp.org>
60603
60604         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
60605         Check also the output for NaN arguments. When cross-compiling, guess
60606         no on IRIX.
60607         * lib/vasnprintf.c: Update comments.
60608         * tests/test-vasnprintf-posix.c (strisnan): New function.
60609         (test_function): Use it.
60610         * tests/test-vasprintf-posix.c (strisnan): New function.
60611         (test_function): Use it.
60612         * tests/test-snprintf-posix.h (strisnan): New function.
60613         (test_function): Use it.
60614         * tests/test-sprintf-posix.h (strisnan): New function.
60615         (test_function): Use it.
60616         Reported by Eric Blake.
60617
60618 2007-05-20  Bruno Haible  <bruno@clisp.org>
60619
60620         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
60621         numbers that fails on BeOS.
60622         * doc/functions/frexpl.texi: Update.
60623
60624 2007-05-20  Jim Meyering  <jim@meyering.net>
60625
60626         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
60627         forced upon us by glibc-2.6.
60628
60629 2007-05-20  Bruno Haible  <bruno@clisp.org>
60630
60631         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
60632         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
60633         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
60634         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
60635         NEED_PRINTF_INFINITE.
60636         (is_infinitel): New function.
60637         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
60638         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
60639         gl_PREREQ_VASNPRINTF_INFINITE.
60640         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
60641         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60642         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
60643         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
60644         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
60645         gl_PREREQ_VASNPRINTF_INFINITE.
60646         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60647         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60648         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60649         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60650         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60651         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60652         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60653         * doc/functions/fprintf.texi: Update.
60654         * doc/functions/printf.texi: Update.
60655         * doc/functions/snprintf.texi: Update.
60656         * doc/functions/sprintf.texi: Update.
60657         * doc/functions/vfprintf.texi: Update.
60658         * doc/functions/vprintf.texi: Update.
60659         * doc/functions/vsnprintf.texi: Update.
60660         * doc/functions/vsprintf.texi: Update.
60661
60662 2007-05-20  Bruno Haible  <bruno@clisp.org>
60663
60664         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
60665         was not found in libc.
60666         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
60667
60668 2007-05-20  Bruno Haible  <bruno@clisp.org>
60669
60670         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60671         printed as "-nan" instead of "nan".
60672         * tests/test-vasprintf-posix.c (test_function): Likewise.
60673         * tests/test-snprintf-posix.h (test_function): Likewise.
60674         * tests/test-sprintf-posix.h (test_function): Likewise.
60675         Needed for HP-UX 11.
60676
60677 2007-05-20  Jim Meyering  <jim@meyering.net>
60678
60679         Fix buggy test for the fchownat-deref bug.
60680         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
60681         symlink required for the run-test.  Without it, this test would
60682         always declare that fchownat doesn't work, and client code would
60683         unnecessarily use the replacement function with fixed libc.
60684         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
60685         Reported by Greg Schafer.
60686
60687 2007-05-19  Bruno Haible  <bruno@clisp.org>
60688
60689         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
60690         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
60691         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
60692         Needed for IRIX 6.5 and Solaris 2.5.1.
60693
60694 2007-05-19  Bruno Haible  <bruno@clisp.org>
60695
60696         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
60697         (test_function): Skip tests involving -0.0 on platforms where
60698         -0.0 = 0.0.
60699         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
60700         (test_function): Skip tests involving -0.0 on platforms where
60701         -0.0 = 0.0.
60702         * tests/test-snprintf-posix.h (have_minus_zero): New function.
60703         (test_function): Skip tests involving -0.0 on platforms where
60704         -0.0 = 0.0.
60705         * tests/test-sprintf-posix.h (have_minus_zero): New function.
60706         (test_function): Skip tests involving -0.0 on platforms where
60707         -0.0 = 0.0.
60708         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
60709         tests.
60710         * tests/test-printf-posix.h (test_function): Likewise.
60711         * tests/test-printf-posix.output: Remove all -0.0 related results.
60712         Needed for IRIX 6.5.
60713
60714 2007-05-19  Bruno Haible  <bruno@clisp.org>
60715
60716         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60717         printed as "nan0x7fffffff" instead of "nan".
60718         * tests/test-vasprintf-posix.c (test_function): Likewise.
60719         * tests/test-snprintf-posix.h (test_function): Likewise.
60720         * tests/test-sprintf-posix.h (test_function): Likewise.
60721         * tests/test-fprintf-posix.h (NaN): Remove macro.
60722         (test_function): Remove all NaN related tests.
60723         * tests/test-printf-posix.h (NaN): Remove macro.
60724         (test_function): Remove all NaN related tests.
60725         * tests/test-printf-posix.output: Remove all NaN related results.
60726         Needed for IRIX 6.5.
60727
60728 2007-05-19  Bruno Haible  <bruno@clisp.org>
60729
60730         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
60731         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
60732
60733 2007-05-19  Bruno Haible  <bruno@clisp.org>
60734
60735         * lib/float_.h: New file.
60736         * m4/float_h.m4: New file.
60737         * modules/float: New file.
60738         * modules/isnanl (Dependencies): Add float.
60739         * modules/isnanl-nolibm (Dependencies): Likewise.
60740         * modules/mathl (Dependencies): Likewise.
60741         * modules/printf-frexpl (Dependencies): Likewise.
60742         * modules/signbit (Dependencies): Likewise.
60743         * modules/vasnprintf (Dependencies): Likewise.
60744         * doc/headers/float.texi: Update.
60745
60746 2007-05-19  Jim Meyering  <jim@meyering.net>
60747
60748         * lib/utimens.c (gl_futimens): Rename from futimens,
60749         now that glibc-2.6 declares futimens.
60750         * lib/utimens.h: Likewise.
60751
60752 2007-05-19  Bruno Haible  <bruno@clisp.org>
60753
60754         Avoid test failures on mingw.
60755         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
60756         * tests/test-printf-posix.sh: Likewise.
60757         * tests/test-vfprintf-posix.sh: Likewise.
60758         * tests/test-vprintf-posix.sh: Likewise.
60759
60760 2007-05-19  Bruno Haible  <bruno@clisp.org>
60761
60762         Fix *printf result for NaN, Inf, -0.0 on mingw.
60763         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
60764         * lib/vasnprintf.c: Include math.h and isnan.h.
60765         (is_infinite_or_zero): New function.
60766         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
60767         values in the %f, %F, %e, %E, %g, %G directives.
60768         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
60769         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60770         gl_PRINTF_INFINITE and test its result. Invoke
60771         gl_PREREQ_VASNPRINTF_INFINITE.
60772         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60773         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60774         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60775         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60776         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60777         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60778         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60779         * doc/functions/fprintf.texi: Update.
60780         * doc/functions/printf.texi: Update.
60781         * doc/functions/snprintf.texi: Update.
60782         * doc/functions/sprintf.texi: Update.
60783         * doc/functions/vfprintf.texi: Update.
60784         * doc/functions/vprintf.texi: Update.
60785         * doc/functions/vsnprintf.texi: Update.
60786         * doc/functions/vsprintf.texi: Update.
60787
60788 2007-05-19  Bruno Haible  <bruno@clisp.org>
60789
60790         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
60791         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
60792         Instead of multiplying with 10^k, set extra_zeroes to k.
60793         (scale10_round_long_double): Remove function.
60794
60795 2007-05-18  Bruno Haible  <bruno@clisp.org>
60796
60797         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
60798         introduced on 2007-05-06.
60799
60800 2007-05-18  Bruno Haible  <bruno@clisp.org>
60801
60802         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
60803         %g directives.
60804         * tests/test-vasprintf-posix.c (test_function): Likewise.
60805         * tests/test-snprintf-posix.h (test_function): Likewise.
60806         * tests/test-sprintf-posix.h (test_function): Likewise.
60807
60808 2007-05-18  Bruno Haible  <bruno@clisp.org>
60809
60810         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
60811         (strmatch): New function.
60812         (test_function): Test the %f directive on numbers of various exponents.
60813         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
60814         (strmatch): New function.
60815         (test_function): Test the %f directive on numbers of various exponents.
60816         * tests/test-snprintf-posix.h (strmatch): New function.
60817         (test_function): Test the %f directive on numbers of various exponents.
60818         * tests/test-sprintf-posix.h (strmatch): New function.
60819         (test_function): Test the %f directive on numbers of various exponents.
60820         * tests/test-snprintf-posix.c (SIZEOF): New macro.
60821         * tests/test-sprintf-posix.c (SIZEOF): New macro.
60822         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
60823         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
60824
60825 2007-05-18  Bruno Haible  <bruno@clisp.org>
60826
60827         Add support for 'long double' number output.
60828         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
60829         * lib/vasnprintf.c: Include math.h and float+.h.
60830         (mp_limb_t): New type.
60831         (GMP_LIMB_BITS): New macro.
60832         (mp_twolimb_t): New type.
60833         (GMP_TWOLIMB_BITS): New macro.
60834         (mpn_t): New type.
60835         (multiply, divide, convert_to_decimal, decode_long_double,
60836         scale10_round_long_double, scale10_round_decimal_long_double,
60837         floorlog10l): New functions.
60838         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
60839         for the %f, %F, %e, %E, %g, %G directives.
60840         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
60841         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60842         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
60843         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
60844         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60845         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60846         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60847         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60848         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60849         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60850         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60851         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
60852         * modules/snprintf-posix (Depends-on): Likewise.
60853         * modules/sprintf-posix (Depends-on): Likewise.
60854         * modules/vasnprintf-posix (Depends-on): Likewise.
60855         * modules/vasprintf-posix (Depends-on): Likewise.
60856         * modules/vfprintf-posix (Depends-on): Likewise.
60857         * modules/vsnprintf-posix (Depends-on): Likewise.
60858         * modules/vsprintf-posix (Depends-on): Likewise.
60859         * modules/vasnprintf (Files): Add lib/float+.h.
60860         * doc/functions/fprintf.texi: Update.
60861         * doc/functions/printf.texi: Update.
60862         * doc/functions/snprintf.texi: Update.
60863         * doc/functions/sprintf.texi: Update.
60864         * doc/functions/vfprintf.texi: Update.
60865         * doc/functions/vprintf.texi: Update.
60866         * doc/functions/vsnprintf.texi: Update.
60867         * doc/functions/vsprintf.texi: Update.
60868
60869 2007-05-18  Bruno Haible  <bruno@clisp.org>
60870
60871         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
60872
60873 2007-05-18  Bruno Haible  <bruno@clisp.org>
60874
60875         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
60876         for printing 64-bit integers. Needed for mingw.
60877
60878 2007-05-18  Bruno Haible  <bruno@clisp.org>
60879
60880         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60881         gl_FUNC_FREXPL_WORKS.
60882         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
60883
60884 2007-05-18  Bruno Haible  <bruno@clisp.org>
60885
60886         * modules/frexpl-nolibm-tests: New file.
60887
60888         * modules/frexpl-nolibm: New file.
60889         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
60890
60891 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60892
60893         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
60894         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60895         GCC 4.2, which otherwise issues a lot of warnings.
60896         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
60897         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
60898         Likewise.
60899         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
60900         * modules/iconv_open (iconv.h): Likewise.
60901         * modules/locale (locale.h): Likewise.
60902         * modules/netinet_in (netinet/in.h): Likewise.
60903         * modules/sys_select (sys_select.h): Likewise.
60904         * modules/sys_socket (sys/socket.h): Likewise.
60905         * modules/sys_stat (sys/stat.h): Likewise.
60906         * modules/sysexits (sysexits.h): Likewise.
60907         * modules/unistd (unistd.h): Likewise.
60908
60909 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60910
60911         * modules/closein-tests (Makefile.am): Distribute
60912         `test-closein.sh'.
60913
60914 2007-05-17  Bruno Haible  <bruno@clisp.org>
60915
60916         * tests/test-printf-posix.output: Renamed from
60917         tests/test-fprintf-posix.out.
60918         * modules/fprintf-posix-tests: Update.
60919         * modules/printf-posix-tests: Update.
60920         * modules/vfprintf-posix-tests: Update.
60921         * modules/vprintf-posix-tests: Update.
60922         * tests/test-fprintf-posix.sh: Update.
60923         * tests/test-printf-posix.sh: Update.
60924         * tests/test-vfprintf-posix.sh: Update.
60925         * tests/test-vprintf-posix.sh: Update.
60926         Reported by Ralf Wildenhues.
60927
60928 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60929
60930         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
60931         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60932         GCC 4.2, which otherwise issues a lot of warnings.
60933         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
60934         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
60935         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
60936         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
60937         it should no longer be needed.
60938         * lib/string_.h: Likewise.
60939         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
60940         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
60941         * modules/inttypes (inttypes.h): Likewise.
60942         * modules/math (math.h): Likewise.
60943         * modules/search (search.h): Likewise.
60944         * modules/signal (signal.h): Likewise.
60945         * modules/stdint (stdint.h): Likewise.
60946         * modules/stdio (stdio.h): Likewise.
60947         * modules/stdlib (stdlib.h): Likewise.
60948         * modules/string (string.h): Likewise.
60949         * modules/sys_time (sys/time.h): Likewise.
60950         * modules/time (time.h): Likewise.
60951         * modules/wchar (wchar.h): Likewise.
60952         * modules/wctype (wtype.h): Likewise.
60953
60954 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60955
60956         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
60957
60958 2007-05-13  Bruno Haible  <bruno@clisp.org>
60959
60960         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
60961         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60962         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
60963         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60964         (gl_PREREQ_STRTOK_R): Don't require it here.
60965
60966 2007-05-13  Bruno Haible  <bruno@clisp.org>
60967
60968         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
60969         when used in C++ mode.
60970
60971 2007-05-12  Bruno Haible  <bruno@clisp.org>
60972
60973         * lib/linebuffer.h: Tweak doc.
60974         * lib/linebuffer.c: Likewise.
60975
60976 2007-05-12  James Youngman  <jay@gnu.org>
60977
60978         * lib/linebuffer.c (readlinebuffer_delim): New function,
60979         like readlinebuffer, but use a caller-specified delimiter.
60980         (readlinebuffer): Just call readlinebuffer_delim with '\n'
60981         as the delimiter.
60982         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
60983
60984 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60985
60986         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
60987         * modules/openat (Files): Remove openat-die.c.
60988         (Depends-on): Add openat-die.
60989         * modules/openat-die: New module.
60990
60991 2007-05-06  Bruno Haible  <bruno@clisp.org>
60992
60993         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
60994         Update with info about Cygwin.
60995         * doc/functions/fprintf.texi: Update.
60996         * doc/functions/printf.texi: Update.
60997         * doc/functions/snprintf.texi: Update.
60998         * doc/functions/sprintf.texi: Update.
60999         * doc/functions/vfprintf.texi: Update.
61000         * doc/functions/vprintf.texi: Update.
61001         * doc/functions/vsnprintf.texi: Update.
61002         * doc/functions/vsprintf.texi: Update.
61003         Reported by Eric Blake.
61004
61005 2007-05-06  Bruno Haible  <bruno@clisp.org>
61006
61007         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
61008         padding ourselves for the floating-point directives.
61009         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
61010         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
61011         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61012         gl_PRINTF_FLAG_ZERO and test its result. Invoke
61013         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
61014         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61015         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61016         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61017         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61018         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61019         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61020         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61021         * tests/test-snprintf-posix.h (test_function): Also check the width
61022         and some flags in the %f directive.
61023         * tests/test-sprintf-posix.h (test_function): Likewise.
61024         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61025         * tests/test-vasprintf-posix.c (test_function): Likewise.
61026         * doc/functions/fprintf.texi: Update.
61027         * doc/functions/printf.texi: Update.
61028         * doc/functions/snprintf.texi: Update.
61029         * doc/functions/sprintf.texi: Update.
61030         * doc/functions/vfprintf.texi: Update.
61031         * doc/functions/vprintf.texi: Update.
61032         * doc/functions/vsnprintf.texi: Update.
61033         * doc/functions/vsprintf.texi: Update.
61034
61035 2007-05-06  Bruno Haible  <bruno@clisp.org>
61036
61037         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
61038         pass the ' flag character to sprintf or snprintf.
61039         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
61040         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
61041         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61042         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
61043         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
61044         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61045         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61046         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61047         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61048         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61049         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61050         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61051         * tests/test-snprintf-posix.h (test_function): Also check the grouping
61052         flag.
61053         * tests/test-sprintf-posix.h (test_function): Likewise.
61054         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61055         * tests/test-vasprintf-posix.c (test_function): Likewise.
61056         * doc/functions/fprintf.texi: Update.
61057         * doc/functions/printf.texi: Update.
61058         * doc/functions/snprintf.texi: Update.
61059         * doc/functions/sprintf.texi: Update.
61060         * doc/functions/vfprintf.texi: Update.
61061         * doc/functions/vprintf.texi: Update.
61062         * doc/functions/vsnprintf.texi: Update.
61063         * doc/functions/vsprintf.texi: Update.
61064
61065 2007-05-01  Bruno Haible  <bruno@clisp.org>
61066
61067         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
61068
61069 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
61070
61071         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
61072         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
61073
61074 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61075
61076         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
61077         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
61078         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
61079
61080 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
61081
61082         * lib/argp-help.c (struct hol_entry): New member `ord'.
61083         (HOL_ENTRY_PTRCMP): Use ord for comparison
61084         (hol_sort): Initialize ord.
61085
61086 2007-05-01  Bruno Haible  <bruno@clisp.org>
61087
61088         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
61089         Reported by Eric Blake.
61090         * doc/gnulib.texi (Function Substitutes): Update.
61091
61092 2007-05-01  Bruno Haible  <bruno@clisp.org>
61093
61094         * doc/functions.texi: Remove file, now redundant through
61095         doc/functions/*.texi.
61096
61097 2007-05-01  Bruno Haible  <bruno@clisp.org>
61098
61099         * modules/argp (Depends-on): Add sleep.
61100
61101 2007-05-01  Bruno Haible  <bruno@clisp.org>
61102
61103         * modules/sleep-tests: New file.
61104         * tests/test-sleep.c: New file.
61105
61106         * modules/sleep: New file.
61107         * lib/sleep.c: New file.
61108         * m4/sleep.m4: New file.
61109         * lib/unistd_.h (sleep): New declaration.
61110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
61111         HAVE_SLEEP.
61112         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
61113         * doc/functions/sleep.texi: Document the sleep module.
61114
61115 2007-05-01  Bruno Haible  <bruno@clisp.org>
61116
61117         * lib/sigprocmask.h: Remove file.
61118         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
61119         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
61120         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
61121         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
61122         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
61123         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
61124         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
61125         HAVE_SIGSET_T as a shell variable.
61126         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
61127         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
61128         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
61129         (Depends-on): Add signal. Remove verify.
61130         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
61131         (Include): Mention <signal.h> instead of sigprocmask.h.
61132         * NEWS: Mention the change.
61133         * lib/fatal-signal.c: Don't include sigprocmask.h.
61134
61135 2007-05-01  Bruno Haible  <bruno@clisp.org>
61136
61137         * modules/signal: New file.
61138         * lib/signal_.h: New file.
61139         * m4/signal_h.m4: New file.
61140
61141 2007-05-01  Bruno Haible  <bruno@clisp.org>
61142
61143         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
61144         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
61145         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
61146         HAVE_WCTYPE_CTMP_BUG into wctype.h.
61147
61148 2007-05-01  Bruno Haible  <bruno@clisp.org>
61149
61150         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
61151         configure time.
61152         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
61153         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
61154         * modules/sys_stat (Makefile.am): Substitute their values into
61155         sys/stat.h.
61156
61157 2007-05-01  Bruno Haible  <bruno@clisp.org>
61158
61159         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
61160         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
61161         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
61162
61163 2007-05-01  Bruno Haible  <bruno@clisp.org>
61164
61165         * doc/header/assert.texi: Undo last change: don't mention the gnulib
61166         'assert' module here.
61167
61168 2007-05-01  Bruno Haible  <bruno@clisp.org>
61169
61170         * doc/functions/*.texi: New files.
61171         * doc/functions/google-ranking.txt: New file.
61172         * doc/gnulib.texi (Function Substitutes): New chapter.
61173         (ctime, inet_ntoa): Remove sections.
61174         * doc/ctime.texi: Remove file.
61175         * doc/inet_ntoa.texi: Remove file.
61176         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
61177         dependencies.
61178         (%.info): New rule, specifying a --reference-limit.
61179
61180 2007-05-01  Bruno Haible  <bruno@clisp.org>
61181
61182         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
61183
61184 2007-05-01  Bruno Haible  <bruno@clisp.org>
61185
61186         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
61187         the portability of 'mkdir' to mingw systems.
61188
61189 2007-05-01  Bruno Haible  <bruno@clisp.org>
61190
61191         * doc/headers/google-ranking.txt: New file.
61192
61193 2007-04-30  Eric Blake  <ebb9@byu.net>
61194
61195         Prefer fseeko to fseek.
61196         * modules/getpass (Depends-on): Add fseeko.
61197         * lib/getpass.c (getpass): Use fseeko, not fseek.
61198
61199 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
61200
61201         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
61202         assumes the sorting is stable, while most qsort implementations
61203         are not.  Use argument addresses to ensure they never compare as
61204         equal.
61205
61206         * tests/test-argp-2.sh (usage-indent test): Fix output
61207         (func_compare): Restore diff options
61208         * tests/test-argp.c: Restore #include "progname.h"
61209
61210 2007-04-29  Bruno Haible  <bruno@clisp.org>
61211
61212         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
61213         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61214         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
61215         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61216         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
61217         (configure.ac): Define CHECK_SNPRINTF_POSIX.
61218         (TESTS, check_PROGRAMS): Add test-snprintf.
61219         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
61220         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
61221         (TESTS, check_PROGRAMS): Add test-vsnprintf.
61222         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
61223         assertions that fail on HP-UX, OSF/1, or IRIX.
61224         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
61225
61226 2007-04-29  Bruno Haible  <bruno@clisp.org>
61227
61228         * MODULES.html.sh (posix_functions): Remove 'contents'.
61229
61230 2007-04-29  Karl Berry  <karl@gnu.org>
61231
61232         * config/srclist.txt (gendocs_template_min): new entry.
61233
61234 2007-04-29  Bruno Haible  <bruno@clisp.org>
61235
61236         Work around fpurge bug on BSD systems.
61237         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
61238         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
61239         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
61240         fpurge to rpl_fpurge if the system already has this function.
61241         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
61242         the case where the system already has this function. Correct invariants
61243         on BSD systems.
61244         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
61245         BSD systems.
61246
61247 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61248
61249         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
61250         proposed by Sven Verdoolaege.
61251
61252         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
61253         options.
61254         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
61255         (usage and help tests): Update
61256
61257 2007-04-29  Bruno Haible  <bruno@clisp.org>
61258
61259         * tests/test-fflush.c (main): Use a file of size 17, not 10.
61260         Print more information in case of failure. Disable a test on BeOS.
61261
61262 2007-04-29  Bruno Haible  <bruno@clisp.org>
61263
61264         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
61265         This helps debugging on systems on which no gdb is available.
61266
61267 2007-04-29  Bruno Haible  <bruno@clisp.org>
61268
61269         * lib/freading.h: Improve comments.
61270         * lib/fwriting.h: Likewise.
61271         * tests/test-freading.c (main): Don't check freading immediately after
61272         repositioning. Needed for glibc.
61273
61274 2007-04-29  Bruno Haible  <bruno@clisp.org>
61275
61276         * lib/freading.c (freading): Trivial simplification.
61277
61278 2007-04-28  Bruno Haible  <bruno@clisp.org>
61279
61280         * tests/test-fwriting.c (main): Also test the interaction between
61281         fflush and fwriting.
61282         * modules/fwriting-tests (Depends-on): Add fflush.
61283
61284         * tests/test-freading.c (main): Also test the interaction between
61285         fflush and freading.
61286         * modules/freading-tests (Depends-on): Add fflush.
61287
61288 2007-04-28  Bruno Haible  <bruno@clisp.org>
61289
61290         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
61291         fseeko and ftello.
61292         Suggested by Eric Blake.
61293
61294 2007-04-28  Jim Meyering  <jim@meyering.net>
61295
61296         Avoid false-negative in gl_STDINT_H's C99 conformance test.
61297         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
61298         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
61299
61300 2007-04-27  Eric Blake  <ebb9@byu.net>
61301
61302         * doc/headers/assert.texi (assert.h): Document assert module use.
61303
61304 2007-04-27  Bruno Haible  <bruno@clisp.org>
61305
61306         * doc/headers/*.texi: New files.
61307         * doc/gnulib.texi (Header File Substitutes): New chapter.
61308         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
61309         dependencies.
61310         (standards.info ,standards.html, standards.dvi): Update dependencies.
61311         (mostlyclean, clean): New targets.
61312
61313 2007-04-27  Bruno Haible  <bruno@clisp.org>
61314
61315         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
61316         * modules/sysexits (Files, Makefile.am): Update.
61317
61318         * lib/sys_socket_.h: Renamed from lib/socket_.h.
61319         * modules/sys_socket (Files, Makefile.am): Update.
61320
61321         * lib/sys_stat_.h: Renamed from lib/stat_.h.
61322         * modules/sys_stat (Files, Makefile.am): Update.
61323
61324 2007-04-27  Eric Blake  <ebb9@byu.net>
61325
61326         * lib/freading.h: Improve comments.
61327         * lib/fwriting.h: Likewise.
61328         * lib/fflush.c: Likewise.
61329
61330         Fix closein for mingw.
61331         * modules/closein-tests: Add tests for closein.
61332         * tests/test-closein.c: New file.
61333         * tests/test-closein.sh: Likewise.
61334         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
61335         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
61336
61337 2007-04-27  Bruno Haible  <bruno@clisp.org>
61338
61339         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
61340         version is < 6.
61341         * lib/math_.h [__DECC]: Likewise.
61342         * lib/stdio_.h [__DECC]: Likewise.
61343         * lib/stdlib_.h [__DECC]: Likewise.
61344         * lib/string_.h [__DECC]: Likewise.
61345         * lib/time_.h [__DECC]: Likewise.
61346         * lib/wchar_.h [__DECC]: Likewise.
61347         * lib/wctype_.h [__DECC]: Likewise.
61348
61349 2007-04-27  Bruno Haible  <bruno@clisp.org>
61350
61351         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
61352
61353 2007-04-27  Bruno Haible  <bruno@clisp.org>
61354
61355         * lib/fflush.c: Add comments.
61356         * modules/fpurge-tests (Depends-on): Add fflush.
61357         * modules/freadable-tests (Depends-on): Likewise.
61358         * modules/fwritable-tests (Depends-on): Likewise.
61359
61360 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
61361
61362         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
61363         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
61364         Report by Bruno Haible <bruno@clisp.org>.
61365
61366 2007-04-26  Eric Blake  <ebb9@byu.net>
61367
61368         Fix fflush on mingw.
61369         * modules/fflush (Depends-on): Add freading.
61370         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
61371         but unread data.
61372
61373 2007-04-26  Eric Blake  <ebb9@byu.net>
61374         and Bruno Haible  <bruno@clisp.org>
61375
61376         Implement freading and fwriting.
61377         * lib/freading.c: New file.
61378         * lib/freading.h: Likewise.
61379         * m4/freading.m4: Likewise.
61380         * modules/freading: Likewise.
61381         * modules/freading-tests: Likewise.
61382         * tests/test-freading.c: Likewise.
61383         * lib/fwriting.c: New file.
61384         * lib/fwriting.h: Likewise.
61385         * m4/fwriting.m4: Likewise.
61386         * modules/fwriting: Likewise.
61387         * modules/fwriting-tests: Likewise.
61388         * tests/test-fwriting.c: Likewise.
61389         * MODULES.html.sh (File stream based Input/Output): Mention them.
61390
61391 2007-04-26  Bruno Haible  <bruno@clisp.org>
61392
61393         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
61394         'long' when we assume it.
61395         Suggested by Eric Blake.
61396
61397 2007-04-26  Bruno Haible  <bruno@clisp.org>
61398
61399         Ensure fseeko, ftello are declared on glibc systems.
61400         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
61401         * modules/fseeko (configure.ac-early): Likewise.
61402         * modules/ftello (configure.ac-early): Likewise.
61403         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
61404         AC_FUNC_FSEEKO for this.
61405         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
61406         (gl_CHECK_FSEEKO): Remove macro.
61407
61408 2007-04-26  Bruno Haible  <bruno@clisp.org>
61409
61410         * tests/test-fflush.c (main): Also check the ftell result after
61411         fflush and fseek/fseeko.
61412         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
61413         file descriptor position cache in the stream.
61414         * lib/fseeko.c (rpl_fseeko): Likewise.
61415
61416 2007-04-26  Bruno Haible  <bruno@clisp.org>
61417
61418         * modules/fflush-tests (Depends-on): Add fseeko.
61419
61420 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
61421             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61422
61423         * lib/argz_.h: ensure error_t definition is obtained in same
61424         mechanism system argz.h would have.
61425         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
61426         argz facilities are known bad.  Err on the side of caution if
61427         cross-compiling.
61428
61429 2007-04-25  Eric Blake  <ebb9@byu.net>
61430
61431         * lib/fpurge.c (includes): Use stdlib.h for free.
61432         * tests/test-fflush.c (main): Also test fflush-fseeko.
61433
61434 2007-04-25  Bruno Haible  <bruno@clisp.org>
61435
61436         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
61437         * lib/fseeko.c: New file.
61438         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
61439         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
61440         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
61441         gl_FUNC_FSEEKO.
61442         (gl_FUNC_FSEEKO): Invoke it.
61443         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
61444         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
61445         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
61446
61447 2007-04-25  Bruno Haible  <bruno@clisp.org>
61448
61449         * modules/fflush (Depends-on): Add ftello.
61450
61451 2007-04-25  Bruno Haible  <bruno@clisp.org>
61452
61453         * modules/ftello-tests: New file.
61454         * tests/test-ftello.c: New file.
61455
61456         * modules/ftello: New file.
61457         * m4/ftello.m4: New file.
61458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
61459         HAVE_FTELLO.
61460         * lib/stdio_.h (ftello): New declaration.
61461         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
61462         HAVE_FTELLO.
61463
61464 2007-04-25  Bruno Haible  <bruno@clisp.org>
61465
61466         * modules/fseeko-tests: New file.
61467         * tests/test-fseeko.c: New file.
61468
61469         * modules/fseeko: New file.
61470         * m4/fseeko.m4: New file.
61471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
61472         HAVE_FSEEKO.
61473         * lib/stdio_.h (fseeko): New declaration.
61474         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
61475         HAVE_FSEEKO.
61476
61477 2007-04-25  Bruno Haible  <bruno@clisp.org>
61478
61479         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
61480
61481 2007-04-25  Bruno Haible  <bruno@clisp.org>
61482
61483         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
61484         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
61485         * tests/test-unistd.c: Likewise.
61486         * tests/test-fcntl.c: Likewise.
61487
61488 2007-04-23  Eric Blake  <ebb9@byu.net>
61489
61490         * lib/fflush.c: Fix missing include.
61491         Reported by Bruno Haible.
61492
61493 2007-04-23  Bruno Haible  <bruno@clisp.org>
61494
61495         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
61496         Reported by Eric Blake.
61497
61498 2007-04-23  Bruno Haible  <bruno@clisp.org>
61499
61500         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
61501
61502 2007-04-23  Bruno Haible  <bruno@clisp.org>
61503
61504         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
61505
61506 2007-04-23  Bruno Haible  <bruno@clisp.org>
61507
61508         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
61509         Needed on HP-UX 11.
61510
61511 2007-04-16  Eric Blake  <ebb9@byu.net>
61512
61513         Make fflush rely on fpurge.
61514         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
61515         open coding all variants.
61516         * modules/fflush (Depends-on): Add fpurge and unistd.
61517         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
61518         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
61519
61520         Fix --with-tests compilation on cygwin.
61521         * modules/argmatch-tests (Makefile.am): List gnulib library first
61522         in LDADD.
61523         * modules/argp-tests (Makefile.am): Likewise.
61524         * modules/array-list-tests (Makefile.am): Likewise.
61525         * modules/array-oset-tests (Makefile.am): Likewise.
61526         * modules/avltree-list-tests (Makefile.am): Likewise.
61527         * modules/avltree-oset-tests (Makefile.am): Likewise.
61528         * modules/avltreehash-list-tests (Makefile.am): Likewise.
61529         * modules/carray-list-tests (Makefile.am): Likewise.
61530         * modules/dirname-tests (Makefile.am): Likewise.
61531         * modules/frexp-tests (Makefile.am): Likewise.
61532         * modules/isnanl-tests (Makefile.am): Likewise.
61533         * modules/linked-list-tests (Makefile.am): Likewise.
61534         * modules/linkedhash-list-tests (Makefile.am): Likewise.
61535         * modules/lock-tests (Makefile.am): Likewise.
61536         * modules/rbtree-list-tests (Makefile.am): Likewise.
61537         * modules/rbtree-oset-tests (Makefile.am): Likewise.
61538         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
61539         * modules/tls-tests (Makefile.am): Likewise.
61540         * modules/tsearch-tests (Makefile.am): Likewise.
61541         * modules/xvasprintf-tests (Makefile.am): Likewise.
61542
61543         Fix fpurge for cygwin.
61544         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
61545         value.
61546         * modules/fpurge-tests (Depends-on): Clean up trash.
61547
61548 2007-04-16  Simon Josefsson  <simon@josefsson.org>
61549
61550         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
61551
61552         * m4/autobuild.m4: Re-indent.
61553
61554 2007-04-13  Bruno Haible  <bruno@clisp.org>
61555
61556         * modules/fpurge-tests: New file.
61557         * tests/test-fpurge.c: New file.
61558
61559         * modules/fpurge: New file.
61560         * lib/fpurge.h: New file.
61561         * lib/fpurge.c: New file.
61562         * m4/fpurge.m4: New file.
61563
61564 2007-04-13  Bruno Haible  <bruno@clisp.org>
61565
61566         * modules/fbufmode-tests: New file.
61567         * tests/test-fbufmode.c: New file.
61568
61569         * modules/fbufmode: New file.
61570         * lib/fbufmode.h: New file.
61571         * lib/fbufmode.c: New file.
61572         * m4/fbufmode.m4: New file.
61573
61574 2007-04-13  Bruno Haible  <bruno@clisp.org>
61575
61576         * modules/fwritable-tests: New file.
61577         * tests/test-fwritable.c: New file.
61578
61579         * modules/fwritable: New file.
61580         * lib/fwritable.h: New file.
61581         * lib/fwritable.c: New file.
61582         * m4/fwritable.m4: New file.
61583
61584 2007-04-13  Bruno Haible  <bruno@clisp.org>
61585
61586         * modules/freadable-tests: New file.
61587         * tests/test-freadable.c: New file.
61588
61589         * modules/freadable: New file.
61590         * lib/freadable.h: New file.
61591         * lib/freadable.c: New file.
61592         * m4/freadable.m4: New file.
61593
61594 2007-04-13  Bruno Haible  <bruno@clisp.org>
61595
61596         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
61597         MOSTLYCLEANFILES.
61598
61599 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61600
61601         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
61602         gzip bootstrap.conf to avoid dragging in i18n machinery.
61603         (gnulib_tool_option): Use it.
61604
61605 2007-04-13  Bruno Haible  <bruno@clisp.org>
61606
61607         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
61608         %F directives.
61609         * tests/test-vasprintf-posix.c (test_function): Likewise.
61610         * tests/test-snprintf-posix.h (test_function): Likewise.
61611         * tests/test-sprintf-posix.h (test_function): Likewise.
61612         * tests/test-fprintf-posix.h (test_function): Likewise.
61613         * tests/test-printf-posix.h (test_function): Likewise.
61614         * tests/test-fprintf-posix.out: Likewise.
61615
61616 2007-04-13  Bruno Haible  <bruno@clisp.org>
61617
61618         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
61619         * modules/tls-tests (configure.ac): Likewise.
61620         Reported by Arto C. Nirkko <anirkko@insel.ch>.
61621
61622 2007-04-13  Bruno Haible  <bruno@clisp.org>
61623
61624         * lib/tls.c (glthread_tls_get): Fix return type.
61625         Patch by Arto C. Nirkko <anirkko@insel.ch>.
61626
61627 2007-04-12  Eric Blake  <ebb9@byu.net>
61628
61629         * modules/gettime (Depends-on): Remove gettime.
61630         Reported by Dmitry V. Levin.
61631
61632 2007-04-12  Bruno Haible  <bruno@clisp.org>
61633
61634         * modules/fflush (Include): Mention <stdio.h>.
61635         * modules/strtoimax (Include): Mention <inttypes.h>.
61636         * modules/strtoumax (Include): Likewise.
61637
61638 2007-04-12  Eric Blake  <ebb9@byu.net>
61639
61640         * .cvsignore: New file.
61641         * .gitignore: Likewise.
61642
61643 2007-04-12  Bruno Haible  <bruno@clisp.org>
61644
61645         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
61646         not before, since $(LDADD) often contains libgnu.a.
61647         * modules/striconv-tests (test_striconv_LDADD): Likewise.
61648         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
61649         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
61650         Needed on Cygwin.
61651
61652 2007-04-12  Eric Blake  <ebb9@byu.net>
61653
61654         Work around glibc's failure to flush stdin on fclose.
61655         * lib/closein.c (close_stdin): Flush stdin before closing.
61656
61657         Work around glibc's failure to reset seekable stdin on exit.
61658         * modules/closein: New module.
61659         * lib/closein.c: New file.
61660         * lib/closein.h: Likewise.
61661         * m4/closein.m4: Likewise.
61662         * MODULES.html.sh (File stream based Input/Output): Document it.
61663
61664 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61665
61666         * gnulib-tool: Rename generated 'autobuild' script to
61667         'do-autobuild' in --create-megatestdir output.
61668
61669         * doc/gnulib.texi (Build robot for gnulib): Fix.
61670
61671 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61672
61673         * modules/sysexits (Depends-on): Add absolute-header.
61674
61675 2007-04-12  Eric Blake  <ebb9@byu.net>
61676
61677         No need to preserve errno on success.
61678         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
61679         Reported by Bruno Haible.
61680
61681 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61682
61683         * MODULES.html.sh (Support for maintaining and releasing
61684         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
61685
61686 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61687
61688         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
61689
61690 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61691
61692         * modules/autobuild: New module.
61693
61694         * m4/autobuild.m4: New file.
61695
61696 2007-04-11  Bruno Haible  <bruno@clisp.org>
61697
61698         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
61699         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
61700         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
61701         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
61702         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61703         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61704         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61705         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61706         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61707         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61708         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
61709         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61710         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61711         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
61712         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61713         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61714         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
61715         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61716         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61717         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
61718         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61719         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61720         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
61721         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61722         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61723         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
61724         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61725         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61726         Reported by Eric Blake.
61727
61728 2007-04-11  Bruno Haible  <bruno@clisp.org>
61729
61730         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
61731
61732 2007-04-10  Bruno Haible  <bruno@clisp.org>
61733
61734         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
61735         for NaN and Infinity. Needed on FreeBSD 6.1.
61736         * tests/test-vasnprintf-posix.c (test_function): Undo last change
61737         regarding results for "%010a" of Infinity and NaN.
61738         * tests/test-vasprintf-posix.c (test_function): Likewise.
61739         * tests/test-snprintf-posix.h (test_function): Likewise.
61740         * tests/test-sprintf-posix.h (test_function): Likewise.
61741         * tests/test-fprintf-posix.h (test_function): Likewise.
61742         * tests/test-printf-posix.h (test_function): Likewise.
61743         * tests/test-fprintf-posix.out: Likewise.
61744
61745 2007-04-10  Bruno Haible  <bruno@clisp.org>
61746
61747         * modules/locale-tests: New file.
61748         * tests/test-locale.c: New file.
61749
61750         * modules/locale: New file.
61751         * lib/locale_.h: New file.
61752         * m4/locale_h.m4: New file.
61753
61754 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
61755             Bruno Haible  <bruno@clisp.org>
61756
61757         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
61758         be determined, test for availability of the copysignf, copysign,
61759         copysignl functions.
61760         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
61761         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
61762         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
61763
61764 2007-04-09  Eric Blake  <ebb9@byu.net>
61765
61766         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
61767         * modules/stdio (Makefile.am): Support fflush.
61768         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61769         * modules/fflush: New file.
61770         * lib/fflush.c: Likewise.
61771         * m4/fflush.m4: Likewise.
61772         * modules/fflush-tests: New test.
61773         * tests/test-fflush.c: Likewise.
61774         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
61775
61776 2007-04-06  Bruno Haible  <bruno@clisp.org>
61777
61778         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
61779         (VASNPRINTF): Use signbit for faster determination whether to print a
61780         minus sign.
61781         * modules/vasnprintf (Files): Remove lib/float+.h.
61782         * modules/fprintf-posix (Depends-on): Add signbit.
61783         * modules/snprintf-posix (Depends-on): Likewise.
61784         * modules/sprintf-posix (Depends-on): Likewise.
61785         * modules/vasnprintf-posix (Depends-on): Likewise.
61786         * modules/vasprintf-posix (Depends-on): Likewise.
61787         * modules/vfprintf-posix (Depends-on): Likewise.
61788         * modules/vsnprintf-posix (Depends-on): Likewise.
61789         * modules/vsprintf-posix (Depends-on): Likewise.
61790
61791 2007-04-06  Bruno Haible  <bruno@clisp.org>
61792
61793         * tests/test-frexp.c (main): Test also the sign bit of zero results.
61794         * tests/test-frexpl.c (main): Likewise.
61795         * tests/test-ldexpl.c (main): Likewise.
61796         * modules/frexp-tests (Depends-on): Add signbit.
61797         * modules/frexpl-tests (Depdends-on): Likewise.
61798         * modules/ldexpl-tests (Depdends-on): Likewise.
61799
61800 2007-04-06  Bruno Haible  <bruno@clisp.org>
61801
61802         * modules/signbit-tests: New file.
61803         * tests/test-signbit.c: New file.
61804
61805         * modules/signbit: New file.
61806         * lib/signbitf.c: New file.
61807         * lib/signbitd.c: New file.
61808         * lib/signbitl.c: New file.
61809         * m4/signbit.m4: New file.
61810         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
61811         (signbit): New macro.
61812         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
61813         REPLACE_SIGNBIT.
61814         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
61815         REPLACE_FREXPL into math.h.
61816
61817 2007-04-06  Bruno Haible  <bruno@clisp.org>
61818
61819         * modules/isnanf-nolibm-tests: New file.
61820         * tests/test-isnanf.c: New file.
61821
61822         * modules/isnanf-nolibm: New file.
61823         * lib/isnanf.h: New file.
61824         * lib/isnanf.c: New file.
61825         * lib/isnan.c: Consider the USE_FLOAT macro.
61826         * m4/isnanf.m4: New file.
61827
61828 2007-04-06  Bruno Haible  <bruno@clisp.org>
61829
61830         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
61831         (Link): New section.
61832
61833         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
61834
61835 2007-04-06  Bruno Haible  <bruno@clisp.org>
61836
61837         Assume the 'long double' type.
61838         * m4/longdouble.m4: Remove file.
61839         * config/srclist.txt: Don't mention longdouble.m4.
61840         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
61841         * lib/float+.h: Likewise.
61842         * lib/frexp.c: Likewise.
61843         * lib/printf-args.h: Likewise.
61844         * lib/printf-args.c: Likewise.
61845         * lib/printf-frexp.c: Likewise.
61846         * lib/printf-parse.c: Likewise.
61847         * lib/vasnprintf.c: Likewise.
61848         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
61849         * m4/intl.m4: Likewise.
61850         * m4/isnanl.m4: Likewise.
61851         * m4/printf.m4: Likewise.
61852         * m4/printf-frexpl.m4: Likewise.
61853         * m4/vasnprintf.m4: Likewise.
61854         * modules/allocsa (Files): Remove m4/longdouble.m4.
61855         * modules/gettext (Files): Likewise.
61856         * modules/relocatable-prog-wrapper (Files): Likewise.
61857         * modules/vasnprintf (Files): Likewise.
61858         * modules/isnanl (Files): Likewise.
61859         (Include): Simplify.
61860         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
61861         (Include): Simplify.
61862         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
61863         (Include): Simplify.
61864         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
61865         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61866         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
61867         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61868         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61869         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61870         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
61871         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61872         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61873         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61874         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
61875         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61876         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
61877         * tests/test-isnanl.c: Likewise.
61878         * tests/test-snprintf-posix.h: Likewise.
61879         * tests/test-sprintf-posix.h: Likewise.
61880         * tests/test-vasnprintf-posix.c: Likewise.
61881         * tests/test-vasnprintf-posix2.c: Likewise.
61882         * tests/test-vasprintf-posix.c: Likewise.
61883
61884 2007-04-06  Bruno Haible  <bruno@clisp.org>
61885
61886         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
61887         * lib/math_.h [__DECC]: Include the overridden include file through
61888         #include_next, outside the double-inclusion guard.
61889         * lib/stdio_.h [__DECC]: Likewise.
61890         * lib/stdlib_.h [__DECC]: Likewise.
61891         * lib/string_.h [__DECC]: Likewise.
61892         * lib/time_.h [__DECC]: Likewise.
61893         * lib/wchar_.h [__DECC]: Likewise.
61894         * lib/wctype_.h [__DECC]: Likewise.
61895         * lib/inttypes_.h [__DECC]: Likewise.
61896         Reported by Albert Chin <china@thewrittenword.com> in
61897         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
61898
61899 2007-04-04  Eric Blake  <ebb9@byu.net>
61900
61901         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
61902         1.5.x.
61903
61904 2007-04-04  Bruno Haible  <bruno@clisp.org>
61905
61906         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
61907         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
61908
61909 2007-04-04  Bruno Haible  <bruno@clisp.org>
61910
61911         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
61912         results for "%010a" of Infinity and NaN.
61913         * tests/test-vasprintf-posix.c (test_function): Likewise.
61914         * tests/test-snprintf-posix.h (test_function): Likewise.
61915         * tests/test-sprintf-posix.h (test_function): Likewise.
61916         * tests/test-fprintf-posix.h (test_function): Remove these tests.
61917         * tests/test-printf-posix.h (test_function): Likewise.
61918         * tests/test-fprintf-posix.out: Update.
61919         Needed for FreeBSD 6.1.
61920
61921 2007-04-04  Bruno Haible  <bruno@clisp.org>
61922
61923         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
61924         directly used by the gnulib modules nor by gnulib-tool.
61925
61926 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
61927
61928         * DEPENDENCIES: Give overall description of version dependency
61929         desirability.  Use more-typical names for apps.
61930         Add shell, coreutils, diffutils, grep, tar, gzip.
61931
61932 2007-04-04  Simon Josefsson  <simon@josefsson.org>
61933
61934         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
61935
61936 2007-04-04  Karl Berry  <karl@gnu.org>
61937
61938         * MODULES.html.sh (func_module): missing '.
61939
61940 2007-04-03  Bruno Haible  <bruno@clisp.org>
61941
61942         * modules/argmatch-tests (Makefile.am): New variable
61943         test_argmatch_LDADD.
61944         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
61945         * modules/array-list-tests (Makefile.am): New variable
61946         test_array_list_LDADD.
61947         * modules/array-oset-tests (Makefile.am): New variable
61948         test_array_oset_LDADD.
61949         * modules/avltree-list-tests (Makefile.am): New variable
61950         test_avltree_list_LDADD.
61951         * modules/avltree-oset-tests (Makefile.am): New variable
61952         test_avltree_oset_LDADD.
61953         * modules/avltreehash-list-tests (Makefile.am): New variable
61954         test_avltreehash_list_LDADD.
61955         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
61956         test_canonicalize_lgpl_LDADD.
61957         * modules/carray-list-tests (Makefile.am): New variable
61958         test_carray_list_LDADD.
61959         * modules/dirname-tests (Makefile.am): New variable
61960         test_dirname_LDADD.
61961         * modules/linked-list-tests (Makefile.am): New variable
61962         test_linked_list_LDADD.
61963         * modules/linkedhash-list-tests (Makefile.am): New variable
61964         test_linkedhash_list_LDADD.
61965         * modules/rbtree-list-tests (Makefile.am): New variable
61966         test_rbtree_list_LDADD.
61967         * modules/rbtree-oset-tests (Makefile.am): New variable
61968         test_rbtree_oset_LDADD.
61969         * modules/rbtreehash-list-tests (Makefile.am): New variable
61970         test_rbtreehash_list_LDADD.
61971         * modules/xvasprintf-tests (Makefile.am): New variable
61972         test_xvasprintf_LDADD.
61973         Reported by Eric Blake.
61974
61975 2007-04-03  Eric Blake  <ebb9@byu.net>
61976
61977         * DEPENDENCIES: Weaken m4 requirements.
61978
61979 2007-04-03  Bruno Haible  <bruno@clisp.org>
61980
61981         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
61982         * modules/isnanl-tests (configure.ac): Likewise.
61983
61984 2007-04-03  Ben Pfaff  <blp@gnu.org>
61985
61986         * modules/iconv_open: Add $(srcdir)/ to source directory
61987         references in Makefile fragments that call gperf, to fix VPATH
61988         builds.
61989
61990 2007-04-03  Bruno Haible  <bruno@clisp.org>
61991
61992         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
61993         * lib/ldexpl.c: Undo last change.
61994
61995 2007-04-03  Bruno Haible  <bruno@clisp.org>
61996
61997         * modules/printf-frexpl (Depends-on): Undo last change.
61998         (Files): Add m4/ldexpl.m4.
61999
62000 2007-04-03  Bruno Haible  <bruno@clisp.org>
62001
62002         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
62003         * modules/isnanl (Link): New section.
62004
62005         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
62006         * modules/frexp (Link): New section.
62007
62008         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
62009         * modules/frexpl (Link): New section.
62010
62011         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
62012         * modules/ldexpl (Link): New section.
62013
62014 2007-04-03  Bruno Haible  <bruno@clisp.org>
62015
62016         * modules/TEMPLATE-EXTENDED: New file.
62017         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
62018
62019 2007-04-03  Bruno Haible  <bruno@clisp.org>
62020
62021         * DEPENDENCIES: New file.
62022         Suggested by Simon Josefsson.
62023
62024 2007-04-03  Bruno Haible  <bruno@clisp.org>
62025
62026         * doc/gnulib.texi: Escape @.
62027
62028 2007-04-03  James Youngman  <jay@gnu.org>
62029         and Paul Eggert  <eggert@cs.ucla.edu>
62030
62031         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
62032         birthtime on all systems that have birthtime, not just those which
62033         use st_birthtimensec rather than st_birthtim.  Putting zero in
62034         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
62035         that the birth time is not available for files on an NFS mount.
62036
62037 2007-04-03  Simon Josefsson  <simon@josefsson.org>
62038
62039         * modules/memxor: Move back from crypto/, suggested by Bruno.
62040         * modules/crypto/hmac-sha1: Fix memxor dependency.
62041
62042         * modules/crypto/gc: Moved from ../.
62043
62044 2007-04-02  Eric Blake  <ebb9@byu.net>
62045
62046         * lib/ldexpl.c (includes): Avoid libm.
62047
62048         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
62049
62050 2007-04-02  Bruno Haible  <bruno@clisp.org>
62051
62052         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
62053         on IRIX.
62054
62055 2007-04-02  Bruno Haible  <bruno@clisp.org>
62056
62057         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
62058         x86 or x86_64 platforms running MacOS X.
62059         Reported by Ryan Schmidt <@ryandesign.com>.
62060
62061 2007-04-02  Bruno Haible  <bruno@clisp.org>
62062
62063         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
62064         i386.
62065
62066 2007-04-01  Simon Josefsson  <simon@josefsson.org>
62067
62068         * modules/crypto/arcfour: Moved from ../.
62069         * modules/crypto/arcfour-tests: Moved from ../.
62070         * modules/crypto/arctwo: Moved from ../.
62071         * modules/crypto/arctwo-tests: Moved from ../.
62072         * modules/crypto/des: Moved from ../.
62073         * modules/crypto/des-tests: Moved from ../.
62074         * modules/crypto/gc-arcfour: Moved from ../.
62075         * modules/crypto/gc-arcfour-tests: Moved from ../.
62076         * modules/crypto/gc-arctwo: Moved from ../.
62077         * modules/crypto/gc-arctwo-tests: Moved from ../.
62078         * modules/crypto/gc-des: Moved from ../.
62079         * modules/crypto/gc-des-tests: Moved from ../.
62080         * modules/crypto/gc-hmac-md5: Moved from ../.
62081         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
62082         * modules/crypto/gc-hmac-sha1: Moved from ../.
62083         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
62084         * modules/crypto/gc-md2: Moved from ../.
62085         * modules/crypto/gc-md2-tests: Moved from ../.
62086         * modules/crypto/gc-md4: Moved from ../.
62087         * modules/crypto/gc-md4-tests: Moved from ../.
62088         * modules/crypto/gc-md5: Moved from ../.
62089         * modules/crypto/gc-md5-tests: Moved from ../.
62090         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
62091         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
62092         * modules/crypto/gc-random: Moved from ../.
62093         * modules/crypto/gc-rijndael: Moved from ../.
62094         * modules/crypto/gc-rijndael-tests: Moved from ../.
62095         * modules/crypto/gc-sha1: Moved from ../.
62096         * modules/crypto/gc-sha1-tests: Moved from ../.
62097         * modules/crypto/gc-tests: Moved from ../.
62098         * modules/crypto/hmac-md5: Moved from ../.
62099         * modules/crypto/hmac-md5-tests: Moved from ../.
62100         * modules/crypto/hmac-sha1: Moved from ../.
62101         * modules/crypto/hmac-sha1-tests: Moved from ../.
62102         * modules/crypto/md2: Moved from ../.
62103         * modules/crypto/md2-tests: Moved from ../.
62104         * modules/crypto/md4: Moved from ../.
62105         * modules/crypto/md4-tests: Moved from ../.
62106         * modules/crypto/md5: Moved from ../.
62107         * modules/crypto/md5-tests: Moved from ../.
62108         * modules/crypto/memxor: Moved from ../.
62109         * modules/crypto/rijndael: Moved from ../.
62110         * modules/crypto/rijndael-tests: Moved from ../.
62111         * modules/crypto/sha1: Moved from ../.
62112
62113 2007-03-30  James Youngman  <jay@gnu.org>
62114
62115         * tests/test-stat-time.c (prepare_test): use chmod() rather than
62116         rename() to change the ctime of a file (because ctime is unaffected
62117         by rename on jfs2 on AIX 5.1).
62118         (main): Start by doing cleanup, in case a previous run failed leaving
62119         test files behind.
62120
62121 2007-03-31  Bruno Haible  <bruno@clisp.org>
62122
62123         Support old proprietary implementations of iconv.
62124         * modules/iconv_open: New file.
62125         * lib/iconv_.h: New file.
62126         * m4/iconv_h.m4: New file.
62127         * lib/iconv_open.c: New file.
62128         * lib/iconv_open-aix.gperf: New file.
62129         * lib/iconv_open-hpux.gperf: New file.
62130         * lib/iconv_open-irix.gperf: New file.
62131         * lib/iconv_open-osf.gperf: New file.
62132         * m4/iconv_open.m4: New file.
62133         * modules/linebreak (Depends-on): Add iconv_open.
62134         * modules/striconv (Depends-on): Likewise.
62135         * modules/striconveh (Depends-on): Likewise.
62136         * modules/unicodeio (Depends-on): Likewise.
62137         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
62138         (iconv_t)(-1).
62139         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
62140         conversion if cd is (iconv_t)(-1).
62141         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
62142         is not possible.
62143
62144 2007-03-31  Bruno Haible  <bruno@clisp.org>
62145
62146         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62147         work on Solaris either. Protect also second use of "autodetect_jp".
62148
62149 2007-03-31  Bruno Haible  <bruno@clisp.org>
62150
62151         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
62152         the function is not present.
62153
62154 2007-03-31  Bruno Haible  <bruno@clisp.org>
62155
62156         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
62157         the function is not present.
62158
62159 2007-03-31  Bruno Haible  <bruno@clisp.org>
62160
62161         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
62162         a bug in HP-UX iconv_open().
62163
62164 2007-03-31  Bruno Haible  <bruno@clisp.org>
62165
62166         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
62167         (Mathematics <math.h>): New section, add fpieee.
62168         (Input/output <stdio.h>): Add fseterr.
62169         (Mathematics <math.h>): New section, add printf-frexp.
62170         (Container data structures): Add sublist.
62171         (Core language properties): Add fpucw, inline.
62172         (Functions for greatest-width integer types <inttypes.h>): Add
62173         imaxabs, imaxdiv, inttypes.
62174         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
62175         isnanl-nolibm, ldexp.
62176         (Mathematics <math.h>): New section, add printf-frexpl.
62177         (Support for systems lacking POSIX:2001): Add fprintf-posix,
62178         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
62179         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
62180         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
62181         (Unicode string functions): Add unistr/u*-mbtoucr.
62182         (Java): Add javacomp-script, javaexec-script.
62183         (C#): Add csharpcomp-script, csharpexec-script.
62184         (Support for building libraries and executables): Add havelib,
62185         relocatable-*.
62186         (Support for maintaining and releasing projects): Renamed from
62187         'Support for maintaining and release projects'. Add announce-gen.
62188
62189 2007-03-31  Bruno Haible  <bruno@clisp.org>
62190
62191         * README: Talk primarily about git.
62192         (git and CVS): Renamed from CVS.
62193         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
62194         gnulib is available through git.
62195         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
62196
62197 2007-03-30  Bruno Haible  <bruno@clisp.org>
62198
62199         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
62200         * lib/poll_.h: Likewise.
62201         * lib/stat_.h: Likewise.
62202         * lib/sys_time_.h: Likewise.
62203         * lib/sysexit_.h: Likewise.
62204         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
62205         * lib/stdbool_.h: Likewise.
62206         * lib/byteswap_.h: Add double-inclusion guard.
62207
62208 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
62209
62210         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
62211
62212 2007-03-30  Karl Berry  <karl@gnu.org>
62213
62214         * config/srclist-update: double space after USA in the license
62215         substitution, since that's how it's usually (?) written.
62216
62217 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62218
62219         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
62220         reported by Bruno Haible.
62221
62222 2007-03-29  Bruno Haible  <bruno@clisp.org>
62223
62224         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
62225         a bug in AIX iconv().
62226
62227 2007-03-29  Bruno Haible  <bruno@clisp.org>
62228
62229         * modules/ldexpl-tests: New file.
62230         * tests/test-ldexpl.c: New file.
62231
62232 2007-03-29  Bruno Haible  <bruno@clisp.org>
62233
62234         * lib/ldexpl.c: Include fpucw.h.
62235         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
62236         multiplication.
62237         * modules/ldexpl (Depends-on): Add fpucw.
62238
62239 2007-03-29  Bruno Haible  <bruno@clisp.org>
62240
62241         * modules/ldexpl: New file.
62242         * m4/ldexpl.m4: New file.
62243         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
62244         set.
62245         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
62246         REPLACE_LDEXPL.
62247         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
62248         REPLACE_LDEXPL.
62249         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62250         gl_FUNC_LDEXPL_WORKS.
62251         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
62252         * modules/mathl (Files): Remove lib/ldexpl.c.
62253         (Depends-on): Add ldexpl.
62254
62255 2007-03-29  Bruno Haible  <bruno@clisp.org>
62256
62257         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
62258
62259 2007-03-29  Bruno Haible  <bruno@clisp.org>
62260
62261         * tests/test-striconveh.c (main): Don't assume that a direct conversion
62262         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
62263         and possibly also HP-UX.
62264         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62265         work on AIX, IRIX, HP-UX, OSF/1.
62266         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
62267         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
62268         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
62269         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
62270         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
62271         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
62272
62273 2007-03-29  Bruno Haible  <bruno@clisp.org>
62274
62275         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
62276
62277 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62278
62279         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
62280         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
62281
62282 2007-03-29  Eric Blake  <ebb9@byu.net>
62283
62284         * lib/acl-internal.h: Remove redundant include.
62285         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
62286         Cygwin when a file is locked.
62287
62288 2007-03-29  Bruno Haible  <bruno@clisp.org>
62289
62290         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
62291         file.
62292         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
62293
62294 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62295
62296         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
62297         try to remove a parent directory if the child couldn't be removed
62298         (except for the first rmdir, which could fail because the child
62299         doesn't exist).  Problem reported by Jeff Blaine in
62300         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
62301
62302 2007-03-28  Bruno Haible  <bruno@clisp.org>
62303
62304         * lib/striconveh.c (utf8conv_carefully): New function.
62305         (mem_cd_iconveh_internal): Invoke it.
62306
62307 2007-03-28  Bruno Haible  <bruno@clisp.org>
62308
62309         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
62310         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
62311         input.
62312         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
62313         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
62314         unistr/u8-uctomb.
62315
62316 2007-03-28  Bruno Haible  <bruno@clisp.org>
62317
62318         * modules/unistr/u8-mbtoucr: New file.
62319         * lib/unistr/u8-mbtoucr.c: New file.
62320         * modules/unistr/u16-mbtoucr: New file.
62321         * lib/unistr/u16-mbtoucr.c: New file.
62322         * modules/unistr/u16-mbtoucr: New file.
62323         * lib/unistr/u16-mbtoucr.c: New file.
62324         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
62325
62326 2007-03-27  Simon Josefsson  <simon@josefsson.org>
62327             Bruno Haible  <bruno@clisp.org>
62328
62329         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
62330         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
62331         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
62332
62333         * m4/stdio_h.m4: Add stubs for vasprintf too.
62334
62335         * modules/stdio: Support vasprintf in sed command.
62336
62337         * modules/vasprintf: Depend on stdio for prototypes.  Remove
62338         vasprintf.h.  Add stdio module indicator.
62339
62340         * lib/stdio_.h: Declare asprintf and vasprintf, based on
62341         vasprintf.h.
62342
62343         * lib/vasprintf.h: File removed.
62344
62345         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
62346         * lib/vasprintf.c: Ditto.
62347         * lib/xvasprintf.c: Ditto.
62348         * tests/test-vasprintf-posix.c: Ditto.
62349         * tests/test-vasprintf.c: Ditto.
62350
62351 2007-03-27  Bruno Haible  <bruno@clisp.org>
62352
62353         Make vasnprintf multithread-safe.
62354         * lib/vasnprintf.c (decimal_point_char): New function.
62355         (VASNPRINTF): Use it.
62356         Suggested by Simon Josefsson.
62357
62358 2007-03-27  Eric Blake  <ebb9@byu.net>
62359
62360         Support sub-second birthtime on cygwin.
62361         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
62362         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
62363         (get_stat_birthtime): Also work with st_birthtim.
62364
62365 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
62366
62367         * lib/stat-time.h (USE_BIRTHTIME): Remove.
62368         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
62369         (get_stat_birthtime_ns): Do not try to use "spare" fields.
62370         (get_stat_birthtime_ns): Simplify compile-time tests.
62371         (get_stat_birthtime): Change the API to look like
62372         get_stat_mtime etc., except return a negative tv_nsec on error.
62373         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
62374         Don't check for "spare" fields.
62375         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
62376         or for struct stat.st_birthtime, as these tests aren't used.
62377         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
62378
62379 2007-03-27  Bruno Haible  <bruno@clisp.org>
62380
62381         * lib/stat-time.h: Include <sys/stat.h>.
62382
62383 2007-03-27  James Youngman  <jay@gnu.org>
62384
62385         * lib/stat-time.h (get_stat_birthtime): New function for
62386           retrieving st_birthtime as provided by UFS2 (hence *BSD).
62387         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
62388           and its variants.
62389         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
62390         * modules/stat-time-test: New file.
62391         * tests/test-stat-time.c: New test, devised by Bruno Haible.
62392
62393 2007-03-26  Bruno Haible  <bruno@clisp.org>
62394
62395         Better support of signalling NaNs.
62396         * lib/atanl.c: Include isnanl.h.
62397         (atanl): Perform test for NaN at the beginning of the function and
62398         through a call to isnanl.
62399         * lib/cosl.c: Include isnanl.h.
62400         (cosl): Perform test for NaN at the beginning of the function and
62401         through a call to isnanl.
62402         * lib/ldexpl.c: Include isnanl.h.
62403         (ldexpl): Perform test for NaN through a call to isnanl.
62404         * lib/logl.c: Include isnanl.h.
62405         (logl): Perform test for NaN at the beginning of the function and
62406         through a call to isnanl.
62407         * lib/sinl.c: Include isnanl.h.
62408         (sinl): Perform test for NaN at the beginning of the function and
62409         through a call to isnanl.
62410         * lib/sqrtl.c: Include isnanl.h.
62411         (sqrtl): Perform test for NaN at the beginning of the function and
62412         through a call to isnanl.
62413         * lib/tanl.c: Include isnanl.h.
62414         (tanl): Perform test for NaN at the beginning of the function and
62415         through a call to isnanl.
62416         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
62417         * modules/mathl (Depends-on): Add isnanl.
62418
62419 2007-03-26  Eric Blake  <ebb9@byu.net>
62420
62421         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
62422         regression in logic sense of previous patch.
62423
62424 2007-03-26  Bruno Haible  <bruno@clisp.org>
62425
62426         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
62427         unportable shell command "if ! ...".
62428         Reported by Ralf Wildenhues.
62429
62430 2007-03-25  Bruno Haible  <bruno@clisp.org>
62431
62432         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
62433         <sysexits.h> file, and only add EX_CONFIG.
62434         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
62435         absolute file name and whether it is sufficient. Substitute also
62436         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
62437         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
62438         ABSOLUTE_SYSEXITS_H into sysexits.h.
62439
62440 2007-03-25  Bruno Haible  <bruno@clisp.org>
62441
62442         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
62443         hints is NULL.
62444
62445 2007-03-25  Bruno Haible  <bruno@clisp.org>
62446
62447         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
62448         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
62449
62450 2007-03-25  Bruno Haible  <bruno@clisp.org>
62451
62452         * lib/vasnprintf.c: Include langinfo.h.
62453         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
62454         multithread-safe.
62455         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
62456         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
62457         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62458         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62459         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62460         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62461         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62462         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
62463         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62464         Reported by Simon Josefsson.
62465
62466 2007-03-25  Bruno Haible  <bruno@clisp.org>
62467
62468         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
62469         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
62470         * modules/vasnprintf (Depends-on): Add stdint.
62471
62472 2007-03-25  Bruno Haible  <bruno@clisp.org>
62473
62474         * modules/fpieee: New file.
62475         * m4/fpieee.m4: New file.
62476         * modules/isnan-nolibm (Depends-on): Add fpieee.
62477         * modules/isnanl-nolibm (Depends-on): Add fpieee.
62478         * modules/isnanl (Depends-on): Add fpieee.
62479
62480 2007-03-25  Bruno Haible  <bruno@clisp.org>
62481
62482         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
62483
62484 2007-03-25  Bruno Haible  <bruno@clisp.org>
62485
62486         Avoid test failures on IRIX 6.5.
62487         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
62488         (main): Use it.
62489         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
62490         macros.
62491         (main): Use them.
62492
62493 2007-03-25  Bruno Haible  <bruno@clisp.org>
62494
62495         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
62496         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
62497         exists but doesn't work.
62498         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
62499         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
62500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
62501         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
62502         math.h.
62503
62504 2007-03-25  Bruno Haible  <bruno@clisp.org>
62505
62506         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
62507         returns inf. Needed on IRIX 6.5.
62508
62509 2007-03-25  Bruno Haible  <bruno@clisp.org>
62510
62511         * tests/test-frexpl.c: Include isnanl-nolibm.h.
62512         (main): Use isnanl instead of x != x idiom.
62513         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
62514
62515         * tests/test-frexp.c: Include isnan.h.
62516         (main): Use isnan instead of x != x idiom.
62517         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
62518
62519 2007-03-25  Bruno Haible  <bruno@clisp.org>
62520
62521         * tests/test-frexp.c (NaN): New function/macro.
62522         (main): Use it instead of 0.0 / 0.0.
62523         * tests/test-isnan.c (NaN): New function/macro.
62524         (main): Use it instead of 0.0 / 0.0.
62525         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
62526         (test_function): Use it instead of 0.0 / 0.0.
62527         * tests/test-vasprintf-posix.c (NaN): New function/macro.
62528         (test_function): Use it instead of 0.0 / 0.0.
62529         * tests/test-snprintf-posix.h (NaN): New function/macro.
62530         (test_function): Use it instead of 0.0 / 0.0.
62531         * tests/test-sprintf-posix.h (NaN): New function/macro.
62532         (test_function): Use it instead of 0.0 / 0.0.
62533         * tests/test-fprintf-posix.h (NaN): New function/macro.
62534         (test_function): Use it instead of 0.0 / 0.0.
62535         * tests/test-printf-posix.h (NaN): New function/macro.
62536         (test_function): Use it instead of 0.0 / 0.0.
62537
62538         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
62539
62540 2007-03-25  Bruno Haible  <bruno@clisp.org>
62541
62542         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
62543
62544 2007-03-25  Bruno Haible  <bruno@clisp.org>
62545
62546         * lib/regexec.c (merge_state_with_log): Make static.
62547
62548 2007-03-25  Bruno Haible  <bruno@clisp.org>
62549
62550         * lib/trigl.c (kernel_rem_pio2): Make static.
62551
62552 2007-03-25  Bruno Haible  <bruno@clisp.org>
62553
62554         * lib/sincosl.c (sincosl_table): Make static.
62555
62556 2007-03-25  Bruno Haible  <bruno@clisp.org>
62557
62558         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
62559         if the compiler does not support C99.
62560
62561 2007-03-25  Bruno Haible  <bruno@clisp.org>
62562
62563         * modules/time (Makefile.am): Ensure all rule action lines start with a
62564         tab.
62565
62566 2007-03-24  Bruno Haible  <bruno@clisp.org>
62567
62568         * modules/tsearch-tests: New file.
62569         * tests/test-tsearch.sh: New file.
62570         * tests/test-tsearch.c: New file, mostly copied from glibc.
62571
62572         * modules/search-tests: New file.
62573         * tests/test-search.c: New file.
62574
62575         * modules/search: New file.
62576         * lib/search_.h: New file, incorporating lib/tsearch.h.
62577         * m4/search_h.m4: New file.
62578         * lib/tsearch.h: Remove file.
62579         * lib/tsearch.c: Include search.h instead of tsearch.h.
62580         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
62581         HAVE_TSEARCH.
62582         * modules/tsearch (Files): Remove lib/tsearch.h.
62583         (Depends-on): Add search.
62584         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
62585         (Include): Change tsearch.h into search.h.
62586
62587 2007-03-24  Bruno Haible  <bruno@clisp.org>
62588
62589         * modules/fpucw: New file.
62590         * lib/fpucw.h: New file.
62591         * lib/frexp.c: Include fpucw.h.
62592         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62593         (FUNC): Use them.
62594         * lib/printf-frexp.c: Include fpucw.h.
62595         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62596         (FUNC): Use them.
62597         * lib/vasnprintf.c: Include fpucw.h.
62598         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
62599         'long double' calculations.
62600         * tests/test-frexpl.c: Include fpucw.h.
62601         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62602         * tests/test-printf-frexpl.c: Include fpucw.h.
62603         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62604         * modules/frexpl (Depends-on): Add fpucw.
62605         * modules/printf-frexpl (Depends-on): Likewise.
62606         * modules/fprintf-posix (Depends-on): Likewise.
62607         * modules/snprintf-posix (Depends-on): Likewise.
62608         * modules/sprintf-posix (Depends-on): Likewise.
62609         * modules/vasnprintf-posix (Depends-on): Likewise.
62610         * modules/vasprintf-posix (Depends-on): Likewise.
62611         * modules/vfprintf-posix (Depends-on): Likewise.
62612         * modules/vsnprintf-posix (Depends-on): Likewise.
62613         * modules/vsprintf-posix (Depends-on): Likewise.
62614         * modules/frexpl-tests (Depends-on): Likewise.
62615         * modules/printf-frexpl-tests (Depends-on): Likewise.
62616
62617 2007-03-24  Bruno Haible  <bruno@clisp.org>
62618
62619         * lib/float+.h: New file.
62620         * lib/isnan.c: Include float+.h.
62621         (SIZE): New macro.
62622         (FUNC): Compare only SIZE bytes of the value.
62623         * lib/vasnprintf.c: Include float+.h.
62624         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
62625         SIZEOF_LDBL or SIZEOF_DBL bytes.
62626         * modules/isnan-nolibm (Files): Add lib/float+.h.
62627         * modules/isnanl-nolibm (Files): Add lib/float+.h.
62628         * modules/isnanl (Files): Add lib/float+.h.
62629         * modules/vasnprintf (Files): Add lib/float+.h.
62630
62631 2007-03-24  Bruno Haible  <bruno@clisp.org>
62632
62633         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
62634         include isnanl-nolibm.h.
62635
62636 2007-03-24  Bruno Haible  <bruno@clisp.org>
62637
62638         * tests/test-read-file.c (main): Don't produce spurious output for
62639         expected situations. Make the test fail if it encountered unexpected
62640         results.
62641
62642 2007-03-24  Bruno Haible  <bruno@clisp.org>
62643
62644         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
62645         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
62646
62647 2007-03-24  Bruno Haible  <bruno@clisp.org>
62648
62649         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
62650
62651 2007-03-24  Bruno Haible  <bruno@clisp.org>
62652
62653         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
62654         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
62655
62656         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
62657         * modules/utf8-ucs4: Turn into a symbolic link to module
62658         unistr/u8-mbtouc.
62659
62660         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
62661         utf8-ucs4-unsafe.
62662         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
62663         unistr/u8-mbtouc-unsafe.
62664
62665         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
62666         * modules/utf16-ucs4: Turn into a symbolic link to module
62667         unistr/u16-mbtouc.
62668
62669         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
62670         utf16-ucs4-unsafe.
62671         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
62672         unistr/u16-mbtouc-unsafe.
62673
62674         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
62675         * modules/ucs4-utf8: Turn into a symbolic link to module
62676         unistr/u8-ubtomb.
62677
62678         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
62679         * modules/ucs4-utf16: Turn into a symbolic link to module
62680         unistr/u16-ubtomb.
62681
62682 2007-03-24  Bruno Haible  <bruno@clisp.org>
62683
62684         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
62685         Enable the function only if HAVE_INLINE.
62686         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
62687         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62688         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
62689         Enable the function only if HAVE_INLINE.
62690         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
62691         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62692         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
62693         Enable the function only if HAVE_INLINE.
62694         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
62695         Enable the function only if HAVE_INLINE.
62696         * modules/utf8-ucs4: Update.
62697         * modules/utf8-ucs4-unsafe: Update.
62698         * modules/utf16-ucs4: Update.
62699         * modules/utf16-ucs4-unsafe: Update.
62700         * modules/ucs4-utf8: Update.
62701         * modules/ucs4-utf16: Update.
62702
62703 2007-03-24  Bruno Haible  <bruno@clisp.org>
62704
62705         * lib/utf8-ucs4.h: Remove file.
62706         * lib/utf8-ucs4-unsafe.h: Remove file.
62707         * lib/utf16-ucs4.h: Remove file.
62708         * lib/utf16-ucs4-unsafe.h: Remove file.
62709         * lib/ucs4-utf8.h: Remove file.
62710         * lib/ucs4-utf16.h: Remove file.
62711         * lib/unistr.h: Include their previous contents.
62712         * m4/utf-ucs4.m4: Remove file.
62713         * m4/ucs4-utf.m4: Remove file.
62714         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
62715         (Depends-on): Add unistr/base.
62716         (configure.ac): Remove gl_UTF_UCS4.
62717         (Makefile.am): Update.
62718         (Include): Change to unistr.h.
62719         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
62720         (Depends-on): Add unistr/base.
62721         (configure.ac): Remove gl_UTF_UCS4.
62722         (Makefile.am): Update.
62723         (Include): Change to unistr.h.
62724         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
62725         (Depends-on): Add unistr/base.
62726         (configure.ac): Remove gl_UTF_UCS4.
62727         (Makefile.am): Update.
62728         (Include): Change to unistr.h.
62729         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
62730         (Depends-on): Add unistr/base.
62731         (configure.ac): Remove gl_UTF_UCS4.
62732         (Makefile.am): Update.
62733         (Include): Change to unistr.h.
62734         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
62735         (Depends-on): Add unistr/base.
62736         (configure.ac): Remove gl_UCS4_UTF.
62737         (Makefile.am): Update.
62738         (Include): Change to unistr.h.
62739         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
62740         (Depends-on): Add unistr/base.
62741         (configure.ac): Remove gl_UCS4_UTF.
62742         (Makefile.am): Update.
62743         (Include): Change to unistr.h.
62744         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
62745         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
62746         utf8-ucs4-unsafe.h.
62747         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
62748         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
62749         utf16-ucs4-unsafe.h.
62750         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
62751         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
62752         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
62753         * lib/unistr/u8-strchr.c: Likewise.
62754         * lib/unistr/u8-strrchr.c: Likewise.
62755         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
62756         * lib/unistr/u16-strchr.c: Likewise.
62757         * lib/unistr/u16-strrchr.c: Likewise.
62758         * lib/striconveh.c: Update.
62759         * lib/linebreak.c: Update.
62760
62761 2007-03-24  Bruno Haible  <bruno@clisp.org>
62762
62763         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
62764         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
62765
62766 2007-03-22  Bruno Haible  <bruno@clisp.org>
62767
62768         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
62769
62770 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62771
62772         * MODULES.html.sh (File system functions): New module write-any-file.
62773         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
62774         * m4/write-any-file.m4: New files.
62775
62776 2007-03-23  Eric Blake  <ebb9@byu.net>
62777
62778         * gnulib-tool: Rearrange space-tab sequences, since some editors
62779         like to eat them.
62780
62781 2007-03-23  Eric Blake  <ebb9@byu.net>
62782
62783         * lib/version-etc.c (version_etc_va): Update license wording to
62784         be more concise.  Recommended by Richard Stallman.
62785
62786 2007-03-22  Bruno Haible  <bruno@clisp.org>
62787
62788         * lib/poll.c (MSG_PEEK): New fallback definition.
62789
62790 2007-03-22  Bruno Haible  <bruno@clisp.org>
62791
62792         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
62793         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
62794         (main): Update.
62795         Fixes a compilation error on BeOS.
62796
62797 2007-03-22  Bruno Haible  <bruno@clisp.org>
62798
62799         * modules/frexpl-tests: New file.
62800         * tests/test-frexpl.c: New file.
62801
62802         * modules/frexpl: New file.
62803         * m4/frexpl.m4: New file.
62804         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
62805         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
62806         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
62807         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
62808         (Depends-on): Add frexpl. Remove isnanl-nolibm.
62809         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
62810
62811 2007-03-22  Bruno Haible  <bruno@clisp.org>
62812
62813         * lib/frexpl.c: Share code with lib/frexp.c.
62814         * modules/mathl (Files): Add lib/frexp.c.
62815         (Depends-on): Add isnanl-nolibm.
62816
62817 2007-03-22  Bruno Haible  <bruno@clisp.org>
62818
62819         * modules/printf-frexp (Files): Add m4/frexp.m4.
62820         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
62821         only if the found frexp function actually works.
62822
62823 2007-03-22  Bruno Haible  <bruno@clisp.org>
62824
62825         * lib/frexp.c: Remove older implementation that uses divisions.
62826
62827 2007-03-21  Bruno Haible  <bruno@clisp.org>
62828
62829         * modules/frexp-tests: New file.
62830         * tests/test-frexp.c: New file.
62831
62832         * modules/frexp: New file.
62833         * lib/frexp.c: New file.
62834         * m4/frexp.m4: New file.
62835         * lib/math_.h (frexp): New declaration.
62836         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
62837         REPLACE_FREXP.
62838         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
62839
62840 2007-03-21  Bruno Haible  <bruno@clisp.org>
62841
62842         * modules/isnanl-tests: New file.
62843         * tests/test-isnanl.c: New file.
62844
62845         * modules/isnanl: New file.
62846         * lib/isnanl.h: New file.
62847         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
62848         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
62849         gl_FUNC_ISNANL_WORKS.
62850         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
62851         New macros.
62852
62853 2007-03-21  Bruno Haible  <bruno@clisp.org>
62854
62855         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
62856         lib/isnanl.h.
62857         (Include): Update.
62858         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
62859         * lib/vasnprintf.c: Update.
62860         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
62861         tests/test-isnanl.h, remove tests/test-isnanl.c.
62862         (Makefile.am): Update.
62863         * tests/test-isnanl-nolibm.c: New file.
62864         * tests/test-isnanl.h: New file.
62865         * tests/test-isnanl.c: Remove file.
62866
62867 2007-03-21  Jim Meyering  <jim@meyering.net>
62868
62869         When trying to open ".", treat ESTALE like EACCES.
62870         * lib/savewd.c (savewd_save): Resort to forking not just upon
62871         failure with EACCES, but also when errno is ESTALE.
62872
62873 2007-03-20  Bruno Haible  <bruno@clisp.org>
62874
62875         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
62876         Needed on AIX 5.1. Reported by Matthew Woehlke.
62877
62878 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62879
62880         Suggestions by Bruno Haible:
62881         * lib/acl-internal.h: Include "gettext.h" rather than rolling
62882         our own.
62883         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
62884         * modules/acl (Depends-on): Add gettext.
62885
62886 2007-03-19  Bruno Haible  <bruno@clisp.org>
62887
62888         * modules/iconvme: Remove file.
62889         * lib/iconvme.h: Remove file.
62890         * lib/iconvme.c: Remove file.
62891         * m4/iconvme.m4: Remove file.
62892
62893 2007-03-19  Bruno Haible  <bruno@clisp.org>
62894
62895         * doc/relocatable-maint.texi: Break long shell script line.
62896         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62897
62898 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62899
62900         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
62901         handle file_has_acl.
62902         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
62903         * lib/acl.c: Move header inclusions and related macro defns into
62904         lib/acl-internal.h.
62905         (S_ISLNK): Remove defn, since that's now done for us.
62906         (file_has_acl): Move to lib/file-has-acl.c.
62907         Call acl_trivial if available.  This is the crucial part of the fix.
62908         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
62909         shared within the library.  Rewrite a bit, partly to make it compatible
62910         with the GNU coding style.
62911         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
62912         Remove unnecessary double-quotes.
62913         Don't test for acl_to_text; the build will catch that.
62914         Replace acl_entries if it doesn't exist and it is needed.
62915         Check for -lsec and acl_trivial (as used on Solaris 10).
62916         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
62917         lib/file-has-acl.c.
62918         (Depends-on): Add sys_stat, for S_ISLNK.
62919
62920 2007-03-19  Ben Pfaff  <blp@gnu.org>
62921
62922         * doc/gnulib.texi: Fix typos.
62923         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62924
62925 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62926
62927         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
62928         If size is zero here, buf must be zero.
62929
62930 2007-03-19  Simon Josefsson  <simon@josefsson.org>
62931
62932         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
62933         <bruno@clisp.org>.
62934
62935 2007-03-18  Bruno Haible  <bruno@clisp.org>
62936
62937         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
62938         Suggested by Eric Blake.
62939
62940 2007-03-18  Ben Pfaff  <blp@gnu.org>
62941
62942         * doc/relocatable.texi: Recommend using as prefix a directory
62943         that does not exist and will never be created.  Based on
62944         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
62945         and others.
62946
62947 2007-03-17  Bruno Haible  <bruno@clisp.org>
62948
62949         * lib/fchownat.c: Include lchown.h.
62950
62951 2007-03-17  Bruno Haible  <bruno@clisp.org>
62952
62953         Fix endless loop when the given allocated size was > INT_MAX.
62954         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
62955         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
62956         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
62957         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
62958         * lib/sprintf.c (sprintf): Likewise.
62959
62960 2007-03-17  Bruno Haible  <bruno@clisp.org>
62961
62962         * tests/test-argp-2.sh (func_compare): Output a context diff.
62963
62964 2007-03-17  Bruno Haible  <bruno@clisp.org>
62965
62966         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
62967         locale's decimal-point character.
62968
62969 2007-03-17  Bruno Haible  <bruno@clisp.org>
62970
62971         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
62972         before comparing it. Needed because on some platforms (e.g. x86) a
62973         'long double' occupies less bytes than sizeof (long double).
62974
62975 2007-03-17  Bruno Haible  <bruno@clisp.org>
62976
62977         * tests/test-crc.c (main): Make printf statements 64-bit clean.
62978         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
62979         * tests/test-getaddrinfo.c (simple): Likewise.
62980         * tests/test-read-file.c (main): Likewise.
62981
62982 2007-03-17  Bruno Haible  <bruno@clisp.org>
62983
62984         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
62985
62986 2007-03-17  Bruno Haible  <bruno@clisp.org>
62987
62988         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
62989         unused variable.
62990
62991 2007-03-17  Bruno Haible  <bruno@clisp.org>
62992
62993         * tests/test-c-strcasecmp.c: Include c-strcase.h.
62994         * tests/test-c-strncasecmp.c: Likewise.
62995
62996 2007-03-17  Bruno Haible  <bruno@clisp.org>
62997
62998         * modules/stdlib (Depends-on): Add unistd.
62999         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
63000         Needed for MacOS X 10.3.
63001
63002 2007-03-17  Bruno Haible  <bruno@clisp.org>
63003
63004         * lib/unistr/u-strdup.h: Include <stdlib.h>.
63005
63006 2007-03-17  Bruno Haible  <bruno@clisp.org>
63007
63008         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
63009
63010 2007-03-17  Bruno Haible  <bruno@clisp.org>
63011
63012         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
63013         to reflect files copied from gnulib (with or without modifications).
63014         Suggested by Jim Meyering.
63015
63016 2007-03-17  Eric Blake  <ebb9@byu.net>
63017
63018         * NEWS: Document stdlib change from 2007-02-18.
63019
63020 2007-03-17  Jim Meyering  <jim@meyering.net>
63021
63022         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
63023         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
63024         someone uses a name containing shell meta-characters.
63025         Reported by Alfred M. Szmidt.
63026
63027         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
63028
63029 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63030
63031         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
63032         and copy gettext configuration files only if configure.ac contains
63033         a use of AM_GNU_GETTEXT_VERSION.
63034
63035 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63036
63037         * build-aux/bootstrap (gnulib_name): New variable.
63038         (gnulib_tool_options): Use it.
63039
63040 2007-03-13  Simon Josefsson  <simon@josefsson.org>
63041
63042         * tests/test-des.c: Use new namespace.
63043
63044 2007-03-15  Bruno Haible  <bruno@clisp.org>
63045
63046         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
63047         Reported by James Youngman <jay@gnu.org>.
63048
63049 2007-03-15  Bruno Haible  <bruno@clisp.org>
63050
63051         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
63052         declared prototype. Needed with cc on OSF/1 5.1.
63053
63054 2007-03-15  Bruno Haible  <bruno@clisp.org>
63055
63056         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
63057         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
63058         (struct gl_list_implementation): Add dispose_fn argument to the
63059         'create_empty', 'create' methods.
63060         (struct gl_list_impl_base): Add field 'dispose_fn'.
63061         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
63062         argument.
63063         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
63064         dispose_fn argument.
63065         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
63066         dispose_fn on the dropped values.
63067         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
63068         dispose_fn argument.
63069         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
63070         dropped values.
63071         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
63072         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63073         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
63074         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63075         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
63076         argument.
63077         (gl_tree_list_free): Call dispose_fn on the dropped values.
63078         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
63079         the dropped values.
63080         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
63081         Add dispose_fn argument.
63082         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
63083         Call dispose_fn on the dropped values.
63084         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
63085         Add dispose_fn argument.
63086         (gl_sublist_create): Initialize the 'dispose_fn' field.
63087         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
63088         * tests/test-array_list.c (main): Update.
63089         * tests/test-carray_list.c (main): Update.
63090         * tests/test-avltree_list.c (main): Update.
63091         * tests/test-rbtree_list.c (main): Update.
63092         * tests/test-avltreehash_list.c (main): Update.
63093         * tests/test-rbtreehash_list.c (main): Update.
63094         * tests/test-linked_list.c (main): Update.
63095         * tests/test-linkedhash_list.c (main): Update.
63096         * tests/test-array_oset.c (main): Update.
63097
63098 2007-03-15  Bruno Haible  <bruno@clisp.org>
63099
63100         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
63101         (gl_oset_create_empty): Add dispose_fn argument.
63102         (struct gl_oset_implementation): Add dispose_fn argument to
63103         'create_empty' method.
63104         (struct gl_oset_impl_base): Add dispose_fn field.
63105         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
63106         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
63107         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
63108         values.
63109         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
63110         (gl_tree_oset_free): Call dispose_fn on the dropped values.
63111         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63112         dropped value.
63113         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63114         dropped value.
63115         * tests/test-array_oset.c (main): Update.
63116         * tests/test-avltree_oset.c (main): Update.
63117         * tests/test-rbtree_oset.c (main): Update.
63118         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
63119
63120 2007-03-13  Bruno Haible  <bruno@clisp.org>
63121
63122         * tests/test-stdbool.c (i): Update after last patch.
63123
63124 2007-03-12  Bruno Haible  <bruno@clisp.org>
63125
63126         * lib/quotearg.c: Include <wctype.h> early, before the definition of
63127         the iswprint macro. Needed on Solaris 2.5.1.
63128
63129 2007-03-12  Bruno Haible  <bruno@clisp.org>
63130
63131         * tests/test-printf-frexp.c (main): Declare x as volatile.
63132
63133 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63134
63135         * doc/gnulib.texi (Build robot for gnulib): New section.
63136
63137 2007-03-12  Jim Meyering  <jim@meyering.net>
63138
63139         * build-aux/bootstrap: New file.
63140         * build-aux/bootstrap.conf: New file, from coreutils.
63141
63142 2007-03-11  Bruno Haible  <bruno@clisp.org>
63143
63144         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
63145
63146 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63147
63148         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
63149         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
63150         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
63151
63152 2007-03-11  Bruno Haible  <bruno@clisp.org>
63153
63154         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
63155         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
63156
63157 2007-03-11  Bruno Haible  <bruno@clisp.org>
63158
63159         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
63160         formula. Needed for SunPRO C 5.0.
63161
63162 2007-03-11  Bruno Haible  <bruno@clisp.org>
63163
63164         * modules/long-options (Depends-on): Add getopt.
63165
63166 2007-03-11  Bruno Haible  <bruno@clisp.org>
63167
63168         * modules/modechange (Depends-on): Add stdbool.
63169
63170 2007-03-11  Bruno Haible  <bruno@clisp.org>
63171
63172         * modules/i-ring (Depends-on): Add stdbool.
63173
63174 2007-03-11  Bruno Haible  <bruno@clisp.org>
63175
63176         * modules/gc-des (Depends-on): Add stdbool.
63177
63178 2007-03-11  Bruno Haible  <bruno@clisp.org>
63179
63180         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
63181
63182 2007-03-11  Bruno Haible  <bruno@clisp.org>
63183
63184         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
63185
63186 2007-03-11  Bruno Haible  <bruno@clisp.org>
63187
63188         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
63189
63190 2007-03-11  Bruno Haible  <bruno@clisp.org>
63191
63192         * lib/vasnprintf.c (sprintf): Undefine.
63193
63194 2007-03-11  Bruno Haible  <bruno@clisp.org>
63195
63196         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
63197         initializers in SunPRO C and Compaq C compilers.
63198
63199 2007-03-11  Bruno Haible  <bruno@clisp.org>
63200
63201         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
63202         decrementing code ANSI C compliant.
63203
63204 2007-03-11  Bruno Haible  <bruno@clisp.org>
63205
63206         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
63207         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
63208
63209 2007-03-11  Bruno Haible  <bruno@clisp.org>
63210
63211         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
63212         <stdbool.h> substitute doesn't pass.
63213
63214 2007-03-11  Bruno Haible  <bruno@clisp.org>
63215
63216         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
63217
63218 2007-03-11  Bruno Haible  <bruno@clisp.org>
63219
63220         * gnulib-tool (func_create_megatestdir): Create also an autobuild
63221         script, for submission to autobuild.josefsson.org.
63222
63223 2007-03-10  Bruno Haible  <bruno@clisp.org>
63224
63225         * modules/canonicalize-lgpl-tests: New file.
63226         * tests/test-canonicalize-lgpl.sh: New file.
63227         * tests/test-canonicalize-lgpl.c: New file.
63228
63229         * modules/c-strcase-tests: New file.
63230         * tests/test-c-strcase.sh: New file.
63231         * tests/test-c-strcasecmp.c: New file.
63232         * tests/test-c-strncasecmp.c: New file.
63233
63234         * modules/atexit-tests: New file.
63235         * tests/test-atexit.sh: New file.
63236         * tests/test-atexit.c: New file.
63237
63238 2007-03-10  Bruno Haible  <bruno@clisp.org>
63239
63240         * tests/test-binary-io.sh: Use temporary filenames that are not so
63241         likely to clash with those of other tests (in a parallel make).
63242         * tests/test-binary-io.c: Likewise.
63243
63244 2007-03-10  Bruno Haible  <bruno@clisp.org>
63245
63246         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
63247         fallback; use #error instead.
63248         Suggested by Simon Josefsson.
63249
63250 2007-03-10  Bruno Haible  <bruno@clisp.org>
63251
63252         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
63253         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
63254         first and the last.
63255
63256 2007-03-10  Bruno Haible  <bruno@clisp.org>
63257
63258         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
63259
63260 2007-03-10  Bruno Haible  <bruno@clisp.org>
63261
63262         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
63263         "make distcheck".
63264         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
63265         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
63266         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
63267
63268 2007-03-10  Bruno Haible  <bruno@clisp.org>
63269
63270         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
63271         variable.
63272         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
63273         variable.
63274
63275 2007-03-09  Eric Blake  <ebb9@byu.net>
63276         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
63277
63278         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
63279         types are not being provided by gnulib.
63280         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
63281         types are supported.
63282
63283 2007-03-10  Bruno Haible  <bruno@clisp.org>
63284
63285         * lib/stdio_.h (__attribute__): New macro.
63286         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
63287         vsprintf): Specify __attribute__ __format__ for GCC.
63288         Suggested by Eric Blake.
63289
63290 2007-03-09  Bruno Haible  <bruno@clisp.org>
63291
63292         * modules/printf-posix-tests: New file.
63293         * tests/test-printf-posix.sh: New file.
63294         * tests/test-printf-posix.c: New file.
63295
63296         * modules/printf-posix: New file.
63297         * lib/printf.c: New file.
63298         * m4/printf-posix-rpl.m4: New file.
63299         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
63300         REPLACE_PRINTF.
63301         * lib/stdio_.h (printf): New declaration.
63302         (format, __format__, ____printf____, ____scanf____, ____strftime____,
63303         ____strfmon____): New macros.
63304         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
63305         REPLACE_PRINTF.
63306
63307 2007-03-09  Bruno Haible  <bruno@clisp.org>
63308
63309         * tests/test-vasnprintf-posix2.sh: New file.
63310         * tests/test-vasnprintf-posix2.c: New file.
63311         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
63312         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
63313         (Makefile.am): Activate test-vasnprintf-posix2.sh.
63314
63315         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
63316         a locale dependent decimal point, rather than always '.'.
63317
63318 2007-03-09  Eric Blake  <ebb9@byu.net>
63319
63320         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
63321         spite of platforms like Tandem/NSK that define it to -1.
63322
63323 2007-03-08  Bruno Haible  <bruno@clisp.org>
63324
63325         * modules/vprintf-posix-tests: New file.
63326         * tests/test-vprintf-posix.sh: New file.
63327         * tests/test-vprintf-posix.c: New file.
63328         * tests/test-printf-posix.h: New file.
63329
63330         * modules/vprintf-posix: New file.
63331         * lib/vprintf.c: New file.
63332         * m4/vprintf-posix.m4: New file.
63333         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
63334         REPLACE_VPRINTF.
63335         * lib/stdio_.h (vprintf): New declaration.
63336         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
63337         REPLACE_VPRINTF.
63338
63339 2007-03-08  Bruno Haible  <bruno@clisp.org>
63340
63341         * modules/fprintf-posix-tests: New file.
63342         * tests/test-fprintf-posix.sh: New file.
63343         * tests/test-fprintf-posix.c: New file.
63344
63345         * modules/fprintf-posix: New file.
63346         * lib/fprintf.c: New file.
63347         * m4/fprintf-posix.m4: New file.
63348         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
63349         REPLACE_FPRINTF.
63350         * lib/stdio_.h (fprintf): New declaration.
63351         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
63352         REPLACE_FPRINTF.
63353
63354 2007-03-08  Bruno Haible  <bruno@clisp.org>
63355
63356         * modules/vfprintf-posix-tests: New file.
63357         * tests/test-vfprintf-posix.sh: New file.
63358         * tests/test-vfprintf-posix.c: New file.
63359         * tests/test-fprintf-posix.h: New file.
63360         * tests/test-fprintf-posix.out: New file.
63361
63362         * modules/vfprintf-posix: New file.
63363         * lib/vfprintf.c: New file.
63364         * m4/vfprintf-posix.m4: New file.
63365         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
63366         REPLACE_VFPRINTF.
63367         * lib/stdio_.h (vfprintf): New declaration.
63368         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
63369         REPLACE_VFPRINTF.
63370
63371 2007-03-08  Bruno Haible  <bruno@clisp.org>
63372
63373         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
63374
63375 2007-03-08  Bruno Haible  <bruno@clisp.org>
63376
63377         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
63378         instead of 'expr' invocations.
63379         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63380         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63381         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63382         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63383         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63384         Suggested by Paul Eggert.
63385
63386 2007-03-08  Bruno Haible  <bruno@clisp.org>
63387
63388         * modules/fseterr-tests: New file.
63389         * tests/test-fseterr.c: New file.
63390
63391         * modules/fseterr: New file.
63392         * lib/fseterr.h: New file.
63393         * lib/fseterr.c: New file.
63394
63395 2007-03-08  Bruno Haible  <bruno@clisp.org>
63396
63397         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
63398         * lib/getopt_.h: Likewise.
63399         * lib/mbswidth.h: Likewise.
63400         * lib/setenv.h: Likewise.
63401         * lib/vasnprintf.h: Likewise.
63402         * lib/vasprintf.h: Likewise.
63403         * lib/verror.h: Likewise.
63404         * lib/xsetenv.h: Likewise.
63405         * lib/xvasprintf.h: Likewise.
63406
63407 2007-03-08  Jim Meyering  <jim@meyering.net>
63408
63409         * users.txt: Add parted.
63410
63411         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
63412
63413 2007-03-07  Bruno Haible  <bruno@clisp.org>
63414
63415         * m4/printf.m4: Make the shell script snippets copy&pastable.
63416
63417 2007-03-02  Bruno Haible  <bruno@clisp.org>
63418
63419         * lib/netinet_in_.h: New file.
63420         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
63421         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
63422         * modules/netinet_in (Files): Add lib/netinet_in_.h.
63423         (Depends-on): Add absolute-header.
63424         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
63425         into netinet/in.h.
63426
63427 2007-03-03  Bruno Haible  <bruno@clisp.org>
63428
63429         * lib/sys_select_.h: New file.
63430         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
63431         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
63432         * modules/sys_select (Files): Add lib/sys_select_.h.
63433         (Depends-on): Add absolute-header.
63434         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
63435         into sys/select.h.
63436
63437 2007-03-02  Bruno Haible  <bruno@clisp.org>
63438
63439         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
63440         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
63441         values.
63442         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
63443         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
63444         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
63445         * modules/sys_socket (Depends-on): Add absolute-header.
63446         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
63447         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
63448         (Include): Remove requirement of inclusion of <sys/types.h>.
63449
63450 2007-03-02  Bruno Haible  <bruno@clisp.org>
63451
63452         * lib/byteswap_.h (bswap_32): Fix formula.
63453
63454 2007-03-06  Bruno Haible  <bruno@clisp.org>
63455
63456         * modules/sprintf-posix-tests: New file.
63457         * tests/test-sprintf-posix.c: New file.
63458
63459         * modules/sprintf-posix: New file.
63460         * lib/sprintf.c: New file.
63461         * m4/sprintf-posix.m4: New file.
63462         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
63463         REPLACE_SPRINTF.
63464         * lib/stdio_.h (sprintf): New declaration.
63465         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
63466         REPLACE_SPRINTF.
63467
63468 2007-03-06  Bruno Haible  <bruno@clisp.org>
63469
63470         * modules/vsprintf-posix-tests: New file.
63471         * tests/test-vsprintf-posix.c: New file.
63472         * tests/test-sprintf-posix.h: New file.
63473
63474         * modules/vsprintf-posix: New file.
63475         * lib/vsprintf.c: New file.
63476         * m4/vsprintf-posix.m4: New file.
63477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
63478         REPLACE_VSPRINTF.
63479         * lib/stdio_.h (vsprintf): New declaration.
63480         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
63481         REPLACE_VSPRINTF.
63482
63483 2007-03-06  Bruno Haible  <bruno@clisp.org>
63484
63485         * modules/vsnprintf (Depend-on): Remove minmax.
63486
63487 2007-03-06  Bruno Haible  <bruno@clisp.org>
63488
63489         * modules/snprintf-posix-tests: New file.
63490         * tests/test-snprintf-posix.c: New file.
63491
63492         * modules/snprintf-posix: New file.
63493         * m4/snprintf-posix.m4: New file.
63494         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
63495         gl_FUNC_SNPRINTF.
63496         (gl_FUNC_SNPRINTF): Invoke it.
63497         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
63498         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
63499         is set.
63500         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
63501
63502 2007-03-06  Bruno Haible  <bruno@clisp.org>
63503
63504         * modules/vsnprintf-posix-tests: New file.
63505         * tests/test-vsnprintf-posix.c: New file.
63506         * tests/test-snprintf-posix.h: New file.
63507
63508         * modules/vsnprintf-posix: New file.
63509         * m4/vsnprintf-posix.m4: New file.
63510         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
63511         gl_FUNC_VSNPRINTF.
63512         (gl_FUNC_VSNPRINTF): Invoke it.
63513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
63514         * lib/stdio_.h (vsnprintf): Define as a replacement if
63515         REPLACE_VSNPRINTF is set.
63516         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
63517
63518 2007-03-06  Bruno Haible  <bruno@clisp.org>
63519
63520         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
63521         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
63522
63523 2007-03-06  Bruno Haible  <bruno@clisp.org>
63524
63525         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
63526         (asinl): Declare also if HAVE_DECL_ASINL is set.
63527         (atanl): Declare also if HAVE_DECL_ATANL is set.
63528         (ceill): Declare also if HAVE_DECL_CEILL is set.
63529         (cosl): Declare also if HAVE_DECL_COSL is set.
63530         (expl): Declare also if HAVE_DECL_EXPL is set.
63531         (floorl): Declare also if HAVE_DECL_FLOORL is set.
63532         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
63533         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
63534         (logl): Declare also if HAVE_DECL_LOGL is set.
63535         (sinl): Declare also if HAVE_DECL_SINL is set.
63536         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
63537         (tanl): Declare also if HAVE_DECL_TANL is set.
63538         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
63539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
63540         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
63541         declaration of frexpl, ldexpl.
63542         * modules/printf-frexpl (Depends-on): Add math.
63543         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
63544
63545 2007-03-05  Bruno Haible  <bruno@clisp.org>
63546
63547         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
63548         frexpl and ldexpl are declared.
63549         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
63550
63551 2007-03-05  Bruno Haible  <bruno@clisp.org>
63552
63553         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
63554         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
63555
63556 2007-03-05  Bruno Haible  <bruno@clisp.org>
63557
63558         * lib/stdio_.h: Include <stddef.h>.
63559
63560 2007-03-05  Bruno Haible  <bruno@clisp.org>
63561
63562         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
63563
63564 2007-03-05  Bruno Haible  <bruno@clisp.org>
63565
63566         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
63567         NetBSD 4, from Ralf Wildenhues.
63568
63569 2007-03-04  Bruno Haible  <bruno@clisp.org>
63570
63571         * lib/vasprintf.h: Update #if logic for the case when the functions
63572         exist but are overridden.
63573
63574 2007-03-04  Bruno Haible  <bruno@clisp.org>
63575
63576         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
63577         implementations: glibc-2.4 and MacOS X 10.3.
63578         * tests/test-vasnprintf-posix.c (test_function): Test also the case
63579         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
63580         * tests/test-vasprintf-posix.c (test_function): Likewise.
63581
63582 2007-03-04  Bruno Haible  <bruno@clisp.org>
63583
63584         * modules/vasprintf-posix-tests: New file.
63585         * tests/test-vasprintf-posix.c: New file.
63586
63587         * modules/vasprintf-posix: New file.
63588         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
63589         defined.
63590         * m4/vasprintf-posix.m4: New file.
63591         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
63592         gl_FUNC_VASPRINTF.
63593         (gl_FUNC_VASPRINTF): Invoke it.
63594         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
63595         here.
63596         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
63597
63598 2007-03-04  Bruno Haible  <bruno@clisp.org>
63599
63600         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
63601         REPLACE_GETTIMEOFDAY.
63602         * modules/sys_time (Makefile.am): Likewise.
63603         * m4/sys_time_h.m4: Likewise.
63604         * m4/gettimeofday.m4: Likewise.
63605
63606 2007-03-04  Bruno Haible  <bruno@clisp.org>
63607
63608         * modules/vasnprintf-posix-tests: New file.
63609         * tests/test-vasnprintf-posix.c: New file.
63610
63611         * modules/vasnprintf-posix: New file.
63612         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
63613         printf-frexpl.h.
63614         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
63615         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
63616         REPLACE_VASNPRINTF is defined.
63617         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
63618         gl_FUNC_VASNPRINTF.
63619         (gl_FUNC_VASNPRINTF): Invoke it.
63620         * m4/vasnprintf-posix.m4: New file.
63621         * m4/printf.m4: New file.
63622
63623 2007-03-04  Bruno Haible  <bruno@clisp.org>
63624
63625         Compile progreloc.c only if --enable-relocatable is specified.
63626         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
63627         if --enable-relocatable was specified.
63628         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
63629         lib_SOURCES.
63630
63631 2007-03-04  Jim Meyering  <jim@meyering.net>
63632
63633         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
63634         Use it consistently, rather than enumerating errno constants.
63635
63636 2007-03-04  Bruno Haible  <bruno@clisp.org>
63637
63638         * modules/xvasprintf-tests: New file.
63639         * tests/test-xvasprintf.c: New file.
63640
63641         * modules/vasprintf-tests: New file.
63642         * tests/test-vasprintf.c: New file.
63643
63644         * modules/vasnprintf-tests: New file.
63645         * tests/test-vasnprintf.c: New file.
63646
63647         * modules/vsnprintf-tests: New file.
63648         * tests/test-vsnprintf.c: New file.
63649
63650         * modules/snprintf-tests: New file.
63651         * tests/test-snprintf.c: New file.
63652
63653 2007-03-04  Bruno Haible  <bruno@clisp.org>
63654
63655         Compile relocatable.c only if --enable-relocatable is specified.
63656         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
63657         gl_RELOCATABLE_LIBRARY.
63658         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
63659         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
63660         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
63661         gl_RELOCATABLE_LIBRARY.
63662         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
63663         (Makefile.am): Remove lib_SOURCES.
63664         * modules/relocatable-lib-lgpl (configure.ac): Invoke
63665         gl_RELOCATABLE_LIBRARY.
63666         (Makefile.am): Remove lib_SOURCES.
63667         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
63668         always.
63669         * modules/relocatable-prog-wrapper (configure.ac): Invoke
63670         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
63671
63672 2007-03-04  Bruno Haible  <bruno@clisp.org>
63673
63674         * modules/argmatch-tests: New file.
63675         * tests/test-argmatch.c: New file.
63676
63677         * tests/test-allocsa.c (main): Halve the number of loop runs.
63678
63679         * modules/alloca-opt-tests: New file.
63680         * tests/test-alloca-opt.c: New file.
63681
63682 2007-03-04  Jim Meyering  <jim@meyering.net>
63683
63684         Work around difference between Linux ACLs and Solaris 10 ZFS.
63685         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
63686         for EINVAL.
63687
63688 2007-03-03  Bruno Haible  <bruno@clisp.org>
63689
63690         * modules/relocatable-prog (Depends-on): Add back progreloc's
63691         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
63692
63693 2007-03-03  Bruno Haible  <bruno@clisp.org>
63694
63695         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
63696         * modules/relocatable-lib: New file.
63697
63698 2007-03-03  Bruno Haible  <bruno@clisp.org>
63699
63700         * modules/relocatable-prog: Renamed from modules/relocatable.
63701         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
63702
63703 2007-03-03  Bruno Haible  <bruno@clisp.org>
63704
63705         * modules/relocatable-script (Files): Add doc/relocatable.texi,
63706         m4/relocatable-lib.m4.
63707         (Depends-on): Remove 'relocatable'.
63708         (configure.ac): Add gl_RELOCATABLE_NOP.
63709
63710 2007-03-03  Bruno Haible  <bruno@clisp.org>
63711
63712         * modules/relocatable-prog-wrapper: New file.
63713         * modules/relocatable (Depends-on): Add it. Remove all other
63714         dependencies except progname.
63715         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
63716
63717         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
63718         (gl_FUNC_STRERROR): Nop.
63719         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
63720
63721         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
63722         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
63723
63724         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
63725         (gl_FUNC_READLINK): Update.
63726
63727         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
63728
63729 2007-03-03  Bruno Haible  <bruno@clisp.org>
63730
63731         * lib/xreadlink.c: Include <unistd.h> unconditionally.
63732         * modules/xreadlink (Depends-on): Add unistd.
63733         * modules/xreadlink-with-size (Depends-on): Likewise.
63734
63735 2007-03-03  Bruno Haible  <bruno@clisp.org>
63736
63737         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
63738         extracted from gt_FUNC_SETENV.
63739         (gt_FUNC_SETENV): Remove macro.
63740         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
63741         remove gt_FUNC_SETENV.
63742
63743 2007-03-03  Bruno Haible  <bruno@clisp.org>
63744
63745         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
63746         ENABLE_RELOCATABLE here.
63747         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
63748
63749 2007-03-03  Bruno Haible  <bruno@clisp.org>
63750
63751         * modules/rbtreehash-list-tests (Depends-on): Add progname.
63752         * tests/test-rbtreehash_list.c: Include progname.h.
63753         (main): Call set_program_name.
63754
63755         * modules/rbtree-oset-tests (Depends-on): Add progname.
63756         * tests/test-rbtree_oset.c: Include progname.h.
63757         (main): Call set_program_name.
63758
63759         * modules/rbtree-list-tests (Depends-on): Add progname.
63760         * tests/test-rbtree_list.c: Include progname.h.
63761         (main): Call set_program_name.
63762
63763         * modules/linked-list-tests (Depends-on): Add progname.
63764         * tests/test-linked_list.c: Include progname.h.
63765         (main): Call set_program_name.
63766
63767 2007-03-03  Bruno Haible  <bruno@clisp.org>
63768
63769         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
63770         All uses of __restrict changed to _Restrict_.
63771         * lib/glob_.h (__restrict): Remove macro.
63772
63773 2007-03-02  Bruno Haible  <bruno@clisp.org>
63774
63775         * modules/gettext (configure.ac): Require gettext infrastructure
63776         from version 0.16.1.
63777
63778 2007-03-02  Bruno Haible  <bruno@clisp.org>
63779
63780         * modules/linkedhash-list-tests (Depends-on): Add progname.
63781         * tests/test-linkedhash_list.c: Include progname.h.
63782         (main): Call set_program_name.
63783
63784         * modules/carray-list-tests (Depends-on): Add progname.
63785         * tests/test-carray_list.c: Include progname.h.
63786         (main): Call set_program_name.
63787
63788         * modules/avltreehash-list-tests (Depends-on): Add progname.
63789         * tests/test-avltreehash_list.c: Include progname.h.
63790         (main): Call set_program_name.
63791
63792         * modules/avltree-oset-tests (Depends-on): Add progname.
63793         * tests/test-avltree_oset.c: Include progname.h.
63794         (main): Call set_program_name.
63795
63796         * modules/avltree-list-tests (Depends-on): Add progname.
63797         * tests/test-avltree_list.c: Include progname.h.
63798         (main): Call set_program_name.
63799
63800         * modules/array-oset-tests (Depends-on): Add progname.
63801         * tests/test-array_oset.c: Include progname.h.
63802         (main): Call set_program_name.
63803
63804         * modules/array-list-tests (Depends-on): Add progname.
63805         * tests/test-array_list.c: Include progname.h.
63806         (main): Call set_program_name.
63807
63808         * modules/argp-tests (Depends-on): Add progname.
63809         * tests/test-argp.c: Include argp.h first. Include progname.h.
63810         (main): Call set_program_name.
63811
63812 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
63813
63814         * doc/gnulib-tool.texi (Initial import): Reword description of
63815         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
63816         limited effect even if defined after the first system include.
63817
63818 2007-03-01  Bruno Haible  <bruno@clisp.org>
63819
63820         * build-aux/config.libpath: Update to libtool-1.5.22.
63821         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63822
63823 2007-03-01  Bruno Haible  <bruno@clisp.org>
63824
63825         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
63826         foo_CFLAGS.
63827         Reported by Ralf Wildenhues.
63828
63829 2007-03-01  Bruno Haible  <bruno@clisp.org>
63830
63831         * build-aux/install-reloc: Remove object files left over by some
63832         compilers.
63833         Reported by Ralf Wildenhues.
63834
63835 2007-03-01  Bruno Haible  <bruno@clisp.org>
63836
63837         * build-aux/install-reloc: Break long lines.
63838
63839 2007-03-01  Bruno Haible  <bruno@clisp.org>
63840
63841         * doc/relocatable.texi: Document that it may not work on OpenBSD.
63842         Reported by Ralf Wildenhues.
63843
63844 2007-03-01  Bruno Haible  <bruno@clisp.org>
63845
63846         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
63847         include ordering constraints.
63848
63849 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63850
63851         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
63852         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
63853         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
63854         as another example.
63855         * lib/time_.h: Fix misspelling.
63856         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63857         Require gl_HEADER_TIME_H_DEFAULTS.
63858         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
63859         * m4/time_r.m4 (gl_TIME_R): Likewise.
63860         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
63861
63862 2007-03-01  Bruno Haible  <bruno@clisp.org>
63863
63864         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
63865         * m4/utimens.m4 (gl_UTIMENS): Likewise.
63866
63867 2007-03-01  Jim Meyering  <jim@meyering.net>
63868
63869         * modules/xreadlink (Maintainer): Add my name.
63870         * modules/xreadlink-with-size (Depends-on): Alphabetize.
63871
63872 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
63873             Bruno Haible  <bruno@clisp.org>
63874
63875         * build-aux/install-reloc: Compile also c-ctype.c.
63876         * build-aux/relocatable.sh.in: New file.
63877         * doc/relocatable.texi: New file.
63878         * doc/relocatable-maint.texi: New file.
63879         * doc/gnulib.texi: Include relocatable-maint.texi.
63880         * lib/progreloc.c: Include unistd.h unconditionally.
63881         * lib/relocwrapper.c: Include unistd.h unconditionally.
63882         Include c-ctype.h.
63883         (add_dotbin): Use c_tolower.
63884         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
63885         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
63886         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
63887         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
63888         to m4/relocatable-lib.m4.
63889         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
63890         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
63891         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
63892         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
63893         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
63894         * modules/relocatable: New file.
63895         * modules/relocatable-lib: New file.
63896         * modules/relocatable-script: New file.
63897
63898 2007-02-28  Bruno Haible  <bruno@clisp.org>
63899
63900         Import --enable-relocatable infrastructure.
63901         * build-aux/config.libpath: New file, from GNU gettext.
63902         * build-aux/install-reloc: New file, from GNU gettext.
63903         * build-aux/reloc-ldflags: New file, from GNU gettext.
63904         * lib/relocatable.h: New file, from GNU gettext.
63905         * lib/relocatable.c: New file, from GNU gettext.
63906         * lib/relocwrapper.c: New file, from GNU gettext.
63907         * m4/relocatable.m4: New file, from GNU gettext.
63908
63909 2007-02-28  Bruno Haible  <bruno@clisp.org>
63910
63911         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
63912
63913         * modules/xreadlink: New file, from GNU gettext with modifications.
63914         * lib/xreadlink.c: New file, from GNU gettext.
63915         * lib/xreadlink.h: Add comments.
63916         (xreadlink): New declaration.
63917
63918         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
63919         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
63920         lib/xreadlink-with-size.c.
63921         (configure.ac): Remove gl_XREADLINK invocation.
63922         (Makefile.am): Augment lib_SOURCES.
63923         * m4/xreadlink.m4: Remove file.
63924         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
63925         (xreadlink_with_size): Renamed from xreadink.
63926         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
63927         * modules/canonicalize (Depends-on): Replace xreadlink with
63928         xreadlink-with-size.
63929         * lib/canonicalize.c (canonicalize_filename_mode): Update.
63930
63931 2007-02-25  Jim Meyering  <jim@meyering.net>
63932
63933         * build-aux/announce-gen: When complaining about excess arguments,
63934         list them.
63935
63936 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63937
63938         * README: Document signed integer overflow situation more
63939         accurately.
63940
63941 2007-02-25  Bruno Haible  <bruno@clisp.org>
63942
63943         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
63944         'a' or 'A' conversion.
63945
63946 2007-02-25  Bruno Haible  <bruno@clisp.org>
63947
63948         * modules/filename: Renamed from modules/pathname.
63949         (Files): Replace lib/pathname.h with lib/filename.h. Replace
63950         lib/concatpath.c with lib/concat-filename.c.
63951         (Makefile.am): Update.
63952         (Include): Replace pathname.h with filename.h.
63953         * lib/filename.h: Renamed from lib/pathname.h.
63954         (concatenated_filename): Renamed from concatenated_pathname.
63955         * lib/concat-filename.c: Renamed from lib/concatpath.c.
63956         (concatenated_filename): Renamed from concatenated_pathname.
63957         * lib/findprog.c: Include filename.h instead of pathname.h.
63958         (find_in_path): Update.
63959         * lib/javacomp.c: Include filename.h instead of pathname.h.
63960         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
63961         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
63962         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
63963         is_oldgcj_14_13_usable, is_javac_usable): Update.
63964         * lib/javaexec.c: Include filename.h instead of pathname.h.
63965         (execute_java_class): Update.
63966         * modules/findprog: Update.
63967         * modules/javacomp: Update.
63968         * modules/javaexec: Update.
63969         * MODULES.html.sh (File system functions): Add 'filename', remove
63970         'pathname'.
63971
63972 2007-02-25  Bruno Haible  <bruno@clisp.org>
63973
63974         * modules/printf-frexpl-tests: New file.
63975         * tests/test-printf-frexpl.c: New file.
63976
63977         * modules/printf-frexpl: New file.
63978         * lib/printf-frexpl.h: New file.
63979         * lib/printf-frexpl.c: New file.
63980         * m4/printf-frexpl.m4: New file.
63981
63982 2007-02-25  Bruno Haible  <bruno@clisp.org>
63983
63984         * modules/printf-frexp-tests: New file.
63985         * tests/test-printf-frexp.c: New file.
63986
63987         * modules/printf-frexp: New file.
63988         * lib/printf-frexp.h: New file.
63989         * lib/printf-frexp.c: New file.
63990         * m4/printf-frexp.m4: New file.
63991
63992 2007-02-25  Bruno Haible  <bruno@clisp.org>
63993
63994         Assume automake >= 1.10 for the tests.
63995         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
63996         * modules/arctwo-tests: Likewise.
63997         * modules/argp-tests: Likewise.
63998         * modules/avltree-list-tests: Likewise.
63999         * modules/avltree-oset-tests: Likewise.
64000         * modules/avltreehash-list-tests: Likewise.
64001         * modules/carray-list-tests: Likewise.
64002         * modules/crc-tests: Likewise.
64003         * modules/des-tests: Likewise.
64004         * modules/gc-arcfour-tests: Likewise.
64005         * modules/gc-arctwo-tests: Likewise.
64006         * modules/gc-des-tests: Likewise.
64007         * modules/gc-hmac-md5-tests: Likewise.
64008         * modules/gc-hmac-sha1-tests: Likewise.
64009         * modules/gc-md2-tests: Likewise.
64010         * modules/gc-md4-tests: Likewise.
64011         * modules/gc-md5-tests: Likewise.
64012         * modules/gc-pbkdf2-sha1-tests: Likewise.
64013         * modules/gc-rijndael-tests: Likewise.
64014         * modules/gc-sha1-tests: Likewise.
64015         * modules/gc-tests: Likewise.
64016         * modules/getaddrinfo-tests: Likewise.
64017         * modules/hmac-md5-tests: Likewise.
64018         * modules/hmac-sha1-tests: Likewise.
64019         * modules/linked-list-tests: Likewise.
64020         * modules/linkedhash-list-tests: Likewise.
64021         * modules/lock-tests: Likewise.
64022         * modules/md2-tests: Likewise.
64023         * modules/md4-tests: Likewise.
64024         * modules/md5-tests: Likewise.
64025         * modules/rbtree-list-tests: Likewise.
64026         * modules/rbtree-oset-tests: Likewise.
64027         * modules/rbtreehash-list-tests: Likewise.
64028         * modules/read-file-tests: Likewise.
64029         * modules/rijndael-tests: Likewise.
64030         * modules/stdint-tests: Likewise.
64031         * modules/tls-tests: Likewise.
64032
64033 2007-02-24  Bruno Haible  <bruno@clisp.org>
64034
64035         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
64036         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
64037         function; instead check whether isnan with a double argument links.
64038         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
64039         function; instead check whether isnan with a 'long double' argument
64040         links.
64041         Reported by Eric Blake <ebb9@byu.net>.
64042
64043 2007-02-24  Bruno Haible  <bruno@clisp.org>
64044
64045         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
64046         defined.
64047         * lib/isnanl.c: Remove all code. Just include isnan.c.
64048         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
64049
64050 2007-02-25  Jim Meyering  <jim@meyering.net>
64051
64052         Avoid conflicting types for 'unsetenv' on FreeBSD.
64053         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
64054         conflicting with FreeBSD's (5.0 and 6.1) function declaration
64055         in stdlib.h.
64056
64057 2007-02-24  Bruno Haible  <bruno@clisp.org>
64058
64059         * modules/isnanl-nolibm-tests: New file.
64060         * tests/test-isnanl.c: New file.
64061
64062         * modules/isnanl-nolibm: New file.
64063         * lib/isnanl.h: New file.
64064         * lib/isnanl.c: New file.
64065         * m4/isnanl.m4: New file.
64066
64067 2007-02-24  Bruno Haible  <bruno@clisp.org>
64068
64069         * modules/isnan-nolibm-tests: New file.
64070         * tests/test-isnan.c: New file.
64071
64072         * modules/isnan-nolibm: New file.
64073         * lib/isnan.h: New file.
64074         * lib/isnan.c: New file.
64075         * m4/isnan.m4: New file.
64076
64077 2007-02-24  Bruno Haible  <bruno@clisp.org>
64078
64079         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
64080         assume that an exponent fits in 20 bits.
64081
64082 2007-02-24  Jim Meyering  <jim@meyering.net>
64083
64084         * m4/regex.m4: Update the description of the configure-time option,
64085         --without-included-regex, to state accurately what the defaults are,
64086         and perhaps to give people an idea why using this option is risky.
64087
64088 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64089
64090         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
64091         loops on small arguments.  This attempts to avoid the problem
64092         Bruno Haible reported for AIX 4.3.2 in
64093         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
64094
64095 2007-02-23  Bruno Haible  <bruno@clisp.org>
64096
64097         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
64098         Needed for help2man.
64099
64100 2007-02-23  Karl Berry  <karl@gnu.org>
64101
64102         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
64103         exists, foo.h should be cvs-ignored, not committed.
64104
64105 2007-02-23  Eric Blake  <ebb9@byu.net>
64106
64107         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
64108         * lib/stat-time.h (includes): Likewise.
64109         * lib/utimecmp.c (includes): Likewise.
64110         * lib/utimens.h (includes): Likewise.
64111         * lib/getdate.y (includes): Also include "timespec.h" for use
64112         internal to the module.
64113         * modules/utimens (Depends-on): Revert yesterday's patch.
64114         * modules/nanosleep (Depends-on): Add missing dependency.
64115
64116 2007-02-22  Bruno Haible  <bruno@clisp.org>
64117
64118         * lib/glob.c: Don't include getlogin_r.h.
64119
64120 2007-02-22  Jim Meyering  <jim@meyering.net>
64121
64122         * modules/utimens (Depends-on): Add timespec, required for
64123         utimens.h's inclusion of timespec.h.
64124
64125 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
64126
64127         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
64128         long unreadable paths in GNU/Linux.  Problem reported by Andreas
64129         Schwab in
64130         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
64131         I'll try to think of a better way to fix the Solaris problem.
64132
64133         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
64134         like glibc; on Solaris 10, it fails with errno == EINVAL.
64135         POSIX says the behavior is unspecified if the first argument is NULL,
64136         so play it safe and never pass NULL to the system getcwd.
64137
64138 2007-02-21  Jim Meyering  <jim@meyering.net>
64139
64140         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
64141         of gettimeofday.  It would conflict with the one now always
64142         provided via sys_time_.h.  Reported by Matthew Woehlke, as
64143         an IRIX 6.5 build failure.
64144
64145 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64146
64147         Minor fixups to port to Solaris 10 with Sun C 5.8.
64148         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
64149         * modules/getcwd (Depends-on): Add dirfd.
64150         * lib/putenv.c (putenv): #undef it.
64151         (rpl_putenv): New decl.
64152         (malloc, free): Include <stdlib.h> rather than prototyping separately.
64153
64154 2007-02-20  Bruno Haible  <bruno@clisp.org>
64155
64156         * modules/stdio-tests: New file.
64157         * tests/test-stdio.c: New file.
64158
64159         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
64160         (Depends-on): Add stdio.
64161         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64162         (Include): Use <stdio.h> instead of vsnprintf.h.
64163         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64164         HAVE_DECL_VSNPRINTF.
64165         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
64166
64167         * modules/snprintf (Files): Remove lib/snprintf.h.
64168         (Depends-on): Add stdio.
64169         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64170         (Include): Use <stdio.h> instead of snprintf.h.
64171         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64172         HAVE_DECL_SNPRINTF.
64173         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
64174         * lib/getaddrinfo.c: Likewise.
64175
64176         * modules/stdio: New file.
64177         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
64178         * lib/snprintf.h: Remove file.
64179         * lib/vsnprintf.h: Remove file.
64180         * lib/.cppi-disable: Remove snprintf.h.
64181         * m4/stdio_h.m4: New file.
64182         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
64183
64184 2007-02-20  Jim Meyering  <jim@meyering.net>
64185
64186         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
64187         used by e.g., mingw.  From Bruno Haible.
64188
64189 2007-02-19  Bruno Haible  <bruno@clisp.org>
64190
64191         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
64192         warnings.
64193         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64194
64195 2007-02-19  Bruno Haible  <bruno@clisp.org>
64196
64197         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
64198         from mingw users.
64199
64200 2007-02-19  Bruno Haible  <bruno@clisp.org>
64201
64202         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
64203         warnings.
64204         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
64205
64206 2007-02-19  Jim Meyering  <jim@meyering.net>
64207
64208         Don't use FD after a successful "fdopendir (fd)".
64209         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
64210         Reset it by calling dirfd on the just-obtained DIR*.
64211
64212         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
64213         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
64214
64215 2007-02-18  Bruno Haible  <bruno@clisp.org>
64216
64217         * lib/readlink.c: Include <unistd.h>.
64218         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
64219         HAVE_READLINK.
64220         * modules/readlink (Depends-on): Add unistd.
64221         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64222         (Include): Add <unistd.h>.
64223
64224         * lib/getlogin_r.h: Remove file.
64225         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
64226         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
64227         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
64228         HAVE_DECL_GETLOGIN_R.
64229         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
64230         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64231         (Include): Use <unistd.h> instead of getlogin_r.h.
64232
64233         * lib/getcwd.h: Remove file.
64234         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
64235         * lib/xgetcwd.c: Likewise.
64236         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
64237         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
64238         * modules/getcwd (Files): Remove lib/getcwd.h.
64239         (Depends-on): Add unistd.
64240         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64241         (Include): Use <unistd.h> instad of getcwd.h.
64242
64243         * lib/ftruncate.c: Include <unistd.h> first.
64244         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
64245         Set HAVE_FTRUNCATE.
64246         * modules/ftruncate (Depends-on): Add unistd.
64247         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64248
64249         * lib/fchdir.c: Include <unistd.h> first.
64250         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
64251         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
64252         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
64253         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64254         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
64255
64256         * lib/dup2.c: Include <unistd.h> first.
64257         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
64258         HAVE_DUP2.
64259         * modules/dup2 (Depends-on): Add unistd.
64260         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64261
64262         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
64263         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
64264         REPLACE_CHOWN. Don't define chown as a macro here.
64265         * modules/chown (Depends-on): Add unistd.
64266         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64267
64268         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
64269         Add definition for GL_LINK_WARNING.
64270         (chown, dup2): New declarations.
64271         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
64272         link warning.
64273         (ftruncate): New declaration.
64274         (getcwd): New declaration, taken from old getcwd.h.
64275         (getlogin_r): New declaration, taken from old getlogin_r.h.
64276         (readlink): New declaration.
64277         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
64278         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
64279         (gl_PREREQ_UNISTD): Remove macro.
64280         (gl_UNISTD_MODULE_INDICATOR): New macro.
64281         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
64282         many new variables. Don't set UNISTD_H.
64283         * modules/unistd (Description): Change.
64284         (Depends-on): Add link-warning.
64285         (configure.ac): Update.
64286         (Makefile.am): Create unistd.h always. Substitute many new variables
64287         into it.
64288
64289 2007-02-18  Bruno Haible  <bruno@clisp.org>
64290
64291         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
64292         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
64293         HAVE_GETSUBOPT.
64294         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
64295         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
64296         * lib/getsubopt.h: Remove file.
64297         * modules/getsubopt (Files): Remove lib/getsubopt.h.
64298         (Depends-on): Add stdlib.
64299         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64300         (Includes): Use <stdlib.h> instead of getsubopt.h.
64301         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
64302         Set HAVE_GETSUBOPT.
64303         * lib/getsubopt.c: Don't include getsubopt.h.
64304
64305 2007-02-18  Bruno Haible  <bruno@clisp.org>
64306
64307         * modules/fchdir (Depends-on): Add dup2.
64308
64309 2007-02-18  Bruno Haible  <bruno@clisp.org>
64310
64311         * lib/stdlib_.h: Handle glibc's special invocation convention
64312         specially.
64313
64314 2007-02-18  Bruno Haible  <bruno@clisp.org>
64315
64316         * modules/stdlib-tests: New file.
64317         * tests/test-stdlib.c: New file.
64318
64319         * modules/mkstemp (Files): Remove lib/mkstemp.h.
64320         (Depends-on): Add stdlib.
64321         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64322         (Includes): Use <stdlib.h> instead of mkstemp.h.
64323         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64324         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
64325         * lib/mkstemp.c: Don't include mkstemp.h.
64326         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
64327         * lib/stdlib--.h: Don't include mkstemp.h.
64328
64329         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
64330         (Depends-on): Add stdlib.
64331         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64332         (Includes): Use <stdlib.h> instead of mkdtemp.h.
64333         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64334         HAVE_MKDTEMP.
64335         * lib/mkdtemp.c: Don't include mkdtemp.h.
64336         * lib/clean-temp.c: Don't include mkdtemp.h.
64337
64338         * modules/exit (Files): Remove lib/exit.h.
64339         (Depends-on): Add stdlib.
64340         (Makefile.am): Remove lib_SOURCES.
64341         (Include): Use <stdlib.h> instead of exit.h.
64342         * lib/argmatch.c: Don't include exit.h.
64343         * lib/execute.c: Likewise.
64344         * lib/pagealign_alloc.c: Likewise.
64345         * lib/pipe.c: Likewise.
64346         * lib/wait-process.c: Likewise.
64347         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
64348         * lib/exitfail.c: Likewise.
64349         * lib/savewd.c: Likewise.
64350         * lib/xsetenv.c: Likewise.
64351
64352         * modules/stdlib: New file.
64353         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
64354         and extra comments about mkstemp().
64355         * lib/exit.h: Remove file.
64356         * lib/mkdtemp.h: Remove file.
64357         * lib/mkstemp.h: Remove file.
64358         * m4/stdlib_h.m4: New file.
64359         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
64360
64361 2007-02-18  Bruno Haible  <bruno@clisp.org>
64362
64363         * modules/math-tests: New file.
64364         * tests/test-math.c: New file.
64365
64366         * modules/math: New file.
64367         * modules/mathl (Files): Remove lib/mathl.h.
64368         (Depends-on): Add math.
64369         (Makefile.am): Don't mention mathl.h.
64370         (Include): Use <math.h> instead of mathl.h.
64371         * lib/math_.h: New file.
64372         * lib/mathl.h: Remove file.
64373         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
64374         mathl.h.
64375         * lib/asinl.c: Likewise.
64376         * lib/atanl.c: Likewise.
64377         * lib/ceill.c: Likewise.
64378         * lib/cosl.c: Likewise.
64379         * lib/expl.c: Likewise.
64380         * lib/floorl.c: Likewise.
64381         * lib/frexpl.c: Likewise.
64382         * lib/ldexpl.c: Likewise.
64383         * lib/logl.c: Likewise.
64384         * lib/sincosl.c: Likewise.
64385         * lib/sinl.c: Likewise.
64386         * lib/sqrtl.c: Likewise.
64387         * lib/tanl.c: Likewise.
64388         * lib/trigl.c: Likewise.
64389         * m4/math_h.m4: New file.
64390         * MODULES.html.sh (Mathematics): Add math.
64391
64392 2007-02-17  Bruno Haible  <bruno@clisp.org>
64393
64394         * modules/wctype-tests: New file.
64395         * tests/test-wctype.c: New file.
64396
64397         * modules/wchar-tests: New file.
64398         * tests/test-wchar.c: New file.
64399
64400         * modules/unistd-tests: New file.
64401         * tests/test-unistd.c: New file.
64402
64403         * modules/time-tests: New file.
64404         * tests/test-time.c: New file.
64405
64406         * modules/sysexits-tests: New file.
64407         * tests/test-sysexits.c: New file.
64408
64409         * modules/sys_time-tests: New file.
64410         * tests/test-sys_time.c: New file.
64411
64412         * modules/sys_stat-tests: New file.
64413         * tests/test-sys_stat.c: New file.
64414
64415         * modules/sys_socket-tests: New file.
64416         * tests/test-sys_socket.c: New file.
64417
64418         * modules/sys_select-tests: New file.
64419         * tests/test-sys_select.c: New file.
64420
64421         * modules/string-tests: New file.
64422         * tests/test-string.c: New file.
64423
64424         * modules/stdbool-tests: New file.
64425         * tests/test-stdbool.c: New file.
64426
64427         * modules/netinet_in-tests: New file.
64428         * tests/test-netinet_in.c: New file.
64429
64430         * modules/inttypes-tests: New file.
64431         * tests/test-inttypes.c: New file.
64432
64433         * modules/fcntl-tests: New file.
64434         * tests/test-fcntl.c: New file.
64435
64436         * modules/byteswap-tests: New file.
64437         * tests/test-byteswap.c: New file.
64438
64439         * modules/arpa_inet-tests: New file.
64440         * tests/test-arpa_inet.c: New file.
64441
64442 2007-02-17  Bruno Haible  <bruno@clisp.org>
64443
64444         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
64445         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
64446         if the corresponding module is not enabled. Emit link warnings if
64447         the function is used nevertheless.
64448         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
64449         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
64450         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
64451         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
64452         * modules/inttypes (Depends-on): Add link-warning.
64453         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64454         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
64455         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
64456         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
64457         * modules/imaxdiv (configure.ac): Likewise.
64458         * modules/strtoimax (configure.ac): Likewise.
64459         * modules/strtoumax (configure.ac): Likewise.
64460
64461 2007-02-17  Bruno Haible  <bruno@clisp.org>
64462
64463         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
64464         gl_STRING_MODULE_INDICATOR_DEFAULTS.
64465         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
64466         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
64467
64468 2007-02-17  Bruno Haible  <bruno@clisp.org>
64469
64470         * modules/link-warning: New file.
64471         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
64472         * lib/string_.h (GL_LINK_WARNING): Remove definition.
64473         * modules/string (Depends-on): Add link-warning.
64474         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64475         string.h.
64476         * MODULES.html.sh (Support for building libraries and executables): Add
64477         link-warning.
64478
64479 2007-02-17  Bruno Haible  <bruno@clisp.org>
64480
64481         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
64482         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
64483         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
64484         long lines.
64485
64486 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
64487             Bruno Haible  <bruno@clisp.org>
64488
64489         * modules/tmpfile: New file.
64490         * lib/tmpfile.c: New file.
64491         * m4/tmpfile.m4: New file.
64492         * MODULES.html.sh (func_all_modules): New section "Input/output".
64493
64494 2007-02-15  Bruno Haible  <bruno@clisp.org>
64495
64496         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
64497         (supports_delete_on_close): New function.
64498         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
64499
64500 2007-02-14  Bruno Haible  <bruno@clisp.org>
64501
64502         * modules/mbspcasecmp-tests: New file.
64503         * tests/test-mbspcasecmp.sh: New file.
64504         * tests/test-mbspcasecmp.c: New file.
64505
64506         New module mbspcasecmp.
64507         * modules/mbspcasecmp: New file.
64508         * lib/mbspcasecmp.c: New file.
64509         * lib/string_.h (strncasecmp): Change warning message.
64510         (mbspcasecmp): New declaration.
64511         * m4/mbspcasecmp.m4: New file.
64512         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64513         GNULIB_MBSPCASECMP.
64514         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
64515         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
64516
64517 2007-02-14  Bruno Haible  <bruno@clisp.org>
64518
64519         * modules/mbsncasecmp-tests: New file.
64520         * tests/test-mbsncasecmp.sh: New file.
64521         * tests/test-mbsncasecmp.c: New file.
64522
64523         New module mbsncasecmp.
64524         * modules/mbsncasecmp: New file.
64525         * lib/mbsncasecmp.c: New file.
64526         * lib/string_.h (mbsncasecmp): New declaration.
64527         * m4/mbsncasecmp.m4: New file.
64528         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64529         GNULIB_MBSNCASECMP.
64530         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
64531         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
64532
64533 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64534
64535         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
64536         Verify that it doesn't overlap with our flags.
64537         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
64538         do not have the desired effect in multibyte locales; instead, use
64539         mbscasecmp.
64540         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
64541         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
64542         we don't require GNU fnmatch ourselves (if our users require it, they
64543         should do so explicitly).
64544
64545         Fix regex code so it doesn't rely on strcasecmp.
64546         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
64547         Otherwise, include gnulib's langinfo.h.
64548         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
64549         undesirable behavior in non-C locales.  Instead, rely on localecharset.
64550         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
64551         * modules/regex (FILES): Remove m4/codeset.m4.
64552         (Depends-on): Add localcharset.  Remove strcase.
64553
64554 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64555
64556         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
64557         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
64558
64559 2007-02-13  Bruno Haible  <bruno@clisp.org>
64560
64561         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
64562         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64563
64564 2007-02-12  Bruno Haible  <bruno@clisp.org>
64565
64566         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64567         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
64568         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
64569         time warning rather than a link error.
64570
64571 2007-02-12  Bruno Haible  <bruno@clisp.org>
64572
64573         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
64574         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64575         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64576
64577 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64578
64579         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
64580         args, not 2.
64581
64582 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64583
64584         New module 'time', so that apps can include <time.h> as per
64585         POSIX and GNU instead of separate include files like time_r.h
64586         and timegm.h.  This implementation tries out a simpler approach
64587         for replacing decls in standard include files (as compared to
64588         the string module), somewhat as an experiment.
64589
64590         * config/srclist.txt: Comment out mktime.c for now.
64591         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
64592         since it doesn't apply any more.  Use generic wording instead.
64593         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
64594         'time'.
64595         * lib/time_.h, m4/time_h.m4, modules/time: New files.
64596         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
64597         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
64598         Don't include <sys/types.h>; no longer needed since we assume C89.
64599         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
64600         * lib/strftime.c: Likewise.
64601         * lib/time_r.c: Likewise.
64602         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
64603         * lib/nanosleep.c: Include <time.h> first, to check interface.
64604         * lib/strptime.c: Likewise.
64605         * lib/time_r.c: Likewise.
64606         * lib/timegm.c: Likewise.
64607         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
64608         needed.
64609         * lib/timegm.c: Don't include timegm.h; no longer needed.
64610         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
64611         time.h now handles any problems in that area.
64612         (struct timespec, nanosleep): Remove; time.h now arranges for these.
64613         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
64614         that time.h defines struct timespec.
64615         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
64616         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
64617         handles that.
64618         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
64619         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
64620         needed.  Set REPLACE_LOCALTIME.
64621         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
64622         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
64623         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
64624         nanosleep; time_h.m4 now does that.  Don't require
64625         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
64626         module handles this now.
64627         * modules/getdate (Depends-on): Remove timespec.  Add time.
64628         * modules/nanosleep (Depends-on): Likewise.
64629         * modules/stat-time (Depends-on): Likewise.
64630         * modules/nanosleep (Include): Include time.h, not timespec.h.
64631         * modules/strptime (Files): Remove lib/strptime.h.
64632         (Depends-on): Add extensions, time.
64633         (Include): Include time.h, not strptime.h.
64634         * modules/time_r (Files): Remove lib/time_r.h.
64635         (Depends-on): Add time.
64636         (Include): Include time.h, not time_r.h.
64637         * modules/timegm: Likewise.
64638         * modules/timespec (Description): Now does timespec-related decls
64639         of our own, instead of struct timespec itself.
64640         (Depends-on): Add time; remove extensions.
64641         (Maintainer): Add self.
64642         * modules/utimecmp (Depends-on): Add time; remove timespec.
64643         * modules/utimens (Depends-on): Likewise.
64644         * modules/xnanosleep (Depends-on): Likewise.
64645
64646 2007-02-11  Bruno Haible  <bruno@clisp.org>
64647
64648         * lib/c-strstr.c: Include allocsa.h.
64649         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64650         * lib/c-strcasestr.c: Include allocsa.h.
64651         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64652         * lib/strcasestr.c: Include allocsa.h.
64653         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64654         * lib/mbsstr.c: Include allocsa.h.
64655         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64656         allocsa/freesa instead of malloc/free.
64657         * lib/mbscasestr.c: Include allocsa.h.
64658         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64659         allocsa/freesa instead of malloc/free.
64660         * modules/c-strstr (Depends-on): Add allocsa.
64661         * modules/c-strcasestr (Depends-on): Likewise.
64662         * modules/strcasestr (Depends-on): Likewise.
64663         * modules/mbsstr (Depends-on): Likewise.
64664         * modules/mbscasestr (Depends-on): Likewise.
64665
64666 2007-02-11  Bruno Haible  <bruno@clisp.org>
64667
64668         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
64669
64670         * modules/mbsspn-tests: New file.
64671         * tests/test-mbsspn.sh: New file.
64672         * tests/test-mbsspn.c: New file.
64673
64674 2007-02-11  Bruno Haible  <bruno@clisp.org>
64675
64676         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
64677
64678         * modules/mbspbrk-tests: New file.
64679         * tests/test-mbspbrk.sh: New file.
64680         * tests/test-mbspbrk.c: New file.
64681
64682 2007-02-11  Bruno Haible  <bruno@clisp.org>
64683
64684         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
64685         unneeded cast.
64686
64687         * modules/mbscspn-tests: New file.
64688         * tests/test-mbscspn.sh: New file.
64689         * tests/test-mbscspn.c: New file.
64690
64691 2007-02-11  Bruno Haible  <bruno@clisp.org>
64692
64693         * modules/mbscasecmp-tests: New file.
64694         * tests/test-mbscasecmp.sh: New file.
64695         * tests/test-mbscasecmp.c: New file.
64696
64697 2007-02-11  Bruno Haible  <bruno@clisp.org>
64698
64699         Ensure O(n) worst-case complexity of mbscasestr.
64700         * lib/mbscasestr.c: Include stdbool.h.
64701         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64702         functions.
64703         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
64704         the bookkeeping indicates that it's worth it.
64705         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
64706
64707         * modules/mbscasestr-tests: New file.
64708         * tests/test-mbscasestr1.c: New file.
64709         * tests/test-mbscasestr2.sh: New file.
64710         * tests/test-mbscasestr2.c: New file.
64711         * tests/test-mbscasestr3.sh: New file.
64712         * tests/test-mbscasestr3.c: New file.
64713         * tests/test-mbscasestr4.sh: New file.
64714         * tests/test-mbscasestr4.c: New file.
64715         * m4/locale-tr.m4: New file.
64716
64717 2007-02-11  Bruno Haible  <bruno@clisp.org>
64718
64719         Ensure O(n) worst-case complexity of mbsstr.
64720         * lib/mbsstr.c: Include stdbool.h.
64721         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64722         functions.
64723         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
64724         bookkeeping indicates that it's worth it.
64725         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
64726
64727         * modules/mbsstr-tests: New file.
64728         * tests/test-mbsstr1.c: New file.
64729         * tests/test-mbsstr2.sh: New file.
64730         * tests/test-mbsstr2.c: New file.
64731         * tests/test-mbsstr3.sh: New file.
64732         * tests/test-mbsstr3.c: New file.
64733         * m4/locale-fr.m4: New file.
64734
64735 2007-02-11  Bruno Haible  <bruno@clisp.org>
64736
64737         * lib/mbsrchr.c (mbsrchr): Fix bug.
64738
64739         * modules/mbsrchr-tests: New file.
64740         * tests/test-mbsrchr.sh: New file.
64741         * tests/test-mbsrchr.c: New file.
64742
64743 2007-02-11  Bruno Haible  <bruno@clisp.org>
64744
64745         * lib/mbschr.c (mbschr): Fix bug.
64746
64747         * modules/mbschr-tests: New file.
64748         * tests/test-mbschr.sh: New file.
64749         * tests/test-mbschr.c: New file.
64750         * m4/locale-zh.m4: New file.
64751
64752 2007-02-11  Bruno Haible  <bruno@clisp.org>
64753
64754         Support for copying multibyte string iterators.
64755         * lib/mbiter.h: Include <string.h>.
64756         (mbiter_multi_copy): New function.
64757         (mbi_copy): New macro.
64758         * lib/mbuiter.h: Include <string.h>.
64759         (mbuiter_multi_copy): New function.
64760         (mbui_copy): New macro.
64761
64762 2007-02-11  Bruno Haible  <bruno@clisp.org>
64763
64764         New module mbslen.
64765         * modules/mbslen: New file.
64766         * lib/mbslen.c: New file.
64767         * lib/string_.h (mbslen): New declaration.
64768         * m4/mbslen.m4: New file.
64769         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64770         GNULIB_MBSLEN.
64771         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
64772         * MODULES.html.sh (Internationalization functions): Add mbslen.
64773
64774 2007-02-11  Bruno Haible  <bruno@clisp.org>
64775
64776         Ensure O(n) worst-case complexity of strcasestr substitute.
64777         * lib/strcasestr.c: Include stdbool.h.
64778         (knuth_morris_pratt): New function.
64779         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64780         bookkeeping indicates that it's worth it.
64781         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
64782
64783         * modules/strcasestr-tests: New file.
64784         * tests/test-strcasestr.c: New file.
64785
64786 2007-02-11  Bruno Haible  <bruno@clisp.org>
64787
64788         Ensure O(n) worst-case complexity of c_strcasestr.
64789         * lib/c-strcasestr.c: Include stdbool.h, string.h.
64790         (knuth_morris_pratt): New function.
64791         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
64792         the bookkeeping indicates that it's worth it.
64793         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
64794
64795         * modules/c-strcasestr-tests: New file.
64796         * tests/test-c-strcasestr.c: New file.
64797
64798 2007-02-11  Bruno Haible  <bruno@clisp.org>
64799
64800         Ensure O(n) worst-case complexity of c_strstr.
64801         * lib/c-strstr.c: Include stdbool.h, string.h.
64802         (knuth_morris_pratt): New function.
64803         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64804         bookkeeping indicates that it's worth it.
64805         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
64806
64807         * lib/c-strstr.c: Complete rewrite for maintainability.
64808
64809         * modules/c-strstr-tests: New file.
64810         * tests/test-c-strstr.c: New file.
64811
64812 2007-02-11  Bruno Haible  <bruno@clisp.org>
64813
64814         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
64815         5.2.1 and earlier, whereby \055 was treated just like the range
64816         delimiter '-'.
64817         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64818
64819 2007-02-08  Bruno Haible  <bruno@clisp.org>
64820
64821         * modules/regex (Depends-on): Add stdbool.
64822         Reported by Dalibor Topic <robilad@kaffe.org>.
64823
64824 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64825
64826         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
64827         Prefer returning from main to exiting from it.
64828         Remove unnecessary parens after sizeof.
64829
64830 2007-02-05  Bruno Haible  <bruno@clisp.org>
64831
64832         New module mbssep.
64833         * modules/mbssep: New file.
64834         * lib/mbssep.c: New file.
64835         * lib/string_.h (strsep): Add a conditional link warning.
64836         (mbssep): New declaration.
64837         * m4/mbssep.m4: New file.
64838         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64839         GNULIB_MBSSEP.
64840         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
64841         * MODULES.html.sh (Internationalization functions): Add mbssep.
64842
64843 2007-02-05  Bruno Haible  <bruno@clisp.org>
64844
64845         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
64846         Optimize search in case of 1 delimiter.
64847
64848 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64849
64850         * lib/acl.h: Include sys/types.h before sys/acl.h.
64851
64852 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64853
64854         Merge upstream fix for glibc bugzilla #3957:
64855
64856         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
64857
64858         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
64859         bit for RE_HAT_LISTS_NOT_NEWLINE.
64860         (build_charclass_op): Remove bogus comment.
64861
64862 2007-02-05  Simon Josefsson  <simon@josefsson.org>
64863
64864         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
64865
64866 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64867
64868         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
64869         * lib/memmem.c [!defined _LIBC]: Include config.h.
64870
64871 2007-02-04  Bruno Haible  <bruno@clisp.org>
64872
64873         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
64874         warning message.
64875
64876 2007-02-04  Bruno Haible  <bruno@clisp.org>
64877
64878         New module mbstok_r.
64879         * modules/mbstok_r: New file.
64880         * lib/mbstok_r.c: New file.
64881         * lib/string_.h (strtok_r): Change argument names to match the
64882         comments. Add a conditional link warning.
64883         (mbstok_r): New declaration.
64884         * m4/mbstok_r.m4: New file.
64885         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64886         GNULIB_MBSTOK_R.
64887         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
64888         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
64889
64890 2007-02-04  Bruno Haible  <bruno@clisp.org>
64891
64892         New module mbsspn.
64893         * modules/mbsspn: New file.
64894         * lib/mbsspn.c: New file.
64895         * lib/string_.h (strspn): Add a conditional link warning.
64896         (mbsspn): New declaration.
64897         * m4/mbsspn.m4: New file.
64898         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64899         GNULIB_MBSSPN.
64900         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
64901         * MODULES.html.sh (Internationalization functions): Add mbsspn.
64902
64903 2007-02-04  Bruno Haible  <bruno@clisp.org>
64904
64905         New module mbspbrk.
64906         * modules/mbspbrk: New file.
64907         * lib/mbspbrk.c: New file.
64908         * lib/string_.h (strpbrk): Add a conditional link warning.
64909         (mbspbrk): New declaration.
64910         * m4/mbspbrk.m4: New file.
64911         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64912         GNULIB_MBSPBRK.
64913         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
64914         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
64915
64916 2007-02-04  Bruno Haible  <bruno@clisp.org>
64917
64918         New module mbscspn.
64919         * modules/mbscspn: New file.
64920         * lib/mbscspn.c: New file.
64921         * lib/string_.h (strcspn): Add a conditional link warning.
64922         (mbscspn): New declaration.
64923         * m4/mbscspn.m4: New file.
64924         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64925         GNULIB_MBSCSPN.
64926         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
64927         * MODULES.html.sh (Internationalization functions): Add mbscspn.
64928
64929 2007-02-04  Bruno Haible  <bruno@clisp.org>
64930
64931         New module mbscasestr, reduced goal of strcasestr.
64932         * modules/mbscasestr: New file.
64933         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
64934         (mbscasestr): Renamed from strcasestr.
64935         * lib/strcasestr.c: Don't include mbuiter.h.
64936         (strcasestr): Remove support for multibyte locales.
64937         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
64938         Change the conditional link warning.
64939         (mbscasestr): New declaration.
64940         * m4/mbscasestr.m4: New file.
64941         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
64942         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
64943         REPLACE_STRCASESTR.
64944         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
64945         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64946         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64947         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
64948         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
64949         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64950         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
64951         (Depends-on): Remove mbuiter.
64952         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
64953
64954 2007-02-04  Bruno Haible  <bruno@clisp.org>
64955
64956         Simplify handling of strncasecmp.
64957         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
64958         the conditional link warning.
64959         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64960         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
64961         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
64962         * modules/strcase (configure.ac): Don't invoke
64963         gl_STRING_MODULE_INDICATOR.
64964         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
64965
64966 2007-02-04  Bruno Haible  <bruno@clisp.org>
64967
64968         New module mbscasecmp, reduced goal of strcasecmp.
64969         * modules/mbscasecmp: New file.
64970         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
64971         (mbscasecmp): Renamed from strcasecmp.
64972         * lib/strcasecmp.c: Don't include mbuiter.h.
64973         (strcasecmp): Remove support for multibyte locales.
64974         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
64975         Change the conditional link warning.
64976         (mbscasecmp): New declaration.
64977         * m4/mbscasecmp.m4: New file.
64978         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
64979         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
64980         REPLACE_STRCASECMP.
64981         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
64982         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64983         GNULIB_MBSCASECMP.
64984         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
64985         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
64986         * modules/strcase (Files): Remove m4/mbrtowc.m4.
64987         (Depends-on): Remove mbuiter.
64988         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
64989
64990 2007-02-04  Bruno Haible  <bruno@clisp.org>
64991
64992         New module mbsstr. Remove module strstr.
64993         * modules/mbsstr: New file.
64994         * modules/strstr: Remove file.
64995         * lib/mbsstr.c: Renamed from lib/strstr.c.
64996         (mbsstr): Renamed from strstr.
64997         * lib/string_.h (strstr): Remove declaration. Change the conditional
64998         link warning.
64999         (mbsstr): New declaration.
65000         * m4/mbsstr.m4: New file.
65001         * m4/strstr.m4: Remove file.
65002         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
65003         REPLACE_STRSTR.
65004         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
65005         Don't initialize GNULIB_STRSTR.
65006         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
65007         substitute GNULIB_STRSTR and REPLACE_STRSTR.
65008         * MODULES.html.sh (Internationalization functions): Add mbsstr.
65009         (Support for systems lacking ANSI C 89): Remove strstr.
65010
65011 2007-02-04  Bruno Haible  <bruno@clisp.org>
65012
65013         New module mbsrchr.
65014         * modules/mbsrchr: New file.
65015         * lib/mbsrchr.c: New file.
65016         * lib/string_.h (strrchr): Add a conditional link warning.
65017         (mbsrchr): New declaration.
65018         * m4/mbsrchr.m4: New file.
65019         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65020         GNULIB_MBSRCHR.
65021         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
65022         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
65023
65024 2007-02-04  Bruno Haible  <bruno@clisp.org>
65025
65026         New module mbschr.
65027         * modules/mbschr: New file.
65028         * lib/mbschr.c: New file.
65029         * lib/string_.h (strchr): Add a conditional link warning.
65030         (mbschr): New declaration.
65031         * m4/mbschr.m4: New file.
65032         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65033         GNULIB_MBSCHR.
65034         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
65035         * MODULES.html.sh (Internationalization functions): Add mbschr.
65036
65037 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
65038
65039         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
65040
65041         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
65042
65043 2007-02-04  Bruno Haible  <bruno@clisp.org>
65044
65045         New module description section 'configure.ac-early'.
65046         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
65047         (func_get_autoconf_early_snippet): New function.
65048         (func_import, func_create_testdir): Use it. Remove special cases for
65049         modules 'extensions' and 'lock'.
65050         * modules/extensions (configure.ac-early): Require
65051         gl_USE_SYSTEM_EXTENSIONS.
65052         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
65053
65054 2007-02-04  Bruno Haible  <bruno@clisp.org>
65055
65056         Make use of gcj-4.3's -fsource and -ftarget option.
65057         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
65058         and if so try the options -fsource and -ftarget.
65059         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
65060         source_version, ftarget_option, target_version arguments.
65061         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
65062         (is_envjavac_oldgcj_14_14_usable): Renamed from
65063         is_envjavac_gcj_14_14_usable.
65064         (is_envjavac_oldgcj_14_13_usable): Renamed from
65065         is_envjavac_gcj_14_13_usable.
65066         (is_gcj_present): Update.
65067         (is_gcj_43, is_gcj43_usable): New functions.
65068         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
65069         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
65070         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
65071         try the options -fsource and -ftarget.
65072
65073 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65074
65075         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
65076         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
65077         larger value.
65078
65079 2007-02-03  Jim Meyering  <jim@meyering.net>
65080
65081         Give tools a better chance to allocate space for very large buffers.
65082         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
65083
65084         Make pwd and readlink work also when run with an unreadable parent dir
65085         on systems with openat support.
65086         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
65087         provided getcwd function, even when we have openat support.
65088         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
65089
65090 2007-02-02  Bruno Haible  <bruno@clisp.org>
65091
65092         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65093         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
65094         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
65095         portability problems if one of these functions is only used on specific
65096         platforms.
65097         Reported by Paul Eggert.
65098
65099 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
65100
65101         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
65102         is causing more trouble than it's curing.
65103         * lib/regex_internal.h (__mempcpy): Remove.
65104         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
65105         (and make the code a tad smaller to boot).
65106         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
65107
65108 2007-02-02  Jim Meyering  <jim@meyering.net>
65109
65110         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
65111         section, not in the Makefile.am: one.
65112
65113 2007-02-02  Eric Blake  <ebb9@byu.net>
65114
65115         * lib/strchrnul.c: Always include config.h first.
65116
65117         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
65118         gnulib strstr is not necessary here.
65119
65120 2007-02-02  Simon Josefsson  <simon@josefsson.org>
65121
65122         * m4/socklen.m4: Fix typo.
65123
65124 2007-02-02  Eric Blake  <ebb9@byu.net>
65125
65126         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
65127         * modules/netinet_in (Makefile.am): Likewise.
65128
65129 2007-02-01  Bruno Haible  <bruno@clisp.org>
65130
65131         * lib/string_.h (GL_LINK_WARNING): New macro.
65132         (strcasecmp, strstr, strcasestr): If provided by the system,
65133         conditionally define as a macro that leads to a warning instead of to
65134         an error.
65135         (strncasecmp): Conditionally define as a macro that leads to a warning.
65136
65137 2007-02-01  Karl Berry  <karl@gnu.org>
65138
65139         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
65140
65141 2007-02-01  Bruno Haible  <bruno@clisp.org>
65142
65143         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
65144         renamings.
65145
65146 2007-02-01  Eric Blake  <ebb9@byu.net>
65147
65148         * modules/regex (Depends-on): Revert dependence on mempcpy.
65149         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
65150         module's definition of mempcpy.
65151         Reported by Paul Eggert.
65152
65153 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
65154
65155         * lib/string_.h: If the gnulib module XYZ is not present, undefine
65156         the symbol XYZ before redefining it.  This fixes a problem with
65157         programs that don't use XYZ, when compiled on systems that define
65158         XYZ to something else.
65159
65160 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
65161
65162         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
65163         occurs when "mkdir -m foo" creates a setgid directory that is (1)
65164         writeable to group or other and (2) is intended to have a special
65165         mode bit that is set or cleared.  In such a case, the directory
65166         should be neither group- nor other-writeable until the special
65167         mode bits are right.
65168
65169 2007-01-31  Eric Blake  <ebb9@byu.net>
65170
65171         * modules/mountlist (Depends-on): Add strstr.
65172
65173         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
65174         bug.
65175         * modules/string (Makefile.am): Remove redundant replacement.
65176         * modules/regex (Depends-on): Add mempcpy.
65177
65178 2007-01-31  Bruno Haible  <bruno@clisp.org>
65179
65180         New module description field 'Link'.
65181         * gnulib-tool (func_usage): Document --extract-link-directive.
65182         (sed_extract_prog): Recognize 'Link' directive.
65183         (func_get_link_directive): New function.
65184         (func_import): Show summary of link directives.
65185         Handle --extract-link-directive option.
65186         * modules/acl (Link): New section.
65187         * modules/clock-time (Link): New section.
65188         * modules/euidaccess (Link): New section.
65189         * modules/gettext (Link): New section.
65190         * modules/iconv (Link): New section.
65191         * modules/lock (Link): New section.
65192         * modules/nanosleep (Link): New section.
65193         * modules/readline (Link): New section.
65194
65195 2007-01-27  Bruno Haible  <bruno@clisp.org>
65196
65197         Enforce the use of gnulib modules for unportable <string.h> functions.
65198         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
65199         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
65200         (gl_HEADER_STRING_H_BODY): Require it.
65201         * lib/string_.h: If the gnulib module XYZ is not present, redefine
65202         the symbol XYZ to one that gives a link error.
65203         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
65204         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
65205         * modules/mempcpy (configure.ac): Likewise.
65206         * modules/memrchr (configure.ac): Likewise.
65207         * modules/stpcpy (configure.ac): Likewise.
65208         * modules/stpncpy (configure.ac): Likewise.
65209         * modules/strcase (configure.ac): Likewise.
65210         * modules/strcasestr (configure.ac): Likewise.
65211         * modules/strchrnul (configure.ac): Likewise.
65212         * modules/strdup (configure.ac): Likewise.
65213         * modules/strndup (configure.ac): Likewise.
65214         * modules/strnlen (configure.ac): Likewise.
65215         * modules/strpbrk (configure.ac): Likewise.
65216         * modules/strsep (configure.ac): Likewise.
65217         * modules/strstr (configure.ac): Likewise.
65218         * modules/strtok_r (configure.ac): Likewise.
65219
65220 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
65221
65222         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
65223
65224 2007-01-30  Jim Meyering  <jim@meyering.net>
65225
65226         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
65227
65228 2007-01-29  Bruno Haible  <bruno@clisp.org>
65229
65230         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
65231         * lib/execute.c: Likewise.
65232         * lib/pipe.c: Likewise.
65233         * lib/printf-args.h: Likewise.
65234         * lib/printf-args.c: Likewise.
65235         * lib/printf-parse.c: Likewise.
65236         * lib/vasnprintf.c: Likewise.
65237
65238 2007-01-29  Eric Blake  <ebb9@byu.net>
65239
65240         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
65241         declaration.
65242
65243 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
65244
65245         * lib/strptime.h (strptime): Use 'restrict' for args where
65246         POSIX requires this.
65247         * lib/strptime.c (strptime): Likewise.
65248         Change license notice from LGPL to GPL, since gnulib-tool will
65249         change this as needed.
65250         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
65251         defined.
65252         Include "strptime.h" first, to check interface.
65253         Do not #undef _LIBC and _NL_CURRENT.
65254         Do not include <stdlib.h>; no longer needed.
65255         Include "time_r.h" and declare ptime_locale_status
65256         only if _LIBC is not defined.
65257         (__P): Remove unused macro.
65258         (match_string): Bring back glibc version, but use it only if _LIBC
65259         is defined.
65260         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
65261         Remove unnecessary assertion and abort() call.
65262         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
65263         * m4/strptime.m4: Fix serial number comment.
65264         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
65265         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
65266         (Depends-on): Add time_r.
65267
65268 2007-01-29  Bruno Haible  <bruno@clisp.org>
65269
65270         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65271         strptime.
65272         * modules/strptime (Depends-on): Add stdbool.
65273         * lib/strptime.h: Include <time.h> always. Add comments.
65274
65275 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65276
65277         * modules/strptime: New file.
65278         * lib/strptime.h: New file.
65279         * lib/strptime.c: New file.
65280         * m4/strptime.m4: New file.
65281
65282 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65283
65284         * MODULES.html.sh: New module mpsort.
65285         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
65286
65287         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
65288         a circularity problem with HP-UX ia64 reported by Bob Proulx in
65289         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
65290         All uses changed.
65291         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
65292         All uses changed.
65293         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
65294         to _Restrict_.
65295         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
65296         the parameter matches the prototype.
65297
65298 2007-01-28  Jim Meyering  <jim@meyering.net>
65299
65300         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
65301         sys/time.h here, reverting that part of the previous patch:
65302         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
65303
65304 2007-01-28  Bruno Haible  <bruno@clisp.org>
65305
65306         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
65307         value of $(SYS_TIME_H).
65308         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
65309         remove it conditionally, too. [added by Jim Meyering]
65310         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
65311         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65312         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
65313         GETTIMEOFDAY_REPLACEMENT to 1.
65314
65315 2007-01-28  Bruno Haible  <bruno@clisp.org>
65316
65317         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
65318         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
65319         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
65320         Set UNISTD_H instead of UNISTD_H2.
65321         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
65322
65323 2007-01-28  Bruno Haible  <bruno@clisp.org>
65324
65325         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
65326         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
65327
65328 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65329
65330         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
65331         (func_create_testdir): Ensure C locale for `grep' and `tr'
65332         character ranges.
65333         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
65334         ACLOCAL_AMFLAGS parsing state machine.
65335
65336 2007-01-27  Bruno Haible  <bruno@clisp.org>
65337
65338         * modules/unistr/base: Update.
65339
65340 2007-01-27  Bruno Haible  <bruno@clisp.org>
65341
65342         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
65343         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
65344         * modules/unistr/u32-mbtouc-unsafe: Renamed from
65345         modules/unistr/u32-mbtouc.
65346         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
65347         * lib/unistr.h: Update.
65348         * lib/linebreak.c: Update.
65349         * modules/unistr/u32-mbtouc: Renamed from
65350         modules/unistr/u32-mbtouc-safe.
65351         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
65352         * lib/unistr.h: Update.
65353         * lib/unistr/u32-to-u8.c: Update.
65354         * lib/unistr/u32-to-u16.c: Update.
65355
65356 2007-01-27  Bruno Haible  <bruno@clisp.org>
65357
65358         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
65359         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
65360         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
65361         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
65362         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
65363         * modules/unistr/u16-mbtouc-unsafe: Renamed from
65364         modules/unistr/u16-mbtouc.
65365         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
65366         * lib/unistr.h: Update.
65367         * lib/linebreak.c: Update.
65368         * modules/linebreak: Update.
65369         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
65370         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
65371         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
65372         * modules/unistr/u16-mbtouc: Renamed from
65373         modules/unistr/u16-mbtouc-safe.
65374         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
65375         * lib/unistr.h: Update.
65376         * lib/unistr/u16-to-u8.c: Update.
65377         * modules/unistr/u16-to-u8: Update.
65378         * lib/unistr/u16-to-u32.c: Update.
65379         * modules/unistr/u16-to-u32: Update.
65380
65381 2007-01-27  Bruno Haible  <bruno@clisp.org>
65382
65383         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
65384         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
65385         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
65386         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
65387         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
65388         * modules/unistr/u8-mbtouc-unsafe: Renamed from
65389         modules/unistr/u8-mbtouc.
65390         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
65391         * lib/unistr.h: Update.
65392         * lib/striconveh.c: Update.
65393         * modules/striconveh: Update.
65394         * lib/linebreak.c: Update.
65395         * modules/linebreak: Update.
65396         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
65397         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
65398         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
65399         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
65400         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
65401         * lib/unistr.h: Update.
65402         * lib/striconveh.c: Update.
65403         * modules/striconveh: Update.
65404         * lib/unistr/u8-to-u16.c: Update.
65405         * modules/unistr/u8-to-u16: Update.
65406         * lib/unistr/u8-to-u32.c: Update.
65407         * modules/unistr/u8-to-u32: Update.
65408
65409 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65410
65411         Sync from Libtool.
65412         * lib/argz.c: Do not include strings.h nor memory.h, include
65413         string.h unconditionally.  Patch by Simon Josefsson.
65414
65415 2007-01-27  Bruno Haible  <bruno@clisp.org>
65416
65417         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
65418         from gl_HEADER_STRING_H_BODY.
65419         (gl_HEADER_STRING_H_BODY): Require it.
65420         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
65421         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65422         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65423         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65424         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65425         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
65426         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65427         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65428         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
65429         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65430         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65431         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
65432         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65433         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
65434         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65435
65436 2007-01-27  Bruno Haible  <bruno@clisp.org>
65437
65438         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
65439         check_PROGRAMS into noinst_PROGRAMS.
65440         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
65441         check_PROGRAMS in this case.
65442         (func_import): Set for_test to false.
65443         (func_create_testdir): Set for_test to true.
65444
65445 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65446             Bruno Haible  <bruno@clisp.org>
65447
65448         * modules/strcasestr (Files): Remove lib/strcasestr.h.
65449         (Depends-on): Add string.
65450         (Includes): Use <string.h> instead of strcasestr.h.
65451         * modules/string (Makefile.am): Also substitute the value of
65452         REPLACE_STRCASESTR.
65453         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
65454         assume strcasestr is declared in <string.h> not <strings.h>. Also
65455         set REPLACE_STRCASESTR.
65456         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
65457         REPLACE_STRCASESTR.
65458         * lib/strcasestr.h: Remove file.
65459         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
65460         * lib/string_.h (strcasestr): New declaration.
65461
65462 2007-01-27  Bruno Haible  <bruno@clisp.org>
65463
65464         * lib/string_.h: Use 'extern'.
65465
65466 2007-01-27  Jim Meyering  <jim@meyering.net>
65467
65468         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
65469         of set-but-not-used local, "q".
65470
65471         * lib/mempcpy.c: Include <config.h> before <string.h>.
65472         This fixes a compilation error on HP-UX, due to the system's
65473         "restrict"-using mempcpy prototype.
65474
65475 2007-01-26  Bruno Haible  <bruno@clisp.org>
65476
65477         Small optimization.
65478         * lib/javacomp.c: Include c-strstr.h.
65479          (is_envjavac_gcj): Use c_strstr instead of strstr.
65480         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
65481
65482 2007-01-26  Bruno Haible  <bruno@clisp.org>
65483
65484         * MODULES.html.sh (Unicode string functions): Add the new modules.
65485
65486         * modules/uniconv/u32-strconv-to-locale: New file.
65487         * lib/uniconv/u32-strconv-to-locale.c: New file.
65488
65489         * modules/uniconv/u16-strconv-to-locale: New file.
65490         * lib/uniconv/u16-strconv-to-locale.c: New file.
65491
65492         * modules/uniconv/u8-strconv-to-locale: New file.
65493         * lib/uniconv/u8-strconv-to-locale.c: New file.
65494
65495         * modules/uniconv/u32-strconv-from-locale: New file.
65496         * lib/uniconv/u32-strconv-from-locale.c: New file.
65497
65498         * modules/uniconv/u16-strconv-from-locale: New file.
65499         * lib/uniconv/u16-strconv-from-locale.c: New file.
65500
65501         * modules/uniconv/u8-strconv-from-locale: New file.
65502         * lib/uniconv/u8-strconv-from-locale.c: New file.
65503
65504         * modules/uniconv/u32-strconv-to-enc: New file.
65505         * lib/uniconv/u32-strconv-to-enc.c: New file.
65506         * modules/uniconv/u32-strconv-to-enc-tests: New file.
65507         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
65508
65509         * modules/uniconv/u16-strconv-to-enc: New file.
65510         * lib/uniconv/u16-strconv-to-enc.c: New file.
65511         * lib/uniconv/u-strconv-to-enc.h: New file.
65512         * modules/uniconv/u16-strconv-to-enc-tests: New file.
65513         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
65514
65515         * modules/uniconv/u8-strconv-to-enc: New file.
65516         * lib/uniconv/u8-strconv-to-enc.c: New file.
65517         * modules/uniconv/u8-strconv-to-enc-tests: New file.
65518         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
65519
65520         * modules/uniconv/u32-strconv-from-enc: New file.
65521         * lib/uniconv/u32-strconv-from-enc.c: New file.
65522         * modules/uniconv/u32-strconv-from-enc-tests: New file.
65523         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
65524
65525         * modules/uniconv/u16-strconv-from-enc: New file.
65526         * lib/uniconv/u16-strconv-from-enc.c: New file.
65527         * modules/uniconv/u16-strconv-from-enc-tests: New file.
65528         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
65529
65530         * modules/uniconv/u8-strconv-from-enc: New file.
65531         * lib/uniconv/u8-strconv-from-enc.c: New file.
65532         * lib/uniconv/u-strconv-from-enc.h: New file.
65533         * modules/uniconv/u8-strconv-from-enc-tests: New file.
65534         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
65535
65536         * modules/uniconv/u32-conv-from-enc: New file.
65537         * lib/uniconv/u32-conv-from-enc.c: New file.
65538         * modules/uniconv/u32-conv-from-enc-tests: New file.
65539         * tests/uniconv/test-u32-conv-from-enc.c: New file.
65540
65541         * modules/uniconv/u16-conv-from-enc: New file.
65542         * lib/uniconv/u16-conv-from-enc.c: New file.
65543         * lib/uniconv/u-conv-from-enc.h: New file.
65544         * modules/uniconv/u16-conv-from-enc-tests: New file.
65545         * tests/uniconv/test-u16-conv-from-enc.c: New file.
65546
65547         * modules/uniconv/u8-conv-from-enc: New file.
65548         * lib/uniconv/u8-conv-from-enc.c: New file.
65549         * modules/uniconv/u8-conv-from-enc-tests: New file.
65550         * tests/uniconv/test-u8-conv-from-enc.c: New file.
65551
65552         * modules/uniconv/base: New file.
65553         * lib/uniconv.h: New file.
65554
65555 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65556
65557         * doc/gnulib-tool.texi (Initial import): Update to match current
65558         behavior with strdup module.
65559         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
65560         * lib/memmem.h: Remove; all uses removed.  This is now done
65561         by <string.h>.
65562         * lib/mempcpy.h: Likewise.
65563         * lib/memrchr.h: Likewise.
65564         * lib/stpcpy.h: Likewise.
65565         * lib/stpncpy.h: Likewise.
65566         * lib/strcase.h: Likewise.
65567         * lib/strchrnul.h: Likewise.
65568         * lib/strdup.h: Likewise.
65569         * lib/strndup.h: Likewise.
65570         * lib/strnlen.h: Likewise.
65571         * lib/strpbrk.h: Likewise.
65572         * lib/strsep.h: Likewise.
65573         * lib/strstr.h: Likewise.
65574         * lib/strtok_r.h: Likewise.
65575         * lib/string_.h: New file.
65576         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
65577         Rely on <string.h> instead.
65578         * lib/canon-host.c: Likewise.
65579         * lib/chdir-long.c: Likewise.
65580         * lib/concatpath.c: Likewise.
65581         * lib/exclude.c: Likewise.
65582         * lib/fchdir.c: Likewise.
65583         * lib/getaddrinfo.c: Likewise.
65584         * lib/getcwd.c: Likewise.
65585         * lib/getsubopt.c: Likewise.
65586         * lib/glob.c: Likewise.
65587         * lib/hard-locale.c: Likewise.
65588         * lib/iconvme.c: Likewise.
65589         * lib/javacomp.c: Likewise.
65590         * lib/mempcpy.c: Likewise.
65591         * lib/memrchr.c: Likewise.
65592         * lib/regex_internal.h: Likewise.
65593         * lib/stpncpy.c: Likewise.
65594         * lib/strcasecmp.c: Likewise.
65595         * lib/strchrnul.c: Likewise.
65596         * lib/strdup.c: Likewise.
65597         * lib/striconv.c: Likewise.
65598         * lib/striconveh.c: Likewise.
65599         * lib/striconveha.c: Likewise.
65600         * lib/strncasecmp.c: Likewise.
65601         * lib/strndup.c: Likewise.
65602         * lib/strnlen.c: Likewise.
65603         * lib/strsep.c: Likewise.
65604         * lib/strstr.c: Likewise.
65605         * lib/strtok_r.c: Likewise.
65606         * lib/userspec.c: Likewise.
65607         * lib/w32spawn.h: Likewise.
65608         * lib/xstrndup.c: Likewise.
65609         * lib/mountlist.c (strstr): Remove decl.
65610         * m4/string_h.m4: New file.
65611         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
65612         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
65613         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
65614         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
65615         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
65616         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
65617         Set REPLACE_STRCASECMP if necessary.
65618         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
65619         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
65620         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
65621         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
65622         HAVE_DECL_STRDUP if necessary.
65623         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
65624         since gl_FUNC_STRNDUP does that now.
65625         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
65626         Check for decl here...
65627         (gl_PREREQ_STRNLEN): ... not here.
65628         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
65629         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
65630         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
65631         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
65632         necessary.
65633         * modules/string: New file.
65634         * modules/memmem (Files): Remove special-purpose include file.
65635         (Depends-on): Add string.
65636         (Include): Include <string.h>, not the removed file.
65637         * modules/mempcpy: Likewise.
65638         * modules/memrchr: Likewise.
65639         * modules/stpcpy: Likewise.
65640         * modules/stpncpy: Likewise.
65641         * modules/strcase: Likewise.
65642         * modules/strchrnul: Likewise.
65643         * modules/strdup: Likewise.
65644         * modules/strndup: Likewise.
65645         * modules/strnlen: Likewise.
65646         * modules/strpbrk: Likewise.
65647         * modules/strsep: Likewise.
65648         * modules/strstr: Likewise.
65649         * modules/strtok_r: Likewise.
65650         * tests/test-dirname.c: Don't include "strdup.h", since
65651         <string.h> now suffices.
65652         * tests/test-memmem.c: Don't include "memmem.h", since
65653         <string.h> now suffices.
65654
65655 2007-01-25  Bruno Haible  <bruno@clisp.org>
65656
65657         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
65658         *resultp is 0.
65659
65660         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
65661         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
65662         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
65663         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
65664
65665         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
65666         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
65667         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
65668         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
65669         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
65670         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
65671
65672 2007-01-24  Bruno Haible  <bruno@clisp.org>
65673
65674         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
65675         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
65676         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
65677         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
65678         gl_FUNC_FTS_CORE.
65679         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
65680         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
65681         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65682         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
65683         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
65684         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
65685         gl_FUNC_FCHOWNAT.
65686         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
65687         gl_FUNC_STRFTIME.
65688         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
65689         Reported by Ralf Wildenhues.
65690
65691 2007-01-24  Bruno Haible  <bruno@clisp.org>
65692
65693         Drop AC_REQUIRE calls that are redundant with the module dependencies.
65694         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
65695         gl_GETADDRINFO.
65696         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
65697         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
65698         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
65699
65700 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
65701
65702         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
65703         Don't use 'exit'; just return from 'main'.
65704         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
65705
65706         * lib/fnmatch_.h: Readjust white space and comments to match
65707         glibc, to avoid spurious diffs.
65708
65709 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65710
65711         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
65712         2004-12-01 change by Jakub Jelinek, since this code won't compile
65713         if !LIBC.  Problem reported by Bob Proulx.
65714
65715 2007-01-23  Bruno Haible  <bruno@clisp.org>
65716
65717         * lib/striconveh.c: Include c-strcaseeq.h.
65718         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
65719         * modules/striconveh (Depends-on): Add c-strcaseeq.
65720
65721 2007-01-23  Bruno Haible  <bruno@clisp.org>
65722
65723         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
65724
65725         * modules/c-strcaseeq: New file.
65726         * lib/c-strcaseeq.h: New file.
65727
65728         * modules/streq: New file.
65729         * lib/streq.h: New file.
65730
65731 2007-01-23  Bruno Haible  <bruno@clisp.org>
65732
65733         * modules/striconveha-tests: New file.
65734         * tests/test-striconveha.c: New file.
65735
65736         * lib/striconveha.h: Include <stdbool.h>.
65737         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
65738         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
65739         (mem_iconveha_notranslit): Renamed from mem_iconveha.
65740         (mem_iconveha): New function.
65741         (str_iconveha_notranslit): Renamed from str_iconveha.
65742         (str_iconveha): New function.
65743         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
65744         c-strcase.
65745
65746 2007-01-23  Bruno Haible  <bruno@clisp.org>
65747
65748         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
65749         encodings without forgiving before trying any encoding with handler.
65750         (str_iconveha): Try all encodings without forgiving before trying any
65751         encoding with handler.
65752
65753 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65754
65755         Import the following changes from libc.
65756
65757         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65758
65759         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
65760
65761         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65762
65763         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
65764         normal_bracket label.
65765
65766         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
65767
65768         [BZ #361]
65769         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
65770         to normal_bracket after fetching the next character.
65771
65772 2007-01-22  Bruno Haible  <bruno@clisp.org>
65773
65774         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
65775         argument.
65776         * lib/striconveh.c (iconv_carefully_1): New function.
65777         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
65778         argument.
65779         (str_cd_iconveh): Update.
65780         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
65781         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
65782         * tests/test-striconveh.c (MAGIC): New macro.
65783         (new_offsets): New function.
65784         (main): Test call with and without offsets.
65785
65786 2007-01-22  Bruno Haible  <bruno@clisp.org>
65787
65788         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
65789         * modules/sys_select (Makefile.am): Likewise.
65790         * modules/sys_socket (Makefile.am): Likewise.
65791         * modules/sys_time (Makefile.am): Likewise.
65792
65793 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65794
65795         * modules/gettimeofday (License): Change from GPL to LGPL, since
65796         gettimeofday is a library function.
65797
65798 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65799
65800         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
65801
65802 2007-01-21  Bruno Haible  <bruno@clisp.org>
65803
65804         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
65805
65806 2007-01-21  Bruno Haible  <bruno@clisp.org>
65807
65808         * modules/striconveha: New file.
65809         * lib/striconveha.h: New file.
65810         * lib/striconveha.c: New file.
65811         * MODULES.html.sh (Internationalization functions): Add striconveha.
65812         * lib/striconv.c (str_iconv): Optimize the case of an empty input
65813         string.
65814         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
65815
65816 2007-01-21  Bruno Haible  <bruno@clisp.org>
65817
65818         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
65819         * lib/striconveh.c (str_iconveh): Likewise.
65820
65821 2007-01-21  Bruno Haible  <bruno@clisp.org>
65822
65823         * lib/striconveh.h (mem_iconveh): New declaration.
65824         * lib/striconveh.c (mem_iconveh): New function.
65825         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
65826
65827 2007-01-21  Bruno Haible  <bruno@clisp.org>
65828
65829         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
65830
65831         * lib/striconveh.h (mem_cd_iconveh): Change specification.
65832         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
65833         original result buffer.
65834         (str_cd_iconveh): Update.
65835         * tests/test-striconveh.c (main): Update.
65836
65837         * lib/striconv.h (mem_cd_iconv): Change specification.
65838         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
65839         result buffer.
65840         (str_cd_iconv): Update.
65841         * tests/test-striconv.c (main): Update.
65842
65843 2007-01-21  Bruno Haible  <bruno@clisp.org>
65844
65845         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
65846
65847 2007-01-20  Jim Meyering  <jim@meyering.net>
65848
65849         * lib/userspec.c (parse_with_separator): If a user or group string
65850         starts with "+", skip the corresponding name-to-ID look-up, since
65851         such a look-up must fail: user and group names may not include "+".
65852
65853 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65854
65855         * lib/poll.c: Include sys/time.h and time.h unconditionally,
65856         since we now assume the sys_time module.
65857         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
65858         check for sys/time.h; no longer needed.
65859         * modules/poll (Depends-on): Depend on sys_time.
65860
65861 2007-01-18  Bruno Haible  <bruno@clisp.org>
65862
65863         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
65864         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65865
65866         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
65867         gettimeofday.
65868
65869         * tests/test-gettimeofday.c: Include <time.h>.
65870         (dummy): Remove variable.
65871
65872         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
65873         gl_HEADER_SYS_TIME_H.
65874         (gl_HEADER_SYS_TIME_H): New macro.
65875
65876         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
65877         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65878         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
65879         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
65880         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65881         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
65882         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
65883         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65884         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
65885         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
65886         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65887
65888         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
65889         last change; it caused a compilation error when cross-compiling to
65890         Cygwin.
65891
65892 2007-01-18  Jim Meyering  <jim@meyering.net>
65893
65894         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
65895         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
65896         than the race-prone "test -d sys || mkdir sys".
65897         (configure.ac): Use AC_PROG_MKDIR_P.
65898         * modules/sys_select: Likewise.
65899         * modules/sys_socket: Likewise.
65900         * modules/sys_time: Likewise.
65901
65902 2007-01-18  Eric Blake  <ebb9@byu.net>
65903
65904         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
65905         replace gettimeofday.
65906         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
65907         name, to avoid infinite recursion.
65908
65909 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
65910
65911         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
65912         module sys_time.
65913         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
65914         assume timespec.h defines struct timeval.
65915         * lib/settime.c: Likewise.
65916         * lib/utimens.c: Likewise.
65917         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
65918         since we now assume the gettimeofday module.
65919         * lib/tempname.c (__gen_tempname): Likewise.
65920         * lib/gettimeofday.h: Remove.
65921         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
65922         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
65923         Include <time.h>, for 'time()'.
65924         (localtime_buffer_addr): Also use this workaround if
65925         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
65926         to simplify the uses.  All uses changed.
65927         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
65928         that #undef is inside {}, and 'const' follows type name consistently.
65929         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
65930         (gettimeofday): Do not use the maximum possible value for
65931         tv->tv_usec, since that might break usages other than ls.c.
65932         Instead, we'll leave ls.c alone.  This undoes today's patch
65933         by Bruno.  Add a compile-time warning for 1s-clock resolution;
65934         we've never observed the problem but might as well keep the
65935         canary.
65936         * lib/nanosleep.c: Include timespec.h first, for interface check.
65937         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
65938         now assume the sys_time module.
65939         * lib/tempname.c: Likewise.
65940         * lib/timespec.h: Likewise.
65941         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
65942         needed.
65943         * lib/strftime.c: Likewise.
65944         * lib/timespec.h: Likewise.
65945         * lib/posixtm.c: Include posixtm.h first, for interface check.
65946         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
65947         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
65948         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
65949         * lib/sys_time_.h: New file.
65950         * lib/timespec.h (struct timespec): Use long int, not long.
65951         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65952         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
65953         Remove obsolescent call to AC_HEADER_TIME.
65954         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
65955         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65956         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65957         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
65958         Likewise.
65959         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
65960         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
65961         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
65962         into the sys_time module.  Check for gettimeofday just once.
65963         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
65964         for gettimeofday signature to just check the signature.  Merely
65965         compile it, since linking doesn't test signature.  Improve test for
65966         whether gettimeofday.o is actually needed.
65967         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
65968         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
65969         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
65970         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65971         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
65972         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
65973         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
65974         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
65975         than worrying about sys/time.h.
65976         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65977         Don't bother worrying about TIME_WITH_SYS_TIME.
65978         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
65979         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
65980         * m4/sys_time_h.m4: New file.
65981         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
65982         Don't include sys/time.h.  Return from main rather than exiting.
65983         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
65984         all uses changed.
65985         * modules/gethrxtime (Depends-on): Add sys_time.
65986         * modules/gettime (Depends-on): Likewise.
65987         * modules/gettimeofday (Depends-on): Likewise.
65988         * modules/nanosleep (Depends-on): Likewise.
65989         * modules/settime (Depends-on): Likewise.
65990         * modules/tempname (Depends-on): Likewise.
65991         * modules/utimens (Depends-on): Likewise.
65992         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
65993         (Include): Change back to <sys/time.h>.
65994         (Maintainer): Add self.
65995         * modules/sys_time: New file.
65996         * modules/tempname (Depends-on): Add gettimeofday.
65997         * tests/test-gettimeofday.c: Include <sys/time.h>
65998         rather than gettimeofday.h.
65999
66000 2007-01-17  Bruno Haible  <bruno@clisp.org>
66001
66002         * gnulib-tool (func_get_license): Revert last patch. Instead, let
66003         the license default to GPL.
66004         (func_create_testdir): Don't complain if a module is LGPL and its
66005         tests module depends on GPLed modules.
66006
66007 2007-01-17  Bruno Haible  <bruno@clisp.org>
66008
66009         * lib/gettimeofday.c (gettimeofday): Add code for the case
66010         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
66011         maximum possible value for tv->tv_usec, rather than the minimum one.
66012
66013 2005-10-08  Martin Lambers  <marlam@marlam.de>
66014 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66015 2007-01-16  Bruno Haible  <bruno@clisp.org>
66016
66017         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
66018         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
66019         gl_FUNC_GETTIMEOFDAY.
66020         (Include): Add gettimeofday.h.
66021         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
66022         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
66023         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
66024         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
66025         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
66026         * lib/gettimeofday.h: New file.
66027         * lib/gettimeofday.c: Include <sys/timeb.h>.
66028         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
66029         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66030         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
66031         fall back on time().
66032
66033         * tests/test-gettimeofday.c: New file.
66034         * modules/gettimeofday-tests: New file.
66035
66036 2007-01-16  Eric Blake  <ebb9@byu.net>
66037
66038         * modules/fnmatch (Depends-on): Depend on wchar.
66039         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
66040         * m4/fnmatch.m4: Likewise.
66041         * modules/mbchar (Makefile.am): Assume <wchar.h>.
66042         * m4/mbchar.m4: Likewise.
66043         * modules/mbswidth (Depends-on): Depend on wchar.
66044         * lib/mbswidth.c: Assume <wchar.h>.
66045         * m4/mbswidth.m4: Likewise.
66046         * modules/quotearg (Depends-on): Depend on wchar.
66047         * lib/quotearg.c: Assume <wchar.h>.
66048         * m4/quotearg.m4: Likewise.
66049         * modules/regex (Depends-on): Depend on wchar.
66050         * lib/regex_internal.h: Assume <wchar.h>.
66051         * m4/regex.m4: Likewise.
66052         * modules/stdint (Depends-on): Depend on wchar.
66053         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
66054         * m4/stdint.m4: Likewise.
66055         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
66056         * modules/strftime (Depends-on): Depend on wchar.
66057         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
66058         * modules/strtol (Depends-on): Depend on wchar.
66059         * lib/strtol.c: Assume <wchar.h>.
66060         * modules/wcwidth (Depends-on): Depend on wchar.
66061         * lib/wcwidth.h: Assume <wchar.h>.
66062         * m4/wcwidth.m4: Likewise.
66063
66064 2007-01-16  Bruno Haible  <bruno@clisp.org>
66065
66066         * modules/csharpexec-script: New, created from...
66067         * modules/csharpexec: ... this.
66068
66069 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
66070
66071         * modules/javaexec-script: New, created from...
66072         * modules/javaexec: ... this.
66073
66074 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66075
66076         * modules/poll (Dependencies): Add sys_select.
66077
66078 2007-01-15  Jim Meyering  <jim@meyering.net>
66079
66080         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
66081         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
66082         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
66083         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
66084
66085 2007-01-15  Bruno Haible  <bruno@clisp.org>
66086
66087         * modules/striconveh: New file.
66088         * lib/striconveh.h: New file.
66089         * lib/striconveh.c: New file.
66090         * MODULES.html.sh (Internationalization functions): Add striconveh.
66091
66092         * modules/striconveh-tests: New file.
66093         * tests/test-striconveh.c: New file.
66094
66095 2007-01-15  Bruno Haible  <bruno@clisp.org>
66096
66097         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
66098         not from GNU libiconv or GNU libc.
66099
66100 2007-01-15  Bruno Haible  <bruno@clisp.org>
66101
66102         * doc/gnulib-intro.texi (Copyright): Explain the different license
66103         terms for module descriptions, autoconf macros, tests, documentation.
66104
66105 2007-01-14  Bruno Haible  <bruno@clisp.org>
66106
66107         * modules/striconv-tests: New file.
66108         * tests/test-striconv.c: New file.
66109
66110 2007-01-14  Bruno Haible  <bruno@clisp.org>
66111
66112         * modules/iconv-tests: New file.
66113         * tests/test-iconv.c: New file.
66114
66115 2007-01-14  Bruno Haible  <bruno@clisp.org>
66116
66117         * gnulib-tool (func_get_license): For test modules, use the license of
66118         the main module.
66119
66120 2007-01-14  Bruno Haible  <bruno@clisp.org>
66121
66122         * modules/iconv (Include): Clarify that <iconv.h> can only be included
66123         if iconv is found to exist.
66124
66125 2007-01-14  Bruno Haible  <bruno@clisp.org>
66126
66127         * modules/c-ctype-tests: New file.
66128         * tests/test-c-ctype.c: New file.
66129
66130 2007-01-14  Bruno Haible  <bruno@clisp.org>
66131
66132         * modules/binary-io-tests: New file.
66133         * tests/test-binary-io.sh: New file.
66134         * tests/test-binary-io.c: New file.
66135
66136 2007-01-14  Bruno Haible  <bruno@clisp.org>
66137
66138         * modules/array-oset-tests: New file.
66139         * tests/test-array_oset.c: New file.
66140
66141 2007-01-14  Bruno Haible  <bruno@clisp.org>
66142
66143         * modules/array-list-tests: New file.
66144         * tests/test-array_list.c: New file.
66145
66146 2007-01-14  Bruno Haible  <bruno@clisp.org>
66147
66148         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
66149         and make.
66150         Reported by Simon Josefsson in
66151         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
66152
66153 2007-01-14  Bruno Haible  <bruno@clisp.org>
66154
66155         * modules/allocsa-tests: New file.
66156         * tests/test-allocsa.c: New file.
66157
66158 2007-01-14  Bruno Haible  <bruno@clisp.org>
66159
66160         * modules/fchdir (Depends-on): Add absolute-header.
66161         * modules/unistd (Depends-on): Likewise.
66162
66163 2006-12-30  Bruno Haible  <bruno@clisp.org>
66164
66165         * modules/fchdir: New file.
66166         * modules/unistd (Files): Add lib/unistd_.h.
66167         (Makefile.am): Generate unistd.h from unistd_.h.
66168         * lib/fchdir.c: New file.
66169         * lib/dirent_.h: New file.
66170         * lib/unistd_.h: New file.
66171         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
66172         * m4/fchdir.m4: New file.
66173         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
66174         (gl_HEADER_UNISTD): Invoke it.
66175         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
66176         function.
66177         * lib/backupfile.c (opendir, closedir): Undefine.
66178         * lib/chown.c (open, close): Undefine.
66179         * lib/clean-temp.c (open, close): Undefine.
66180         * lib/copy-file.c (open, close): Undefine.
66181         * lib/execute.c (open, close): Undefine.
66182         * lib/fsusage.c (open, close): Undefine.
66183         * lib/gc-gnulib.c (open, close): Undefine.
66184         * lib/getcwd.c (opendir, closedir): Undefine.
66185         * lib/glob.c (opendir, closedir): Undefine.
66186         * lib/javacomp.c (open, close): Undefine.
66187         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
66188         * lib/openat-proc.c (open, close): Undefine.
66189         * lib/pagealign_alloc.c (open, close): Undefine.
66190         * lib/pipe.c (open, close): Undefine.
66191         * lib/progreloc.c (open, close): Undefine.
66192         * lib/savedir.c (opendir, closedir): Undefine.
66193         * lib/utime.c (open, close): Undefine.
66194         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
66195
66196 2007-01-10  Bruno Haible  <bruno@clisp.org>
66197
66198         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
66199
66200 2007-01-12  Eric Blake  <ebb9@byu.net>
66201
66202         Provide a robust <wchar.h>.  Further simplifications are now
66203         possible in other modules, but not included here.
66204         * modules/wchar: New module.
66205         * m4/wchar.m4: New file.
66206         * lib/wchar_.h: Likewise.
66207         * modules/mbchar (Depends-on): Depend on wchar, as the first use
66208         of the new module.
66209         * MODULES.html.sh (Extended multibyte and wide character utilities):
66210         New section.
66211
66212 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
66213
66214         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
66215         to a reasonable default for memory allocation.
66216         (xreadlink): Don't allocate a huge buffer, to work around a buggy
66217         file system that reports garbage st_size values for symlinks.
66218         Problem reported by Liyang Hu.
66219
66220 2007-01-11  Simon Josefsson  <simon@josefsson.org>
66221
66222         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
66223         Emacs .#* auto-save files).
66224
66225 2007-01-11  Bruno Haible  <bruno@clisp.org>
66226
66227         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
66228         directory.
66229
66230 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66231
66232         Use @...@ consistently in lib/wctype_.h.
66233         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
66234         on it being set to 1 or 0.
66235         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
66236         go back to AC_SUBSTing it.
66237         * modules/wctype (Makefile.am): Undo previous change.
66238
66239 2007-01-10  Eric Blake  <ebb9@byu.net>
66240
66241         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
66242         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
66243         * modules/wctype (Makefile.am): Likewise.
66244         Reported by Chris McGuire.
66245
66246 2007-01-10  Jim Meyering  <jim@meyering.net>
66247
66248         fts.c: a small readability/maintainability improvement
66249         * lib/fts.c (fts_read): Make this code slightly more readable and
66250         maintainable by hoisting the "sp->fts_cur = p" assignments to
66251         immediately follow the statements that set P.  Derived from
66252         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
66253
66254 2007-01-10  Eric Blake  <ebb9@byu.net>
66255
66256         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
66257         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
66258         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66259         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
66260         Reported by Chris McGuire.
66261
66262 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66263
66264         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
66265         in sed script.
66266
66267 2007-01-09  Bruno Haible  <bruno@clisp.org>
66268
66269         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
66270         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
66271         variables.
66272         (func_module): Use them.
66273
66274 2007-01-09  Bruno Haible  <bruno@clisp.org>
66275
66276         * modules/unistr/base: New file.
66277         * lib/unistr.h: New file.
66278
66279         * modules/unistr/u8-to-u16: New file.
66280         * lib/unistr/u8-to-u16.c: New file.
66281
66282         * modules/unistr/u8-to-u32: New file.
66283         * lib/unistr/u8-to-u32.c: New file.
66284
66285         * modules/unistr/u16-to-u8: New file.
66286         * lib/unistr/u16-to-u8.c: New file.
66287
66288         * modules/unistr/u16-to-u32: New file.
66289         * lib/unistr/u16-to-u32.c: New file.
66290
66291         * modules/unistr/u32-to-u8: New file.
66292         * lib/unistr/u32-to-u8.c: New file.
66293
66294         * modules/unistr/u32-to-u16: New file.
66295         * lib/unistr/u32-to-u16.c: New file.
66296
66297         * modules/unistr/u8-check: New file.
66298         * modules/unistr/u16-check: New file.
66299         * modules/unistr/u32-check: New file.
66300         * lib/unistr/u8-check.c: New file.
66301         * lib/unistr/u16-check.c: New file.
66302         * lib/unistr/u32-check.c: New file.
66303
66304         * modules/unistr/u8-chr: New file.
66305         * modules/unistr/u16-chr: New file.
66306         * modules/unistr/u32-chr: New file.
66307         * lib/unistr/u8-chr.c: New file.
66308         * lib/unistr/u16-chr.c: New file.
66309         * lib/unistr/u32-chr.c: New file.
66310
66311         * modules/unistr/u8-cmp: New file.
66312         * modules/unistr/u16-cmp: New file.
66313         * modules/unistr/u32-cmp: New file.
66314         * lib/unistr/u8-cmp.c: New file.
66315         * lib/unistr/u16-cmp.c: New file.
66316         * lib/unistr/u32-cmp.c: New file.
66317
66318         * modules/unistr/u8-cpy: New file.
66319         * modules/unistr/u16-cpy: New file.
66320         * modules/unistr/u32-cpy: New file.
66321         * lib/unistr/u8-cpy.c: New file.
66322         * lib/unistr/u16-cpy.c: New file.
66323         * lib/unistr/u32-cpy.c: New file.
66324         * lib/unistr/u-cpy.h: New file.
66325
66326         * modules/unistr/u8-cpy-alloc: New file.
66327         * modules/unistr/u16-cpy-alloc: New file.
66328         * modules/unistr/u32-cpy-alloc: New file.
66329         * lib/unistr/u8-cpy-alloc.c: New file.
66330         * lib/unistr/u16-cpy-alloc.c: New file.
66331         * lib/unistr/u32-cpy-alloc.c: New file.
66332         * lib/unistr/u-cpy-alloc.h: New file.
66333
66334         * modules/unistr/u8-endswith: New file.
66335         * modules/unistr/u16-endswith: New file.
66336         * modules/unistr/u32-endswith: New file.
66337         * lib/unistr/u8-endswith.c: New file.
66338         * lib/unistr/u16-endswith.c: New file.
66339         * lib/unistr/u32-endswith.c: New file.
66340         * lib/unistr/u-endswith.h: New file.
66341
66342         * modules/unistr/u8-mblen: New file.
66343         * modules/unistr/u16-mblen: New file.
66344         * modules/unistr/u32-mblen: New file.
66345         * lib/unistr/u8-mblen.c: New file.
66346         * lib/unistr/u16-mblen.c: New file.
66347         * lib/unistr/u32-mblen.c: New file.
66348
66349         * modules/unistr/u8-mbtouc: New file.
66350         * modules/unistr/u16-mbtouc: New file.
66351         * modules/unistr/u32-mbtouc: New file.
66352         * lib/unistr/u8-mbtouc.c: New file.
66353         * lib/unistr/u16-mbtouc.c: New file.
66354         * lib/unistr/u32-mbtouc.c: New file.
66355
66356         * modules/unistr/u8-mbtouc-safe: New file.
66357         * modules/unistr/u16-mbtouc-safe: New file.
66358         * modules/unistr/u32-mbtouc-safe: New file.
66359         * lib/unistr/u8-mbtouc-safe.c: New file.
66360         * lib/unistr/u16-mbtouc-safe.c: New file.
66361         * lib/unistr/u32-mbtouc-safe.c: New file.
66362
66363         * modules/unistr/u8-move: New file.
66364         * modules/unistr/u16-move: New file.
66365         * modules/unistr/u32-move: New file.
66366         * lib/unistr/u8-move.c: New file.
66367         * lib/unistr/u16-move.c: New file.
66368         * lib/unistr/u32-move.c: New file.
66369         * lib/unistr/u-move.h: New file.
66370
66371         * modules/unistr/u8-next: New file.
66372         * modules/unistr/u16-next: New file.
66373         * modules/unistr/u32-next: New file.
66374         * lib/unistr/u8-next.c: New file.
66375         * lib/unistr/u16-next.c: New file.
66376         * lib/unistr/u32-next.c: New file.
66377
66378         * modules/unistr/u8-prev: New file.
66379         * modules/unistr/u16-prev: New file.
66380         * modules/unistr/u32-prev: New file.
66381         * lib/unistr/u8-prev.c: New file.
66382         * lib/unistr/u16-prev.c: New file.
66383         * lib/unistr/u32-prev.c: New file.
66384
66385         * modules/unistr/u8-set: New file.
66386         * modules/unistr/u16-set: New file.
66387         * modules/unistr/u32-set: New file.
66388         * lib/unistr/u8-set.c: New file.
66389         * lib/unistr/u16-set.c: New file.
66390         * lib/unistr/u32-set.c: New file.
66391         * lib/unistr/u-set.h: New file.
66392
66393         * modules/unistr/u8-startswith: New file.
66394         * modules/unistr/u16-startswith: New file.
66395         * modules/unistr/u32-startswith: New file.
66396         * lib/unistr/u8-startswith.c: New file.
66397         * lib/unistr/u16-startswith.c: New file.
66398         * lib/unistr/u32-startswith.c: New file.
66399         * lib/unistr/u-startswith.h: New file.
66400
66401         * modules/unistr/u8-stpcpy: New file.
66402         * modules/unistr/u16-stpcpy: New file.
66403         * modules/unistr/u32-stpcpy: New file.
66404         * lib/unistr/u8-stpcpy.c: New file.
66405         * lib/unistr/u16-stpcpy.c: New file.
66406         * lib/unistr/u32-stpcpy.c: New file.
66407         * lib/unistr/u-stpcpy.h: New file.
66408
66409         * modules/unistr/u8-stpncpy: New file.
66410         * modules/unistr/u16-stpncpy: New file.
66411         * modules/unistr/u32-stpncpy: New file.
66412         * lib/unistr/u8-stpncpy.c: New file.
66413         * lib/unistr/u16-stpncpy.c: New file.
66414         * lib/unistr/u32-stpncpy.c: New file.
66415         * lib/unistr/u-stpncpy.h: New file.
66416
66417         * modules/unistr/u8-strcat: New file.
66418         * modules/unistr/u16-strcat: New file.
66419         * modules/unistr/u32-strcat: New file.
66420         * lib/unistr/u8-strcat.c: New file.
66421         * lib/unistr/u16-strcat.c: New file.
66422         * lib/unistr/u32-strcat.c: New file.
66423         * lib/unistr/u-strcat.h: New file.
66424
66425         * modules/unistr/u8-strchr: New file.
66426         * modules/unistr/u16-strchr: New file.
66427         * modules/unistr/u32-strchr: New file.
66428         * lib/unistr/u8-strchr.c: New file.
66429         * lib/unistr/u16-strchr.c: New file.
66430         * lib/unistr/u32-strchr.c: New file.
66431
66432         * modules/unistr/u8-strcmp: New file.
66433         * modules/unistr/u16-strcmp: New file.
66434         * modules/unistr/u32-strcmp: New file.
66435         * lib/unistr/u8-strcmp.c: New file.
66436         * lib/unistr/u16-strcmp.c: New file.
66437         * lib/unistr/u32-strcmp.c: New file.
66438
66439         * modules/unistr/u8-strcpy: New file.
66440         * modules/unistr/u16-strcpy: New file.
66441         * modules/unistr/u32-strcpy: New file.
66442         * lib/unistr/u8-strcpy.c: New file.
66443         * lib/unistr/u16-strcpy.c: New file.
66444         * lib/unistr/u32-strcpy.c: New file.
66445         * lib/unistr/u-strcpy.h: New file.
66446
66447         * modules/unistr/u8-strcspn: New file.
66448         * modules/unistr/u16-strcspn: New file.
66449         * modules/unistr/u32-strcspn: New file.
66450         * lib/unistr/u8-strcspn.c: New file.
66451         * lib/unistr/u16-strcspn.c: New file.
66452         * lib/unistr/u32-strcspn.c: New file.
66453         * lib/unistr/u-strcspn.h: New file.
66454
66455         * modules/unistr/u8-strdup: New file.
66456         * modules/unistr/u16-strdup: New file.
66457         * modules/unistr/u32-strdup: New file.
66458         * lib/unistr/u8-strdup.c: New file.
66459         * lib/unistr/u16-strdup.c: New file.
66460         * lib/unistr/u32-strdup.c: New file.
66461         * lib/unistr/u-strdup.h: New file.
66462
66463         * modules/unistr/u8-strlen: New file.
66464         * modules/unistr/u16-strlen: New file.
66465         * modules/unistr/u32-strlen: New file.
66466         * lib/unistr/u8-strlen.c: New file.
66467         * lib/unistr/u16-strlen.c: New file.
66468         * lib/unistr/u32-strlen.c: New file.
66469         * lib/unistr/u-strlen.h: New file.
66470
66471         * modules/unistr/u8-strmblen: New file.
66472         * modules/unistr/u16-strmblen: New file.
66473         * modules/unistr/u32-strmblen: New file.
66474         * lib/unistr/u8-strmblen.c: New file.
66475         * lib/unistr/u16-strmblen.c: New file.
66476         * lib/unistr/u32-strmblen.c: New file.
66477
66478         * modules/unistr/u8-strmbtouc: New file.
66479         * modules/unistr/u16-strmbtouc: New file.
66480         * modules/unistr/u32-strmbtouc: New file.
66481         * lib/unistr/u8-strmbtouc.c: New file.
66482         * lib/unistr/u16-strmbtouc.c: New file.
66483         * lib/unistr/u32-strmbtouc.c: New file.
66484
66485         * modules/unistr/u8-strncat: New file.
66486         * modules/unistr/u16-strncat: New file.
66487         * modules/unistr/u32-strncat: New file.
66488         * lib/unistr/u8-strncat.c: New file.
66489         * lib/unistr/u16-strncat.c: New file.
66490         * lib/unistr/u32-strncat.c: New file.
66491         * lib/unistr/u-strncat.h: New file.
66492
66493         * modules/unistr/u8-strncmp: New file.
66494         * modules/unistr/u16-strncmp: New file.
66495         * modules/unistr/u32-strncmp: New file.
66496         * lib/unistr/u8-strncmp.c: New file.
66497         * lib/unistr/u16-strncmp.c: New file.
66498         * lib/unistr/u32-strncmp.c: New file.
66499
66500         * modules/unistr/u8-strncpy: New file.
66501         * modules/unistr/u16-strncpy: New file.
66502         * modules/unistr/u32-strncpy: New file.
66503         * lib/unistr/u8-strncpy.c: New file.
66504         * lib/unistr/u16-strncpy.c: New file.
66505         * lib/unistr/u32-strncpy.c: New file.
66506         * lib/unistr/u-strncpy.h: New file.
66507
66508         * modules/unistr/u8-strnlen: New file.
66509         * modules/unistr/u16-strnlen: New file.
66510         * modules/unistr/u32-strnlen: New file.
66511         * lib/unistr/u8-strnlen.c: New file.
66512         * lib/unistr/u16-strnlen.c: New file.
66513         * lib/unistr/u32-strnlen.c: New file.
66514         * lib/unistr/u-strnlen.h: New file.
66515
66516         * modules/unistr/u8-strpbrk: New file.
66517         * modules/unistr/u16-strpbrk: New file.
66518         * modules/unistr/u32-strpbrk: New file.
66519         * lib/unistr/u8-strpbrk.c: New file.
66520         * lib/unistr/u16-strpbrk.c: New file.
66521         * lib/unistr/u32-strpbrk.c: New file.
66522         * lib/unistr/u-strpbrk.h: New file.
66523
66524         * modules/unistr/u8-strrchr: New file.
66525         * modules/unistr/u16-strrchr: New file.
66526         * modules/unistr/u32-strrchr: New file.
66527         * lib/unistr/u8-strrchr.c: New file.
66528         * lib/unistr/u16-strrchr.c: New file.
66529         * lib/unistr/u32-strrchr.c: New file.
66530
66531         * modules/unistr/u8-strspn: New file.
66532         * modules/unistr/u16-strspn: New file.
66533         * modules/unistr/u32-strspn: New file.
66534         * lib/unistr/u8-strspn.c: New file.
66535         * lib/unistr/u16-strspn.c: New file.
66536         * lib/unistr/u32-strspn.c: New file.
66537         * lib/unistr/u-strspn.h: New file.
66538
66539         * modules/unistr/u8-strstr: New file.
66540         * modules/unistr/u16-strstr: New file.
66541         * modules/unistr/u32-strstr: New file.
66542         * lib/unistr/u8-strstr.c: New file.
66543         * lib/unistr/u16-strstr.c: New file.
66544         * lib/unistr/u32-strstr.c: New file.
66545         * lib/unistr/u-strstr.h: New file.
66546
66547         * modules/unistr/u8-strtok: New file.
66548         * modules/unistr/u16-strtok: New file.
66549         * modules/unistr/u32-strtok: New file.
66550         * lib/unistr/u8-strtok.c: New file.
66551         * lib/unistr/u16-strtok.c: New file.
66552         * lib/unistr/u32-strtok.c: New file.
66553         * lib/unistr/u-strtok.h: New file.
66554
66555         * modules/unistr/u8-uctomb: New file.
66556         * modules/unistr/u16-uctomb: New file.
66557         * modules/unistr/u32-uctomb: New file.
66558         * lib/unistr/u8-uctomb.c: New file.
66559         * lib/unistr/u16-uctomb.c: New file.
66560         * lib/unistr/u32-uctomb.c: New file.
66561
66562         * MODULES.html.sh (Unicode string functions): Add the new modules.
66563
66564 2007-01-08  Bruno Haible  <bruno@clisp.org>
66565
66566         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
66567         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
66568         subdirectories.
66569
66570 2007-01-08  Karl Berry  <karl@gnu.org>
66571
66572         * doc/error.texi: mention that main() fns must set program_name
66573         when progname is used.
66574
66575 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
66576
66577         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
66578         WCTYPE_H is empty, for the benefit of builds from non-distclean
66579         directories.  Problem reported by Eric Blake in
66580         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
66581
66582 2007-01-08  Bruno Haible  <bruno@clisp.org>
66583
66584         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
66585         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
66586         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
66587         PROVIDE_CANONICALIZE_FILENAME_MODE.
66588         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
66589
66590 2007-01-08  Bruno Haible  <bruno@clisp.org>
66591
66592         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
66593         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
66594         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
66595         * lib/fts.c: Likewise.
66596         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
66597
66598 2006-12-25  Bruno Haible  <bruno@clisp.org>
66599
66600         * modules/utf8-ucs4-safe: New file.
66601         * lib/utf8-ucs4-safe.h: New file.
66602         * lib/unistr/utf8-ucs4-safe.c: New file.
66603
66604         * modules/utf16-ucs4-safe: New file.
66605         * lib/utf16-ucs4-safe.h: New file.
66606         * lib/unistr/utf16-ucs4-safe.c: New file.
66607
66608         * MODULES.html.sh (Unicode string functions): Add the new modules.
66609
66610 2007-01-08  Bruno Haible  <bruno@clisp.org>
66611
66612         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
66613         (Depends-on): Add unitypes.
66614         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66615         (u8_mbtouc_aux): Move out to separate file.
66616         (u8_mbtouc): Use ucs4_t, uint8_t types.
66617         * lib/unistr/utf8-ucs4.c: New file.
66618
66619         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
66620         (Depends-on): Add unitypes.
66621         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66622         (u16_mbtouc_aux): Move out to separate file.
66623         (u16_mbtouc): Use ucs4_t, uint16_t types.
66624         * lib/unistr/utf16-ucs4.c: New file.
66625
66626         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
66627         (Depends-on): Add unitypes.
66628         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
66629         (u8_uctomb_aux): Move out to separate file.
66630         (u8_uctomb): Use ucs4_t, uint8_t types.
66631         * lib/unistr/ucs4-utf8.c: New file.
66632
66633         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
66634         (Depends-on): Add unitypes.
66635         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
66636         (u16_uctomb_aux): Move out to separate file.
66637         (u16_uctomb): Use ucs4_t, uint16_t types.
66638         * lib/unistr/ucs4-utf16.c: New file.
66639
66640 2006-12-25  Bruno Haible  <bruno@clisp.org>
66641
66642         * modules/unitypes: New file.
66643         * lib/unitypes.h: New file.
66644         * MODULES.html.sh (func_all_modules): New section "Unicode string
66645         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
66646         this section. Add unitypes.
66647
66648 2007-01-08  Bruno Haible  <bruno@clisp.org>
66649
66650         Avoid variable names that conflict with those from libtool.
66651         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
66652         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
66653         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
66654         library_names_spec to acl_library_names_spec, hardcode_* to
66655         acl_hardcode_*.
66656         Reported by Ralf Wildenhues.
66657
66658 2007-01-08  Bruno Haible  <bruno@clisp.org>
66659
66660         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
66661         definition.
66662         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
66663         definition.
66664         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
66665         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
66666         definition.
66667         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
66668         definition.
66669         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
66670         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
66671         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
66672         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
66673         definition.
66674         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
66675         definition.
66676         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
66677         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
66678         GC_USE_<algorithm>.
66679         * lib/gc-libgcrypt.c: Likewise.
66680         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
66681         * modules/gc-arctwo (configure.ac): Likewise.
66682         * modules/gc-des (configure.ac): Likewise.
66683         * modules/gc-hmac-md5 (configure.ac): Likewise.
66684         * modules/gc-hmac-sha1 (configure.ac): Likewise.
66685         * modules/gc-md2 (configure.ac): Likewise.
66686         * modules/gc-md4 (configure.ac): Likewise.
66687         * modules/gc-md5 (configure.ac): Likewise.
66688         * modules/gc-random (configure.ac): Likewise.
66689         * modules/gc-rijndael (configure.ac): Likewise.
66690         * modules/gc-sha1 (configure.ac): Likewise.
66691
66692 2007-01-08  Bruno Haible  <bruno@clisp.org>
66693
66694         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
66695         macro definition.
66696         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
66697         definition.
66698         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
66699         definition.
66700         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
66701         * modules/fcntl-safer (configure.ac): Likewise.
66702         * modules/fopen-safer (configure.ac): Likewise.
66703         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
66704         GNULIB_FWRITEERROR macro definition.
66705
66706 2007-01-08  Bruno Haible  <bruno@clisp.org>
66707
66708         * m4/gnulib-common.m4: New file.
66709         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
66710         (func_get_filelist): Add m4/gnulib-common.m4.
66711
66712 2007-01-08  Bruno Haible  <bruno@clisp.org>
66713
66714         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
66715         command.
66716
66717 2007-01-08  Jim Meyering  <jim@meyering.net>
66718
66719         Use a more robust test for a "can't happen" condition.
66720         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
66721         narrowed the st_size value.  Presuming the "can't happen" condition
66722         is true, that narrowing could conceivably convert an invalid st_size
66723         value into a valid one.  Instead, use a change based on Matthew
66724         Woehlke's original patch.
66725
66726         Slight readability improvement: use an assert-like macro
66727         in place of literal "abort ()" uses.
66728         * lib/fts.c (fts_assert): Define.
66729         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
66730         Use this macro instead of a bare 'abort'.
66731
66732 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
66733
66734         Don't worry about using IRIX 5.3's wctype.h broken definitions;
66735         simply work around them.
66736         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
66737         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
66738         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
66739         declaring.
66740         Don't bother to define as macros, since the standard doesn't require it.
66741         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
66742         longer worry about IRIX 5.3.
66743         (HAVE_WCTYPE_CTMP_BUG): Remove.
66744
66745 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66746
66747         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
66748         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
66749         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66750         Problems reported by Georg Schwarz for IRIX 5.3.
66751
66752         * gnulib-tool (autoconf_minversion): Take the maximum version number
66753         found, not the minimum.  Problem reported by James Youngman.
66754
66755 2007-01-03  Karl Berry  <karl@gnu.org>
66756
66757         * doc/error.texi: new file, explaining interaction with progname.
66758         * doc/gnulib.texi: include it.  Update copyright.
66759
66760 2007-01-03  Simon Josefsson  <simon@josefsson.org>
66761
66762         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
66763         AC_CANONICAL_HOST, to improve autobuild outputs.
66764
66765 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
66766             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66767
66768         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
66769         sockets, server sockets, and other file descriptors.  Count errors
66770         to compute the return value.  Reorder the code a bit to be easier
66771         to follow.  Don't set event bits that were not requested (except
66772         POLLERR and POLLHUP).
66773
66774 2007-01-01  Bruno Haible  <bruno@clisp.org>
66775
66776         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
66777
66778 2007-01-03  Jim Meyering  <jim@meyering.net>
66779
66780         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
66781
66782 2007-01-02  Bruno Haible  <bruno@clisp.org>
66783
66784         * modules/settime (Include): Require timespec.h.
66785         * modules/nanosleep (Include): Likewise.
66786
66787 2007-01-01  Bruno Haible  <bruno@clisp.org>
66788
66789         * gnulib-tool (func_emit_copyright_notice): Bump year.
66790         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
66791
66792 2007-01-01  Bruno Haible  <bruno@clisp.org>
66793
66794         Improve support for OpenBSD.
66795         * build-aux/config.rpath (libname_spec): Export.
66796         (library_names_spec): New variable. Export.
66797         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
66798         library_names_spec from the config.rpath output. Locate shared library
66799         through the name pattern in library_names_spec.
66800
66801 2007-01-01  Eric Blake  <ebb9@byu.net>
66802
66803         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
66804
66805 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
66806
66807         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
66808         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
66809         assume the C locale, and avoid an "eval" that could cause trouble.
66810         Problem with SORT reported by Bob Proulx.
66811
66812         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
66813         Define.  Trivial patch from Henning Nielsen Lund, originally
66814         sent to bug-grep@gnu.org today.
66815
66816 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
66817
66818         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
66819         struct stat.  Problem reported by Henning Nielsen Lund.
66820         * lib/acl.c: Include acl.h first, to check interface.  Don't
66821         bother to include sys/types.h and sys/stat.h again.
66822
66823 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66824
66825         Import the following change from libc; problem reported by
66826         Sven Verdoolaege.
66827
66828         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
66829
66830         [BZ #1373]
66831         * lib/argp.h: Remove __NTH for __argp_usage inline function.
66832
66833 2006-12-28  Jim Meyering  <jim@meyering.net>
66834
66835         * build-aux/announce-gen: Do not assume that the package
66836         builds any of tar.gz, tar.bz2, and .xdelta files.
66837         Suggestion from Simon Josefsson.
66838
66839 2006-12-28  Simon Josefsson  <simon@josefsson.org>
66840
66841         * modules/announce-gen: New file.
66842
66843 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
66844
66845         * lib/mbchar.h: Just include <wctype.h>; the wctype module
66846         handles its gotchas now.
66847         * lib/mbswidth.c: Likewise.
66848         * lib/wcwidth.h: Likewise.
66849         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
66850         and iswcntrl; the wctype module does this stuff now.
66851         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66852         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66853         * modules/mbchar (Depends-on): Add wctype.
66854         * modules/mbswidth (Depends-on): Likewise.
66855         * modules/wcwidth (Depends-on): Likewise.
66856
66857 2006-12-27  Eric Blake  <ebb9@byu.net>
66858
66859         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
66860         module uses more than what <wctype.h> is required to provide.
66861
66862 2006-12-26  Eric Blake  <ebb9@byu.net>
66863
66864         * gnulib-tool (sed_extract_prog): Avoid space-tab.
66865
66866 2006-12-26  Eric Blake  <ebb9@byu.net>
66867
66868         * modules/absolute-header: New module.
66869         * modules/fcntl (Depends-on): Depend on it.
66870         * modules/inttypes (Depends-on): Likewise.
66871         * modules/stdint (Depends-on): Likewise.
66872         * modules/sys_stat (Depends-on): Likewise.
66873         * modules/wctype (Depends-on): Likewise.
66874         * MODULES.html.sh (Support for building libraries and
66875         executables): Document it.
66876
66877 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
66878
66879         * gnulib-tool (SED): Remove, undoing previous change.
66880         The problem was that it broke coreutils on Solaris, because
66881         "sed --posix" leaked into a makefile.
66882         (sed): New alias, if 'alias' and GNU sed.
66883
66884 2006-12-24  Jim Meyering  <jim@meyering.net>
66885
66886         Work around an fchownat bug in glibc-2.4:
66887         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
66888         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
66889         in spite of the -P option.
66890         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
66891         New macros.
66892         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
66893         * modules/openat (Files): Add lib/fchownat.c.
66894         * lib/openat.c (fchownat): Don't define here.  Move to...
66895         * lib/fchownat.c: ...this new file.
66896
66897 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66898
66899         Fix bug reported by Bruno Haible in
66900         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
66901         where quotearg.c didn't compile on Mac OS X 10.2 because it
66902         lacks <wchar.h> and wint_t.
66903         * lib/wctype_.h (__wctype_wint_t): New type.
66904         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
66905         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
66906         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
66907         Arg is now of type __wctype_wint_t, not wint_t.
66908         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
66909         substitute HAVE_WINT_T.
66910         * modules/wctype (Files): Add m4/wint_t.m4.
66911         (wctype.h): Substitute HAVE_WINT_T.
66912
66913 2006-12-23  Bruno Haible  <bruno@clisp.org>
66914
66915         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
66916
66917 2006-12-23  Bruno Haible  <bruno@clisp.org>
66918
66919         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
66920         S_ISLNK.
66921         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
66922         mingw.
66923
66924 2006-12-22  Bruno Haible  <bruno@clisp.org>
66925
66926         * lib/copy-file.c: Include acl.h.
66927         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
66928         Close the file descriptors only after being done with copy_acl.
66929         * modules/copy-file (Depends-on): Add acl.
66930
66931 2006-12-22  Bruno Haible  <bruno@clisp.org>
66932
66933         * gnulib-tool (SED): New variable.
66934         Use $SED instead of sed everywhere.
66935
66936 2006-12-22  Bruno Haible  <bruno@clisp.org>
66937
66938         * modules/no-c++: New file.
66939         * m4/no-c++.m4: New file.
66940         * MODULES.html.sh (Support for building libraries and executables):
66941         Add no-c++.
66942
66943 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
66944
66945         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66946         Include <limits.h>, and use its INT_MAX to rewrite the
66947         j loop so that it does not overflow 'int'.  Problem reported by
66948         Ralf Wildenhues in
66949         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
66950         Play it safe by shifting left by 1 rather than multiplying by 2,
66951         as GCC is less likely to optimize this away when the value
66952         is signed (when it assumes overflow leads to undefined behavior).
66953         Also, don't assume time_t uses two's complement.
66954
66955 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
66956
66957         * MODULES.html.sh: New module wctype.
66958         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
66959         * lib/fnmatch.c: Don't bother to include <wchar.h> before
66960         <wctype.h>, since the new wctype module should fix this.
66961         * lib/quotearg.c: Include <wctype.h> unconditionally, since
66962         the wctype module should arrange for it.
66963         * lib/regex_internal.h: Likewise.
66964         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
66965         since the wctype module should handle this now.
66966         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
66967         * modules/fnmatch (Depends-on): Add wctype.
66968         * modules/quotearg (Depends-on): Likewise.
66969         * modules/regex (Depends-on): Likewise.
66970
66971 2006-12-19  Bruno Haible  <bruno@clisp.org>
66972
66973         * lib/strdup.h [C++]: Wrap definitions in extern "C".
66974         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
66975
66976 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66977
66978         * modules/savewd (Depends-on): Fix dependency on fcntl.
66979
66980 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66981
66982         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
66983         conforms to C99, rather than relying on the user's environment
66984         setting of STDINT_H.
66985
66986 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66987         and Eric Blake  <ebb9@byu.net>
66988
66989         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
66990         This is more consistent with the other defines here.
66991         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
66992         Port to z/OS.  Problem reported by Paul Gilmartin.
66993         Change local vars to use gl_ prefix rather than ac_.
66994         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
66995         with other defines.
66996         * modules/double-slash-root: New module.
66997         * modules/dirname (Files): Remove m4/double-slash-root.m4.
66998         (Depends-on): Add double-slash-root.
66999         * MODULES.html.sh (File system functions): Mention new module.
67000
67001 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
67002
67003         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
67004         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
67005         This is for the benefit of gzip, which doesn't do i18n.
67006
67007 2006-12-12  Jim Meyering  <jim@meyering.net>
67008
67009         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
67010         Reported by Andreas Schwab <schwab@suse.de>.
67011
67012 2006-12-12  Bruno Haible  <bruno@clisp.org>
67013
67014         Merge these changes.
67015         2006-09-05  Bruno Haible  <bruno@clisp.org>
67016         * lib/iconvme.c (iconv_string): No need to save and restore errno when
67017         iconv_alloc succeeded.
67018         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
67019         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
67020         test for " && dest " at the end - dest is always != NULL there. Call
67021         iconv with 4xNULL arguments initially, to reset the state. Call iconv
67022         with 2xNULL arguments, also to flush the state storage. Handle the
67023         IRIX iconv behaviour. Realloc the final result, to throw away unused
67024         memory.
67025
67026 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
67027
67028         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
67029         and fchmodat unconditionally, since glibc 2.4 has them.
67030         Problem reported by Arkadiusz Miskiewicz.
67031
67032 2006-12-10  Bruno Haible  <bruno@clisp.org>
67033
67034         * gnulib-tool (func_import): Show the include files only for those
67035         modules that are copied and specified.
67036         Reported by Karl Berry.
67037
67038 2006-12-08  Jim Meyering  <jim@meyering.net>
67039
67040         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
67041         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
67042
67043         * build-aux/announce-gen: Add two new options, both optional:
67044         --bootstrap-tools=TOOL_LIST
67045               a comma-separated list of tools, e.g.,
67046               autoconf,automake,bison,gnulib
67047         --gnulib-snapshot-date=DATE
67048               if gnulib is in the bootstrap tool list,
67049               then report this as the snapshot date.
67050               If not specified, use the current date/time.
67051               If you specify a date here, be sure it's UTC.
67052
67053 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67054
67055         * tests/test-argp-2.sh: Fix test to match actual output.
67056         (func_compare): Fix sed script to be portable.
67057
67058 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
67059
67060         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
67061         workaround for this case.  It is not autoconfigured now; offhand
67062         it's hard to see how to autoconfigure it.
67063
67064 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
67065
67066         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
67067         a directory that is about to be chowned.  Such a directory's
67068         initial file permissions should permit the owner only and this
67069         should not be changed until after the chown, since the group and
67070         other bits would be incorrect if they granted permission before
67071         the chown.
67072
67073         Fix porting problem for iswctype reported by Georg Schwarz in:
67074         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
67075         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
67076         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
67077         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
67078         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67079
67080 2006-12-03  Jim Meyering  <jim@meyering.net>
67081
67082         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
67083         p->fts_statp may not yet be defined.
67084         (fts_read): Instead, set it in the caller, once p->fts_statp is
67085         sure to be defined, and corresponds to a top-level directory.
67086         This bug made du -x fail.  Here's the coreutils test case:
67087         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
67088         Reported by Mike Frysinger.
67089
67090 2006-12-01  Jim Meyering  <jim@meyering.net>
67091
67092         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
67093         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
67094         Reported by Simon Josefsson.
67095
67096 2006-11-30  Jim Meyering  <jim@meyering.net>
67097
67098         * m4/warning.m4: Use the all-permissive copyright notice
67099         recommended by RMS (rather than LGPL).
67100         * m4/vararrays.m4: Likewise.
67101         * m4/flexmember.m4: Likewise.
67102
67103 2006-11-29  Bruno Haible  <bruno@clisp.org>
67104
67105         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67106         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
67107         using +=.
67108         Reported by Simon Josefsson <simon@josefsson.org>.
67109
67110 2006-11-28  James Youngman <jay@gnu.org>
67111
67112         * README: Advise users that they might find the bug-gnulib@gnu.org
67113         and autotools-announce@gnu.org mailing lists useful.
67114
67115 2006-11-28  Bruno Haible  <bruno@clisp.org>
67116
67117         * m4/ptrdiff_max.m4: Remove file.
67118
67119 2006-11-21  Bruno Haible  <bruno@clisp.org>
67120
67121         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
67122         _AC_COMPUTE_INT.
67123         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67124         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
67125         _AC_COMPUTE_INT.
67126         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67127         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
67128         _AC_COMPUTE_INT.
67129         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67130
67131 2006-11-28  Jim Meyering  <jim@meyering.net>
67132
67133         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
67134         warning from "gcc -Wshadow" about shadowing the builtin.
67135
67136 2006-11-27  Bruno Haible  <bruno@clisp.org>
67137
67138         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
67139         _AC_COMPUTE_INT.
67140         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67141
67142 2006-11-27  Bruno Haible  <bruno@clisp.org>
67143             Paul Eggert  <eggert@cs.ucla.edu>
67144
67145         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
67146
67147 2006-11-26  Bruno Haible  <bruno@clisp.org>
67148
67149         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67150         noinst_LTLIBRARIES.
67151
67152 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67153             Bruno Haible  <bruno@clisp.org>
67154
67155         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
67156         if compiling with "gcc -ansi".
67157
67158 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67159
67160         Fix some incompatibilities with gcc -ansi -pedantic.
67161         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
67162         if compiling pedantically with GCC, unless it's C99 or later.
67163         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
67164         it mishandles gcc -ansi -pedantic as well.
67165         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
67166         if gcc -pedantic.
67167         * lib/regexec.c (check_node_accept_bytes): Don't use auto
67168         initializers for struct if -pedantic, unless it's C99 or later.
67169
67170 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
67171
67172         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
67173         Don't close an fd more than once. Identical atimes indicate
67174         success, not failure.
67175
67176 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
67177
67178         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
67179
67180 2006-11-23  Jim Meyering  <jim@meyering.net>
67181
67182         * build-aux/announce-gen: New file.  From coreutils.
67183
67184 2006-11-22  Jim Meyering  <jim@meyering.net>
67185
67186         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
67187         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
67188         (fts_read): Use a temporary to narrow the overused st_size member
67189         before using it in a switch statement.  Reported by Matthew Woehlke.
67190
67191         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
67192         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
67193
67194 2006-11-20  Bruno Haible  <bruno@clisp.org>
67195
67196         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
67197         changequote instead of pairs of brackets.
67198         Reported by Andreas Schwab <schwab@suse.de>.
67199
67200 2006-11-21  Jim Meyering  <jim@meyering.net>
67201
67202         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
67203         so as to remain compatible with older compilers.
67204         Patch from Michael Deutschmann.
67205
67206 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67207
67208         * MODULES.html.sh (File system functions): Add openat.
67209
67210         * lib/openat.h (rpl_fstatat): New macro, if
67211         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
67212         (fstatat): Define to rpl_fstatat under the same conditions,
67213         unless COMPILING_FSTATAT.
67214         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
67215         seems to have the bug.
67216         * lib/fstatat.c: New file.
67217         * modules/openat (Files): Add it.
67218
67219 2006-11-20  Bruno Haible  <bruno@clisp.org>
67220
67221         * Makefile: New file.
67222
67223 2006-11-20  Jim Meyering  <jim@meyering.net>
67224
67225         The beginnings of syntax-related checks for gnulib.
67226         * lib/Makefile: New file.
67227         * lib/t-idcache: New script.  Ensure that the two halves of
67228         idcache.c stay in sync.
67229
67230         * lib/idcache.c: Adjust comments in user- and group- portions to
67231         be more accurate, and to be consistent with one another.
67232
67233 2006-11-20  Jim Meyering  <jim@meyering.net>
67234
67235         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
67236         continue using the flexible array member (thus, this module performs
67237         half as many malloc calls), with the addition that...
67238         (getgroup, getuser): Consistently record a non-match via an empty
67239         "name" string, and map an empty string match to a NULL return value.
67240         * modules/idcache (Depends-on): Re-add flexmember.
67241
67242         * lib/idcache.c (getuser): Remove all uses of the register keyword.
67243         (getuidbyname, getgroup, getgidbyname): Likewise.
67244
67245         Use cleaner syntax: NULL rather than 0.
67246         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
67247
67248 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67249
67250         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
67251         It mishandled the case where the group was missing.
67252         Problem reported by Greg Schafer.
67253         * modules/idcache: Likewise.
67254
67255 2006-11-18  Jim Meyering  <jim@meyering.net>
67256
67257         * check-module (%exempt_header): Add exception for some
67258         conditionally-included headers.
67259
67260         * modules/i-ring (Depends-on): Add verify.
67261         (License): Change to LGPL.
67262
67263 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67264
67265         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
67266         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
67267         and inttostr.h.  Use snprintf rather than uinttostr, so that
67268         LGPLed code doesn't depend on GPLed.
67269
67270 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67271
67272         * modules/inline (License): Change from GPL to LGPL.
67273
67274 2006-11-17  Jim Meyering  <jim@meyering.net>
67275
67276         * modules/d-type (License): Switch to LGPL.
67277
67278 2006-11-15  Bruno Haible  <bruno@clisp.org>
67279
67280         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
67281
67282 2006-11-15  Eric Blake  <ebb9@byu.net>
67283
67284         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
67285         the module dependency.
67286
67287 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67288             Bruno Haible  <bruno@clisp.org>
67289
67290         * gnulib-tool (func_create_testdir): Add license consistency check.
67291
67292 2006-11-15  Eric Blake  <ebb9@byu.net>
67293
67294         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
67295         random "(cached)" in configure output.
67296
67297 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67298
67299         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
67300         test for conforming inttypes.h is both announced and cached.
67301
67302         * MODULES.html.sh (seen_modules, seen_files): New variables.
67303         (func_module): Rewrite to use a few less gnulib-tool and sed
67304         invocations.  Avoid a couple of quadratic algorithms for ...
67305         (missed_modules, missed_files): ... these, with ...
67306         (func_append, func_tmpdir): ... these new functions, from
67307         gnulib-tool.  Analogously, install traps for cleanup.
67308
67309         * tests/test-gc.c (main): Remove unused variables.
67310         * tests/test-read-file.c: Include stdlib.h, for 'free'.
67311
67312 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
67313
67314         * modules/inttostr (License): Change to LGPL.
67315
67316 2006-11-14  Eric Blake  <ebb9@byu.net>
67317
67318         * modules/tempname (License): Change to LGPL.
67319
67320 2006-11-14  Eric Blake  <ebb9@byu.net>
67321
67322         * doc/functions.texi (Function Portability): *printf functions on
67323         Cygwin now understand all POSIX size specifiers.
67324
67325 2006-11-14  Bruno Haible  <bruno@clisp.org>
67326
67327         * modules/c-ctype (License): Change to LGPL.
67328
67329 2006-11-12  Bruno Haible  <bruno@clisp.org>
67330
67331         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67332         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
67333         for GNOME libraries, for which the include files are installed in
67334         subdirectories of $prefix/include.
67335
67336 2006-11-12  Bruno Haible  <bruno@clisp.org>
67337
67338         * m4/lib-link.m4: Require at least autoconf-2.54.
67339         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
67340         name to underscores for the --with option.
67341
67342 2006-11-13  Bruno Haible  <bruno@clisp.org>
67343
67344         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
67345         the tests directory.
67346         Reported by Ralf Wildenhues.
67347
67348 2006-11-13  Bruno Haible  <bruno@clisp.org>
67349
67350         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
67351         (func_emit_initmacro_end): Undo the override here.
67352         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
67353         Works around the famous automake error in coreutils.
67354
67355 2006-11-13  Eric Blake  <ebb9@byu.net>
67356
67357         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
67358         element, not its node.
67359
67360 2006-11-12  Bruno Haible  <bruno@clisp.org>
67361
67362         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
67363         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
67364
67365 2006-11-12  Bruno Haible  <bruno@clisp.org>
67366
67367         * gnulib-tool: New option --local-symlink.
67368         (func_usage): Document it.
67369         (lsymbolic): New variable.
67370         (func_import, func_create_testdir): If --symlink was not specified,
67371         test whether --local-symlink was specified and the file comes from
67372         the local_gnulib_dir.
67373
67374 2006-11-12  Bruno Haible  <bruno@clisp.org>
67375
67376         * gnulib-tool (func_ln): New function.
67377         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
67378
67379 2006-11-12  Bruno Haible  <bruno@clisp.org>
67380
67381         Finish support for source files in subdirectories.
67382         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
67383         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
67384         AUTOMAKE_OPTIONS.
67385         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
67386
67387 2006-11-12  Bruno Haible  <bruno@clisp.org>
67388
67389         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67390         EXTRA_lib_SOURCES augmentation.
67391         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
67392
67393 2006-11-12  Jim Meyering  <jim@meyering.net>
67394
67395         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
67396         file descriptors.  This also averts a failure on systems with
67397         native openat support when a traversed directory lacks "x" access.
67398         * lib/fts_.h: Include "i-ring.h"
67399         (struct FTS) [fts_fd_ring]: New member.
67400         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
67401         (FCHDIR): Add parentheses.
67402         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
67403         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
67404         When descending, rather than simply closing the previous
67405         fts_cwd_fd value, push that file descriptor onto the ring.
67406         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
67407         (fts_open): Initialize the new fd_ring member.
67408         (fts_close): Clear the ring.
67409         (fts_safe_changedir): When possible, use our new fd_ring to skip
67410         the diropen and fstat and dev/ino comparison that would normally
67411         accompany a virtual `chdir ("..")'.
67412
67413         * modules/fts (Depends-on): Add i-ring.
67414         * modules/i-ring: New module.
67415         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
67416         * m4/i-ring.m4: New file.
67417
67418 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67419
67420         * gnulib-tool (func_create_testdir): Fix replacement of
67421         `build-aux' in configure.ac.  Run autotools in gltests
67422         subdirectory.
67423         (func_create_testdir, func_create_megatestdir, test): There is
67424         no need for '--force' in most autotool invocations in a new
67425         tree.  Actually fail the whole test if any of the tools, or the
67426         configure or make stages fail.
67427
67428         Sync from Automake.
67429         * build-aux/gnupload: Revert last change.  Add pointer to upload
67430         instructions of the GNU Maintenance Instructions.
67431         Suggestion by Karl Berry.
67432
67433 2006-11-10  Jim Meyering  <jim@meyering.net>
67434
67435         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
67436
67437 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67438
67439         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
67440         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
67441         (bind_textdomain_codeset) [! ENABLE_NLS]:
67442         Evaluate all the arguments.  That way, callers get compatible behavior
67443         if the arguments have side effects.  Also, it avoids some GCC
67444         diagnostics in some cases; Joel E. Denny reported problems when Bison
67445         was configured with --enable-gcc-warnigs.
67446
67447 2006-11-10  Jim Meyering  <jim@meyering.net>
67448
67449         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
67450         relevant options in CFLAGS (like -O, -fno-inline) are taken into
67451         account.
67452
67453 2006-11-10  Jim Meyering  <jim@meyering.net>
67454
67455         * modules/inline: New file/module.
67456         * modules/xalloc (Files): Remove m4/inline.m4.
67457         (Depends-on): Add inline, instead.
67458         * modules/oset: Likewise.
67459         * modules/list: Likewise.
67460
67461 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67462
67463         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
67464         Problem reported by Matthew Woehlke.
67465
67466 2006-11-09  Bruno Haible  <bruno@clisp.org>
67467
67468         * lib/tempname.c (gen_tempname): Remove variant that invokes
67469         __gen_tempname.
67470         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
67471         __gen_tempname.
67472
67473 2006-11-08  Bruno Haible  <bruno@clisp.org>
67474
67475         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
67476         to 'yes' instead of 'cross-compiling'.
67477
67478 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
67479
67480         * lib/quotearg.h (quotearg_free): New decl.
67481         * lib/quotearg.c (quotearg_free): New function.
67482         (slot0, nslots, slotvec0, slotvec):
67483         Now file-scope so that quotearg_free can get at them.
67484
67485 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67486
67487         Sync from Automake.
67488         * build-aux/gnupload: Add missing 'gnu' to example URL.
67489         Report by Karl Berry.
67490
67491 2006-11-08  Bruno Haible  <bruno@clisp.org>
67492
67493         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
67494         Suggested by Paul Eggert.
67495
67496 2006-11-08  Jim Meyering  <jim@meyering.net>
67497
67498         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
67499         It's already included if !_LIBC.
67500         (fts_safe_changedir): Add a comment.
67501
67502 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67503
67504         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
67505         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
67506         Matthew Woehlke.
67507
67508         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
67509         definitions up, to avoid colliding with change below.
67510         (static_inline) [HAVE_INLINE]: New macro.
67511         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
67512         Provide extern decls when !HAVE_INLINE.  Do not define unless
67513         static_inline is defined, either by us or by xmalloc.c.  Use
67514         static_inline rather than static inline.
67515         (XCALLOC): Optimize sizeof(T) = 1 case.
67516         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
67517
67518 2006-11-07  Bruno Haible  <bruno@clisp.org>
67519
67520         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
67521         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
67522         AC_C_INLINE.
67523         * modules/xalloc (Files): Add m4/inline.m4.
67524
67525 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67526
67527         * README: Fix typo.
67528         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
67529         (Miscellanous Notes): ...from this.
67530
67531 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67532
67533         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
67534         Mention that offsetof should be used instead of sizeof.
67535         From Bruno Haible.
67536
67537 2006-11-07  Bruno Haible  <bruno@clisp.org>
67538
67539         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
67540
67541 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67542
67543         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67544         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
67545         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67546         (gl_tree_add_before, gl_tree_add_after):
67547         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
67548         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
67549         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67550         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
67551         (gl_linked_add_after, gl_linked_add_at): Likewise.
67552         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
67553         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67554         (gl_tree_add_before, gl_tree_add_after): Likewise.
67555         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
67556         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
67557         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
67558
67559 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67560
67561         * lib/gl_oset.h: Use C comment style, not C++ comment style.
67562
67563 2006-11-06  Bruno Haible  <bruno@clisp.org>
67564
67565         * m4/inline.m4: New file.
67566         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
67567         * modules/list (Files): Add m4/inline.m4.
67568         * modules/oset (Files): Likewise.
67569
67570 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67571
67572         * lib/idcache.c: Include <stddef.h>, for offsetof.
67573         (struct userid.name): Change from char * to a flexible array member.
67574         All uses changed.
67575         * modules/idcache (Depends-on): Add flexmember.
67576
67577         * MODULES.html.sh (Core language properties): New module flexmember.
67578         * modules/flexmember, m4/flexmember.m4: New files.
67579
67580         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
67581         inline functions that are identical with the old xnmalloc_inline,
67582         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
67583         that we can avoid some unnecessary integer multiplications and
67584         divisions in the common case where the element size is known at
67585         compile time.
67586         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
67587         needed.
67588         (xnboundedmalloc): Remove.
67589         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
67590         arguments, for consistency with rest of this header.
67591         (xcharalloc): Rewrite using XNMALLOC.
67592         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
67593         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
67594         versions have been moved to lib/xalloc.h and renamed to be the
67595         non-*_inline versions.
67596         (xmalloc, xrealloc): Implement without reference to the xnmalloc
67597         and xnrealloc functions, since those functions are now inline and
67598         now call us.
67599         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
67600         renaming described above.
67601         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
67602         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
67603         captures the dependency in AC_C_INLINE.
67604
67605         New module canonicalize-lgpl, proposed by Charles Wilson in
67606         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
67607         with a few small changes afterwards.
67608         * MODULES.html.sh (File system functions): New module
67609         canonicalize-lgpl.
67610         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
67611         and canonicalize_file_name.
67612         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
67613         * modules/canonicalize-lgpl: New files.
67614
67615 2006-11-05  Bruno Haible  <bruno@clisp.org>
67616
67617         * gnulib-tool (func_import, func_create_testdir): Create directories
67618         also for files in subdirectories of lib/.
67619
67620 2006-11-05  Bruno Haible  <bruno@clisp.org>
67621
67622         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
67623         ANSI C compliant.
67624
67625 2006-11-03  Bruno Haible  <bruno@clisp.org>
67626
67627         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67628         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
67629         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
67630         (xnboundedmalloc): New inline function.
67631         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
67632         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
67633         xmalloc.
67634         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
67635         xmalloc.
67636         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
67637         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
67638         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
67639         xmalloc.
67640         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67641         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
67642         xmalloc.
67643         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
67644         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67645         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
67646         xmalloc.
67647         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67648         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
67649         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67650         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
67651         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
67652         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
67653         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
67654
67655 2006-11-03  Bruno Haible  <bruno@clisp.org>
67656
67657         * lib/c-ctype.h [C++]: Define functions without name mangling.
67658         * lib/fwriteerror.h [C++]: Likewise.
67659         * lib/gcd.h [C++]: Likewise.
67660         * lib/linebreak.h [C++]: Likewise.
67661
67662 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67663
67664         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
67665         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
67666         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
67667         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67668         Check for functions and headers just once.
67669         Check for declaration of canonicalize_file_name.
67670         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
67671
67672 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67673
67674         * gnulib-tool (func_import): Fix typo in actioncmd.
67675
67676 2006-11-02  Bruno Haible  <bruno@clisp.org>
67677
67678         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
67679         newline sequence in the Makefile.am snippet as a space, like "make"
67680         does.
67681         Reported by Roger Persson <perrog@gmail.com>.
67682
67683 2006-11-01  Bruno Haible  <bruno@clisp.org>
67684
67685         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
67686         already declared in <string.h>.
67687         * lib/strcase.h (strncasecmp): Don't declare it if yes.
67688
67689 2006-11-01  Bruno Haible  <bruno@clisp.org>
67690
67691         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
67692         * lib/strcase.h: Include <string.h>.
67693         (strcasecmp): Define to rpl_strcasecmp here.
67694
67695 2006-11-01  Bruno Haible  <bruno@clisp.org>
67696
67697         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
67698
67699 2006-11-01  Eric Blake  <ebb9@byu.net>
67700
67701         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
67702
67703         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
67704
67705 2006-10-29  Bruno Haible  <bruno@clisp.org>
67706
67707         Make it compile in C++ mode.
67708         * lib/full-write.c (full_rw): Add a cast.
67709
67710 2006-11-01  Bruno Haible  <bruno@clisp.org>
67711
67712         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
67713         be POSIX compliant.
67714         Reported by Roger Persson <perrog@gmail.com>.
67715
67716 2006-11-01  Eric Blake  <ebb9@byu.net>
67717
67718         * lib/getopt_.h: Fix comments.
67719
67720 2006-10-31  Eric Blake  <ebb9@byu.net>
67721
67722         * modules/tmpdir (Depends-on): Add sys_stat.
67723         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
67724         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
67725         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
67726         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
67727         tempname.
67728
67729 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
67730
67731         Avoid some C++ diagnostics reported by Bruno Haible.
67732         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
67733         xmalloc.
67734         (quotearg_alloc): Use xcharalloc rather than xmalloc.
67735         (struct slotvec): Move to top level.
67736         (quotearg_n_options): Rewrite to avoid xmalloc.
67737         * lib/xalloc.h (xcharalloc): New function.
67738         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
67739         [defined __cplusplus]: Add function template that provides result
67740         type propagation.  This part of the change is from Bruno Haible.
67741
67742 2006-10-29  Bruno Haible  <bruno@clisp.org>
67743
67744         Make it compile in C++ mode.
67745         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
67746         * lib/strnlen1.c (strnlen1): Cast memchr result.
67747         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
67748         * lib/clean-temp.c (string_equals, string_hash): Add casts.
67749         (create_temp_dir): Rename local variable 'template'.
67750         (compile_csharp_using_sscli): Add cast.
67751         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
67752         * lib/findprog.c (find_in_path): Likewise.
67753         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
67754         * lib/wait-process.c (register_slave_subprocess): Likewise.
67755
67756 2006-10-22  Bruno Haible  <bruno@clisp.org>
67757
67758         * modules/tsearch: New file.
67759         * lib/tsearch.h: New file.
67760         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
67761         * m4/tsearch.m4: New file.
67762         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
67763
67764 2006-10-29  Eric Blake  <ebb9@byu.net>
67765
67766         * lib/arcfour.c: Assume config.h.
67767         * lib/arctwo.c: Likewise.
67768         * lib/base64.c: Likewise.
67769         * lib/check-version.c: Likewise.
67770         * lib/crc.c: Likewise.
67771         * lib/des.c: Likewise.
67772         * lib/gc-gnulib.c: Likewise.
67773         * lib/gc-libgcrypt.c: Likewise.
67774         * lib/gc-pbkdf2-sha1.c: Likewise.
67775         * lib/getaddrinfo.c: Likewise.
67776         * lib/getdelim.c: Likewise.
67777         * lib/getline.c: Likewise.
67778         * lib/hmac-md5.c: Likewise.
67779         * lib/hmac-sha1.c: Likewise.
67780         * lib/iconvme.c: Likewise.
67781         * lib/md2.c: Likewise.
67782         * lib/md4.c: Likewise.
67783         * lib/memxor.c: Likewise.
67784         * lib/read-file.c: Likewise.
67785         * lib/readline.c: Likewise.
67786         * lib/rijndael-alg-fst.c: Likewise.
67787         * lib/rijndael-api-fst.c: Likewise.
67788         * lib/xgetdomainname.c: Likewise.
67789
67790 2006-10-28  Eric Blake  <ebb9@byu.net>
67791
67792         * lib/xstrndup.c: Assume config.h.
67793
67794 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67795
67796         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
67797         stat-macros.h is now for our own macros, whereas stat_h is for
67798         macros in the <sys/stat.h> name space.
67799         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
67800         (STAT_MACROS_H): Remove.
67801         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
67802         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
67803         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
67804         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
67805         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
67806         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
67807         Move these macros to ...
67808         * lib/stat_.h: here.  Don't include stat-macros.h.
67809         * lib/canonicalize.c: Don't include stat-macros.h.
67810         * lib/chown.c: Likewise.
67811         * lib/euidaccess.c: Likewise.
67812         * lib/file-type.c: Likewise.
67813         * lib/filemode.c: Likewise.
67814         * lib/glob.c: Likewise.
67815         * lib/isapipe.c: Likewise.
67816         * lib/lchown.c: Likewise.
67817         * lib/lstat.c: Likewise.
67818         * lib/mkdir-p.c: Likewise.
67819         * lib/rmdir.c: Likewise.
67820         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
67821         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
67822         unless mkdir isn't declared, to speed up 'configure'.
67823         Always create sys/stat.h, since it's unlikely any real sys/stat.h
67824         would define all the S_* symbols.
67825         * modules/canonicalize (Depends-on):
67826         Depend on sys_stat, not stat-macros.
67827         * modules/chown: Likewise.
67828         * modules/euidaccess: Likewise.
67829         * modules/filemode: Likewise.
67830         * modules/file-type: Likewise.
67831         * modules/glob: Likewise.
67832         * modules/isapipe: Likewise.
67833         * modules/lchown: Likewise.
67834         * modules/lstat: Likewise.
67835         * modules/mkancesdirs: Likewise.
67836         * modules/rmdir: Likewise.
67837         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
67838         * modules/modechange: Likewise.
67839         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
67840         (configure.ac): Remove gl_STAT_MACROS.
67841         * modules/sys_stat (Depends-on): Remove stat-macros.
67842
67843 2006-10-27  Bruno Haible  <bruno@clisp.org>
67844
67845         * m4/signed.m4: Remove file.
67846         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
67847         invocation.
67848         * modules/vasnprintf (Files): Remove m4/signed.m4.
67849
67850 2006-10-27  Bruno Haible  <bruno@clisp.org>
67851
67852         Update to GNU gettext 0.16.
67853         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
67854         m4/inttypes-h.m4, m4/signed.m4.
67855         * m4/gettext.m4: Update to GNU gettext 0.16.
67856         * m4/intl.m4: New file, from GNU gettext.
67857         * m4/intldir.m4: New file, from GNU gettext.
67858         * config/srclist.txt: Update
67859
67860 2006-10-27  Eric Blake  <ebb9@byu.net>
67861
67862         * MODULES.html.sh: Document tempname.
67863         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
67864         dependencies.
67865         (Files): Move lib/tempname.c...
67866         * modules/tempname: ...to this new module.
67867         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
67868         (gl_PREREQ_TEMPNAME): Move...
67869         * m4/tempname.m4: ...to this new file.
67870         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
67871         * modules/sys_stat (Depends-on): Add stat-macros.
67872         * lib/stat_.h (includes): Pick up stat macros.
67873         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
67874         if stat macros are broken.
67875         * lib/tempname.c (includes): No need to include "stat-macros.h".
67876         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
67877         (direxists, __path_search) [!_LIBC]: Don't compile these in
67878         gnulib; the tmpdir module covers that.
67879         * lib/tempname.h: New file.
67880
67881 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
67882
67883         * COPYING: Explain how gnulib-tool converts licence headers.
67884         Almost all wording by Eric Blake.
67885
67886 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
67887
67888         * lib/mbchar.h (is_basic_table): Make read-only.
67889         * lib/mbchar.c (is_basic_table): Likewise.
67890         Reported by John Darrington.
67891
67892 2006-10-25  Bruno Haible  <bruno@clisp.org>
67893
67894         * lib/progname.h (set_program_name): Undefine before defining.
67895
67896 2006-10-25  Bruno Haible  <bruno@clisp.org>
67897
67898         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
67899         false for non-gcc C++ compilers.
67900         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
67901
67902 2006-10-24  Bruno Haible  <bruno@clisp.org>
67903
67904         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
67905         iconv implementations like Irix iconv.
67906
67907 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67908
67909         * modules/vararrays: New file.
67910         * m4/vararrays.m4: New file, taken from diffutils.
67911         * MODULES.html.sh: New module vararrays.
67912
67913 2006-10-24  Karl Berry  <karl@gnu.org>
67914
67915         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
67916         Don't call GNU Unix.
67917
67918 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67919
67920         * users.txt: Add Libtool.
67921
67922         Sync from Libtool:
67923
67924         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67925
67926         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
67927         to gnulib's policy of including config.h unconditionally.
67928
67929 2006-10-24  Bruno Haible  <bruno@clisp.org>
67930
67931         * modules/wcwidth (Files): Add m4/wint_t.m4.
67932         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
67933         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
67934
67935 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67936
67937         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
67938         to pacify GCC with some -W flags enabled.  Problem reported by
67939         Bruno Haible.
67940
67941 2006-10-24  Jim Meyering  <jim@meyering.net>
67942
67943         * MODULES.html.sh: Remove uinttostr.  It's not a module.
67944         Reported by Karl Berry.
67945
67946 2006-10-23  Bruno Haible  <bruno@clisp.org>
67947
67948         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
67949
67950 2006-10-24  Bruno Haible  <bruno@clisp.org>
67951
67952         * lib/gl_list.h: Use C comment style, not C++ comment style.
67953
67954 2006-10-23  Eric Blake  <ebb9@byu.net>
67955
67956         * lib/getaddrinfo.c (includes): Add missing include.
67957
67958 2006-10-23  Bruno Haible  <bruno@clisp.org>
67959             Paul Eggert  <eggert@cs.ucla.edu>
67960
67961         Ability to rename obstack_free.
67962         * lib/obstack.h (__obstack_free): New macro. Declare instead of
67963         obstack_free.
67964         (obstack_free): Invoke the __obstack_free macro.
67965         * lib/obstack.c (obstack_free): Use __obstack_free macro.
67966
67967 2006-10-23  Bruno Haible  <bruno@clisp.org>
67968             Paul Eggert  <eggert@cs.ucla.edu>
67969
67970         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
67971         __argc, __argv from the declaration. (They are defined as macros on
67972         mingw.)
67973
67974 2006-10-22  Bruno Haible  <bruno@clisp.org>
67975
67976         * doc/gnulib-intro.texi: New file.
67977         * doc/gnulib.texi: Include it.
67978
67979 2006-10-21  Bruno Haible  <bruno@clisp.org>
67980
67981         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
67982         "Introduction", "Miscellanous Notes", "Particular Modules".
67983
67984 2006-10-21  Bruno Haible  <bruno@clisp.org>
67985
67986         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67987         Change mostlyclean-local rule to avoid sh syntax error from bash
67988         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
67989
67990 2006-10-23  Jim Meyering  <jim@meyering.net>
67991
67992         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
67993         in place of snprintf.
67994
67995         * modules/inttostr (Files): Add lib/uinttostr.c.
67996         * lib/uinttostr.c (inttostr): New file/function.
67997         * lib/inttostr.h (uinttostr): Declare.
67998         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
67999         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68000         Add uinttostr.
68001         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
68002
68003 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68004
68005         * lib/canonicalize.c (ELOOP): Define if not already defined.
68006         Problem reported by Bruno Haible in
68007         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
68008
68009 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68010
68011         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
68012         Problem reported by Perry Smith and Ville Laurikari.
68013
68014         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
68015         uses.
68016
68017 2006-10-19  Bruno Haible  <bruno@clisp.org>
68018
68019         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
68020         for mingw.
68021
68022 2006-10-19  Bruno Haible  <bruno@clisp.org>
68023
68024         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
68025         Needed for mingw.
68026
68027 2006-10-19  Bruno Haible  <bruno@clisp.org>
68028
68029         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
68030
68031 2006-10-19  Bruno Haible  <bruno@clisp.org>
68032
68033         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
68034         it.
68035
68036 2006-10-19  Bruno Haible  <bruno@clisp.org>
68037
68038         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
68039         invocation.
68040
68041 2006-10-19  Bruno Haible  <bruno@clisp.org>
68042
68043         * gnulib-tool (func_create_testdir): Don't include ftruncate and
68044         mountlist by default.
68045
68046 2006-10-16  Bruno Haible  <bruno@clisp.org>
68047
68048         * lib/c-strstr.c: Include c-strstr.h.
68049
68050 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68051
68052         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
68053         in a slash.
68054
68055 2006-10-18  Bruno Haible  <bruno@clisp.org>
68056
68057         * lib/lock.h [C++]: Wrap definitions in extern "C".
68058
68059 2006-10-18  Bruno Haible  <bruno@clisp.org>
68060
68061         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
68062         gl_LIBOBJS list.
68063
68064 2006-10-18  Bruno Haible  <bruno@clisp.org>
68065
68066         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
68067
68068 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
68069
68070         * lib/xstrtol.h: Include gettext.h.
68071         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
68072         Problem reported by Eric Blake.
68073         * modules/xstrtol (Depends-on): Add gettext-h.
68074
68075 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
68076
68077         * lib/strftime.c (advance): New macro.
68078         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
68079         incomplete type, so you can't add 0 to it.  Problem and patch
68080         reported by Eelco Dolstra for dietlibc.
68081
68082 2006-10-18  Jim Meyering  <jim@meyering.net>
68083
68084         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
68085         type for a local, and rename it: s/up/user_proc/.
68086
68087 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
68088
68089         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
68090         READ_UTMP_USER_PROCESS.
68091         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
68092
68093 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68094
68095         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
68096         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
68097
68098 2006-10-17  Eric Blake  <ebb9@byu.net>
68099
68100         * lib/sigprocmask.c (sigprocmask): Fix typo.
68101
68102         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
68103
68104         * modules/clean-temp (Makefile.am): Don't add to make output...
68105         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
68106         config.h.
68107
68108 2006-10-17  Bruno Haible  <bruno@clisp.org>
68109
68110         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
68111         differently if DEFAULT_TEXT_DOMAIN is set.
68112
68113 2006-10-16  Bruno Haible  <bruno@clisp.org>
68114
68115         * lib/clean-temp.c: Include fwriteerror.h.
68116
68117 2006-10-16  Bruno Haible  <bruno@clisp.org>
68118
68119         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
68120
68121 2006-10-16  Bruno Haible  <bruno@clisp.org>
68122
68123         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
68124         * lib/sigprocmask.h: Include <sys/types.h>.
68125         (sigset_t): Use the system's definition if present.
68126
68127 2006-10-17  Eric Blake  <ebb9@byu.net>
68128
68129         * lib/xvasprintf.c (includes): Assume config.h.
68130         * lib/xasprintf.c (includes): Likewise.
68131
68132 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
68133
68134         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
68135         at least as wide as intmax_t.
68136
68137 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
68138
68139         (Imported from Automake.)
68140         * build-aux/gnupload: Update to version 1.1 of directive file.
68141
68142 2006-10-16  Eric Blake  <ebb9@byu.net>
68143
68144         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
68145         match Automake 1.10a.
68146
68147 2006-10-14  Bruno Haible  <bruno@clisp.org>
68148
68149         * modules/sigprocmask: New file.
68150         * lib/sigprocmask.h: New file.
68151         * lib/sigprocmask.c: New file.
68152         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
68153         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
68154         request sigprocmask.o.
68155         (gl_PREREQ_SIGPROCMASK): New macro.
68156         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
68157         (Depends-on): Add sigprocmask.
68158         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
68159         gt_SIGNALBLOCKING. Test for 'raise' only once.
68160         * lib/fatal-signal.c: Include sigprocmask.h.
68161         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
68162         unblock_fatal_signals): Define always.
68163         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68164         sigprocmask.
68165
68166 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68167
68168         Sync from Automake.
68169         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
68170         which incorrectly sets the mode of an existing destination
68171         directory.  In some cases the unpatched install-sh could do the
68172         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
68173         system.  We hope this is rare in practice, but it's clearly worth
68174         fixing.  Problem reported by Alex Unleashed in
68175         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
68176         Also, don't bother to check for -m bugs unless we're using -m;
68177         suggested by Stepan Kasal.
68178
68179 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68180
68181         Sync from Automake.
68182         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
68183         `-c' flag, so they appear at the same position as in %FASTDEP%
68184         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
68185         which ignores unknown options only after the first non-option.
68186         Bug report against M4 by Nelson H. F. Beebe.
68187
68188 2006-10-13  Jim Meyering  <jim@meyering.net>
68189
68190         Fix a bug in yesterday's change.
68191         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
68192         p->fts_statp->st_dev would be used uninitialized.
68193         Ensures that we always call fts_stat on the very first entry.
68194         Miklos Szeredi reported that find -xdev stopped working.
68195
68196 2006-10-12  Bruno Haible  <bruno@clisp.org>
68197
68198         * gnulib-tool (func_get_automake_snippet): Append an automatically
68199         computed EXTRA_DIST augmentation.
68200         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
68201         * modules/alloca-opt (Makefile.am): Likewise.
68202         * modules/allocsa (Makefile.am): Likewise.
68203         * modules/arcfour (Makefile.am): Likewise.
68204         * modules/arctwo (Makefile.am): Likewise.
68205         * modules/argmatch (Makefile.am): Likewise.
68206         * modules/argz (Makefile.am): Likewise.
68207         * modules/atexit (Makefile.am): Likewise.
68208         * modules/backupfile (Makefile.am): Likewise.
68209         * modules/byteswap (Makefile.am): Likewise.
68210         * modules/c-strtod (Makefile.am): Likewise.
68211         * modules/c-strtold (Makefile.am): Likewise.
68212         * modules/calloc (Makefile.am): Likewise.
68213         * modules/canon-host (Makefile.am): Likewise.
68214         * modules/canonicalize (Makefile.am): Likewise.
68215         * modules/chdir-long (Makefile.am): Likewise.
68216         * modules/chdir-safer (Makefile.am): Likewise.
68217         * modules/check-version (Makefile.am): Likewise.
68218         * modules/chown (Makefile.am): Likewise.
68219         * modules/cloexec (Makefile.am): Likewise.
68220         * modules/close-stream (Makefile.am): Likewise.
68221         * modules/closeout (Makefile.am): Likewise.
68222         * modules/crc (Makefile.am): Likewise.
68223         * modules/csharpexec (Makefile.am): Likewise.
68224         * modules/cycle-check (Makefile.am): Likewise.
68225         * modules/des (Makefile.am): Likewise.
68226         * modules/dev-ino (Makefile.am): Likewise.
68227         * modules/dirfd (Makefile.am): Likewise.
68228         * modules/dirname (Makefile.am): Likewise.
68229         * modules/dup2 (Makefile.am): Likewise.
68230         * modules/eealloc (Makefile.am): Likewise.
68231         * modules/error (Makefile.am): Likewise.
68232         * modules/euidaccess (Makefile.am): Likewise.
68233         * modules/exclude (Makefile.am): Likewise.
68234         * modules/exitfail (Makefile.am): Likewise.
68235         * modules/fcntl-safer (Makefile.am): Likewise.
68236         * modules/fcntl (Makefile.am): Likewise.
68237         * modules/file-type (Makefile.am): Likewise.
68238         * modules/fileblocks (Makefile.am): Likewise.
68239         * modules/filemode (Makefile.am): Likewise.
68240         * modules/filenamecat (Makefile.am): Likewise.
68241         * modules/fnmatch (Makefile.am): Likewise.
68242         * modules/fopen-safer (Makefile.am): Likewise.
68243         * modules/fpending (Makefile.am): Likewise.
68244         * modules/fprintftime (Makefile.am): Likewise.
68245         * modules/free (Makefile.am): Likewise.
68246         * modules/fsusage (Makefile.am): Likewise.
68247         * modules/ftruncate (Makefile.am): Likewise.
68248         * modules/fts (Makefile.am): Likewise.
68249         * modules/gc-arcfour (Makefile.am): Likewise.
68250         * modules/gc-des (Makefile.am): Likewise.
68251         * modules/gc-hmac-md5 (Makefile.am): Likewise.
68252         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
68253         * modules/gc-md4 (Makefile.am): Likewise.
68254         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68255         * modules/gc-sha1 (Makefile.am): Likewise.
68256         * modules/gc (Makefile.am): Likewise.
68257         * modules/getaddrinfo (Makefile.am): Likewise.
68258         * modules/getcwd (Makefile.am): Likewise.
68259         * modules/getdelim (Makefile.am): Likewise.
68260         * modules/getdomainname (Makefile.am): Likewise.
68261         * modules/getgroups (Makefile.am): Likewise.
68262         * modules/gethostname (Makefile.am): Likewise.
68263         * modules/gethrxtime (Makefile.am): Likewise.
68264         * modules/getline (Makefile.am): Likewise.
68265         * modules/getloadavg (Makefile.am): Likewise.
68266         * modules/getlogin_r (Makefile.am): Likewise.
68267         * modules/getndelim2 (Makefile.am): Likewise.
68268         * modules/getopt (Makefile.am): Likewise.
68269         * modules/getpagesize (Makefile.am): Likewise.
68270         * modules/getpass-gnu (Makefile.am): Likewise.
68271         * modules/getpass (Makefile.am): Likewise.
68272         * modules/getsubopt (Makefile.am): Likewise.
68273         * modules/gettime (Makefile.am): Likewise.
68274         * modules/gettimeofday (Makefile.am): Likewise.
68275         * modules/getugroups (Makefile.am): Likewise.
68276         * modules/getusershell (Makefile.am): Likewise.
68277         * modules/glob (Makefile.am): Likewise.
68278         * modules/group-member (Makefile.am): Likewise.
68279         * modules/hard-locale (Makefile.am): Likewise.
68280         * modules/hash (Makefile.am): Likewise.
68281         * modules/hmac-md5 (Makefile.am): Likewise.
68282         * modules/hmac-sha1 (Makefile.am): Likewise.
68283         * modules/human (Makefile.am): Likewise.
68284         * modules/idcache (Makefile.am): Likewise.
68285         * modules/imaxabs (Makefile.am): Likewise.
68286         * modules/imaxdiv (Makefile.am): Likewise.
68287         * modules/inet_ntop (Makefile.am): Likewise.
68288         * modules/inet_pton (Makefile.am): Likewise.
68289         * modules/intprops (Makefile.am): Likewise.
68290         * modules/inttostr (Makefile.am): Likewise.
68291         * modules/inttypes (Makefile.am): Likewise.
68292         * modules/isapipe (Makefile.am): Likewise.
68293         * modules/javaversion (Makefile.am): Likewise.
68294         * modules/lchmod (Makefile.am): Likewise.
68295         * modules/lchown (Makefile.am): Likewise.
68296         * modules/localcharset (Makefile.am): Likewise.
68297         * modules/long-options (Makefile.am): Likewise.
68298         * modules/lstat (Makefile.am): Likewise.
68299         * modules/malloc (Makefile.am): Likewise.
68300         * modules/mathl (Makefile.am): Likewise.
68301         * modules/mbchar (Makefile.am): Likewise.
68302         * modules/md2 (Makefile.am): Likewise.
68303         * modules/md4 (Makefile.am): Likewise.
68304         * modules/md5 (Makefile.am): Likewise.
68305         * modules/memcasecmp (Makefile.am): Likewise.
68306         * modules/memchr (Makefile.am): Likewise.
68307         * modules/memcmp (Makefile.am): Likewise.
68308         * modules/memcoll (Makefile.am): Likewise.
68309         * modules/memcpy (Makefile.am): Likewise.
68310         * modules/memmem (Makefile.am): Likewise.
68311         * modules/memmove (Makefile.am): Likewise.
68312         * modules/mempcpy (Makefile.am): Likewise.
68313         * modules/memrchr (Makefile.am): Likewise.
68314         * modules/memset (Makefile.am): Likewise.
68315         * modules/memxor (Makefile.am): Likewise.
68316         * modules/mkancesdirs (Makefile.am): Likewise.
68317         * modules/mkdir-p (Makefile.am): Likewise.
68318         * modules/mkdir (Makefile.am): Likewise.
68319         * modules/mkdtemp (Makefile.am): Likewise.
68320         * modules/mkstemp (Makefile.am): Likewise.
68321         * modules/mktime (Makefile.am): Likewise.
68322         * modules/modechange (Makefile.am): Likewise.
68323         * modules/mountlist (Makefile.am): Likewise.
68324         * modules/nanosleep (Makefile.am): Likewise.
68325         * modules/obstack (Makefile.am): Likewise.
68326         * modules/openat (Makefile.am): Likewise.
68327         * modules/pagealign_alloc (Makefile.am): Likewise.
68328         * modules/pathmax (Makefile.am): Likewise.
68329         * modules/physmem (Makefile.am): Likewise.
68330         * modules/poll (Makefile.am): Likewise.
68331         * modules/posixtm (Makefile.am): Likewise.
68332         * modules/posixver (Makefile.am): Likewise.
68333         * modules/putenv (Makefile.am): Likewise.
68334         * modules/quote (Makefile.am): Likewise.
68335         * modules/quotearg (Makefile.am): Likewise.
68336         * modules/raise (Makefile.am): Likewise.
68337         * modules/read-file (Makefile.am): Likewise.
68338         * modules/readline (Makefile.am): Likewise.
68339         * modules/readlink (Makefile.am): Likewise.
68340         * modules/readtokens (Makefile.am): Likewise.
68341         * modules/readutmp (Makefile.am): Likewise.
68342         * modules/realloc (Makefile.am): Likewise.
68343         * modules/regex (Makefile.am): Likewise.
68344         * modules/rename-dest-slash (Makefile.am): Likewise.
68345         * modules/rename (Makefile.am): Likewise.
68346         * modules/rijndael (Makefile.am): Likewise.
68347         * modules/rmdir (Makefile.am): Likewise.
68348         * modules/rpmatch (Makefile.am): Likewise.
68349         * modules/safe-read (Makefile.am): Likewise.
68350         * modules/safe-write (Makefile.am): Likewise.
68351         * modules/same-inode (Makefile.am): Likewise.
68352         * modules/same (Makefile.am): Likewise.
68353         * modules/save-cwd (Makefile.am): Likewise.
68354         * modules/savedir (Makefile.am): Likewise.
68355         * modules/setenv (Makefile.am): Likewise.
68356         * modules/settime (Makefile.am): Likewise.
68357         * modules/sha1 (Makefile.am): Likewise.
68358         * modules/sig2str (Makefile.am): Likewise.
68359         * modules/snprintf (Makefile.am): Likewise.
68360         * modules/stat-macros (Makefile.am): Likewise.
68361         * modules/stat-time (Makefile.am): Likewise.
68362         * modules/stdbool (Makefile.am): Likewise.
68363         * modules/stdint (Makefile.am): Likewise.
68364         * modules/stdlib-safer (Makefile.am): Likewise.
68365         * modules/stpcpy (Makefile.am): Likewise.
68366         * modules/stpncpy (Makefile.am): Likewise.
68367         * modules/strcase (Makefile.am): Likewise.
68368         * modules/strcasestr (Makefile.am): Likewise.
68369         * modules/strchrnul (Makefile.am): Likewise.
68370         * modules/strcspn (Makefile.am): Likewise.
68371         * modules/strdup (Makefile.am): Likewise.
68372         * modules/strerror (Makefile.am): Likewise.
68373         * modules/strftime (Makefile.am): Likewise.
68374         * modules/strndup (Makefile.am): Likewise.
68375         * modules/strnlen (Makefile.am): Likewise.
68376         * modules/strpbrk (Makefile.am): Likewise.
68377         * modules/strsep (Makefile.am): Likewise.
68378         * modules/strstr (Makefile.am): Likewise.
68379         * modules/strtod (Makefile.am): Likewise.
68380         * modules/strtoimax (Makefile.am): Likewise.
68381         * modules/strtok_r (Makefile.am): Likewise.
68382         * modules/strtol (Makefile.am): Likewise.
68383         * modules/strtoll (Makefile.am): Likewise.
68384         * modules/strtoul (Makefile.am): Likewise.
68385         * modules/strtoull (Makefile.am): Likewise.
68386         * modules/strtoumax (Makefile.am): Likewise.
68387         * modules/strverscmp (Makefile.am): Likewise.
68388         * modules/sys_socket (Makefile.am): Likewise.
68389         * modules/sys_stat (Makefile.am): Likewise.
68390         * modules/sysexits (Makefile.am): Likewise.
68391         * modules/time_r (Makefile.am): Likewise.
68392         * modules/timegm (Makefile.am): Likewise.
68393         * modules/timespec (Makefile.am): Likewise.
68394         * modules/tmpfile-safer (Makefile.am): Likewise.
68395         * modules/trim (Makefile.am): Likewise.
68396         * modules/unistd-safer (Makefile.am): Likewise.
68397         * modules/unlinkdir (Makefile.am): Likewise.
68398         * modules/unlocked-io (Makefile.am): Likewise.
68399         * modules/userspec (Makefile.am): Likewise.
68400         * modules/utime (Makefile.am): Likewise.
68401         * modules/utimecmp (Makefile.am): Likewise.
68402         * modules/utimens (Makefile.am): Likewise.
68403         * modules/vasnprintf (Makefile.am): Likewise.
68404         * modules/vasprintf (Makefile.am): Likewise.
68405         * modules/vsnprintf (Makefile.am): Likewise.
68406         * modules/xalloc (Makefile.am): Likewise.
68407         * modules/xgetcwd (Makefile.am): Likewise.
68408         * modules/xnanosleep (Makefile.am): Likewise.
68409         * modules/xreadlink (Makefile.am): Likewise.
68410         * modules/xstrtod (Makefile.am): Likewise.
68411         * modules/xstrtol (Makefile.am): Likewise.
68412         * modules/xstrtold (Makefile.am): Likewise.
68413         * modules/yesno (Makefile.am): Likewise.
68414         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
68415
68416 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68417
68418         * modules/error (Makefile.am): Distribute files through
68419         EXTRA_DIST, not lib_SOURCES.
68420
68421 2006-10-12  Eric Blake  <ebb9@byu.net>
68422
68423         * modules/error (Makefile.am): Distribute files in /lib.
68424         * modules/obstack (Makefile.am): Likewise.
68425
68426 2006-10-12  Bruno Haible  <bruno@clisp.org>
68427
68428         * modules/acl (Makefile.am): Distribute all files in lib/ through
68429         EXTRA_DIST.
68430         * modules/arcfour (Makefile.am): Likewise.
68431         * modules/arctwo (Makefile.am): Likewise.
68432         * modules/argmatch (Makefile.am): Likewise.
68433         * modules/argz (Makefile.am): Likewise.
68434         * modules/atexit (Makefile.am): Likewise.
68435         * modules/backupfile (Makefile.am): Likewise.
68436         * modules/c-strtod (Makefile.am): Likewise.
68437         * modules/c-strtold (Makefile.am): Likewise.
68438         * modules/calloc (Makefile.am): Likewise.
68439         * modules/canon-host (Makefile.am): Likewise.
68440         * modules/canonicalize (Makefile.am): Likewise.
68441         * modules/chdir-long (Makefile.am): Likewise.
68442         * modules/chdir-safer (Makefile.am): Likewise.
68443         * modules/check-version (Makefile.am): Likewise.
68444         * modules/chown (Makefile.am): Likewise.
68445         * modules/cloexec (Makefile.am): Likewise.
68446         * modules/close-stream (Makefile.am): Likewise.
68447         * modules/closeout (Makefile.am): Likewise.
68448         * modules/crc (Makefile.am): Likewise.
68449         * modules/cycle-check (Makefile.am): Likewise.
68450         * modules/des (Makefile.am): Likewise.
68451         * modules/dirfd (Makefile.am): Likewise.
68452         * modules/dirname (Makefile.am): Likewise.
68453         * modules/dup2 (Makefile.am): Likewise.
68454         * modules/euidaccess (Makefile.am): Likewise.
68455         * modules/exclude (Makefile.am): Likewise.
68456         * modules/exitfail (Makefile.am): Likewise.
68457         * modules/fcntl-safer (Makefile.am): Likewise.
68458         * modules/file-type (Makefile.am): Likewise.
68459         * modules/fileblocks (Makefile.am): Likewise.
68460         * modules/filemode (Makefile.am): Likewise.
68461         * modules/filenamecat (Makefile.am): Likewise.
68462         * modules/fnmatch (Makefile.am): Likewise.
68463         * modules/fopen-safer (Makefile.am): Likewise.
68464         * modules/fpending (Makefile.am): Likewise.
68465         * modules/fprintftime (Makefile.am): Likewise.
68466         * modules/free (Makefile.am): Likewise.
68467         * modules/fsusage (Makefile.am): Likewise.
68468         * modules/ftruncate (Makefile.am): Likewise.
68469         * modules/fts (Makefile.am): Likewise.
68470         * modules/gc (Makefile.am): Likewise.
68471         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68472         * modules/getaddrinfo (Makefile.am): Likewise.
68473         * modules/getcwd (Makefile.am): Likewise.
68474         * modules/getdelim (Makefile.am): Likewise.
68475         * modules/getdomainname (Makefile.am): Likewise.
68476         * modules/getgroups (Makefile.am): Likewise.
68477         * modules/gethostname (Makefile.am): Likewise.
68478         * modules/gethrxtime (Makefile.am): Likewise.
68479         * modules/getline (Makefile.am): Likewise.
68480         * modules/getloadavg (Makefile.am): Likewise.
68481         * modules/getlogin_r (Makefile.am): Likewise.
68482         * modules/getopt (Makefile.am): Likewise.
68483         * modules/getpass (Makefile.am): Likewise.
68484         * modules/getpass-gnu (Makefile.am): Likewise.
68485         * modules/getsubopt (Makefile.am): Likewise.
68486         * modules/gettime (Makefile.am): Likewise.
68487         * modules/gettimeofday (Makefile.am): Likewise.
68488         * modules/getugroups (Makefile.am): Likewise.
68489         * modules/getusershell (Makefile.am): Likewise.
68490         * modules/glob (Makefile.am): Likewise.
68491         * modules/group-member (Makefile.am): Likewise.
68492         * modules/hard-locale (Makefile.am): Likewise.
68493         * modules/hash (Makefile.am): Likewise.
68494         * modules/hmac-md5 (Makefile.am): Likewise.
68495         * modules/hmac-sha1 (Makefile.am): Likewise.
68496         * modules/human (Makefile.am): Likewise.
68497         * modules/idcache (Makefile.am): Likewise.
68498         * modules/imaxabs (Makefile.am): Likewise.
68499         * modules/imaxdiv (Makefile.am): Likewise.
68500         * modules/inet_ntop (Makefile.am): Likewise.
68501         * modules/inet_pton (Makefile.am): Likewise.
68502         * modules/inttostr (Makefile.am): Likewise.
68503         * modules/isapipe (Makefile.am): Likewise.
68504         * modules/lchown (Makefile.am): Likewise.
68505         * modules/long-options (Makefile.am): Likewise.
68506         * modules/lstat (Makefile.am): Likewise.
68507         * modules/malloc (Makefile.am): Likewise.
68508         * modules/mathl (Makefile.am): Likewise.
68509         * modules/mbchar (Makefile.am): Likewise.
68510         * modules/md2 (Makefile.am): Likewise.
68511         * modules/md4 (Makefile.am): Likewise.
68512         * modules/md5 (Makefile.am): Likewise.
68513         * modules/memcasecmp (Makefile.am): Likewise.
68514         * modules/memchr (Makefile.am): Likewise.
68515         * modules/memcmp (Makefile.am): Likewise.
68516         * modules/memcoll (Makefile.am): Likewise.
68517         * modules/memcpy (Makefile.am): Likewise.
68518         * modules/memmem (Makefile.am): Likewise.
68519         * modules/memmove (Makefile.am): Likewise.
68520         * modules/mempcpy (Makefile.am): Likewise.
68521         * modules/memrchr (Makefile.am): Likewise.
68522         * modules/memset (Makefile.am): Likewise.
68523         * modules/memxor (Makefile.am): Likewise.
68524         * modules/mkancesdirs (Makefile.am): Likewise.
68525         * modules/mkdir (Makefile.am): Likewise.
68526         * modules/mkdir-p (Makefile.am): Likewise.
68527         * modules/mkdtemp (Makefile.am): Likewise.
68528         * modules/mkstemp (Makefile.am): Likewise.
68529         * modules/mktime (Makefile.am): Likewise.
68530         * modules/modechange (Makefile.am): Likewise.
68531         * modules/mountlist (Makefile.am): Likewise.
68532         * modules/nanosleep (Makefile.am): Likewise.
68533         * modules/openat (Makefile.am): Likewise.
68534         * modules/pagealign_alloc (Makefile.am): Likewise.
68535         * modules/physmem (Makefile.am): Likewise.
68536         * modules/poll (Makefile.am): Likewise.
68537         * modules/posixtm (Makefile.am): Likewise.
68538         * modules/posixver (Makefile.am): Likewise.
68539         * modules/putenv (Makefile.am): Likewise.
68540         * modules/quote (Makefile.am): Likewise.
68541         * modules/quotearg (Makefile.am): Likewise.
68542         * modules/raise (Makefile.am): Likewise.
68543         * modules/read-file (Makefile.am): Likewise.
68544         * modules/readline (Makefile.am): Likewise.
68545         * modules/readlink (Makefile.am): Likewise.
68546         * modules/readtokens (Makefile.am): Likewise.
68547         * modules/readutmp (Makefile.am): Likewise.
68548         * modules/realloc (Makefile.am): Likewise.
68549         * modules/regex (Makefile.am): Likewise.
68550         * modules/rename (Makefile.am): Likewise.
68551         * modules/rename-dest-slash (Makefile.am): Likewise.
68552         * modules/rijndael (Makefile.am): Likewise.
68553         * modules/rmdir (Makefile.am): Likewise.
68554         * modules/rpmatch (Makefile.am): Likewise.
68555         * modules/safe-read (Makefile.am): Likewise.
68556         * modules/safe-write (Makefile.am): Likewise.
68557         * modules/same (Makefile.am): Likewise.
68558         * modules/save-cwd (Makefile.am): Likewise.
68559         * modules/savedir (Makefile.am): Likewise.
68560         * modules/setenv (Makefile.am): Likewise.
68561         * modules/settime (Makefile.am): Likewise.
68562         * modules/sha1 (Makefile.am): Likewise.
68563         * modules/sig2str (Makefile.am): Likewise.
68564         * modules/snprintf (Makefile.am): Likewise.
68565         * modules/stdlib-safer (Makefile.am): Likewise.
68566         * modules/stpcpy (Makefile.am): Likewise.
68567         * modules/stpncpy (Makefile.am): Likewise.
68568         * modules/strcase (Makefile.am): Likewise.
68569         * modules/strcasestr (Makefile.am): Likewise.
68570         * modules/strchrnul (Makefile.am): Likewise.
68571         * modules/strcspn (Makefile.am): Likewise.
68572         * modules/strdup (Makefile.am): Likewise.
68573         * modules/strerror (Makefile.am): Likewise.
68574         * modules/strftime (Makefile.am): Likewise.
68575         * modules/strndup (Makefile.am): Likewise.
68576         * modules/strnlen (Makefile.am): Likewise.
68577         * modules/strpbrk (Makefile.am): Likewise.
68578         * modules/strsep (Makefile.am): Likewise.
68579         * modules/strstr (Makefile.am): Likewise.
68580         * modules/strtod (Makefile.am): Likewise.
68581         * modules/strtoimax (Makefile.am): Likewise.
68582         * modules/strtok_r (Makefile.am): Likewise.
68583         * modules/strtol (Makefile.am): Likewise.
68584         * modules/strtoll (Makefile.am): Likewise.
68585         * modules/strtoul (Makefile.am): Likewise.
68586         * modules/strtoull (Makefile.am): Likewise.
68587         * modules/strtoumax (Makefile.am): Likewise.
68588         * modules/strverscmp (Makefile.am): Likewise.
68589         * modules/time_r (Makefile.am): Likewise.
68590         * modules/timegm (Makefile.am): Likewise.
68591         * modules/tmpfile-safer (Makefile.am): Likewise.
68592         * modules/unistd-safer (Makefile.am): Likewise.
68593         * modules/unlinkdir (Makefile.am): Likewise.
68594         * modules/userspec (Makefile.am): Likewise.
68595         * modules/utime (Makefile.am): Likewise.
68596         * modules/utimecmp (Makefile.am): Likewise.
68597         * modules/utimens (Makefile.am): Likewise.
68598         * modules/vasnprintf (Makefile.am): Likewise.
68599         * modules/vasprintf (Makefile.am): Likewise.
68600         * modules/vsnprintf (Makefile.am): Likewise.
68601         * modules/xalloc (Makefile.am): Likewise.
68602         * modules/xgetcwd (Makefile.am): Likewise.
68603         * modules/xnanosleep (Makefile.am): Likewise.
68604         * modules/xreadlink (Makefile.am): Likewise.
68605         * modules/xstrtod (Makefile.am): Likewise.
68606         * modules/xstrtol (Makefile.am): Likewise.
68607         * modules/xstrtold (Makefile.am): Likewise.
68608         * modules/yesno (Makefile.am): Likewise.
68609
68610 2006-10-12  Jim Meyering  <jim@meyering.net>
68611
68612         * m4/getloadavg.m4: Revert the change below.
68613
68614         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
68615         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
68616         fail with a symlink, which is what coreutils' ./bootstrap now
68617         creates by default.
68618
68619 2006-10-12  Bruno Haible  <bruno@clisp.org>
68620
68621         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
68622         mingw.
68623         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
68624         MSVC and mingw explicitly.
68625
68626 2006-10-11  Simon Josefsson  <jas@extundo.com>
68627             Bruno Haible  <bruno@clisp.org>
68628
68629         Add support for multiple gnulib-tool invocations in the scope of a
68630         single configure.ac file.
68631         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
68632         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
68633         with the same contents as the _LIBADD variable.
68634         (func_emit_initmacro_start, func_emit_initmacro_end,
68635         func_emit_initmacro_done): New functions.
68636         (func_import, func_create_testdir): Invoke them. Allow the identifiers
68637         gl_LIBOBJS and gl_LTLIBOBJS.
68638
68639 2006-10-11  Bruno Haible  <bruno@clisp.org>
68640
68641         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
68642         (func_create_testdir): Don't create po/Makefile.am, don't invoke
68643         autoreconf. Instead, invoke autopoint explicitly but move back the
68644         *.m4 files from gnulib.
68645
68646 2006-10-11  Bruno Haible  <bruno@clisp.org>
68647
68648         * gnulib-tool (func_usage): Make module names after --create-testdir
68649         optional.
68650         (func_create_testdir): If no module was specified, use nearly all
68651         modules.
68652
68653 2006-10-12  Jim Meyering  <jim@meyering.net>
68654
68655         Big performance improvement for fts-based tools that use FTS_NOSTAT.
68656         Avoid spurious inode-mismatch problems on non-POSIX file systems.
68657         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
68658         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
68659         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
68660         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
68661         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
68662         (fts_set_stat_required): New function.
68663         (fts_open): Defer the calls to fts_stat, if possible or requested.
68664         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
68665         into fts_stat itself.
68666         (fts_read): Perform any required (deferred) fts_stat call.
68667         (fts_build): Likewise, for the directory we're about to open and read.
68668         In the readdir loop, carefully decide whether each entry will require
68669         an eventual call to fts_stat, using dirent.d_type info if available.
68670         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
68671         a command line argument into this function.  Update all callers.
68672         Map a return value of FTS_DOT to FTS_D for a command line argument.
68673         * modules/fts (Depends-on): Add d-type.  Alphabetize.
68674         Thanks to Miklos Szeredi for his tenacity and for the initial
68675         bug report about "find" failing on a FUSE-based file system.
68676
68677         * lib/fts.c (fts_open): Use consistent indentation.
68678
68679 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68680
68681         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
68682         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
68683         reported by Jim Meyering.  All uses of cache variables renamed
68684         to match Autoconf's.
68685         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
68686         the other one.
68687
68688         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
68689         Fix misspelling in diagnostic.
68690
68691 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68692
68693         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
68694         defined.  Problem reported by Matthew Woehlke.
68695
68696         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
68697         Add support for Tandem NonStop R series.
68698         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
68699         Use new macro.
68700
68701         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
68702         (has_trailing_slash): Omit size arg; all callers changed.
68703         Omit 'inline', since it doesn't help performance and we'd
68704         need to configure it.
68705         Don't count //, ///, etc. as having a trailing slash.
68706         As a side effect, this removes a C99ism reported by Matthew Woehlke.
68707         (rpl_rename_dest_slash): On failure, use rename's errno rather
68708         than (in some cases) an incorrect or junk errno.
68709         Simplify code by removing need to compute length; this does
68710         cause it to make two passes instead of one over the file name,
68711         but it's worth it.
68712
68713         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
68714         change, since Autoconf's version may no longer be appropriate now
68715         that we are using CVS Autoconf's version.  Add support for Tandem.
68716
68717 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68718             Bruno Haible  <bruno@clisp.org>
68719
68720         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
68721         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
68722         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
68723         gl_AC_TYPE_LONG_LONG.
68724
68725         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
68726         instead of HAVE_LONG_LONG.
68727         * lib/printf-args.c (printf_fetchargs): Likewise.
68728         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
68729         * lib/vasnprintf.c (VASNPRINTF): Likewise.
68730         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
68731         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
68732         gl_AC_TYPE_LONG_LONG.
68733
68734 2006-10-11  Bruno Haible  <bruno@clisp.org>
68735
68736         * m4/longlong.m4: Add comments.
68737         * m4/ulonglong.m4: Likewise.
68738
68739 2006-10-10  Bruno Haible  <bruno@clisp.org>
68740
68741         Make it possible to #define stpcpy, strdup to aliases.
68742         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
68743         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
68744
68745 2006-10-10  Bruno Haible  <bruno@clisp.org>
68746
68747         Make it possible to #define gcd to an alias.
68748         * lib/gcd.c: Include config.h.
68749
68750 2006-10-10  Bruno Haible  <bruno@clisp.org>
68751
68752         Make it possible to #define c_isascii to an alias.
68753         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
68754         defined. Undefine the macros before defining them, to avoid gcc
68755         warnings.
68756         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
68757         define NO_C_CTYPE_MACROS early.
68758
68759 2006-10-10  Bruno Haible  <bruno@clisp.org>
68760
68761         Make it possible to #define set_program_name to an alias.
68762         * lib/progname.c: Don't undefine set_program_name; instead, undefine
68763         ENABLE_RELOCATABLE early.
68764
68765 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68766
68767         Port to Tandem NSK OSS, which has 64-bit signed int but at most
68768         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
68769         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
68770         More generally, don't assume that 64-bit signed int is available
68771         if unsigned int is, and vice versa.
68772         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
68773         unsigned symbols, not on their signed counterparts.
68774         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
68775         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
68776         (UINT64_C, UINTMAX_C):
68777         Likewise.
68778         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
68779         unsigned counterparts.
68780         (Have_long_long, Unsigned): New macros.
68781         (Int): Renamed from INT.
68782         (strtoimax): Use the new macros.
68783         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
68784         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
68785         * modules/inttypes (inttypes.h): Substitute
68786         HAVE_UNSIGNED_LONG_LONG_INT.
68787         * modules/stdint (stdint.h): Likewise.
68788         (Files): Add m4/ulonglong.m4.
68789
68790 2006-10-10  Bruno Haible  <bruno@clisp.org>
68791
68792         Fix a gcc -Wshadow warning.
68793         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
68794         to 'bucket'.
68795         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
68796         gl_linked_indexof_from_to): Likewise.
68797         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
68798         Likewise.
68799         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
68800         Likewise.
68801         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
68802         Reported by Eric Blake.
68803
68804 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
68805
68806         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
68807         for NetBSD.  Problem reported by Bruno Haible.
68808
68809 2006-10-09  Jim Meyering  <jim@meyering.net>
68810
68811         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
68812         Patch from Bruno Haible.
68813
68814 2006-10-09  Jim Meyering  <jim@meyering.net>
68815
68816         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
68817         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
68818         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
68819
68820 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68821
68822         Don't include <config.h> twice; this doesn't work in some cases,
68823         e.g., when config.h has "#define intmax_t long long int" and
68824         we include <config.h>, <inttypes.h>, <config.h> in that order.
68825         Problem reported by Matthew Woehlke in:
68826         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
68827         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
68828         * lib/fts-cycle.c: Don't include config.h.
68829         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
68830         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
68831         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
68832         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
68833         inttypes.h.
68834         * lib/xstrtoumax.c: Likewise.
68835         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
68836         __strtol and the like, so that this module is more like its siblings.
68837         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
68838         Remove; no longer needed now that we assume gnulib inttypes.h.
68839
68840 2006-10-08  Bruno Haible  <bruno@clisp.org>
68841
68842         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
68843         option.
68844
68845 2006-10-07  Jim Meyering  <jim@meyering.net>
68846
68847         * modules/inttypes (inttypes.h): Revert what seems to have been
68848         an inadvertent part of today's change: use "|", not "/" in the
68849         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
68850
68851 2006-10-07  Bruno Haible  <bruno@clisp.org>
68852
68853         * modules/sublist: New file.
68854
68855 2006-10-07  Bruno Haible  <bruno@clisp.org>
68856
68857         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
68858         * modules/argz (argz.h): Likewise.
68859         * modules/arpa_inet (arpa/inet.h): Likewise.
68860         * modules/byteswap (byteswap.h): Likewise.
68861         * modules/configmake (configmake.h): Likewise.
68862         * modules/fcntl (fcntl.h): Likewise.
68863         * modules/fnmatch (fnmatch.h): Likewise.
68864         * modules/getopt (getopt.h): Likewise.
68865         * modules/glob (glob.h): Likewise.
68866         * modules/inttypes (inttypes.h): Likewise.
68867         * modules/netinet_in (netinet/in.h): Likewise.
68868         * modules/poll (poll.h): Likewise.
68869         * modules/stdbool (stdbool.h): Likewise.
68870         * modules/stdint (stdint.h): Likewise.
68871         * modules/sys_select (sys/select.h): Likewise.
68872         * modules/sys_socket (sys/socket.h): Likewise.
68873         * modules/sys_stat (sys/stat.h): Likewise.
68874         * modules/sysexits (sysexits.h): Likewise.
68875         * modules/unistd (unistd.h): Likewise.
68876         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68877         Add a "DO NOT EDIT" comment to the generated file.
68878         (func_import): Likewise for gnulib-comp.m4.
68879
68880 2006-10-07  Bruno Haible  <bruno@clisp.org>
68881
68882         * lib/gl_sublist.h: New file.
68883         * lib/gl_sublist.c: New file.
68884
68885 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68886
68887         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
68888         name (relative to the original working directory) and the file
68889         name component (relative to the temporary working directory).  All
68890         callers changed.
68891         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
68892         * lib/mkdir-p.c (make_dir_parents): Likewise.
68893         * lib/mkdir-p.h (make_dir_parents): Likewise.
68894
68895 2006-10-06  Eric Blake  <ebb9@byu.net>
68896
68897         Define several macros for use by the clean-temp module.
68898         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
68899         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
68900         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
68901
68902         * lib/clean-temp.h (close_stream_temp): New declaration.
68903         * lib/clean-temp.c (includes): Pull in headers according to what
68904         other modules are in use.
68905         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
68906
68907 2006-10-06  Bruno Haible  <bruno@clisp.org>
68908
68909         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
68910         instead of fopen, fwriteerror.
68911
68912 2006-10-06  Bruno Haible  <bruno@clisp.org>
68913
68914         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
68915         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
68916         int.
68917         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
68918         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
68919         Return an error indicator.
68920         Suggested by Eric Blake.
68921
68922 2006-10-06  Bruno Haible  <bruno@clisp.org>
68923
68924         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
68925         Reported by Eric Blake.
68926
68927 2006-10-06  Bruno Haible  <bruno@clisp.org>
68928
68929         * modules/closeout (Description): Mention stderr too.
68930
68931 2006-10-06  Bruno Haible  <bruno@clisp.org>
68932         and Paul Eggert  <eggert@cs.ucla.edu>
68933
68934         * lib/closeout.c (close_stdout): Also close stderr.
68935         * lib/closeout.h: Update comment.
68936
68937 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68938
68939         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
68940         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
68941         * lib/dirchownmod.c: Include lchown.h.
68942         * lib/lchown.c: Don't include files that lchown.h now includes.
68943         Don't declare chown, since lchown.h now does that.
68944         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
68945         (lchown): Define to rpl_chown if lchown is declared but
68946         does not exist.  Declare using a prototype if lchown is not
68947         declared.  Add a copyright notice.
68948         * lib/mkstemp.h: Include <unistd.h>.
68949         * lib/openat.c: Include lchown.h.
68950
68951         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
68952         we now test for that separately.
68953         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
68954         rather than O_NOFOLLOW, when testing whether it's possible to
68955         avoid a race condition reliably.
68956         * lib/savewd.c (savewd_chdir): Likewise.
68957
68958         Remove macros that are no longer needed now that stdint.h is
68959         reliable.
68960         * lib/fsusage.c (UINTMAX_MAX): Remove.
68961         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
68962         * lib/utimecmp.c (SIZE_MAX): Remove.
68963
68964         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
68965
68966         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
68967         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
68968         O_NOATIME works.
68969
68970 2006-10-05  Bruno Haible  <bruno@clisp.org>
68971
68972         * lib/gl_list.h (gl_sortedlist_search_from_to,
68973         gl_sortedlist_indexof_from_to): New declarations.
68974         (gl_list_implementation): New fields sortedlist_search_from_to,
68975         sortedlist_indexof_from_to.
68976         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
68977         inline functions.
68978         * lib/gl_list.c (gl_sortedlist_search_from_to,
68979         gl_sortedlist_indexof_from_to): New functions.
68980         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
68981         function.
68982         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
68983         (gl_array_sortedlist_search_from_to): New function.
68984         (gl_array_list_implementation): Update.
68985         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
68986         function.
68987         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
68988         (gl_carray_sortedlist_search_from_to): New function.
68989         (gl_carray_list_implementation): Update.
68990         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
68991         gl_linked_sortedlist_indexof_from_to): New functions.
68992         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68993         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68994         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
68995         gl_tree_sortedlist_indexof_from_to): New functions.
68996         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68997         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68998         Update.
68999         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69000         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
69001         Update.
69002
69003 2006-10-05  Bruno Haible  <bruno@clisp.org>
69004
69005         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
69006         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
69007         (struct gl_list_implementation): Add fields search_from_to,
69008         indexof_from_to. Remove fields search, indexof.
69009         (gl_list_search): Use the search_from_to method.
69010         (gl_list_search_from, gl_list_search_from_to): New functions.
69011         (gl_list_indexof): Use the indexof_from_to method.
69012         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69013         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
69014         (gl_list_search_from, gl_list_search_from_to): New functions.
69015         (gl_list_indexof): Use the indexof_from_to method.
69016         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69017         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
69018         gl_array_indexof. Add start_index, end_index arguments.
69019         (gl_array_search_from_to): Renamed from gl_array_search. Add
69020         start_index, end_index arguments.
69021         (gl_array_remove, gl_array_list_implementation): Update.
69022         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
69023         gl_carray_indexof. Add start_index, end_index arguments.
69024         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
69025         start_index, end_index arguments.
69026         (gl_carray_remove, gl_carray_list_implementation): Update.
69027         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
69028         gl_linked_search. Add start_index, end_index arguments.
69029         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
69030         start_index, end_index arguments.
69031         (gl_linked_remove): Update.
69032         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69033         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69034         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
69035         field to 'size_t'.
69036         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
69037         gl_tree_search. Add start_index, end_index arguments.
69038         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69039         start_index, end_index arguments.
69040         (gl_tree_remove): Update.
69041         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69042         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69043         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
69044         function.
69045         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
69046         gl_tree_search. Add start_index, end_index arguments.
69047         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69048         start_index, end_index arguments.
69049         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69050         Update.
69051         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
69052
69053 2006-10-05  Bruno Haible  <bruno@clisp.org>
69054
69055         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
69056
69057         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
69058         fwriteerror_temp): New declarations.
69059         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
69060         (descriptors): New variable.
69061         (cleanup): First, close the descriptors.
69062         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
69063         fclose_temp, fwriteerror_temp): New functions.
69064
69065 2006-10-04  Jim Meyering  <jim@meyering.net>
69066
69067         * lib/fts.c (fts_open): Tiny comment change.
69068
69069 2006-10-04  Bruno Haible  <bruno@clisp.org>
69070
69071         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
69072         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
69073         gl_LOCK_BODY.
69074         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
69075         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
69076         gl_LOCK_EARLY_BODY.
69077         (gl_LOCK): Require gl_LOCK_BODY.
69078
69079 2006-10-04  Bruno Haible  <bruno@clisp.org>
69080
69081         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
69082         (gl_oset_search_atleast): New declaration.
69083         (struct gl_oset_implementation): Add field 'search_atleast'.
69084         (gl_oset_search_atleast): New inline function.
69085         * lib/gl_oset.c (gl_oset_search_atleast): New function.
69086         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
69087         (gl_array_oset_implementation): Update.
69088         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
69089         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
69090         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
69091
69092 2006-10-04  Bruno Haible  <bruno@clisp.org>
69093
69094         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
69095
69096 2006-10-03  Bruno Haible  <bruno@clisp.org>
69097
69098         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
69099         from gl_avltreehash_list_implementation.
69100
69101 2006-10-03  Bruno Haible  <bruno@clisp.org>
69102
69103         * lib/gl_oset.c (gl_oset_add): Fix return type.
69104
69105 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
69106
69107         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
69108
69109 2006-10-02  Eric Blake  <ebb9@byu.net>
69110
69111         * modules/strnlen (Depends-on): Add extensions.
69112
69113 2006-10-02  Eric Blake  <ebb9@byu.net>
69114
69115         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
69116         definition in 2.60+.
69117
69118 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
69119
69120         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
69121         checks.
69122
69123 2006-10-02  Bruno Haible  <bruno@clisp.org>
69124
69125         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
69126         to the AUTOMAKE_OPTIONS.
69127         Reported by Jim Meyering.
69128
69129 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
69130
69131         Work around bug in Solaris 10 /proc file system:
69132         /proc/self/fd/NNN/.. isn't the parent directory of
69133         the directory whose file descriptor is NNN.  This needs to
69134         be worked around at run time, not compile time, since a
69135         program might be built on Solaris 8, where things work, and
69136         run on Solaris 10.
69137         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
69138         to use the following interface instead:
69139         (OPENAT_BUFFER_SIZE): New macro.
69140         (openat_proc_name): New function.
69141         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
69142         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
69143         Likewise.
69144         * lib/openat-proc.c: New file.
69145         * modules/openat (Files): Add lib/openat-proc.c.
69146         (Depends-on): Add same-inode, stdbool.
69147         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
69148
69149 2006-09-29  Bruno Haible  <bruno@clisp.org>
69150
69151         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
69152         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
69153         argument. Set stdout_closed before testing for ferror, not after.
69154         (fwriteerror, fwriteerror_no_ebadf): New functions.
69155
69156 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69157
69158         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
69159
69160 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
69161
69162         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
69163         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
69164
69165 2006-09-28  Jim Meyering  <jim@meyering.net>
69166
69167         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
69168         Include <unistd.h>.
69169
69170 2006-09-28  Bruno Haible  <bruno@clisp.org>
69171
69172         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
69173         * modules/linkedhash-list (Depends-on): Likewise.
69174         * modules/rbtreehash-list (Depends-on): Likewise.
69175
69176 2006-09-28  Bruno Haible  <bruno@clisp.org>
69177
69178         * lib/strndup.h: Simplify the redefinition of strndup.
69179         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
69180         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
69181
69182 2006-09-28  Bruno Haible  <bruno@clisp.org>
69183
69184         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
69185         * lib/gl_linkedhash_list.c: Likewise.
69186         * lib/gl_rbtreehash_list.c: Likewise.
69187
69188 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69189
69190         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
69191         getaddrinfo.
69192
69193         * lib/__fpending.h: Don't include <stdio_ext.h> unless
69194         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
69195         it causes <stdio_ext.h> to cause a compile-time error.
69196         Problem reported by Nelson H. F. Beebe.
69197         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
69198         of HAVE_DECL___PENDING.
69199
69200         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
69201         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
69202         declaration.
69203
69204 2006-09-27  Jim Meyering  <jim@meyering.net>
69205
69206         This file could end up with a definition for a function
69207         named __strndup, rather than rpl_strndup on a system with
69208         incomplete weak_alias support.
69209         * lib/strndup.c (strndup): Rename from __strndup.
69210         Remove #defines that used to map __strndup to strndup.
69211         Don't use K&R prototypes.
69212         Remove LIBC-related code, since this file is not sync'd with glibc.
69213         * lib/strndup.h: Revamp, accordingly.
69214         * m4/strndup.m4: Modernize.
69215
69216 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69217
69218         * modules/savewd (Depends-on): Add 'raise'.
69219         * lib/savewd.c: Include <signal.h>, for 'raise'.
69220
69221 2006-09-26  Jim Meyering  <jim@meyering.net>
69222
69223         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
69224         when we detect Darwin 8.7.0's acl_get_file bug.
69225         Rearrange to perform the new (below) run-test while $LIBS
69226         contains any acl-related library.  Set USE_ACL at the end.
69227         (gl_ACL_GET_FILE): New function.
69228
69229 2006-09-26  Eric Blake  <ebb9@byu.net>
69230
69231         * lib/verror.c: Include <config.h> unconditionally.
69232
69233 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
69234
69235         * modules/clock-time (Maintainer): Add self.
69236         * modules/getlogin_r (Depends-on): Add extensions.
69237
69238 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69239
69240         * modules/clock-time: New module.
69241         * modules/nanosleep (Depends-on): Add clock-time.
69242         * modules/gethrxtime (Depends-on): Likewise.
69243         * modules/gettime (Depends-on): Likewise.
69244         * modules/settime (Depends-on): Likewise.
69245
69246         * modules/fts-lgpl: Depend on openat.
69247         * modules/mkancesdirs: Depend on savewd.
69248         * modules/mkdir-p: Likewise.
69249
69250 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69251
69252         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
69253
69254         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
69255         `gl_have_arbitrary_file_name_length_limit' to
69256         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
69257         actually works between configure runs.
69258
69259 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69260             Bruno Haible  <bruno@clisp.org>
69261
69262         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
69263
69264 2006-09-25  Jim Meyering  <jim@meyering.net>
69265
69266         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
69267         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
69268
69269 2006-09-25  Eric Blake  <ebb9@byu.net>
69270
69271         * gnulib-tool (func_import, func_create_testdir): Fix typos in
69272         exec's in 2006-09-18 patch when shuffling fds.
69273
69274 2006-09-25  Bruno Haible  <bruno@clisp.org>
69275
69276         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
69277         Reported by Jim Meyering.
69278
69279 2006-09-24  Jim Meyering  <jim@meyering.net>
69280
69281         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
69282         compare a pointer against a literal "0".  That caused failures with
69283         at least HP-UX's hpcc.
69284
69285 2006-09-22  Simon Josefsson  <jas@extundo.com>
69286
69287         * modules/gc-sha1:
69288         * modules/gc-md4:
69289         * modules/gc-hmac-sha1:
69290         * modules/gc-hmac-md5:
69291         * modules/gc-des:
69292         * modules/gc-arcfour: Distribute more files.
69293
69294 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69295
69296         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
69297         (gl_linked_iterator_from_to): Initialize struct completely.
69298         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
69299         (gl_tree_iterator_from_to): Likewise
69300         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
69301         * lib/gl_array_list.c [lint] (gl_array_iterator)
69302         (gl_array_iterator_from_to): Likewise.
69303         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
69304         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
69305         (gl_carray_iterator_from_to): Likewise.
69306
69307         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
69308         * lib/md4.c (md4_process_block): Remove unused variable.
69309         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
69310         parentheses for clarity.
69311
69312 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69313
69314         * modules/bison-i18n (Depends-on): Add gettext.
69315
69316 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69317
69318         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
69319         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
69320         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
69321         also add missing comma that caused broken test.
69322         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
69323         stdlib.h, for `abort'.
69324         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
69325         variables.
69326         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
69327         include unistd.h if present, for `rmdir'.
69328         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
69329         variables.
69330         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
69331         in the process include standard headers for prototypes.
69332         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
69333         gets declared on GNU/Linux.
69334         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
69335         unistd.h, for `rmdir'.
69336         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
69337
69338         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
69339         always true.
69340         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
69341
69342         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
69343
69344 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69345
69346         * gnulib-tool (func_version): Create output all at once.  This
69347         may help avoid triggering unnecessary SIGPIPEs, and at any
69348         rate it doesn't hurt.
69349
69350 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69351             Bruno Haible  <bruno@clisp.org>
69352
69353         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
69354         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69355         * m4/signed.m4 (bh_C_SIGNED): Likewise.
69356
69357         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
69358         (gl_FUNC_VASPRINTF): Invoke it.
69359
69360 2006-09-22  Bruno Haible  <bruno@clisp.org>
69361
69362         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
69363         getloadavg.c as first argument.
69364
69365 2006-09-22  Bruno Haible  <bruno@clisp.org>
69366
69367         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
69368         at the beginning of the gl_INIT macro.
69369         * modules/getloadavg (configure.ac): Pass $gl_source_base to
69370         gl_GETLOADAVG.
69371
69372 2006-09-22  Bruno Haible  <bruno@clisp.org>
69373
69374         * gnulib-tool (func_create_megatestdir): Don't include the config-h
69375         module.
69376         Suggested by Ralf Wildenhues.
69377
69378 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69379
69380         Import this patch from libc:
69381
69382         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
69383
69384         * lib/regex_internal.c (re_string_reconstruct): Handle
69385         offset < pstr->valid_raw_len && pstr->offsets_needed case.
69386         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
69387         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
69388         re_string_context_at.
69389
69390         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
69391         now requires it.
69392         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
69393         gl_REGEX now does it for us.
69394         (gl_REGEX): Add test taken from
69395         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
69396
69397         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
69398         Check that large offsets work.  Modernize Autoconf usages.
69399         Prefer "yes" to mean a good thing rather than a bad.
69400         Don't put "#define mkstemp" in config.h, as this might interfere
69401         with standard system headers that "#define mkstemp mkstemp64".
69402
69403         * modules/mkstemp (Depends-on): Add extensions, so that
69404         mkstemp is visible on some platforms.
69405         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
69406         (Include): Change to "mkstemp.h" from <stdlib.h>.
69407         (Files): Add mkstemp.h.
69408
69409         * lib/mkstemp.h: New file, since some standard headers
69410         #define mkstemp.
69411         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
69412         Include "mkstemp.h".
69413         Make the _LIBC code resemble glibc original more,
69414         e.g., use K&R style.
69415         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
69416         (mkstemp): Remove, since mkstemp.h does this for us.
69417         * lib/stdlib--.h: Include mkstemp.h.
69418
69419         Import this patch from libc:
69420
69421         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69422
69423         * lib/tempname.c (__gen_tempname): Change attempts_min
69424         into a macro.  Use preprocessor to decide how to initialize
69425         attempts [Coverity CID 67].
69426
69427 2006-09-20  Bruno Haible  <bruno@clisp.org>
69428
69429         * lib/mkdtemp.c: Import from libc.
69430         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69431                 * sysdeps/posix/tempname.c (__gen_tempname): Change
69432                 attempts_min into a macro.  Use preprocessor to decide how to
69433                 initialize attempts [Coverity CID 67].
69434         2001-11-27  Paul Eggert  <eggert@twinsun.com>
69435                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
69436                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
69437
69438 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69439
69440         * gnulib-tool (func_exit): New function, to allow to pass the
69441         exit status portably through the trap.  Use everywhere.
69442         (--help, --version): Signal a write error.
69443         (trap): catch SIGPIPE, for write errors.
69444         Exit at the end of the trap, with the correct exit status.
69445
69446 2006-09-19  Karl Berry  <karl@gnu.org>
69447
69448         * doc/gnulib.texi: note about the license texinfo files.
69449
69450 2006-09-19  Eric Blake  <ebb9@byu.net>
69451
69452         * gnulib-tool: Avoid space-tab.
69453
69454 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69455
69456         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
69457         that prevented coreutils 6.1 from building.  Problem reported
69458         by Petter Reinholdtsen.
69459
69460 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69461
69462         * gnulib-tool (avoidlist): Fix typo that broke options like
69463         --avoid=lock that are used by coreutils bootstrap.
69464
69465 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
69466
69467         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
69468         more systematically.
69469
69470 2006-09-18  Jim Meyering  <jim@meyering.net>
69471
69472         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
69473
69474 2006-09-18  Bruno Haible  <bruno@clisp.org>
69475
69476         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
69477
69478 2006-09-18  Bruno Haible  <bruno@clisp.org>
69479
69480         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
69481         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
69482         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
69483         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
69484         * m4/gettext.m4: Require autoconf >= 2.52.
69485         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
69486         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
69487         of gl_cv_header_inttypes_h.
69488
69489 2006-09-18  Bruno Haible  <bruno@clisp.org>
69490
69491         * lib/javaversion.c: Include configmake.h.
69492
69493 2006-09-18  Bruno Haible  <bruno@clisp.org>
69494
69495         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
69496         avoid that the while loops be executed in a subshell.
69497
69498 2006-09-18  Bruno Haible  <bruno@clisp.org>
69499
69500         * MODULES.html.sh (func_module): Break long lines.
69501         Suggested by Bruce Korb <bkorb@gnu.org>.
69502
69503 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69504
69505         Speed up by a factor of 1.12.
69506         * gnulib-tool (nl): New variable.
69507         (func_import): Rewrite include directive extraction to only read each
69508         directive once.
69509
69510 2006-09-17  Bruno Haible  <bruno@clisp.org>
69511
69512         * modules/javaversion (Makefile.am): Remove DEFS setting.
69513         (Depends-on): Add configmake, for PKGDATADIR definition.
69514
69515 2006-09-17  Bruno Haible  <bruno@clisp.org>
69516
69517         * gnulib-tool (func_create_testdir): Rewrite all files at once.
69518
69519 2006-09-17  Bruno Haible  <bruno@clisp.org>
69520
69521         * gnulib-tool (func_append): New function, stolen from libtool.m4.
69522         (func_modules_transitive_closure, func_modules_add_dummy,
69523         func_modules_to_filelist, func_import, func_create_testdir,
69524         func_create_megatestdir, ...): Use it wherever possible.
69525         Suggested by Ralf Wildenhues.
69526
69527 2006-09-16  Karl Berry  <karl@gnu.org>
69528
69529         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
69530         to avoid sectioning errors.
69531         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
69532         [ifinfo]: blank line after @center-ed titles.
69533         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
69534         Spell FSF address consistently with others.
69535         (These changes approved by rms.)
69536
69537 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69538
69539         Speed up by a factor of 1.61.
69540         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
69541         already checked module names again.
69542
69543 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69544
69545         Speed up by a factor of 1.13.
69546         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
69547         for new_files, and the input to func_add_or_update.
69548
69549 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69550
69551         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
69552         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
69553
69554 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69555
69556         * modules/mkancesdirs (Depends-on): Add fcntl.
69557         * modules/savewd: New file.
69558         * MODULES.html.sh (File system functions): Add savewd.
69559
69560         * modules/configmake (Makefile.am): Add support for the
69561         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
69562
69563 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69564
69565         * m4/savewd.m4: New file.
69566
69567 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69568
69569         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
69570         (dirchownmod): New arg FD.  All callers changed.
69571         Use FD rather than opening the directory ourself, as opening is
69572         now the caller's responsibility.
69573         * lib/dirchownmod.h: Likewise.
69574         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
69575         hosts that require <sys/types.h> before <sys/stat.h>.  Include
69576         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
69577         (test_dir): Remove.
69578         (mkancesdirs): Return length of prefix of FILE that has already
69579         been made, or -2 if there is a child doing the work.  Redo
69580         algorithm so that it is O(N) rather than O(N**2).  Optimize away
69581         ".", and treat ".." specially since it might stray back into
69582         already-created areas.  Use a subprocess if necessary.  New arg
69583         WD; all users changed.  MAKE_DIR function should now return 1
69584         if it creates a directory that is not readable.  Return -2 if
69585         a child process is spun off.
69586         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
69587         Adjust signature to match code.
69588         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
69589         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
69590         all users changed.
69591         * lib/savewd.c, lib/savewd.h: New files.
69592
69593 2006-09-15  Jim Meyering  <jim@meyering.net>
69594
69595         * modules/rename-dest-slash: New module.
69596         * MODULES.html.sh (posix_compat): Add it here.
69597
69598         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
69599
69600 2006-09-15  Jim Meyering  <jim@meyering.net>
69601
69602         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
69603         file.
69604
69605         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
69606
69607 2006-09-15  Jim Meyering  <jim@meyering.net>
69608
69609         * lib/rename-dest-slash.c (has_trailing_slash): Use
69610         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
69611         (rpl_rename_dest_slash): Perform the cheaper trailing slash
69612         test before testing whether SRC is a directory.
69613         Suggestions from Bruno Haible.
69614
69615         Avoid a warning about an unused variable.
69616         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
69617         into the #ifdef block where it's used.
69618
69619         * lib/rename-dest-slash.c: New file.
69620
69621 2006-09-14  Bruno Haible  <bruno@clisp.org>
69622
69623         * lib/allocsa.c: Include <config.h> unconditionally.
69624         * lib/asnprintf.c: Likewise.
69625         * lib/asprintf.c: Likewise.
69626         * lib/c-strcasecmp.c: Likewise.
69627         * lib/c-strcasestr.c: Likewise.
69628         * lib/c-strncasecmp.c: Likewise.
69629         * lib/c-strstr.c: Likewise.
69630         * lib/classpath.c: Likewise.
69631         * lib/clean-temp.c: Likewise.
69632         * lib/concatpath.c: Likewise.
69633         * lib/copy-file.c: Likewise.
69634         * lib/csharpcomp.c: Likewise.
69635         * lib/csharpexec.c: Likewise.
69636         * lib/execute.c: Likewise.
69637         * lib/fatal-signal.c: Likewise.
69638         * lib/findprog.c: Likewise.
69639         * lib/fwriteerror.c: Likewise.
69640         * lib/gl_array_list.c: Likewise.
69641         * lib/gl_array_oset.c: Likewise.
69642         * lib/gl_avltree_list.c: Likewise.
69643         * lib/gl_avltree_oset.c: Likewise.
69644         * lib/gl_avltreehash_list.c: Likewise.
69645         * lib/gl_carray_list.c: Likewise.
69646         * lib/gl_linked_list.c: Likewise.
69647         * lib/gl_linkedhash_list.c: Likewise.
69648         * lib/gl_list.c: Likewise.
69649         * lib/gl_oset.c: Likewise.
69650         * lib/gl_rbtree_list.c: Likewise.
69651         * lib/gl_rbtree_oset.c: Likewise.
69652         * lib/gl_rbtreehash_list.c: Likewise.
69653         * lib/imaxabs.c: Likewise.
69654         * lib/imaxdiv.c: Likewise.
69655         * lib/javacomp.c: Likewise.
69656         * lib/javaexec.c: Likewise.
69657         * lib/javaversion.c: Likewise.
69658         * lib/linebreak.c: Likewise.
69659         * lib/localcharset.c: Likewise.
69660         * lib/lock.c: Likewise.
69661         * lib/mbchar.c: Likewise.
69662         * lib/mbswidth.c: Likewise.
69663         * lib/mkdtemp.c: Likewise.
69664         * lib/pipe.c: Likewise.
69665         * lib/printf-args.c: Likewise.
69666         * lib/printf-parse.c: Likewise.
69667         * lib/progname.c: Likewise.
69668         * lib/progreloc.c: Likewise.
69669         * lib/readlink.c: Likewise.
69670         * lib/sh-quote.c: Likewise.
69671         * lib/stpcpy.c: Likewise.
69672         * lib/stpncpy.c: Likewise.
69673         * lib/strcasecmp.c: Likewise.
69674         * lib/strcasestr.c: Likewise.
69675         * lib/strcspn.c: Likewise.
69676         * lib/striconv.c: Likewise.
69677         * lib/strncasecmp.c: Likewise.
69678         * lib/strnlen1.c: Likewise.
69679         * lib/strstr.c: Likewise.
69680         * lib/strtok_r.c: Likewise.
69681         * lib/tls.c: Likewise.
69682         * lib/tmpdir.c: Likewise.
69683         * lib/unicodeio.c: Likewise.
69684         * lib/unsetenv.c: Likewise.
69685         * lib/vasnprintf.c: Likewise.
69686         * lib/vasprintf.c: Likewise.
69687         * lib/wait-process.c: Likewise.
69688         * lib/xallocsa.c: Likewise.
69689         * lib/xsetenv.c: Likewise.
69690         * lib/xstriconv.c: Likewise.
69691
69692 2006-09-13  Simon Josefsson  <jas@extundo.com>
69693
69694         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
69695         that internally, suggested by Ralf Wildenhues
69696         <Ralf.Wildenhues@gmx.de>.
69697
69698 2006-09-13  Simon Josefsson  <jas@extundo.com>
69699
69700         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
69701         @LIBOBJS@.
69702         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69703
69704 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69705
69706         * lib/_fpending.c: Include <config.h> unconditionally, since we no
69707         longer worry about uses that don't define HAVE_CONFIG_H.
69708         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
69709         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
69710         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
69711         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
69712         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
69713         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
69714         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
69715         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
69716         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
69717         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
69718         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
69719         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
69720         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
69721         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
69722         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
69723         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
69724         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
69725         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
69726         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
69727         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
69728         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
69729         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
69730         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
69731         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
69732         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
69733         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
69734         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
69735         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
69736         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
69737         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
69738         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
69739         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
69740         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
69741         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
69742         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
69743         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
69744         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
69745         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
69746         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
69747         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
69748         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
69749         Likewise.
69750
69751 2006-09-13  Eric Blake  <ebb9@byu.net>
69752
69753         * lib/getopt.c: Fix typo in last commit.
69754
69755 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69756
69757         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
69758         dgettext.
69759
69760 2006-09-12  Jim Meyering  <jim@meyering.net>
69761
69762         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
69763         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
69764         Reported by Nelson H. F. Beebe.
69765
69766 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69767
69768         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
69769         program_invocation_name and program_invocation_short_name are
69770         initialized.
69771         * lib/argp-namefrob.h: Move declarations of program_invocation_name
69772         and program_invocation_short_name to argp.h, so they are visible
69773         to user programs.
69774         * lib/argp.h: Likewise
69775
69776 2006-09-10  Bruno Haible  <bruno@clisp.org>
69777
69778         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69779         m4/inttypes_h.m4, m4/uintmax_t.m4.
69780
69781 2006-09-10  Bruno Haible  <bruno@clisp.org>
69782
69783         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
69784         gl_AC_TYPE_UINTMAX_T.
69785
69786 2006-09-10  Bruno Haible  <bruno@clisp.org>
69787
69788         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
69789
69790 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69791
69792         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
69793         convention.  Text proposed by Bruno Haible.
69794         (struct argp_option): Document the use of N_() wrappers.
69795
69796         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
69797         '\v', and translate the two parts separately, instead of feeding
69798         the whole string to gettext.  This allows to exclude
69799         '\v' from the strings visible to the translator by writing doc
69800         strings as N_("..") "\v" N_("..").
69801
69802 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
69803
69804         * config/srclist.txt: Undo latest change; the bug was fixed.
69805
69806 2006-09-09  Bruno Haible  <bruno@clisp.org>
69807
69808         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
69809         assignments if building a library without libtool.
69810         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
69811         in func_emit_lib_Makefile_am.
69812         (func_import): When building a static library libfoo.a, arrange to
69813         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
69814         (func_create_testdir): Likewise.
69815         * modules/gc (configure.ac, Makefile.am): If building statically,
69816         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
69817         * modules/iconvme (configure.ac, Makefile.am): Likewise.
69818         * modules/striconv (configure.ac, Makefile.am): Likewise.
69819         Based on a suggestion by Ralf Wildenhues.
69820
69821 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69822
69823         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69824         Check for unistd.h too, since Autoconf doesn't assume POSIX.
69825         Also:
69826
69827         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69828         Add year_2050_test to catch glibc bug 2821
69829         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69830
69831         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69832         Prefer #ifdef to #if.
69833
69834         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
69835         Return from 'main' instead of calling 'exit'.
69836
69837 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69838
69839         * lib/mktime.c (guess_time_tm): Fix bug where mktime
69840         returned the maximum time_t value rather than (time_t) -1.
69841         Problem originally reported by William Bardwell
69842         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69843
69844         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69845         Moved to here ...
69846         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69847         ... from here.
69848
69849 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69850
69851         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
69852         2821 is fixed.
69853
69854 2006-09-08  Jim Meyering  <jim@meyering.net>
69855
69856         Don't make generated files read-only.  That would bother too many
69857         people.  However, do retain the ability to work when targets are
69858         read-only: remove the destination and temporary files before writing
69859         them (when generated via sed or echo), or by using the -f option for
69860         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
69861         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69862         * modules/byteswap, modules/configmake, modules/fcntl:
69863         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69864         * modules/localcharset, modules/netinet_in, modules/poll:
69865         * modules/stdbool, modules/stdint, modules/sys_select:
69866         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69867
69868 2006-09-08  Jim Meyering  <jim@meyering.net>
69869
69870         Avoid new build failure on FreeBSD 6.0.
69871         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
69872         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
69873         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
69874
69875 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69876
69877         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
69878
69879 2006-09-07  Jim Meyering  <jim@meyering.net>
69880
69881         Fix global typo in last change: use chmod u-w, not chmod u-x.
69882         Spotted by Paul Eggert and Bruce Korb.
69883         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69884         * modules/byteswap, modules/configmake, modules/fcntl:
69885         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69886         * modules/localcharset, modules/netinet_in, modules/poll:
69887         * modules/stdbool, modules/stdint, modules/sys_select:
69888         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69889
69890 2006-09-06  Jim Meyering  <jim@meyering.net>
69891
69892         Make generated files be read-only.
69893         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
69894         Ensure that each generated file is now read-only.
69895         * modules/argz: Likewise.
69896         * modules/arpa_inet: Likewise.
69897         * modules/byteswap: Likewise.
69898         * modules/configmake: Likewise.
69899         * modules/fcntl: Likewise.
69900         * modules/fnmatch: Likewise.
69901         * modules/getopt: Likewise.
69902         * modules/glob: Likewise.
69903         * modules/inttypes: Likewise.
69904         * modules/netinet_in: Likewise.
69905         * modules/poll: Likewise.
69906         * modules/stdbool: Likewise.
69907         * modules/stdint: Likewise.
69908         * modules/sys_select: Likewise.
69909         * modules/sys_socket: Likewise.
69910         * modules/sys_stat: Likewise.
69911         * modules/sysexits: Likewise.
69912         * modules/localcharset: Same as above, but continue using temporary
69913         file named "t-$@" (why different?) rather than the "$@-t" used
69914         everywhere else.
69915
69916         * modules/sysexits (Makefile.am): Replace literal occurrences
69917         of "sysexit.h" more readable, and more consistent, "$@".
69918
69919 2006-09-06  Bruno Haible  <bruno@clisp.org>
69920
69921         * modules/striconv: New file.
69922         * modules/xstriconv: New file.
69923         * MODULES.html.sh (Internationalization functions): Add striconv,
69924         xstriconv.
69925
69926 2006-09-06  Bruno Haible  <bruno@clisp.org>
69927
69928         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
69929         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
69930         not using libtool correctly.
69931
69932 2006-09-06  Bruno Haible  <bruno@clisp.org>
69933
69934         * lib/striconv.h: New file.
69935         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
69936         iconvstring.c.
69937         * lib/xstriconv.h: New file.
69938         * lib/xstriconv.c: New file.
69939
69940 2006-09-06  Bruno Haible  <bruno@clisp.org>
69941
69942         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69943         lib_..._LDFLAGS.
69944
69945 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69946
69947         * lib/argz_.h: Sync from Libtool.
69948
69949         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
69950                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69951
69952         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
69953
69954 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69955
69956         * modules/trim: New file.
69957
69958 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69959
69960         * lib/trim.h: New file.
69961         * lib/trim.c: New file.
69962
69963 2006-09-05  Bruno Haible  <bruno@clisp.org>
69964
69965         * MODULES.html.sh (String handling): Add trim.
69966
69967 2006-09-04  Karl Berry  <karl@gnu.org>
69968
69969         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
69970         until next release.
69971
69972 2006-09-03  Bruno Haible  <bruno@clisp.org>
69973
69974         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
69975         correctly.
69976
69977 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69978
69979         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
69980         not gl_GETLOADAVG.  Omit unneeded semicolons.
69981         Problems reported by Ralf Wildenhues in
69982         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69983         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
69984         at the end, which is the usual gnulib style.
69985
69986         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
69987         of doing all the work ourselves.
69988         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
69989         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
69990
69991 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69992
69993         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
69994         Problem reported by Ralf Wildenhues in
69995         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69996
69997         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
69998         HAVE_STRUCT_STATFS_F_FSTYPENAME.
69999
70000 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70001
70002         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
70003         yesterday's patch by changing test -n to test -z.
70004
70005 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70006
70007         * modules/getloadavg (Files): Add m4/getloadavg.m4.
70008         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
70009         the former is now obsolescent.
70010
70011         * modules/chdir-long (Depends-on): Add fcntl.
70012
70013 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70014
70015         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
70016         obsolescent, and programs should use gnulib instead.
70017         * m4/getloadavg.m4: New file, with contents taken from Autoconf
70018         but with prefixes changed.
70019
70020 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70021
70022         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
70023         or stdbool.h, because they might not exist while configuring.
70024
70025         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
70026         Don't include unistd.h or limits.h; not needed, since chdir-long.h
70027         does that for us.
70028         (O_DIRECTORY): Remove.
70029
70030 2006-08-31  Eric Blake  <ebb9@byu.net>
70031
70032         * gnulib-tool: Don't let emacs change spaces to TAB.
70033
70034 2006-08-31  Bruno Haible  <bruno@clisp.org>
70035
70036         * gnulib-tool: When calling func_import more than once, do it in a
70037         subshell.
70038         Reported by Eric Blake <ebb9@byu.net>.
70039
70040 2006-08-31  Bruno Haible  <bruno@clisp.org>
70041
70042         * gnulib-tool (nl): Remove variable.
70043         (sed_transform_lib_file): Use more robust test for config-h module.
70044         (func_import): Fix typo in 2006-08-25 patch.
70045
70046 2006-08-31  Bruno Haible  <bruno@clisp.org>
70047
70048         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
70049         specified, augment Makefile.am variables instead of assigning them.
70050
70051 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70052
70053         Work around a bug in both the Linux and SunOS 64-bit kernels:
70054         nanosleep mishandles sleeps for longer than 2**31 seconds.
70055         Problem reported by Frank v Waveren in
70056         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70057         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
70058         Check for nanosleep bug.
70059         (LIB_NANOSLEEP): Append clock_gettime library if needed.
70060
70061 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70062
70063         Work around a bug in both the Linux and SunOS 64-bit kernels:
70064         nanosleep mishandles sleeps for longer than 2**31 seconds.
70065         Problem reported by Frank v Waveren in
70066         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70067         * lib/nanosleep.c (BILLION): New constant.
70068         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
70069         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
70070         implementation.
70071
70072 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70073
70074         * modules/nanosleep (Depends-on): Add gettime.
70075
70076 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70077         and Simon Josefsson  <jas@extundo.com>
70078         and Oskar Liljeblad  <oskar@osk.mine.nu>
70079
70080         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
70081         * gnulib-tool (func_import): New license type 'unmodifiable license
70082         text'.
70083         * modules/fdl: Use it.  Longer description.
70084         * module/gpl, module/lgpl: New files.
70085
70086 2006-08-30  Jim Meyering  <jim@meyering.net>
70087
70088         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
70089         shadowing the parameter.
70090
70091 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70092
70093         Sync from Libtool:
70094
70095         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70096
70097         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
70098         sharing with gnulib.  Report by Eric Blake.
70099
70100 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70101
70102         * modules/isapipe: New file.
70103         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
70104
70105 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70106
70107         * modules/configmake (Makefile.am): Add a comment, and omit
70108         the CONFIGMAKE_ prefix from generated macro names.  Suggested
70109         by Bruno Haible.
70110
70111 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70112
70113         * m4/isapipe.m4: New file.
70114
70115 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70116
70117         * lib/isapipe.c, lib/isapipe.h: New files.
70118
70119 2006-08-29  Jim Meyering  <jim@meyering.net>
70120
70121         * modules/configmake (Makefile.am): Make configmake.h depend on
70122         Makefile.  Otherwise, a stale configmake.h could hang around.
70123
70124 2006-08-29  Eric Blake  <ebb9@byu.net>
70125
70126         * lib/error.c (error_at_line, print_errno_message): Match libc, after
70127         resolution of upstream bug 3044.
70128
70129 2006-08-29  Bruno Haible  <bruno@clisp.org>
70130
70131         * modules/localcharset (Depends-on): Add configmake.
70132         (Makefile.am): Remove setting of LIBDIR through DEFS.
70133
70134 2006-08-29  Bruno Haible  <bruno@clisp.org>
70135
70136         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
70137         defined.
70138
70139 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70140
70141         * modules/fcntl: New file.
70142         * modules/chdir-safer (Depends-on): Add fcntl.
70143         * modules/fts: Likewise.
70144         * modules/mkdir-p: Likewise.
70145
70146         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
70147         This undoes the most recent change, since we're now addressing the
70148         problem in a different way.
70149
70150         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
70151         into output, since the output might be called Makefile.am even
70152         if $makefile_name is something different.
70153         (func_import): Use $makefile_am rather than
70154         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
70155         empty.
70156
70157         * modules/inttypes (Files): Add m4/inttypes-h.m4.
70158
70159 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70160
70161         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
70162         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
70163         recent change to stdint.m4, since we're now addressing the problem in a
70164         different way.
70165
70166 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70167
70168         * m4/fcntl_h.m4: New file.
70169
70170 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70171
70172         * lib/fcntl_.h: New file.
70173         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
70174         the fcntl module.
70175         * lib/dirchownmod.c: Likewise.
70176         * lib/fts.c: Likewise.
70177
70178         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
70179         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
70180         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
70181         just before including <inttypes.h>, to avoid circular inclusion.
70182
70183 2006-08-28  Jim Meyering  <jim@meyering.net>
70184
70185         * doc/visibility.texi: Actually read and correct the grammar of the
70186         sentence affected by yesterday's change.
70187
70188 2006-08-28  Eric Blake  <ebb9@byu.net>
70189
70190         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
70191         needs wrapper.
70192
70193 2006-08-28  Eric Blake  <ebb9@byu.net>
70194
70195         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
70196
70197 2006-08-28  Eric Blake  <ebb9@byu.net>
70198
70199         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
70200
70201 2006-08-28  Bruno Haible  <bruno@clisp.org>
70202
70203         * modules/c-strstr: New file, from GNU gettext.
70204         * MODULES.html.sh (String handling): Add c-strstr.
70205
70206 2006-08-28  Bruno Haible  <bruno@clisp.org>
70207
70208         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
70209         macros.
70210         Reported by Eric Blake.
70211
70212 2006-08-28  Bruno Haible  <bruno@clisp.org>
70213
70214         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
70215         (VASNPRINTF): Return a string of length > INT_MAX without failing.
70216         * lib/vasprintf.c: Include errno.h, limits.h.
70217         (EOVERFLOW): New fallback definition.
70218         (vasprintf): Test here whether the string length is > INT_MAX.
70219         * lib/vsnprintf.c: Include errno.h, limits.h.
70220         (EOVERFLOW): New fallback definition.
70221         (vsnprintf): Fix bug when generated string was too long for the buffer.
70222         Test here whether the string length is > INT_MAX.
70223
70224 2006-08-28  Bruno Haible  <bruno@clisp.org>
70225
70226         * lib/inttypes_.h (SCNX*): Remove definitions.
70227         Reported by Eric Blake.
70228
70229 2006-08-28  Bruno Haible  <bruno@clisp.org>
70230
70231         * lib/c-strstr.h: New file, from GNU gettext.
70232         * lib/c-strstr.c: New file, from GNU gettext.
70233
70234 2006-08-28  Bruno Haible  <bruno@clisp.org>
70235
70236         * gnulib-tool: Reorder some statements.
70237
70238 2006-08-28  Bruno Haible  <bruno@clisp.org>
70239
70240         * gnulib-tool: New option --makefile-name.
70241         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
70242         $makefile_name.
70243         (func_import): Write $makefile_name to the cache file, and read it from
70244         there unless explicitly specified. Use $makefile_name as file name
70245         instead of Makefile.am. Adjust the recommendations accordingly.
70246
70247 2006-08-28  Bruno Haible  <bruno@clisp.org>
70248
70249         * gnulib-tool (func_verify_module): Check against misapplying patch.
70250
70251 2006-08-28  Bruno Haible  <bruno@clisp.org>
70252
70253         * gnulib-tool (func_relativize, func_relconcat): New functions.
70254         Give an error if --local-dir is given with --update.
70255         Remove trailing slashes from $local_gnulib_dir.
70256         (func_import): Store the relativized $local_gnulib_dir in
70257         gnulib-cache.m4, and read it from there if not specified explicitly.
70258
70259 2006-08-28  Bruno Haible  <bruno@clisp.org>
70260
70261         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
70262         is the current directory. Respect also $local_gnulib_dir.
70263
70264 2006-08-28  Bruno Haible  <bruno@clisp.org>
70265             Simon Josefsson  <jas@extundo.com>
70266
70267         BeOS portability.
70268         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
70269
70270 2006-08-27  Jim Meyering  <jim@meyering.net>
70271
70272         * doc/visibility.texi: Remove duplicate word: "pointer".
70273
70274 2006-08-26  Bruno Haible  <bruno@clisp.org>
70275
70276         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
70277         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
70278         (Makefile.am): Create inttypes.h from inttypes_.h.
70279         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
70280
70281         * modules/imaxabs: New file.
70282
70283         * modules/imaxdiv: New file.
70284
70285 2006-08-26  Bruno Haible  <bruno@clisp.org>
70286
70287         * m4/inttypes.m4: New file.
70288         * m4/_inttypes_h.m4: Remove file.
70289         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
70290         PRI_MACROS_BROKEN.
70291         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
70292
70293         * m4/imaxabs.m4: New file.
70294
70295         * m4/imaxdiv.m4: New file.
70296
70297 2006-08-26  Bruno Haible  <bruno@clisp.org>
70298
70299         * lib/inttypes_.h: New file.
70300         * lib/inttypes.h: Remove file.
70301         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
70302
70303         * lib/imaxabs.c: New file.
70304
70305         * lib/imaxdiv.c: New file.
70306
70307 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70308
70309         New config-h module, so that "make" output needn't be cluttered
70310         by -DHAVE_CONFIG_H.
70311         * MODULES.html.sh (Support for building libraries and executables):
70312         Add config-h.
70313         * modules/config-h: New file.
70314         * gnulib-tool (nl, sed_transform_lib_file): New vars.
70315         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
70316         the config-h module is used.
70317
70318         New configmake module, so that "make" output needn't be cluttered
70319         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
70320         * MODULES.html.sh (Support for building libraries and executables):
70321         Add configmake.
70322         * modules/configmake: New file.
70323
70324 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70325
70326         * m4/config-h.m4: New file.
70327
70328 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70329
70330         * config/srclist.txt: Add elisp-comp.
70331
70332 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70333
70334         * MODULES.html.sh (Support for building libraries and executables):
70335         Add elisp-comp.
70336         * build-aux/elisp-comp: New file.
70337         * modules/elisp-comp: New file.
70338
70339 2006-08-24  Bruno Haible  <bruno@clisp.org>
70340
70341         * gnulib-tool (func_create_testdir): Use non-default values of
70342         sourcebase and m4base.
70343
70344 2006-08-24  Bruno Haible  <bruno@clisp.org>
70345
70346         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
70347         HTML structure.
70348
70349 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70350
70351         * modules/openat (Depends-on): Add lchown.
70352
70353 2006-08-23  Bruno Haible  <bruno@clisp.org>
70354
70355         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
70356         of gl_LOCK_EARLY instead of gl_LOCK.
70357
70358 2006-08-23  Bruno Haible  <bruno@clisp.org>
70359
70360         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
70361         on OSF/1 to no.
70362         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
70363
70364 2006-08-23  Bruno Haible  <bruno@clisp.org>
70365
70366         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
70367         as unusable.
70368
70369         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
70370         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
70371         (gl_LOCK): New macro.
70372
70373 2006-08-22  Simon Josefsson  <jas@extundo.com>
70374
70375         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
70376         to md5 module.
70377
70378 2006-08-22  Simon Josefsson  <jas@extundo.com>
70379
70380         * MODULES.html.sh: Add "Support for maintaining and release
70381         projects".
70382
70383         * build-aux/gnupload: New file, from coreutils.
70384
70385 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70386
70387         Avoid the need for AC_LIBSOURCES in m4 macros.
70388         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
70389         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
70390         * modules/check-version (EXTRA_DIST): Add check-version.h.
70391         * modules/crc (EXTRA_DIST): Add crc.h.
70392         * modules/des (EXTRA_DIST): Add des.h.
70393         * modules/gc (EXTRA_DIST): Add gc.h.
70394         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
70395         * modules/getline (EXTRA_DIST): Add getline.h.
70396         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
70397         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
70398         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
70399         * modules/md2 (EXTRA_DIST): Add md2.h.
70400         * modules/md4 (EXTRA_DIST): Add md4.h.
70401         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
70402         * modules/read-file (EXTRA_DIST): Add read-file.h.
70403         * modules/readline (EXTRA_DIST): Add readline.h.
70404         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
70405         rijndael-api-fst.h.
70406
70407 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70408
70409         * m4/rijndael.m4 (gl_ARCFOUR):
70410         * m4/arctwo.m4 (gl_ARCTWO):
70411         * m4/check-version.m4 (gl_CHECK_VERSION):
70412         * m4/crc.m4 (gl_CRC):
70413         * m4/des.m4 (gl_DES):
70414         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
70415         * m4/gc.m4 (gl_GC):
70416         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
70417         * m4/getline.m4 (gl_FUNC_GETLINE):
70418         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
70419         * m4/hmac-md5.m4 (gl_HMAC_MD5):
70420         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
70421         * m4/md2.m4 (gl_MD2):
70422         * m4/md4.m4 (gl_MD4):
70423         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
70424         * m4/read-file.m4 (gl_FUNC_READ_FILE):
70425         * m4/readline.m4 (gl_FUNC_READLINE):
70426         * m4/rijndael.m4 (gl_RIJNDAEL):
70427         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70428         to get the necessary .h files and whatnot.
70429
70430 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70431
70432         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
70433         gnulib rather than the other way around.
70434         * config/srclistvars.sh (COREUTILS): Remove.
70435
70436 2006-08-22  Jim Meyering  <jim@meyering.net>
70437
70438         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
70439
70440         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
70441
70442 2006-08-22  Eric Blake  <ebb9@byu.net>
70443
70444         * modules/regexprops-generic: New file.
70445         * MODULES.html.sh (Support for building documentation): List it.
70446
70447 2006-08-22  Eric Blake  <ebb9@byu.net>
70448
70449         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
70450         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
70451         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
70452         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
70453
70454 2006-08-22  Bruno Haible  <bruno@clisp.org>
70455
70456         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
70457         and lib_LTLIBRARIES like the other lib_* variables.
70458
70459 2006-08-22  Bruno Haible  <bruno@clisp.org>
70460
70461         * build-aux/x-to-1.in: New file, from GNU gettext.
70462
70463 2006-08-22  Bruno Haible  <bruno@clisp.org>
70464
70465         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
70466         <utmpx.h> exists.
70467
70468 2006-08-22  Bruno Haible  <bruno@clisp.org>
70469
70470         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
70471         <utmpx.h> exists.
70472
70473 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70474
70475         BeOS portability.
70476         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
70477         exist.
70478         Problem reported by Bruno Haible.
70479
70480 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70481
70482         Avoid the need for AC_LIBSOURCES in m4 macros.
70483         * modules/acl (EXTRA_DIST): Add acl.h.
70484         * modules/argmatch (Files): Add m4/argmatch.m4.
70485         (configure.ac): Add gl_ARGMATCH.
70486         (EXTRA_DIST): Renamed from lib_SOURCES, for
70487         consistency with the other modules.  Remove argmatch.c.
70488         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
70489         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
70490         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
70491         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
70492         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
70493         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
70494         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
70495         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
70496         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
70497         * modules/closeout (EXTRA_DIST): Add closeout.h.
70498         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
70499         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
70500         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
70501         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
70502         dirname.h; remove basename.c and stripslash.c.
70503         * modules/exclude (EXTRA_DIST): Add exclude.h.
70504         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
70505         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
70506         * modules/file-type (EXTRA_DIST): Add file-type.h.
70507         * modules/filemode (EXTRA_DIST): Add filemode.h.
70508         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
70509         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70510         * modules/fpending (EXTRA_DIST): Add __fpending.h.
70511         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
70512         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
70513         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
70514         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
70515         * modules/getdate (EXTRA_DIST): Add getdate.c.
70516         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
70517         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
70518         * modules/getpass (EXTRA_DIST): Add getpass.h.
70519         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
70520         * modules/group-member (EXTRA_DIST): Add group-member.h.
70521         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
70522         * modules/hash (EXTRA_DIST): Add hash.h.
70523         * modules/human (EXTRA_DIST): Add human.h.
70524         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
70525         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
70526         * modules/lchown (EXTRA_DIST): Add lchown.h.
70527         * modules/long-options (EXTRA_DIST): Add long-options.h.
70528         * modules/lstat (EXTRA_DIST): Add lstat.h.
70529         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
70530         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
70531         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
70532         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
70533         * modules/memxor (EXTRA_DIST): Add memxor.h.
70534         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
70535         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
70536         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
70537         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
70538         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
70539         * modules/physmem (EXTRA_DIST): Add physmem.h.
70540         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
70541         * modules/posixver (EXTRA_DIST): Add posixver.h.
70542         * modules/quote (EXTRA_DIST): Add quote.h.
70543         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
70544         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
70545         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
70546         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
70547         regex_internal.h regexec.c.
70548         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
70549         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
70550         * modules/same (EXTRA_DIST): Add same.h.
70551         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
70552         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
70553         * modules/savedir (EXTRA_DIST): Add savedir.h.
70554         * modules/sha1 (EXTRA_DIST): Add sha1.h.
70555         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
70556         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
70557         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
70558         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
70559         * modules/strdup (EXTRA_DIST): Add strdup.h.
70560         * modules/strftime (EXTRA_DIST): Add strftime.h.
70561         * modules/strndup (EXTRA_DIST): Add strndup.h.
70562         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
70563         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
70564         * modules/time_r (EXTRA_DIST): Add time_r.h.
70565         * modules/timespec (EXTRA_DIST): Add timespec.h.
70566         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70567         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
70568         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
70569         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
70570         * modules/userspec (EXTRA_DIST): Add userspec.h.
70571         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
70572         * modules/utimens (EXTRA_DIST): Add utimens.h.
70573         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
70574         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
70575         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
70576         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
70577         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
70578         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
70579         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
70580         * modules/yesno (EXTRA_DIST): Add yesno.h.
70581
70582 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70583
70584         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
70585
70586         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
70587         * m4/dev-ino.m4, same-inode.m4: Remove.
70588
70589         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
70590         * m4/acl.m4 (AC_FUNC_ACL):
70591         * m4/backupfile.m4 (gl_BACKUPFILE):
70592         * m4/c-strtod.m4 (gl_C99_STRTOLD):
70593         * m4/canon-host.m4 (gl_CANON_HOST):
70594         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70595         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
70596         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
70597         * m4/cloexec.m4 (gl_CLOEXEC):
70598         * m4/close-stream.m4 (gl_CLOSE_STREAM):
70599         * m4/closeout.m4 (gl_CLOSEOUT):
70600         * m4/dirfd.m4 (gl_FUNC_DIRFD):
70601         * m4/dirname.m4 (gl_DIRNAME):
70602         * m4/exclude.m4 (gl_EXCLUDE):
70603         * m4/exitfail.m4 (gl_EXITFAIL):
70604         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
70605         * m4/file-type.m4 (gl_FILE_TYPE):
70606         * m4/filemode.m4 (gl_FILEMODE):
70607         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
70608         * m4/fpending.m4 (gl_FUNC_FPENDING):
70609         * m4/fprintftime.m4 (gl_FPRINTFTIME):
70610         * m4/fts.m4 (gl_FUNC_FTS):
70611         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
70612         * m4/getdate.m4 (gl_GETDATE):
70613         * m4/gethrxtime.m4 (gl_GETHRXTIME):
70614         * m4/getpagesize.m4 (gl_GETPAGESIZE):
70615         * m4/getpass.m4 (gl_FUNC_GETPASS):
70616         * m4/gettime.m4 (gl_GETTIME):
70617         * m4/getugroups.m4 (gl_GETUGROUPS):
70618         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
70619         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
70620         * m4/hard-locale.m4 (gl_HARD_LOCALE):
70621         * m4/hash.m4 (gl_HASH):
70622         * m4/idcache.m4 (gl_IDCACHE):
70623         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
70624         * m4/lchown.m4 (gl_FUNC_LCHOWN):
70625         * m4/long-options.m4 (gl_LONG_OPTIONS):
70626         * m4/lstat.m4 (gl_FUNC_LSTAT):
70627         * m4/md5.m4 (gl_MD5):
70628         * m4/memcasecmp.m4 (gl_MEMCASECMP):
70629         * m4/memcoll.m4 (gl_MEMCOLL):
70630         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
70631         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
70632         * m4/memxor.m4 (gl_MEMXOR):
70633         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
70634         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
70635         * m4/modechange.m4 (gl_MODECHANGE):
70636         * m4/mountlist.m4 (gl_MOUNTLIST):
70637         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70638         * m4/openat.m4 (gl_FUNC_OPENAT):
70639         * m4/pathmax.m4 (gl_PATHMAX):
70640         * m4/physmem.m4 (gl_PHYSMEM):
70641         * m4/posixtm.m4 (gl_POSIXTM):
70642         * m4/posixver.m4 (gl_POSIXVER):
70643         * m4/quote.m4 (gl_QUOTE):
70644         * m4/quotearg.m4 (gl_QUOTEARG):
70645         * m4/readtokens.m4 (gl_READTOKENS):
70646         * m4/readutmp.m4 (gl_READUTMP):
70647         * m4/regex.m4 (gl_REGEX):
70648         * m4/safe-read.m4 (gl_SAFE_READ):
70649         * m4/safe-write.m4 (gl_SAFE_WRITE):
70650         * m4/same.m4 (gl_SAME):
70651         * m4/save-cwd.m4 (gl_SAVE_CWD):
70652         * m4/savedir.m4 (gl_SAVEDIR):
70653         * m4/settime.m4 (gl_SETTIME):
70654         * m4/sha1.m4 (gl_SHA1):
70655         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
70656         * m4/stat-macros.m4 (gl_STAT_MACROS):
70657         * m4/stat-time.m4 (gl_STAT_TIME):
70658         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
70659         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
70660         * m4/strdup.m4 (gl_FUNC_STRDUP):
70661         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
70662         * m4/strndup.m4 (gl_FUNC_STRNDUP):
70663         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
70664         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
70665         * m4/time_r.m4 (gl_TIME_R):
70666         * m4/timespec.m4 (gl_TIMESPEC):
70667         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
70668         * m4/unlinkdir.m4 (gl_UNLINKDIR):
70669         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
70670         * m4/userspec.m4 (gl_USERSPEC):
70671         * m4/utimecmp.m4 (gl_UTIMECMP):
70672         * m4/utimens.m4 (gl_UTIMENS):
70673         * m4/xalloc.m4 (gl_XALLOC):
70674         * m4/xgetcwd.m4 (gl_XGETCWD):
70675         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
70676         * m4/xreadlink.m4 (gl_XREADLINK):
70677         * m4/xstrtod.m4 (gl_XSTRTOD):
70678         * m4/yesno.m4 (gl_YESNO):
70679         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70680         to get the necessary .h files and whatnot.
70681
70682 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
70683             Bruno Haible  <bruno@clisp.org>
70684
70685         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
70686         /bin/sh understanding of '!' conditional negation.
70687
70688 2006-08-21  Jim Meyering  <jim@meyering.net>
70689
70690         * modules/openat (Depends-on): Really alphabetize.
70691
70692         * modules/acl (Depends-on): Add error and quote.
70693
70694         * check-module (find_included_lib_files): Add at-func.c to the
70695         ok-to-include-more-than-once white list.
70696
70697         * modules/openat (Depends-on): Add lstat.  Alphabetize.
70698
70699 2006-08-21  Bruno Haible  <bruno@clisp.org>
70700
70701         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70702         Emit a pkgdata_DATA variable only if some snippets add contents to it.
70703         Reported by Martin Lambers <marlam@marlam.de>.
70704
70705 2006-08-21  Bruno Haible  <bruno@clisp.org>
70706
70707         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
70708         specify an installation location, don't emit a noinst_LIBRARIES or
70709         noinst_LTLIBRARIES assignment.
70710
70711 2006-08-21  Bruno Haible  <bruno@clisp.org>
70712
70713         BeOS portability.
70714         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
70715         BeOS has mbrtowc() but no <wctype.h>.
70716
70717 2006-08-21  Bruno Haible  <bruno@clisp.org>
70718
70719         BeOS portability.
70720         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
70721         exist.
70722
70723 2006-08-21  Bruno Haible  <bruno@clisp.org>
70724
70725         BeOS portability.
70726         * lib/mbchar.h: Include <wctype.h> only if it exists.
70727
70728 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70729
70730         Remove files that are no longer needed by their respective modules.
70731         * m4/obstack.m4: Remove.
70732         * m4/strerror_r.m4: Remove.
70733         * m4/uint32_t.m4: Remove.
70734         * m4/uintptr_t.m4: Remove.
70735         * m4/ullong_max.m4: Remove.
70736         * m4/xstrtoimax.m4: Remove.
70737         * m4/xstrtoumax.m4: Remove.
70738
70739         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
70740         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
70741         dependencies now capture this.
70742
70743         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
70744         Do not use AC_LIBSOURCES, since gnulib modules now do this.
70745         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
70746         * m4/human.m4 (gl_HUMAN): Likewise.
70747         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
70748         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
70749
70750         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
70751
70752         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
70753         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
70754         stdint.
70755         * m4/human.m4 (gl_HUMAN): Likewise.
70756         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
70757         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
70758         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70759         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70760         * m4/xstrtol (gl_XSTRTOL): Likewise.
70761
70762         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
70763         AC_TYPE_LONG_LONG_INT.
70764         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70765         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
70766         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
70767         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70768
70769         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
70770         on stdbool.
70771
70772         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
70773         (gl_PREREQ_XSTRTOUL): Remove.
70774
70775         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
70776
70777         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
70778         mode.
70779
70780 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70781
70782         Add and change modules to make it easier for coreutils to use
70783         gnulib-tool.
70784         * modules/backupfile (Files): Remove m4/d-ino.m4.
70785         (Depends-on): Add d-ino.
70786         * modules/cycle-check (Depends-on): Add stdint.
70787         (lib_SOURCES): Add cycle-check.h.
70788         * modules/d-ino: New module.
70789         * modules/d-type: New module.
70790         * modules/error (Files): Remove m4/strerror_r.m4.
70791         * modules/filemode (Files): Add m4/st_dm_mode.m4.
70792         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70793         m4/inttypes_h.m4, m4/uintmax_t.m4.
70794         (Depends-on): Add stdint.
70795         (lib_SOURCES): Add fsusage.h.
70796         * modules/getcwd (Files): Remove d-ino.m4.
70797         (Depends-on): Add d-ino.
70798         * modules/getndelim2 (Depends-on): Add stdint.
70799         * modules/glob (Files): Remove m4/d-type.m4.
70800         (Depends-on): Add d-type.
70801         * modules/host-os: New module.
70802         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
70803         m4/inttypes_h.m4, m4/uintmax_t.m4.
70804         * Depends-on: Add stdint.
70805         (lib_SOURCES): Add human.h.
70806         * modules/inttostr (Files): Remove m4/intmax_t.m4,
70807         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
70808         m4/uintmax_t.m4, m4/ulonglong.m4.
70809         (Depends-on): Add stdint.
70810         (EXTRA_DIST): Add inttostr.h.
70811         * modules/lchmod: New module.
70812         * modules/link-follow: New module.
70813         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
70814         (Depends-on): Add lchmod.
70815         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
70816         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
70817         (Depends-on): Add stdint.
70818         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
70819         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
70820         (Depends-on): Add stdint.
70821         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
70822         * modules/perl: New module.
70823         * modules/regex (Depends-on): Add stdint.
70824         * modules/rmdir-errno: New module.
70825         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70826         m4/intmax_t.m4.
70827         (Depends-on): Add stdint.
70828         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70829         m4/uintmax_t.m4.
70830         (Depends-on): Add stdint.
70831         * modules/unlink-busy: New module.
70832         * modules/utimecmp (Depends-on): Add stdint.
70833         * modules/uptime: New module.
70834         * modules/winsz-ioctl: New module.
70835         * modules/winsz-termios: New module.
70836         * modules/xnanosleep (Depends-on): Add nanosleep.
70837         * modules/ullong_max: Remove.
70838         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
70839         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
70840         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
70841         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
70842         (Depends-on): Add inttypes.
70843         (lib_SOURCES): Add xstrtol.h.
70844         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
70845         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
70846         * MODULES.html.sh: Move 'assert' into the assert section.
70847         Move 'dummy' into the linking section.
70848         Remove ullong_max.
70849         Add section for compatibility checks for POSIX:2001 functions,
70850         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
70851         winsz-ioctl, and winsz-termios into it.
70852         Add lchmod.
70853         Add top-level Misc section and put host-os, perl, and uptime
70854         into it.
70855
70856 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70857
70858         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
70859         now assume the stdint module.  Do not include inttypes.h.
70860         * lib/fsusage.h: Likewise.
70861         * lib/getndelim2.c: Likewise.
70862         * lib/human.h: Likewise.
70863         * lib/inttostr.h: Likewise.
70864         * lib/obstack.c: Likewise.
70865         * lib/regex_internal.h: Likewise.
70866         * lib/tempname.c: Likewise.
70867         * lib/utimecmp.c: Likewise.
70868         * lib/xstrtol.h: Likewise.
70869
70870         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
70871
70872         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
70873         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
70874         * lib/xtime.h: Likewise.
70875
70876 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70877
70878         * modules/openat (Files): Add lib/fchmodat.c.
70879         Fixes problem reported by Jay Youngman.
70880
70881 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70882
70883         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
70884         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
70885
70886 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
70887             Bruno Haible  <bruno@clisp.org>
70888
70889         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
70890         and is a script that invokes bison. Tighten the code. Add comments.
70891
70892 2006-08-18  Jim Meyering  <jim@meyering.net>
70893
70894         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
70895         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
70896         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
70897         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
70898
70899 2006-08-18  Bruno Haible  <bruno@clisp.org>
70900
70901         * modules/bison-i18n: New file.
70902         * MODULES.html.sh (Internationalization functions): Add it.
70903
70904 2006-08-18  Bruno Haible  <bruno@clisp.org>
70905
70906         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
70907         sys/statvfs.h. When getmntinfo was found, check its declaration and
70908         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
70909
70910 2006-08-18  Bruno Haible  <bruno@clisp.org>
70911
70912         * m4/bison-i18n.m4: New file, from bison.
70913
70914 2006-08-18  Bruno Haible  <bruno@clisp.org>
70915
70916         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
70917         (ME_DUMMY): Treat "kernfs" as a dummy.
70918         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
70919
70920 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70921
70922         Update from coreutils.
70923
70924         2006-08-15  Jim Meyering  <jim@meyering.net>
70925
70926         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
70927
70928         2006-01-17  Jim Meyering  <jim@meyering.net>
70929
70930         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
70931
70932         2006-01-11  Jim Meyering  <jim@meyering.net>
70933
70934         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
70935         Check for the lchmod function.
70936
70937 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70938
70939         Update from coreutils.
70940
70941         * lib/__fpending.h: Add copyright notice.
70942         * lib/fprintftime.h: Likewise.
70943         * lib/savedir.c: Use (C) in copyright notice.
70944         * lib/savedir.h: Likewise.
70945
70946         2006-08-15  Jim Meyering  <jim@meyering.net>
70947
70948         * lib/at-func.c: New file, with the logic of all emulated at-functions.
70949         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
70950         in support of the EXPECTED_ERRNO macro.
70951         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
70952         definitions.  Instead, define the appropriate symbols and include
70953         "at-func.c".
70954         * lib/mkdirat.c (mkdirat): Likewise.
70955         * lib/fchmodat.c (fchmodat): Likewise.
70956         (ENOSYS): Remove definition.
70957         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
70958         it.  Don't include "unistd--.h" -- it wasn't ever used.
70959
70960         2006-01-17  Jim Meyering  <jim@meyering.net>
70961
70962         Rewrite fts.c not to change the current working directory,
70963         by using openat, fstatat, fdopendir, etc..
70964
70965         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
70966         (HAVE_OPENAT_SUPPORT): Define.
70967         [_LIBC] (fchdir): Don't undef or define; no longer used.
70968         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
70969         Now, this `function' always succeeds, and consumes its file descriptor
70970         parameter -- so callers must not close such FDs.  Update callers.
70971         (diropen_fd, opendirat, cwd_advance_fd): New functions.
70972         (diropen): Add parameter, SP.  Adjust all callers.
70973         Implement using diropen_fd, rather than open.
70974         (fts_open): Initialize new member, fts_cwd_fd.
70975         Remove fts_rft-setting code.
70976         (fts_close): Close fts_cwd_fd, if necessary.
70977         (__opendir2): Define in terms of opendir or opendirat,
70978         depending on whether the FST_NOCHDIR flag is set.
70979         (fts_build): Since fts_safe_changedir consumes its FD, and since
70980         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
70981         and close the dup'd file descriptor upon failure.
70982         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
70983         (fts_safe_changedir): Tweak semantics to reflect that this function
70984         now calls cwd_advance_fd and hence consumes its FD argument.
70985         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
70986         [struct FTS] (fts_rft): Remove now-unused member.
70987         [struct FTS] (fts_cycle.state): Improve comment.
70988
70989         * lib/openat.c (openat_needs_fchdir): New function.
70990         * lib/openat.h (openat_needs_fchdir): Declare it.
70991
70992 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70993
70994         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
70995         Problem and fix reported by Pádraig Brady in
70996         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
70997
70998 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70999
71000         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
71001
71002 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71003
71004         * lib/memcoll.c (memcoll): Optimize for the common case where the
71005         arguments are bytewise equal.
71006
71007 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71008
71009         * doc/regexprops-generic.texi: Add a copyright notice.
71010
71011 2006-08-15  Bruno Haible  <bruno@clisp.org>
71012
71013         * modules/tmpdir (License): Change to LGPL.
71014
71015 2006-08-15  Bruno Haible  <bruno@clisp.org>
71016
71017         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
71018         module.
71019
71020 2006-08-14  Simon Josefsson  <jas@extundo.com>
71021
71022         * config/srclist.txt: Add gnupload.
71023
71024 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71025
71026         Change copyright notice from LGPL 2 to GPL 2, since that's the
71027         standard form used in the gnulib repository.
71028         * tests/test-lock.c: Likewise.
71029         * tests/test-stdint.c: Likewise.
71030         * tests/test-tls.c: Likewise.
71031
71032         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
71033         prelude-manager.  User shorter URLs for GNU projects, without '?'.
71034         Add copyright notice.
71035
71036         * check-module: Add copyright notice.  Output a copyright
71037         notice if "--version" is specified.
71038         * modules/COPYING: New file.
71039         * tests/test-getaddrinfo.c: Add copyright notice.
71040         * tests/test-verify.c: Likewise.
71041
71042 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71043
71044         Change copyright notice from LGPL 2 to GPL 2, since that's the
71045         standard form used in the gnulib repository.
71046         * lib/lock.c: LGPL -> GPL.
71047         * lib/lock.h: Likewise.
71048         * lib/strnlen1.c: Likewise.
71049         * lib/strnlen1.h: Likewise.
71050         * lib/tls.c: Likewise.
71051         * lib/tls.h: Likewise.
71052         * lib/tmpdir.c: Likewise.
71053
71054         * lib/TODO: Remove; this belongs only in coreutils.
71055
71056 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71057
71058         Add copyright notices to long-enough files that lack them, since
71059         otherwise the files aren't clearly free.  Use the same notice that
71060         getdate.texi already uses.
71061         * doc/alloca-opt.texi: Add copyright notice.
71062         * doc/alloca.texi: Likewise.
71063         * doc/ctime.texi: Likewise.
71064         * doc/functions.texi: Likewise.
71065         * doc/gcd.texi: Likewise.
71066         * doc/gnulib-tool.texi: Likewise.
71067         * doc/inet_ntoa.texi: Likewise.
71068         * doc/visibility.texi: Likewise.
71069
71070         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
71071         * doc/quote.texi: Add copyright notice.
71072
71073         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
71074         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
71075         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
71076         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
71077         is now obsolete, and give a pointer to the Sun list.
71078         Add copyright notice.
71079
71080 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71081
71082         * config/srclistvars.sh: Add copyright notice.
71083
71084 2006-08-14  Eric Blake  <ebb9@byu.net>
71085
71086         Import the following change from libc:
71087
71088         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
71089
71090         Upstream bug 2997.
71091         * lib/misc/error.c: Add space between program name and message if file
71092         name is missing.
71093
71094 2006-08-12  Karl Berry  <karl@gnu.org>
71095
71096         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
71097         remove, these originate in gnulib now.
71098
71099 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71100
71101         * doc/Makefile (standards.info standards.html standards.dvi):
71102         Also depend on make-stds.texi.
71103
71104 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71105
71106         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
71107         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
71108
71109         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
71110         in wchar_t.  Problem reported by Eric Blake.
71111
71112         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
71113         LEN is smaller than SIZE.  Suggested by Bruno Haible.
71114         Also, help the compiler to keep LEN in a register.
71115
71116 2006-08-11  Eric Blake  <ebb9@byu.net>
71117
71118         * users.txt: Sort.  Add tar.
71119
71120 2006-08-11  Bruno Haible  <bruno@clisp.org>
71121
71122         * users.txt: New file.
71123
71124 2006-08-11  Bruno Haible  <bruno@clisp.org>
71125
71126         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
71127         before <wchar.h>. Needed for OSF/1 and BSD/OS.
71128
71129 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71130
71131         * modules/snprintf (Depends-on): Remove minmax.
71132         (Maintainer): Add self and Bruno.
71133
71134 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71135
71136         * lib/.cppi-disable: Add snprintf.h, socket_.h.
71137         * lib/snprintf.c: Include <errno.h> and <limits.h>.
71138         (EOVERFLOW): Define if the system does not.
71139         Do not include "minmax.h"; it wasn't used.
71140         (snprintf): Don't assume size_t promotes to an unsigned type.
71141         Fix bug when generated string was too long for the buffer: the
71142         buffer's contents are supposed to be the initial prefix of the
71143         output.  Don't assume vasnprintf returns EOVERFLOW if the size
71144         exceeds INT_MAX; do the check ourselves.
71145
71146         Import the following changes from libc:
71147
71148         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
71149
71150         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
71151         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
71152         set wc to the byte which couldn't be converted.
71153         (re_string_reconstruct): Don't clear valid_raw_len before calling
71154         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
71155         tip_context using re_string_context_at.
71156
71157         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
71158
71159         * lib/posix/regex.h: g++ still cannot handled [restrict].
71160
71161         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
71162
71163         * lib/posix/regex.h: Remove special handling for VMS.
71164
71165 2006-08-10  Jim Meyering  <jim@meyering.net>
71166
71167         * modules/same-inode: New module.
71168         * modules/dev-ino: New module.
71169         * modules/cycle-check: Depend on these modules, rather than simply
71170         including their .h files.
71171         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
71172         required via m4/cycle-check.m4.
71173         * modules/same: Depend on new same-inode module, rather than
71174         including same-inode.h.
71175         * modules/chdir-safer: New file.
71176
71177         * modules/chown (Depends-on): Add stat-macros.
71178
71179 2006-08-10  Jim Meyering  <jim@meyering.net>
71180
71181         * m4/cycle-check.m4: New file.
71182         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
71183         * m4/dev-ino.m4, m4/same-inode.m4: New files.
71184
71185 2006-08-10  Eric Blake  <ebb9@byu.net>
71186
71187         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
71188         in from original proposal.
71189
71190 2006-08-10  Eric Blake  <ebb9@byu.net>
71191         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71192
71193         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
71194         namespace.
71195
71196 2006-08-10  Bruno Haible  <bruno@clisp.org>
71197
71198         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
71199         as well.
71200
71201 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71202
71203         Sync from coreutils.
71204
71205         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
71206
71207         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
71208         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
71209
71210 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71211
71212         * modules/restrict: Remove; no longer needed now that we assume
71213         Autoconf 2.59 or later.
71214         * MODULES.html.sh: Remove 'restrict'.
71215         * modules/argp (Depends-on): Remove 'restrict'.
71216         * modules/base64 (Depends-on): Likewise.
71217         * modules/gc (Depends-on): Likewise.
71218         * modules/getaddrinfo (Depends-on): Likewise.
71219         * modules/glob (Depends-on): Likewise.
71220         * modules/inet_ntop (Depends-on): Likewise.
71221         * modules/inet_pton (Depends-on): Likewise.
71222         * modules/memxor (Depends-on): Likewise.
71223         * modules/regex (Depends-on): Likewise.
71224         * modules/strtok_r (Depends-on): Likewise.
71225         * modules/time_r (Depends-on): Likewise.
71226
71227 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71228
71229         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
71230         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
71231         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71232         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
71233         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
71234         * m4/memxor.m4 (gl_MEMXOR): Likewise.
71235         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
71236         gl_C_RESTRICT replaced by AC_C_RESTRICT.
71237
71238         Merge from coreutils.
71239         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
71240         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
71241         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71242         * m4/time_r.m4 (gl_TIME_R): Likewise.
71243
71244 2006-08-09  Karl Berry  <karl@gnu.org>
71245
71246         * config/srclist.txt: no more gettext-tools, per Bruno.
71247
71248 2006-08-08  Eric Blake  <ebb9@byu.net>
71249
71250         * modules/verror: New module.
71251         * MODULES.html.sh: Document it.
71252
71253 2006-08-08  Eric Blake  <ebb9@byu.net>
71254
71255         * lib/verror.h, lib/verror.c: New files.
71256
71257 2006-08-08  Eric Blake  <ebb9@byu.net>
71258
71259         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
71260         verror_at_line output complies with GNU Coding Standards even when
71261         file is NULL.
71262
71263 2006-08-07  Bruno Haible  <bruno@clisp.org>
71264
71265         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
71266         versions of AIX.
71267         Reported by Ralf Wildenhues.
71268
71269 2006-08-07  Bruno Haible  <bruno@clisp.org>
71270
71271         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
71272         in an AC_DEFUN. Needed so that the autoconf snippets can use
71273         AC_REQUIRE.
71274
71275 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71276
71277         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71278         Initialize pkgdata_DATA.
71279         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
71280         overriding it.
71281
71282 2006-08-06  Eric Blake  <ebb9@byu.net>
71283
71284         * lib/error.h: Fold in some upstream changes from glibc.
71285         * lib/error.c: Likewise.
71286
71287 2006-08-04  Bruno Haible  <bruno@clisp.org>
71288
71289         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71290         Make the mostlyclean-local rule depend on mostlyclean-generic.
71291         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
71292
71293 2006-07-31  Bruno Haible  <bruno@clisp.org>
71294
71295         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
71296         <stdlib.h>, <string.h>.
71297
71298 2006-07-30  Bruno Haible  <bruno@clisp.org>
71299
71300         * modules/readlink (License): Change to LGPL.
71301
71302 2006-07-30  Bruno Haible  <bruno@clisp.org>
71303
71304         * modules/javaversion (Makefile.am): Distribute javaversion.java and
71305         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
71306         set PKGDATADIR to point to it.
71307
71308 2006-07-30  Bruno Haible  <bruno@clisp.org>
71309
71310         * modules/csharpexec (configure.ac): Comment out macro invocation.
71311         * modules/javaexec (configure.ac): Likewise.
71312         * modules/javacomp-script (configure.ac): Likewise.
71313
71314         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
71315
71316 2006-07-30  Bruno Haible  <bruno@clisp.org>
71317
71318         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
71319         linked-list.
71320
71321 2006-07-30  Bruno Haible  <bruno@clisp.org>
71322
71323         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
71324
71325 2006-07-30  Bruno Haible  <bruno@clisp.org>
71326
71327         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71328         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
71329         get removed.
71330
71331 2006-07-29  Bruno Haible  <bruno@clisp.org>
71332
71333         Make it possible for gnulib-tool to work with locally modified or
71334         augmented gnulib repositories.
71335         * gnulib-tool (func_usage): Document --local-dir option.
71336         (local_gnulib_dir): New variable.
71337         Handle --local-dir option.
71338         (func_lookup_file): New function.
71339         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
71340         (func_get_description, func_get_filelist, func_get_description,
71341         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
71342         func_get_automake_snippet, func_get_include_directive,
71343         func_get_license, func_get_maintainer): Use func_lookup_file.
71344         (func_import, func_create_testdir): Use func_lookup_file.
71345
71346 2006-07-29  Bruno Haible  <bruno@clisp.org>
71347
71348         * modules/setenv (Depends-on): Add unistd.
71349
71350 2006-07-29  Bruno Haible  <bruno@clisp.org>
71351
71352         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
71353
71354 2006-07-29  Bruno Haible  <bruno@clisp.org>
71355
71356         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
71357
71358 2006-07-29  Bruno Haible  <bruno@clisp.org>
71359
71360         * gnulib-tool (import, update): If there is no Makefile.am, look at
71361         aclocal.m4, instead of bailing out.
71362
71363 2006-07-29  Bruno Haible  <bruno@clisp.org>
71364
71365         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
71366         Categorize the options by when they are useful.
71367
71368 2006-07-29  Bruno Haible  <bruno@clisp.org>
71369
71370         * gnulib-tool (func_usage): Document option --no-libtool.
71371         Handle option --no-libtool.
71372         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
71373         for changed semantics of $libtool variable.
71374         (func_import): Likewise. If libtool is not used, show this through
71375         an option --no-libtool.
71376         (func_create_testdir): Update.
71377
71378 2006-07-29  Bruno Haible  <bruno@clisp.org>
71379
71380         * gnulib-tool (func_import): Extend error message about missing
71381         --doc-base.
71382
71383 2006-07-29  Bruno Haible  <bruno@clisp.org>
71384
71385         * gnulib-tool (func_import): Don't create the $docbase directory if
71386         there is no file to store there.
71387
71388 2006-07-29  Bruno Haible  <bruno@clisp.org>
71389
71390         * gnulib-tool (autoconf_minversion): If a --dir option is given and
71391         relevant, look for configure.ac there, not in the current directory.
71392         Also use a simple search for AC_PREREQ, not "autoconf --trace".
71393
71394 2006-07-29  Bruno Haible  <bruno@clisp.org>
71395
71396         * gnulib-tool (SORT): New variable.
71397         (func_usage): Undocument --assume-autoconf option.
71398         Remove --assume-autoconf option handling.
71399         (autoconf_minversion): Determine from the contents of configure.ac.
71400         (func_import): Remove autoconf_minversion handling.
71401         Suggested by Eric Blake.
71402
71403 2006-07-29  Bruno Haible  <bruno@clisp.org>
71404
71405         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
71406
71407 2006-07-29  Bruno Haible  <bruno@clisp.org>
71408
71409         * config/srclist.txt (*setenv.[ch]): Remove rules.
71410
71411 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71412
71413         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
71414
71415 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71416
71417         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
71418         arpa/inet.h.
71419
71420 2006-07-28  Simon Josefsson  <jas@extundo.com>
71421
71422         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
71423         * modules/inet_pton (Depends-on): Likewise.
71424
71425 2006-07-28  Simon Josefsson  <jas@extundo.com>
71426
71427         * m4/netinet_in_h.m4: New file.
71428
71429 2006-07-28  Simon Josefsson  <jas@extundo.com>
71430
71431         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
71432         #include's.
71433
71434 2006-07-28  Simon Josefsson  <jas@extundo.com>
71435
71436         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
71437         #include's.
71438
71439 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
71440
71441         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
71442         setgid on directories only if they set these bits.
71443         * lib/modechange.h: Remove obsolete comment about masks.
71444
71445 2006-07-28  Eric Blake  <ebb9@byu.net>
71446
71447         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
71448         macro expansion.
71449
71450 2006-07-28  Bruno Haible  <bruno@clisp.org>
71451
71452         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
71453
71454 2006-07-28  Bruno Haible  <bruno@clisp.org>
71455
71456         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
71457
71458 2006-07-28  Bruno Haible  <bruno@clisp.org>
71459
71460         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
71461         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
71462         Define fallbacks.
71463         Avoids link error on FreeBSD 4.x.
71464         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71465
71466         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
71467         encoding.
71468         * lib/mbswidth.c (iswcntrl): Likewise.
71469
71470 2006-07-27  Bruno Haible  <bruno@clisp.org>
71471
71472         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
71473         test.
71474
71475 2006-07-27  Bruno Haible  <bruno@clisp.org>
71476
71477         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
71478         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
71479         defined.
71480
71481 2006-07-26  Eric Blake  <ebb9@byu.net>
71482
71483         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
71484
71485 2006-07-26  Eric Blake  <ebb9@byu.net>
71486
71487         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
71488         like mingw that lack mkstemp.
71489         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
71490         avoid compilation warning on mingw.
71491
71492 2006-07-26  Bruno Haible  <bruno@clisp.org>
71493
71494         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
71495         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
71496         INT_FAST*_MIN, INTPTR_MIN.
71497
71498 2006-07-25  Bruno Haible  <bruno@clisp.org>
71499
71500         * modules/version-etc (Depends-on): Add stdarg.
71501
71502 2006-07-25  Bruno Haible  <bruno@clisp.org>
71503
71504         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
71505         complex commands.
71506
71507 2006-07-25  Bruno Haible  <bruno@clisp.org>
71508
71509         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
71510         defined in <stdarg.h> or config.h.
71511
71512 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71513
71514         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
71515         (gl_STDIO_SAFER): Remove.
71516
71517 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71518
71519         * MODULES.html.sh (File stream based Input/Output):
71520         Add fopen-safer, tmpfile-safer; remove stdio-safer.
71521         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
71522         * modules/fopen-safer, modules/tmpfile-safer: New files.
71523         * modules/stdio-safer: Remove.
71524
71525 2006-07-24  Bruno Haible  <bruno@clisp.org>
71526
71527         * modules/tmpdir: New file.
71528         * MODULES.html.sh (File system functions): Add it.
71529
71530 2006-07-24  Bruno Haible  <bruno@clisp.org>
71531
71532         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
71533         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
71534
71535 2006-07-24  Bruno Haible  <bruno@clisp.org>
71536
71537         * modules/clean-temp: New file.
71538
71539 2006-07-24  Bruno Haible  <bruno@clisp.org>
71540
71541         * m4/tmpdir.m4: New file, from GNU gettext.
71542
71543 2006-07-24  Bruno Haible  <bruno@clisp.org>
71544
71545         * lib/tmpdir.h: New file, from GNU gettext.
71546         * lib/tmpdir.c: New file, from GNU gettext.
71547
71548 2006-07-24  Bruno Haible  <bruno@clisp.org>
71549
71550         * lib/clean-temp.h: New file, from GNU gettext.
71551         * lib/clean-temp.c: New file, from GNU gettext.
71552
71553 2006-07-23  Eric Blake  <ebb9@byu.net>
71554
71555         * modules/stdio-safer (Files): Add tmpfile-safer.c.
71556         (Depends-on): Add binary-io.
71557
71558 2006-07-23  Eric Blake  <ebb9@byu.net>
71559
71560         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
71561
71562 2006-07-23  Eric Blake  <ebb9@byu.net>
71563
71564         * lib/tmpfile-safer.c: New file.
71565         * lib/stdio-safer.h (fopen_safer): Add prototype.
71566         * lib/stdio--.h (tmpfile): Make safer.
71567
71568 2006-07-23  Bruno Haible  <bruno@clisp.org>
71569
71570         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
71571         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
71572         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
71573         gl_linked_remove_at): Use it.
71574
71575 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71576         and Simon Josefsson <jas@extundo.com>
71577
71578         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
71579
71580         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
71581
71582 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71583
71584         * modules/close-stream: New file.
71585         * modules/closeout (Description): Make it clear that it exits
71586         with a diagnostic on error.
71587         (Depends-on): Add close-stream.  Remove fpending, stdbool.
71588         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
71589
71590 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71591
71592         * m4/close-stream.m4: New file.
71593
71594 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71595
71596         * lib/close-stream.c, lib/close-stream.h: New files.
71597
71598 2006-07-22  Bruno Haible  <bruno@clisp.org>
71599
71600         Merge from GNU gettext 0.15.
71601
71602         2006-05-01  Bruno Haible  <bruno@clisp.org>
71603
71604                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
71605
71606         2006-07-22  Bruno Haible  <bruno@clisp.org>
71607
71608                 * modules/javaversion: New file.
71609                 * MODULES.html.sh (Java): Add javaversion.
71610
71611         2006-03-12  Bruno Haible  <bruno@clisp.org>
71612
71613                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
71614
71615         2005-12-04  Bruno Haible  <bruno@clisp.org>
71616
71617                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
71618                 (untested).
71619
71620         2006-06-21  Bruno Haible  <bruno@clisp.org>
71621
71622                 Avoid warnings from recent versions of mcs.
71623                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
71624                 -o, -L, -r any more. Use options documented since mcs-1.0
71625                 instead. Similarly for -g.
71626
71627         2005-12-04  Bruno Haible  <bruno@clisp.org>
71628
71629                 * build-aux/csharpcomp.sh.in: Suffix for resources is
71630                 .resources, not .resource.
71631
71632         2005-07-09  Bruno Haible  <bruno@clisp.org>
71633
71634                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
71635                 add a .dll suffix.
71636                 Reported by Mark Junker <mjscod@gmx.de>.
71637
71638         2006-07-22  Bruno Haible  <bruno@clisp.org>
71639
71640                 * modules/gettext: Upgrade to gettext-0.15.
71641                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
71642                 m4/visibility.m4.
71643                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
71644
71645 2006-07-22  Bruno Haible  <bruno@clisp.org>
71646
71647         Merge from GNU gettext 0.15.
71648
71649         2006-03-25  Bruno Haible  <bruno@clisp.org>
71650
71651                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
71652
71653         2006-07-21  Bruno Haible  <bruno@clisp.org>
71654
71655                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
71656                 "1.1".
71657
71658         2006-05-09  Bruno Haible  <bruno@clisp.org>
71659
71660                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
71661                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
71662                 for the conftestver execution.
71663
71664         2006-05-01  Bruno Haible  <bruno@clisp.org>
71665
71666                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
71667                 optional target-version argument. Verify that the compiler
71668                 groks source of the specified source-version, or add -source
71669                 option as necessary. Verify that the compiler produces
71670                 bytecode in the specified target-version, or add -target and
71671                 -source options as necessary. Make the result of the test
71672                 available as variable CONF_JAVAC. Also log error output in
71673                 config.log.
71674
71675         2006-03-11  Bruno Haible  <bruno@clisp.org>
71676
71677                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
71678
71679         2006-05-09  Bruno Haible  <bruno@clisp.org>
71680
71681                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
71682                 CLASSPATH_SEPARATOR to a semicolon.
71683
71684         2006-03-12  Bruno Haible  <bruno@clisp.org>
71685
71686                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
71687                 available as variable CONF_JAVA, for subsequent autoconf
71688                 tests. Also log error output in config.log.
71689
71690         2006-07-19  Bruno Haible  <bruno@clisp.org>
71691
71692                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
71693                 that getline works on glibc2 systems. Needed to avoid trouble
71694                 in relocatable.c.
71695                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
71696
71697         2005-12-04  Bruno Haible  <bruno@clisp.org>
71698
71699                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
71700                 launcher (untested).
71701
71702         2005-12-04  Bruno Haible  <bruno@clisp.org>
71703
71704                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
71705
71706         2006-07-22  Bruno Haible  <bruno@clisp.org>
71707
71708                 * gettext.m4: Update from GNU gettext-0.15.
71709                 * nls.m4: Likewise.
71710                 * po.m4: Likewise.
71711                 * inttypes-pri.m4: Likewise.
71712                 * inttypes-h.m4: Renamed from inttypes.m4.
71713                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
71714
71715 2006-07-22  Bruno Haible  <bruno@clisp.org>
71716
71717         Merge from GNU gettext 0.15.
71718
71719         2005-07-05  Bruno Haible  <bruno@clisp.org>
71720
71721                 * printf-args.c (printf_fetchargs): Work around broken
71722                 definition of wint_t on mingw.
71723
71724         2005-02-12  Bruno Haible  <bruno@clisp.org>
71725
71726                 * xallocsa.h: Add extern "C" for C++.
71727
71728         2006-05-17  Bruno Haible  <bruno@clisp.org>
71729
71730                 Cygwin portability.
71731                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
71732
71733         2006-04-30  Bruno Haible  <bruno@clisp.org>
71734
71735                 * progreloc.c: Include <mach-o/dyld.h> if available.
71736                 (find_executable): Use _NSGetExecutablePath when possible.
71737
71738         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71739
71740                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
71741                 function.
71742
71743         2005-12-29  Bruno Haible  <bruno@clisp.org>
71744
71745                 * progreloc.c (set_program_name_and_installdir): Fix
71746                 compilation error.
71747
71748         2005-12-04  Bruno Haible  <bruno@clisp.org>
71749
71750                 Cygwin portability.
71751                 * progreloc.c: Include <windows.h> also on Cygwin.
71752                 (find_executable): Add support for Cygwin.
71753                 (set_program_name_and_installdir): Handle also platforms with
71754                 nonempty EXEEXT.
71755
71756         2006-07-11  Bruno Haible  <bruno@clisp.org>
71757
71758                 * javacomp.c: Fix a comment.
71759                 Reported by Jim Meyering.
71760
71761         2006-04-30  Bruno Haible  <bruno@clisp.org>
71762
71763                 * javacomp.h (compile_java_class): Add source_version,
71764                 target_version arguments.
71765                 * javacomp.c: Rewritten to choose only a compiler that
71766                 respects the specified source_version and target_version.
71767
71768         2006-06-27  Bruno Haible  <bruno@clisp.org>
71769
71770                 Assume correct S_ISDIR macro.
71771                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
71772
71773         2006-07-22  Bruno Haible  <bruno@clisp.org>
71774
71775                 * javaversion.h: New file, from GNU gettext.
71776                 * javaversion.c: New file, from GNU gettext.
71777                 * javaversion.java: New file, from GNU gettext.
71778                 * javaversion.class: New file, from GNU gettext.
71779
71780         2006-05-17  Bruno Haible  <bruno@clisp.org>
71781
71782                 Cygwin portability.
71783                 * javaexec.c (execute_java_class): Test for jview program
71784                 also on Cygwin.
71785
71786         2006-04-09  Bruno Haible  <bruno@clisp.org>
71787
71788                 * fatal-signal.c: Don't include string.h.
71789                 (at_fatal_signal): Use a copying loop instead of memcpy.
71790
71791         2005-12-04  Bruno Haible  <bruno@clisp.org>
71792
71793                 * csharpexec.c: Add support for 'clix' launcher (untested).
71794                 (execute_csharp_using_sscli): New function.
71795                 (execute_csharp_program): Call it.
71796
71797         2006-06-21  Bruno Haible  <bruno@clisp.org>
71798
71799                 Avoid warnings from recent versions of mcs.
71800                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
71801                 -o, -L, -r any more. Use options documented since mcs-1.0
71802                 instead. Similarly for -g.
71803
71804         2005-07-09  Bruno Haible  <bruno@clisp.org>
71805
71806                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
71807                 add a .dll suffix.
71808                 Reported by Mark Junker <mjscod@gmx.de>.
71809
71810         2006-06-17  Bruno Haible  <bruno@clisp.org>
71811
71812                 * config.charset: Update for NetBSD 3.0.
71813
71814         2006-05-17  Bruno Haible  <bruno@clisp.org>
71815
71816                 Cygwin portability.
71817                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
71818
71819         2006-05-16  Bruno Haible  <bruno@clisp.org>
71820
71821                 * localcharset.c [CYGWIN]: Include <windows.h>.
71822                 (get_charset_aliases): For Cygwin, return the same CPxxx
71823                 aliases list as under WIN32.
71824                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
71825                 the environment variables. Fall back to GetACP().
71826
71827         2006-04-05  Bruno Haible  <bruno@clisp.org>
71828
71829                 * config.charset: Update Juan Manuel Guerrero's address.
71830
71831         2005-02-12  Bruno Haible  <bruno@clisp.org>
71832
71833                 * allocsa.h: Add extern "C" for C++.
71834
71835         2005-02-10  Bruno Haible  <bruno@clisp.org>
71836
71837                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
71838                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
71839
71840         2006-07-22  Bruno Haible  <bruno@clisp.org>
71841
71842                 * gettext.h: Update to GNU gettext-0.15.
71843
71844 2006-07-22  Bruno Haible  <bruno@clisp.org>
71845
71846         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
71847         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
71848         lib-prefix.m4, longdouble.m4, ssize_t.m4.
71849
71850 2006-07-21  Eric Blake  <ebb9@byu.net>
71851
71852         * modules/stdlib-safer: New file.
71853         * MODULES.html.sh (File stream based Input/Output): Add
71854         stdlib-safer.
71855
71856 2006-07-21  Eric Blake  <ebb9@byu.net>
71857
71858         * lib/stdlib-safer.h: New file from coreutils, required by
71859         stdlib--.h.
71860
71861 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
71862
71863         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
71864
71865 2006-07-20  Bruno Haible  <bruno@clisp.org>
71866
71867         * gnulib-tool: Recognize new option --assume-autoconf.
71868         (autoconf_minversion): New variable.
71869         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
71870
71871 2006-07-20  Bruno Haible  <bruno@clisp.org>
71872
71873         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
71874
71875 2006-07-19  Derek R. Price  <derek@ximbiot.com>
71876
71877         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
71878         Reindent and repaginate.
71879
71880 2006-07-19  Derek Price  <derek@ximbiot.com>
71881
71882         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
71883         Correct grammar.
71884
71885 2006-07-17  Bruno Haible  <bruno@clisp.org>
71886
71887         * modules/list: New file.
71888         * modules/array-list: New file.
71889         * modules/carray-list, modules/carray-list-tests: New files.
71890         * modules/linked-list, modules/linked-list-tests: New files.
71891         * modules/avltree-list, modules/avltree-list-tests: New files.
71892         * modules/rbtree-list, modules/rbtree-list-tests: New files.
71893         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
71894         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
71895         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
71896         * modules/oset: New file.
71897         * modules/array-oset: New file.
71898         * modules/avltree-oset, modules/avltree-oset-tests: New files.
71899         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
71900         * tests/test-carray_list.c: New file.
71901         * tests/test-linked_list.c: New file.
71902         * tests/test-avltree_list.c: New file.
71903         * tests/test-rbtree_list.c: New file.
71904         * tests/test-linkedhash_list.c: New file.
71905         * tests/test-avltreehash_list.c: New file.
71906         * tests/test-rbtreehash_list.c: New file.
71907         * tests/test-avltree_oset.c: New file.
71908         * tests/test-rbtree_oset.c: New file.
71909         * MODULES.html.sh (Container data structures): New section.
71910
71911 2006-07-17  Bruno Haible  <bruno@clisp.org>
71912
71913         * m4/gl_list.m4: New file.
71914
71915 2006-07-17  Bruno Haible  <bruno@clisp.org>
71916
71917         * lib/gl_list.h: New file.
71918         * lib/gl_list.c: New file.
71919         * lib/gl_array_list.h: New file.
71920         * lib/gl_array_list.c: New file.
71921         * lib/gl_carray_list.h: New file.
71922         * lib/gl_carray_list.c: New file.
71923         * lib/gl_linked_list.h: New file.
71924         * lib/gl_linked_list.c: New file.
71925         * lib/gl_anylinked_list1.h: New file.
71926         * lib/gl_anylinked_list2.h: New file.
71927         * lib/gl_avltree_list.h: New file.
71928         * lib/gl_avltree_list.c: New file.
71929         * lib/gl_anyavltree_list1.h: New file.
71930         * lib/gl_anyavltree_list2.h: New file.
71931         * lib/gl_rbtree_list.h: New file.
71932         * lib/gl_rbtree_list.c: New file.
71933         * lib/gl_anyrbtree_list1.h: New file.
71934         * lib/gl_anyrbtree_list2.h: New file.
71935         * lib/gl_anytree_list1.h: New file.
71936         * lib/gl_anytree_list2.h: New file.
71937         * lib/gl_linkedhash_list.h: New file.
71938         * lib/gl_linkedhash_list.c: New file.
71939         * lib/gl_anyhash_list1.h: New file.
71940         * lib/gl_anyhash_list2.h: New file.
71941         * lib/gl_avltreehash_list.h: New file.
71942         * lib/gl_avltreehash_list.c: New file.
71943         * lib/gl_rbtreehash_list.h: New file.
71944         * lib/gl_rbtreehash_list.c: New file.
71945         * lib/gl_anytreehash_list1.h: New file.
71946         * lib/gl_anytreehash_list2.h: New file.
71947
71948         * lib/gl_oset.h: New file.
71949         * lib/gl_oset.c: New file.
71950         * lib/gl_array_oset.h: New file.
71951         * lib/gl_array_oset.c: New file.
71952         * lib/gl_avltree_oset.h: New file.
71953         * lib/gl_avltree_oset.c: New file.
71954         * lib/gl_rbtree_oset.h: New file.
71955         * lib/gl_rbtree_oset.c: New file.
71956         * lib/gl_anytree_oset.h: New file.
71957
71958 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71959
71960         * m4/mkancesdirs.m4: New file.
71961         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
71962         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
71963         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
71964         it.
71965
71966 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71967
71968         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
71969         * lib/mkancesdirs.h: New files.
71970         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
71971         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
71972         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
71973         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
71974         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
71975         callers changed.  Revamp internals significantly, by not
71976         attempting to create directories that are temporarily more
71977         permissive than the final results.  Do not attempt to use
71978         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
71979         This removes some race conditions, fixes some bugs, and simplifies
71980         things.  Use new dirchownmod function to do owner and mode changes.
71981         * lib/mkdir-p.h: Likewise.
71982         * lib/modechange.c (octal_to_mode): New function.
71983         (struct mode_change): New member mentioned.
71984         (make_node_op_equals): New arg mentioned.  All callers changed.
71985         (mode_compile): Keep track of which mode bits the user has explicitly
71986         mentioned.
71987         (mode_adjust): New arg DIR, so that we implement the X op correctly.
71988         New arg PMODE_BITS, to keep track of which mode bits the user
71989         mentioned; it treats S_ISUID and S_ISGID speciall.
71990         All callers changed.
71991         * lib/modechange.h: Likewise.
71992
71993 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71994
71995         * MODULES.html.sh: Add mkancestors.
71996         * modules/mkancesdirs: New module.
71997         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
71998         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
71999         The chdir-safer and afs files are now orphans; I'll remove them
72000         unless someone speaks up.
72001         Add lib/dirchownmod.c, lib/dirchownmod.h.
72002         (Depends-on): Remove alloca, chown, save-cwd, dirname.
72003         Add lchown, mkancesdirs.
72004         (Maintainer): Add self.
72005
72006 2006-07-15  Karl Berry  <karl@gnu.org>
72007
72008         * gnulib-tool: help message wording/arrangement.
72009
72010 2006-07-14  Simon Josefsson  <jas@extundo.com>
72011
72012         * doc/gnulib.texi (Libtool and Windows): New section.
72013
72014 2006-07-12  Simon Josefsson  <jas@extundo.com>
72015
72016         * modules/gendocs (License): Fix license, approved by Karl.
72017
72018 2006-07-12  Eric Blake  <ebb9@byu.net>
72019
72020         * MODULES.html.sh: Add gendocs.
72021
72022 2006-07-11  Eric Blake  <ebb9@byu.net>
72023
72024         * modules/fdl: New module, to install doc/fdl.texi.
72025         * MODULES.html.sh: Add new section for documentation modules.
72026         * gnulib-tool: Avoid space-tab.
72027         (--doc-base): New option, to manage files from doc.
72028
72029 2006-07-11  Eric Blake  <ebb9@byu.net>
72030
72031         * m4/absolute-header.m4: Fix comments to match recent change.
72032
72033 2006-07-11  Eric Blake  <ebb9@byu.net>
72034
72035         * gnulib-tool: List --doc-base before --tests-base.
72036
72037 2006-07-11  Derek R. Price  <derek@ximbiot.com>
72038
72039         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
72040
72041 2006-07-11  Bruno Haible  <bruno@clisp.org>
72042
72043         * README: Mention where to put documentation.
72044
72045 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72046
72047         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
72048
72049 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72050
72051         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
72052         to stdint.m4.
72053
72054 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72055
72056         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
72057         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
72058         "no/such/file/stdint.h" when there is no such file, so that
72059         the resulting C code can be parsed by dodgy compilers.
72060         Problems reported by Bob Proulx.
72061
72062 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72063
72064         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
72065         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72066         macros into the GNU _D_EXACT_NAMLEN.
72067         * lib/savedir.c:  Likewise.
72068         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
72069
72070 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72071         and Paul Eggert  <eggert@cs.ucla.edu>
72072
72073         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
72074         * m4/savedir.m4:
72075         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72076         macros into the GNU _D_EXACT_NAMLEN.
72077
72078 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72079
72080         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
72081         around the absolute name, to work around a problem with the HP-UX
72082         11.23 native C compiler, reported by Bob Proulx.
72083
72084 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72085
72086         * doc/maintain.texi, make-stds.texi: Sync from
72087         <http://savannah.gnu.org/projects/gnustandards>.
72088
72089 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72090
72091         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
72092
72093 2006-07-09  Jim Meyering  <jim@meyering.net>
72094
72095         * m4/glob.m4: Remove a doubled word in a comment.
72096
72097 2006-07-09  Jim Meyering  <jim@meyering.net>
72098
72099         * lib/argp-pv.c: Remove a doubled word in a comment.
72100         * lib/check-version.c (check_version): Likewise.
72101         * lib/javacomp.c (compile_java_class): Likewise.
72102
72103 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72104
72105         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
72106         for the benefit of people using Autoconf 2.60.  If you want to
72107         support older Autoconf versions you can copy m4/onceonly_2_57.m4
72108         (or m4/onceonly.m4, if pre-2.57) manually.
72109
72110 2006-07-08  Jim Meyering  <jim@meyering.net>
72111
72112         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
72113         comment.
72114         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
72115         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
72116         comment.
72117
72118 2006-07-08  Jim Meyering  <jim@meyering.net>
72119
72120         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
72121
72122 2006-07-07  Simon Josefsson  <jas@extundo.com>
72123
72124         * tests/test-crc.c: Change expected crc value, the test vector
72125         were probably computed using the old broken crc.c?
72126
72127 2006-07-06  Simon Josefsson  <jas@extundo.com>
72128
72129         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
72130         now the canonical place for the M4 file).
72131
72132         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
72133         from the sys_socket dependency now.
72134
72135         * modules/inet_pton (Files): Ditto.
72136
72137         * modules/inet_ntop (Files): Ditto.
72138
72139 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72140
72141         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
72142         not gl_PREREQ_GETUSERSHELL.
72143
72144 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72145
72146         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
72147         with only one argument, for Autoconf 2.60.
72148         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
72149         expand to nothing, so add a shell command to avoid syntax error.
72150         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72151
72152 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72153
72154         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
72155
72156 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72157
72158         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
72159         no longer needed.  Check for isblank decl.
72160         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
72161         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
72162         of existence.
72163
72164 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72165
72166         * lib/getloadavg.c: Use __VMS, not VMS.
72167         * lib/getopt.c: Likewise.
72168         * lib/getpagesize.h: Likewise.
72169         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
72170         and probably does not work.
72171
72172 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72173
72174         * lib/.cppi-disable: Add wcwidth.
72175         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
72176         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
72177         (ISGRAPH): Remove.  All uses changed to isgraph.
72178         (FOLD) [!defined _LIBC]: Remove special case.
72179         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
72180         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
72181         HAVE_ISBLANK.
72182         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
72183         case.
72184
72185 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72186
72187         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
72188         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
72189         brackets.  Other minor changes to suppress some compiler
72190         warnings.
72191
72192 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72193         and Paul Eggert  <eggert@cs.ucla.edu>
72194
72195         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
72196         of invoking obsolescent AC_HEADER_DIRENT macro.
72197         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
72198         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
72199         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
72200         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
72201         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
72202         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72203         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
72204         * m4/readdir.m4: Remove; no longer needed.
72205
72206 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72207         and Paul Eggert  <eggert@cs.ucla.edu>
72208
72209         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
72210         Don't worry about this obsolete case any more.
72211         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
72212         directories.
72213         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
72214         worry about this obsolete case any more.
72215         * lib/fts.c: Likewise.
72216         * lib/getcwd.c: Likewise.
72217         * lib/glob.h: Likewise.
72218         * lib/savedir.c: Likewise.
72219
72220 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72221
72222         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
72223         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
72224         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
72225         needed.
72226         All uses removed.
72227         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72228         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72229         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
72230         needed.
72231         * m4/getdate.m4 (gl_GETDATE): Likewise.
72232         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72233         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72234         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72235         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72236         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72237         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72238         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
72239         needed.
72240
72241 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72242
72243         * lib/memcasecmp.c: Include <limits.h>.
72244         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
72245         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
72246         Don't assume isdigit succeeds only on '0' through '9'.
72247
72248 2006-07-05  Eric Blake  <ebb9@byu.net>
72249
72250         * modules/getaddrinfo (Depends-on): Add snprintf.
72251
72252 2006-07-05  Eric Blake  <ebb9@byu.net>
72253
72254         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
72255         to avoid 'header present but could not be compiled' on cygwin.
72256
72257 2006-07-05  Eric Blake  <ebb9@byu.net>
72258
72259         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
72260         missing from netdb.h.
72261         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
72262
72263 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72264
72265         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
72266         no longer needed.
72267         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
72268         * m4/getdate.m4 (gl_GETDATE): Likewise.
72269         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72270         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72271         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72272         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72273         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72274
72275 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72276
72277         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
72278         All uses of is_space replaced by isspace.
72279         * lib/exit.h: Don't talk about STDC_HEADERS.
72280         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
72281         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
72282         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
72283         replaced by isprint etc.
72284         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
72285         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72286         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
72287         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
72288         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
72289         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72290
72291 2006-07-05  Bruno Haible  <bruno@clisp.org>
72292
72293         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
72294         the function exists, before testing against AIX.
72295         Reported by Martin Lambers <marlam@marlam.de>.
72296
72297 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72298
72299         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
72300         From Mark D. Baushke.
72301
72302 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72303
72304         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
72305         to the absolute name, not just one, to bypass Sun C 5.8's
72306         "warning: #include of /usr/include/... may be non-portable".
72307
72308 2006-07-04  Eric Blake  <ebb9@byu.net>
72309
72310         * modules/dirname-tests: New test module.
72311         * tests/test-dirname.c: New file, replacing dirname.c
72312         TEST_DIRNAME section that was recently deleted.
72313
72314 2006-07-04  Bruno Haible  <bruno@clisp.org>
72315
72316         Assume ANSI C header files and <ctype.h> functions.
72317         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
72318         (mbsnwidth): Use isprint, iscntrl instead.
72319
72320 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72321
72322         Merge from coreutils.
72323         * MODULES.html.sh: Add xstrtold.
72324         * modules/xstrtold: New file.
72325         * modules/cycle-check (Files): Add lib/same-inode.h.
72326         * modules/dirname (Files): Add m4/double-slash-root.m4.
72327         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
72328         * modules/mkdir-p (Files): Add lib/same-inode.h.
72329         * modules/same (Files): Add lib/same-inode.h.
72330
72331 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72332
72333         * m4/absolute-header.m4: Renamed from full-header-path.m4.
72334         This is to keep the terminology clean; POSIX talks about
72335         "absolute pathnames", not "full pathnames", but the GNU
72336         Coding Standards say to use "path" for something else;
72337         so use "absolute" to keep both sides happy.
72338         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
72339         Set gl_absolute_header, not gl_full_header_path.
72340         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
72341         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
72342         All uses changed.
72343
72344         Merge from coreutils.
72345
72346         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72347
72348         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
72349         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
72350         want to require the building of c-strtod.o.
72351         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
72352         needs -lm directly.
72353         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
72354
72355         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72356
72357         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
72358         --as-needed option if available.  Problem reported by Albert Chin in
72359         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
72360         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
72361         cc merely issues a bunch of annoying warnings for --as-needed
72362         (this problem was reported by Bob Proulx).  Also, try linking with
72363         -lm to detect a bug in binutils 2.16 (this problem was reported
72364         by Ralf Wildenhues).
72365
72366         2006-06-18  Jim Meyering  <jim@meyering.net>
72367
72368         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
72369         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
72370         macro.
72371         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
72372         also check for glibc-2.4's abort-inducing bug.
72373
72374         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
72375         Low-probability clean-up should be to use rmdir to get rid of
72376         the just-created directory, not unlink.
72377
72378         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
72379         configure fail, and request a bug report to inform us about it.
72380         Add a comment that, barring reports to the contrary, in 2007 we'll
72381         assume ftruncate is universally available.
72382
72383         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72384
72385         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
72386
72387         2006-03-12  Jim Meyering  <jim@meyering.net>
72388
72389         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
72390         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
72391         * m4/same.m4 (gl_SAME): Likewise.
72392         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
72393
72394         2006-03-11  Eric Blake  <ebb9@byu.net>
72395
72396         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
72397         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
72398         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
72399         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
72400
72401 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72402
72403         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
72404         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
72405         reported by Mark D. Baushke, one in
72406         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
72407
72408         Merge from coreutils.
72409
72410         * lib/.cppi-disable: Add stdint_.h.
72411         * lib/.cvsignore: Add stdint.h.
72412
72413         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72414
72415         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
72416         both double and long double versions.
72417         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
72418         * lib/xstrtold.c: New file.
72419         * lib/xstrtod.h (xstrtold): New decl.
72420
72421         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72422
72423         * lib/filemode.c (setst): Remove.
72424         (strmode): Rewrite to avoid setst.  This makes the code shorter,
72425         (arguably) clearer, and the generated code is a bit smaller on my
72426         Debian GNU/Linux stable x86 host.
72427
72428         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72429
72430         * lib/filemode.c: Include "filemode.h" first, to test the interface.
72431         Assume that filemode.h includes sys/types.h and sys/stat.h.
72432         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
72433         (ftypelet): Reorder to put common cases first, for efficiency.
72434         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
72435         to do 'M'.
72436         (strmode): Renamed from mode_string, and now stores 12 bytes instead
72437         of 10, for compatibility with FreeBSD.  All callers changed.
72438         (filemodestring): Now stores 12 bytes instead of 10, and sets file
72439         types that can't be deduced solely from st_mode.  First arg is now a
72440         const pointer.
72441         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
72442         (strmode): Renamed from mode_string.
72443         (filemodestring): New decl.
72444         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
72445         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
72446         needed.
72447         (S_ISPORT, S_ISWHT): New macros, if not already defined.
72448
72449         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72450
72451         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
72452         fsusage.h now does that.  Include fsusage.h first, to test interface.
72453         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
72454         at most one method (the old code could have generated decls that
72455         didn't conform to C89, not that this was ever exercised).
72456         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
72457
72458         2006-03-19  Jim Meyering  <jim@meyering.net>
72459
72460         Work even in a chroot where d_ino values for entries in "/"
72461         don't match the stat.st_ino values for the same names.
72462         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
72463         number, iterate through all entries again, using lstat instead.
72464         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
72465         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
72466
72467         * lib/getcwd.c (__getcwd): Clarify a comment.
72468         Use memcpy in place of a call to strcpy.
72469
72470         2006-03-12  Jim Meyering  <jim@meyering.net>
72471
72472         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
72473         matches that of the current directory (which we're about to chdir ".."
72474         out of), then save the dev-ino of the parent, instead.
72475
72476         * lib/same-inode.h (SAME_INODE): New file/macro.
72477         * lib/chdir-safer.c (SAME_INODE): Remove definition.
72478         Include "same-inode.h", instead.
72479         * lib/same.c: Likewise.
72480         * lib/cycle-check.h: Include "same-inode.h".
72481         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
72482         * lib/cycle-check.c (SAME_INODE): Remove definition.
72483         * lib/root-dev-ino.h: Include "same-inode.h".
72484
72485         2006-03-11  Eric Blake  <ebb9@byu.net>
72486
72487         * lib/same.c (same_name): s/base_name/last_component/
72488         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
72489         * lib/filenamecat.c (file_name_concat): Likewise.
72490
72491         2006-03-11  Eric Blake  <ebb9@byu.net>,
72492                     Paul Eggert  <eggert@cs.ucla.edu>
72493
72494         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
72495         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
72496         drive prefix.
72497         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
72498         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
72499         (last_component): New method.
72500         * lib/dirname.c (dir_len): Determine when drive letters need a
72501         subsequent slash.  Preserve // when it is special.
72502         (dir_name): Don't append dot when drive letter is absolute.
72503         [TEST_DIRNAME]: Move into a full-blown gnulib test.
72504         * lib/basename.c (base_name): New semantics - malloc the result.
72505         Preserve // when it is special.  Preserve relative files that look
72506         like drive letters.
72507         (base_len): Preserve // when it is special.
72508         (last_component): New method, similar to old base_name semantics.
72509         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
72510         base_name.  Strip redundant slashes from ///.
72511
72512 2006-07-03  Jim Meyering  <jim@meyering.net>
72513
72514         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
72515         macro is used before the first cycle_check call.
72516
72517 2006-07-03  Eric Blake  <ebb9@byu.net>
72518
72519         * modules/dirname (Depends-on): Add xstrndup.
72520
72521 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72522
72523         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
72524         test cases, so that config.log is a bit easier to follow.
72525
72526 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72527
72528         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
72529         both are 64 bits, since this seems to be the tradition, and this
72530         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
72531         we ever run into a host that prefers long long to long in this
72532         case, we'll need another configure-time test.  Problem reported by
72533         Jim Meyering.
72534
72535 2006-07-02  Eric Blake  <ebb9@byu.net>
72536
72537         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
72538
72539 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72540
72541         * modules/inttypes (Depends-on): No longer depends on stdint.
72542         * modules/stdint (Description): Say more about assumptions.
72543         Say that the fast types might differ.  Say macros are used.
72544         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
72545         (Makefile.am): Revise list of substituted symbols to match
72546         new stdint.m4.
72547         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
72548         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
72549         * tests/test-stdint.c (verify_same_types)
72550         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
72551         the code conforms to C99/C89.
72552         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
72553         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
72554
72555 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72556
72557         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
72558         but fix a bug, by requiring at least 64 bits.
72559         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
72560         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
72561         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
72562         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72563
72564         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
72565         changes.  Make 2.59 a prerequisite.  Check and substitute for
72566         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
72567         inttypes.h.  Do not use special include files; just use the
72568         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
72569         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
72570         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
72571         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
72572         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
72573         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
72574         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
72575         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
72576         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
72577         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
72578         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
72579         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
72580         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
72581         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
72582         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
72583         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
72584         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
72585         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
72586         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
72587         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
72588         WINT_MAX.  Check for C99 conformance more strictly, by detecting
72589         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
72590         not check for things that C99 does not require, e.g., int8_t.  If
72591         a test isn't needed unless <stdint.h> isn't working, and is
72592         unlikely to be needed for any other reason, then don't do it
72593         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
72594         size_t, since we assume C89 freestanding at least.  Do not check
72595         for sig_atomic_t, wchar_t, or wint_t, since the code now does
72596         the right thing even if the types are not defined.  Instead use:
72597         (gl_STDINT_TYPE_PROPERTIES): New macro.
72598         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
72599         testing whether <sys/types.h> clashes, as Autoconf does this for
72600         us now.  All uses removed.
72601         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
72602         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
72603         (gl_CHECK_TYPE_SAME):
72604         Remove; no longer needed.
72605         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
72606         exists, since we'll return 0 anyway in that case.
72607         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
72608
72609 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72610
72611         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
72612         possible collision with system files.
72613         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
72614         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
72615         WCHAR_MIN and WCHAR_MAX in this case.
72616         (<stddef.h>): Do not include; no longer needed.
72617         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
72618         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
72619         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
72620         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
72621         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
72622         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
72623         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
72624         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
72625         !defined(__c99))]: Include in this case too, since it's harmless
72626         now.
72627         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
72628         dangerous to do so.
72629         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
72630         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
72631         (_STDINT_MIN, _STDINT_MAX): New macros.
72632         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
72633         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
72634         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
72635         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
72636         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
72637         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
72638         macros, not typedefs; this simplifies things quite a bit.
72639         Use long int for all types narrower than int64_t.
72640         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
72641         Define in terms of long long int or int64_t or long int,
72642         not int64_t or int32_t.  This saves some compile-time testing.
72643         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
72644         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
72645         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
72646         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
72647         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
72648         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
72649         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
72650         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
72651         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
72652         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
72653         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72654         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72655         undef any previous version and define our own version, for
72656         simplicity and consistency with the new macros for types.
72657         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72658         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72659         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
72660         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
72661         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
72662         @WINT_T_SUFFIX@ to keep things simple here.
72663         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
72664         Simplify by assuming typical 8/16/32/64 host, since we're
72665         already doing that elsewhere anyway.
72666         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
72667         and assume long long int is 64 bits if available.  This
72668         speeds up 'configure'.
72669
72670 2006-07-01  Eric Blake  <ebb9@byu.net>
72671
72672         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
72673         Reported by Andreas Buening.
72674
72675 2006-07-01  Eric Blake  <ebb9@byu.net>
72676
72677         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
72678
72679 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72680
72681         * lib/getaddrinfo.c: fixed typo
72682
72683 2006-06-29  Jim Meyering  <jim@meyering.net>
72684
72685         * modules/strftime (Maintainer): Add my name, since with the
72686         FPRINTFTIME changes strftime.c has forked from glibc.
72687
72688 2006-06-29  Eric Blake  <ebb9@byu.net>
72689
72690         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
72691
72692 2006-06-29  Eric Blake  <ebb9@byu.net>
72693
72694         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
72695
72696 2006-06-29  Eric Blake  <ebb9@byu.net>
72697
72698         * lib/stat_.h: New file.
72699
72700 2006-06-29  Eric Blake  <ebb9@byu.net>
72701
72702         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
72703         unused static function.
72704
72705 2006-06-29  Eric Blake  <ebb9@byu.net>
72706
72707         * doc/functions.texi (Function Portability): Document missing lstat
72708         on mingw.
72709
72710 2006-06-29  Eric Blake  <ebb9@byu.net>
72711
72712         * MODULES.html.sh: Add sys_stat.
72713         * modules/sys_stat: New module.
72714         * modules/mkstemp (Depends-on): Add sys_stat.
72715
72716 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72717
72718         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
72719
72720 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72721
72722         * m4/c-bs-a.m4: Removed.
72723
72724 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72725
72726         * lib/strftime.c: Assume strftime() exists.
72727
72728 2006-06-29  Derek Price  <derek@ximbiot.com>
72729
72730         * modules/c-bs-a: Removed - \a is C89.
72731         * MODULES.html.sh: Remove c-bs-a.
72732
72733 2006-06-29  Bruno Haible  <bruno@clisp.org>
72734
72735         * modules/wcwidth (License): Change to LGPL.
72736
72737 2006-06-28  Simon Josefsson  <jas@extundo.com>
72738
72739         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
72740         on _WIN32.
72741
72742         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
72743         getnameinfo.
72744
72745 2006-06-28  Simon Josefsson  <jas@extundo.com>
72746
72747         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
72748
72749 2006-06-28  Simon Josefsson  <jas@extundo.com>
72750
72751         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
72752         functions there.  It will succeed on Windows XP, but on Windows
72753         2000 and (presumably) earlier, it will fail, and use the internal
72754         re-implementation.
72755         (use_win32_p): New function.
72756         (getaddrinfo): Use strtoul on servname, to support numeric ports.
72757         Support AI_NUMERICSERV to disable getservbyname.
72758         (getnameinfo): New function, only supports
72759         NI_NUMERICHOST|NI_NUMERICSERV for now.
72760
72761         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
72762         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
72763         getnameinfo.
72764
72765 2006-06-28  Eric Blake  <ebb9@byu.net>
72766
72767         * modules/wcwidth: New file.
72768         * modules/mbchar (Depends-on): Add wcwidth.
72769         * modules/mbswidth (Depends-on): Add wcwidth.
72770         * MODULES.html.sh: Add wcwidth.
72771
72772 2006-06-28  Eric Blake  <ebb9@byu.net>
72773
72774         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
72775         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
72776
72777 2006-06-28  Eric Blake  <ebb9@byu.net>
72778
72779         * lib/xvasprintf.h: Fix comments.
72780
72781 2006-06-28  Eric Blake  <ebb9@byu.net>
72782
72783         * lib/mbchar.h (wcwidth): Include wcwidth.h.
72784         * lib/mbswidth.c (wcwidth): Move from here...
72785         * lib/wcwidth.h: ...to this new file.
72786
72787 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72788
72789         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
72790
72791         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
72792         it's obsolete.
72793         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
72794
72795 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72796
72797         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
72798         Autoconf 2.60 says this stuff was obsolete.
72799
72800 2006-06-28  Bruno Haible  <bruno@clisp.org>
72801
72802         * modules/wcwidth (Files): Add m4/wchar_t.m4.
72803
72804 2006-06-28  Bruno Haible  <bruno@clisp.org>
72805
72806         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
72807         gt_TYPE_WCHAR_T.
72808
72809 2006-06-28  Bruno Haible  <bruno@clisp.org>
72810
72811         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
72812         declaration for wcwidth.
72813         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
72814
72815 2006-06-28  Bruno Haible  <bruno@clisp.org>
72816
72817         * lib/mkdtemp.c [MINGW]: Include <io.h>.
72818         (mkdir): Define using _mkdir.
72819
72820 2006-06-28  Bruno Haible  <bruno@clisp.org>
72821
72822         * lib/getaddrinfo.h: Fix POSIX URL.
72823         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
72824         _WIN32.
72825         (use_win32_p): Make static.
72826         (getaddrinfo): Reject service name if it is empty or does not consist
72827         solely of decimal digits, or if its value is > 65535.
72828         (getnameinfo): Remove useless casts.
72829
72830 2006-06-27  Simon Josefsson  <jas@extundo.com>
72831
72832         * modules/sys_select: New file, suggested by Bruno Haible, Paul
72833         Eggert and Martin Lambers.
72834
72835 2006-06-27  Simon Josefsson  <jas@extundo.com>
72836
72837         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
72838         Eggert and Martin Lambers.
72839
72840 2006-06-27  Bruno Haible  <bruno@clisp.org>
72841
72842         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
72843         result to 0, not to empty.
72844         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
72845
72846 2006-06-27  Bruno Haible  <bruno@clisp.org>
72847
72848         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
72849
72850 2006-06-26  Simon Josefsson  <jas@extundo.com>
72851
72852         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
72853         present.
72854
72855 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
72856
72857         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
72858         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
72859         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
72860
72861 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
72862
72863         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
72864
72865 2006-06-26  Bruno Haible  <bruno@clisp.org>
72866
72867         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
72868
72869 2006-06-26  Bruno Haible  <bruno@clisp.org>
72870
72871         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
72872
72873 2006-06-26  Bruno Haible  <bruno@clisp.org>
72874
72875         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
72876         SGI C compiler in pre-C99 mode.
72877         Suggested by Mark D. Baushke and Larry Jones.
72878
72879 2006-06-26  Bruno Haible  <bruno@clisp.org>
72880
72881         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
72882         WCHAR_MAX.
72883         Reported by Mark D. Baushke and Larry Jones.
72884
72885 2006-06-26  Bruno Haible  <bruno@clisp.org>
72886
72887         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
72888         in pre-C99 mode.
72889         Suggested by Mark D. Baushke and Larry Jones.
72890
72891 2006-06-23  Simon Josefsson  <jas@extundo.com>
72892             Bruno Haible  <bruno@clisp.org>
72893
72894         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
72895         Emit mostlyclean-local rule.
72896         (func_emit_tests_Makefile_am): Likewise.
72897         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
72898
72899 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
72900
72901         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
72902
72903 2006-06-23  Bruno Haible  <bruno@clisp.org>
72904
72905         * tests/test-stdint.c: Update to match ISO C 99 Technical
72906         Corrigendum 1.
72907
72908 2006-06-23  Bruno Haible  <bruno@clisp.org>
72909
72910         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
72911
72912 2006-06-23  Bruno Haible  <bruno@clisp.org>
72913
72914         * lib/stdint_.h: Treat IRIX like OpenBSD.
72915
72916 2006-06-23  Bruno Haible  <bruno@clisp.org>
72917
72918         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
72919         ISO C 99 Technical Corrigendum 1.
72920
72921 2006-06-22  Simon Josefsson  <jas@extundo.com>
72922
72923         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
72924         MinGW.
72925
72926 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72927
72928         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
72929         needed.  Some compiler complained about some of them.  Problem reported
72930         by Larry Jones in
72931         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
72932
72933 2006-06-21  Simon Josefsson  <jas@extundo.com>
72934
72935         * tests/test-getaddrinfo.c: New file.
72936
72937         * modules/getaddrinfo-tests: New file.
72938
72939         * MODULES.html.sh: Add inet_pton.
72940
72941         * modules/inet_pton: New file.
72942
72943 2006-06-21  Simon Josefsson  <jas@extundo.com>
72944
72945         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
72946         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
72947         of using the (limited) gnulib implementation on Windows XP.
72948
72949         * m4/inet_pton.m4: New file.
72950
72951 2006-06-21  Simon Josefsson  <jas@extundo.com>
72952
72953         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
72954         variable.
72955
72956         * lib/socket_.h: Don't define WINVER.
72957
72958         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
72959         slightly modified to work in gnulib.
72960
72961 2006-06-21  Simon Josefsson  <jas@extundo.com>
72962
72963         * doc/gnulib.texi (Windows sockets): Add.
72964
72965 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
72966
72967         * lib/read-file.c (fread_file): Start with buffer allocation of
72968         0 bytes rather than 1 byte; this simplifies the code.
72969         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
72970         code to free buffer and save/restore errno.
72971         (internal_read_file): Remove unused local.
72972
72973 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
72974
72975         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
72976         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
72977         Problem reported by Denis Excoffier in
72978         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
72979
72980 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72981
72982         * modules/sys_socket, modules/socklen: Include sys/types since
72983         FreeBSD 4.x's sys/socket.h needs it.
72984
72985 2006-06-19  Simon Josefsson  <jas@extundo.com>
72986
72987         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
72988
72989 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72990
72991         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
72992
72993 2006-06-19  Bruno Haible  <bruno@clisp.org>
72994
72995         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
72996         and FULL_PATH_INTTYPES_H in angle brackets.
72997         Reported by Mark D. Baushke <mdb@gnu.org>.
72998
72999 2006-06-17  Eric Blake  <ebb9@byu.net>
73000
73001         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
73002         errno.
73003
73004 2006-06-17  Bruno Haible  <bruno@clisp.org>
73005
73006         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
73007         <sys/inttypes.h>.
73008
73009 2006-06-17  Bruno Haible  <bruno@clisp.org>
73010
73011         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
73012         whether errno is declared. Assume <errno.h> declares errno.
73013
73014 2006-06-17  Bruno Haible  <bruno@clisp.org>
73015
73016         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
73017
73018 2006-06-17  Bruno Haible  <bruno@clisp.org>
73019
73020         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
73021         problem on Solaris 2.5.1.
73022
73023 2006-06-16  Eric Blake  <ebb9@byu.net>
73024
73025         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
73026         * lib/unicodeio.c [!defined errno]: Likewise.
73027         * lib/strtol.c [!defined errno]: Likewise.
73028         * lib/strtod.c [!defined errno]: Likewise.
73029
73030 2006-06-15  Eric Blake  <ebb9@byu.net>
73031
73032         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
73033
73034 2006-06-15  Eric Blake  <ebb9@byu.net>
73035
73036         * config/srclist.txt (ssize_t.m4): Lose sync.
73037
73038 2006-06-15  Bruno Haible  <bruno@clisp.org>
73039
73040         * modules/stdint (Files): Include m4/full-header-path.m4,
73041         m4/size_max.m4, m4/wchar_t.m4.
73042         (Makefile.am): Many more substitutions.
73043         * modules/stdint-tests: New file.
73044         * tests/test-stdint.c: New file.
73045
73046 2006-06-15  Bruno Haible  <bruno@clisp.org>
73047
73048         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
73049         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
73050         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
73051         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
73052         gl_CHECK_TYPE_SAME): New macros.
73053
73054 2006-06-15  Bruno Haible  <bruno@clisp.org>
73055
73056         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
73057
73058 2006-06-15  Bruno Haible  <bruno@clisp.org>
73059
73060         * lib/stdint_.h: Rewritten to be fully auto-configured.
73061         Fixes bug on HP-UX/IA64.
73062
73063 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
73064
73065         * lib/getdate.y (__attribute__): Don't define if already defined.
73066         Problem reported by Larry Jones.
73067         * lib/utimens.c (__attribute__): Likewise.
73068
73069 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
73070
73071         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
73072         reported by Andreas Schwab.
73073
73074 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73075             Bruno Haible  <bruno@clisp.org>
73076
73077         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
73078         check for the declaration of strnlen and a run test that exposes the
73079         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
73080         rpl_strndup.
73081
73082 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73083             Bruno Haible  <bruno@clisp.org>
73084
73085         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
73086
73087 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73088
73089         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
73090         compile test, for Tru64 4.0D.
73091
73092 2006-05-28  Karl Berry  <karl@gnu.org>
73093
73094         * config/srclist.txt (printf-args.c): lose sync.
73095
73096 2006-05-26  Martin Lambers  <marlam@marlam.de>
73097
73098         * lib/getpass.c: Updates the test for the native W32 API, and adds
73099         missing includes, thus fixing compilation warnings.
73100
73101 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73102
73103         * lib/exclude.c (exclude_fnmatch): New function.
73104         (excluded_file_name): Call exclude_fnmatch.
73105         * lib/exclude.h (excluded_file_name): New prototype
73106
73107 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
73108
73109         * lib/tempname.c (small_open, large_open): New macros.
73110         (__open, __open64) [!_LIBC]: Remove.
73111         (__gen_tempname): Use small_open and large_open instead of __open
73112         and __open64.  This fixes a portability bug on HP-UX 11.11i
73113         reported by Simon Wing-Tang in
73114         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
73115
73116 2006-05-24  Bruno Haible  <bruno@clisp.org>
73117
73118         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
73119         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
73120         Reported by Thorsten Maerz <torte@netztorte.de> via
73121         Aaron Stone <aaron@serendipity.cx>.
73122
73123 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73124
73125         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
73126         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
73127         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
73128         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
73129         not really conditional on the cache.
73130         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
73131
73132 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73133
73134         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
73135         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
73136         (my_usleep): Don't mishandle maximum value.
73137
73138 2006-05-19  Jim Meyering  <jim@meyering.net>
73139
73140         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
73141
73142 2006-05-17  Bruno Haible  <bruno@clisp.org>
73143
73144         Cygwin portability.
73145         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
73146
73147 2006-05-17  Bruno Haible  <bruno@clisp.org>
73148
73149         * lib/stdint_.h: Fix recognition of Cygwin.
73150
73151 2006-05-15  Bruno Haible  <bruno@clisp.org>
73152
73153         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
73154         on libtool patch by Ralf Wildenhues.
73155
73156 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73157
73158         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
73159         test for C99 conformance; (bool) 0.5 is an integer constant
73160         expression, but (bool) -0.5 is not.  Problem reported by Fedor
73161         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
73162
73163 2006-05-11  Simon Josefsson  <jas@extundo.com>
73164
73165         * m4/xvasprintf.m4: Fix obvious typo.
73166
73167 2006-05-11  Jim Meyering  <jim@meyering.net>
73168
73169         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
73170         James Lemley.
73171
73172 2006-05-10  Simon Josefsson  <jas@extundo.com>
73173
73174         * lib/md4.c: Typo fix, update copyright years.
73175         (K1, K2): Don't use L because it turn computations into 64-bit on
73176         64-bit platforms.
73177
73178 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
73179
73180         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
73181         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
73182         unwanted sign propagation, e.g., on hosts with 64-bit int.
73183         There still are some problems with reeelly weird theoretical hosts
73184         (e.g., 33-bit int) but it's not worth worrying about now.
73185         * lib/sha1.c (rol): Likewise.
73186         (K1, K2, K3, K4): Remove unnecessary L suffix.
73187
73188 2006-05-10  Bruno Haible  <bruno@clisp.org>
73189
73190         * lib/des.c: Cast to avoid warnings.
73191
73192 2006-05-09  Bruno Haible  <bruno@clisp.org>
73193
73194         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
73195         (Depends-on): Depend also on xsize, stdarg.
73196         (configure.ac): Add gl_XVASPRINTF.
73197
73198 2006-05-09  Bruno Haible  <bruno@clisp.org>
73199
73200         * m4/xvasprintf.m4: New file.
73201
73202 2006-05-09  Bruno Haible  <bruno@clisp.org>
73203
73204         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
73205         (EOVERFLOW): Define fallback value.
73206         (xstrcat): New function.
73207         (xvasprintf): Recognize the special case of a string concatenation.
73208
73209 2006-05-08  Eric Blake  <ebb9@byu.net>
73210
73211         * gnulib-tool (func_version): Base copyright year on CVS date.
73212         (func_emit_copyright_notice): New function.
73213         (func_emit_lib_Makefile_am): Use it.
73214         (func_emit_tests_Makefile_am): Likewise.
73215         (func_import): Likewise.
73216
73217 2006-05-08  Bruno Haible  <bruno@clisp.org>
73218
73219         * modules/stdarg: New file.
73220         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
73221
73222 2006-05-08  Bruno Haible  <bruno@clisp.org>
73223
73224         * m4/stdarg.m4: New file, from GNU gettext.
73225
73226 2006-05-08  Bruno Haible  <bruno@clisp.org>
73227
73228         * config/srclist.txt (build-aux/config.rpath): different from latest
73229         release.
73230
73231 2006-05-08  Bruno Haible  <bruno@clisp.org>
73232
73233         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
73234
73235 2006-05-05  Jim Meyering  <jim@meyering.net>
73236
73237         * m4/warning.m4: New file, derived from bison's file by the same name.
73238
73239 2006-05-03  Bruno Haible  <bruno@clisp.org>
73240
73241         * lib/stdint_.h: Shorter URL.
73242         * lib/inttypes.h: Likewise.
73243
73244 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73245
73246         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
73247
73248 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73249
73250         * lib/verify.h: Document the internals better.  Most of this change
73251         was written by Bruno Haible.
73252
73253 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73254
73255         * doc/verify.texi: New file, partly based on a proposal by
73256         Bruno Haible.
73257
73258 2006-05-02  Bruno Haible  <bruno@clisp.org>
73259
73260         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
73261         test from here...
73262         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
73263
73264 2006-04-29  Bruno Haible  <bruno@clisp.org>
73265
73266         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
73267         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
73268
73269 2006-04-29  Bruno Haible  <bruno@clisp.org>
73270
73271         * gnulib-tool: Make --update option actually work.
73272
73273 2006-04-29  Bruno Haible  <bruno@clisp.org>
73274
73275         * doc/gcd.texi: New file.
73276         * doc/gnulib.texi: Include it.
73277
73278 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
73279
73280         * lib/getdate.y (get_date): When adding relative date, start with the
73281         initial time, not with the result of the first mktime call.
73282
73283 2006-04-25  Bruno Haible  <bruno@clisp.org>
73284
73285         * gnulib-tool (func_import): Output the include directives in three
73286         blocks, sorted separately.
73287         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73288
73289 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73290
73291         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
73292         to define main with arguments, for C++.  Reported by Eric Blake.
73293         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
73294         Prefer 'int main ()' to 'int main (void)', for C++.
73295         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
73296         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
73297         for 'main', for C99 and C++.
73298
73299 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73300
73301         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
73302         Don't assume that exit status -1 is valid.
73303         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73304         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
73305         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
73306         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
73307         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
73308         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
73309         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
73310         functions can be used without declaring them, or that you can
73311         exit with status -1.
73312         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
73313
73314 2006-04-24  Karl Berry  <karl@gnu.org>
73315
73316         * config/srclist.txt (longdouble.m4): sync lost.
73317
73318 2006-04-24  Eric Blake  <ebb9@byu.net>
73319
73320         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
73321
73322 2006-04-24  Bruno Haible  <bruno@clisp.org>
73323
73324         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
73325         poll() implementation in AIX.
73326         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73327
73328 2006-04-24  Bruno Haible  <bruno@clisp.org>
73329
73330         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
73331         assigned exactly once.
73332
73333 2006-04-23  Claudio Fontana  <claudio@gnu.org>
73334             Bruno Haible  <bruno@clisp.org>
73335
73336         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
73337         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
73338         for AM_CPPFLAGS.
73339
73340 2006-04-23  Bruno Haible  <bruno@clisp.org>
73341
73342         * modules/copy-file: Depend on unistd.
73343         * modules/execute: Likewise.
73344         * modules/fatal-signal: Likewise.
73345         * modules/findprog: Likewise.
73346         * modules/mkdtemp : Likewise.
73347         * modules/pipe: Likewise.
73348         * modules/wait-process: Likewise.
73349
73350 2006-04-23  Bruno Haible  <bruno@clisp.org>
73351
73352         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
73353         condition was already detected.
73354         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73355
73356 2006-04-23  Bruno Haible  <bruno@clisp.org>
73357
73358         * lib/copy-file.c: Include <unistd.h> unconditionally.
73359         * lib/execute.c: Likewise.
73360         * lib/fatal-signal.c: Likewise.
73361         * lib/findprog.c: Likewise.
73362         * lib/mkdtemp.c: Likewise.
73363         * lib/pipe.h: Likewise.
73364         * lib/pipe.c: Likewise.
73365         * lib/wait-process.h: Likewise.
73366
73367 2006-04-23  Bruno Haible  <bruno@clisp.org>
73368
73369         * gnulib-tool (func_usage): Fix --import description. Document
73370         --update.
73371         (func_import): Create temporary file in a temporary directory, if
73372         --dry-run is specified. Silence errors from 'grep' when there are no
73373         m4 files in $m4dir.
73374         (func_create_testdir): Silence errors from 'grep' when there are no
73375         m4 files in $m4dir.
73376         Reported by Karl Berry <karl@freefriends.org>.
73377
73378 2006-04-20  Bruno Haible  <bruno@clisp.org>
73379
73380         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
73381         one argument, so that the code will be portable to Autoconf 2.60.
73382         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
73383         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73384         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
73385
73386 2006-04-19  Derek Price  <derek@ximbiot.com>
73387             Eric Blake  <ebb9@byu.net>
73388
73389         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
73390         rather than "/full/path.h".  Update comment to match.  Shorten &
73391         generalize m4_translit call via AS_TR_CPP.
73392
73393 2006-04-19  Derek Price  <derek@ximbiot.com>
73394             Eric Blake  <ebb9@byu.net>
73395
73396         * lib/inttypes.h: Correct grammar in comment.
73397
73398 2006-04-18  Derek Price  <derek@ximbiot.com>
73399             Paul Eggert  <eggert@cs.ucla.edu>
73400
73401         * modules/inttypes: New file.
73402         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
73403
73404 2006-04-18  Derek Price  <derek@ximbiot.com>
73405             Paul Eggert  <eggert@cs.ucla.edu>
73406
73407         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
73408         New files.
73409
73410 2006-04-18  Derek Price  <derek@ximbiot.com>
73411             Paul Eggert  <eggert@cs.ucla.edu>
73412
73413         * lib/inttypes.h: New file.
73414         * lib/strtoimax.c: Assume <inttypes.h>.
73415
73416 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
73417
73418         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
73419         isn't mounted.  Problem reported by Kir Kolyshkin.
73420
73421 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73422
73423         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
73424         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
73425         Derek R. Price.
73426         * lib/regex.h (RE_DUP_MAX): Update comment to match current
73427         implementation.
73428
73429 2006-04-12  Eric Blake  <ebb9@byu.net>
73430
73431         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
73432         is now done automatically by the corresponding Autoconf macro.
73433
73434 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
73435
73436         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
73437         time_r.h.
73438
73439 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73440
73441         Merge regex changes from libc, removing some of our
73442         POSIX-conformance changes that were rejected and redoing them in a
73443         less-intrusive way.
73444
73445         * lib/regcomp.c (re_compile_internal, init_dfa):
73446         Length arg is now size_t, not Idx.  All uses changed.
73447         (peek_token): Forward decl now says internal_function.
73448         (__re_error_msgid, __re_error_msgid_idx):
73449         Now static rather than extern with attribute_hidden.
73450         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
73451         For some reason libc prefers K&R style defns for external functions.
73452         (regerror) [!defined _LIBC]: Likewise.
73453         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
73454         (seek_collating_symbol_entry, lookup_collation_sequence_value):
73455         (build_range_exp, build_collating_symbol):
73456         Use K&R-style defn.
73457         (re_compile_fastmap): Use '\0' to memset, not 0.
73458         (utf8_sb_map): Make the calculations more obvious.
73459         (init_dfa, parse_bracket_exp, build_charclass_op):
73460         Call calloc and cast result, as glibc does.
73461         (init_word_char, fetch_token, peek_token, peek_token_bracket):
73462         (build_range_exp, build_collating_symbol):
73463         Now internal functions.
73464
73465         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
73466
73467         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
73468         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
73469         Don't depend on VMS; depend on __VMS instead, for POSIX
73470         namespace cleanness.
73471         (regoff_t): Define to ssize_t, not long int.
73472
73473         Remove the REG_ macros named below.  Instead, make the old names
73474         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
73475         __USE_GNU_REGEX.
73476         (REG_BACKSLASH_ESCAPE_IN_LISTS):
73477         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
73478         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
73479         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
73480         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
73481         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
73482         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
73483         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
73484         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
73485         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
73486         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
73487         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
73488         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
73489         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
73490         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
73491         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
73492         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
73493         (REG_NREGS):
73494         Remove.  All uses replaced by the old RE_* names.
73495         (RE_BACKSLASH_ESCAPE_IN_LISTS):
73496         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
73497         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
73498         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
73499         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
73500         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
73501         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
73502         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
73503         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
73504         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
73505         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
73506         Don't bother having these macros be independent of each others'
73507         values, since they no longer exist in the POSIX name space.
73508
73509         Rename the following member names back to their old names,
73510         unless !__USE_GNU_REGEX.  All uses changed back.
73511         (buffer): Renamed from re_buffer.
73512         (allocated): Renamed from re_allocated.
73513         (used): Renamed from re_used.
73514         (syntax): Renamed from re_syntax.
73515         (fastmap): Renamed from re_fastmap.
73516         (translate): Renamed from re_translate.
73517         (can_be_null): Renamed from re_can_be_null.
73518         (regs_allocated): Renamed from re_regs_allocated.
73519         (fastmap_accurate): Renamed from re_fastmap_accurate.
73520         (no_sub): Renamed from re_no_sub.
73521         (not_bol): Renamed from re_not_bol.
73522         (not_eol): Renamed from re_not_eol.
73523         (newline_anchor): Renamed from re_newline_anchor.
73524         (num_regs): Renamed from rm_num_regs.
73525         (start): Renamed from rm_start.
73526         (end): Renamed from rm_end.
73527
73528         (free_state): Move up a bit.
73529
73530         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
73531         #define to be empty.
73532         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
73533         when that is what is intended.
73534         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
73535         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
73536         (MAX): New macro.
73537         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
73538         All uses changed back to re_malloc, etc.  It's now the caller's
73539         responsibility to check for overflow; all callers changed.
73540         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
73541         (re_x2nrealloc): Remove.
73542         (free_state): Remove decl.
73543
73544         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
73545         (re_set_registers, re_exec):
73546         Use K&R-style defn.
73547
73548         2006-01-31  Roland McGrath  <roland@redhat.com>
73549
73550         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
73551         Reported by Mike Frysinger <vapier@gentoo.org>.
73552
73553         2006-01-15  Andreas Jaeger  <aj@suse.de>
73554
73555         [BZ #1950]
73556         * lib/regex_internal.c (re_string_reconstruct): Adjust for
73557         build_wcs_upper_buffer change.
73558         (build_wcs_upper_buffer): Change return type.
73559
73560         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
73561
73562         * lib/regex_internal.h: Include <stdint.h> if available.
73563
73564         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
73565
73566         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
73567
73568         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73569
73570         * lib/regcomp.c: Adjust for changed secondary hash function.
73571
73572         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
73573
73574         * lib/regex.h: Pretty printing.
73575         Clean up namespace a bit.
73576
73577         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
73578
73579         * lib/regexec.c (update_cur_sifted_state, check_arrival,
73580         check_arrival_add_next_nodes): Avoid using uninitialized variable.
73581
73582         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73583                     Ulrich Drepper  <drepper@redhat.com>
73584
73585         [BZ #1302]
73586         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
73587         changed.
73588         (bitset_word_t): Renamed from bitset_word.  All uses changed.
73589
73590         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
73591
73592         [BZ #281]
73593         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
73594         * lib/regcomp.c: Remove unnecessary uses of
73595         unsigned RE_TRANSLATE_TYPE.
73596         * lib/regex_internal.h: Likewise.
73597         * lib/regex_internal.c: Likewise.
73598         * lib/regexec.c: Likewise.
73599         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
73600
73601         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
73602
73603         * lib/regexec.c (find_recover_state): Remove unnecessary
73604         initialization.
73605         (transit_state_bkref): Make DFA a const pointer.
73606         (get_subexp): Likewise.
73607         (check_arrival): Likewise.
73608         (update_cur_sifted_state): Likewise.
73609         (re_search_internal): Likewise.
73610         (prune_impossible_nodes): Likewise.
73611         (acquire_init_state_context): Likewise.
73612         (proceed_next_node): Likewise.
73613         (set_regs): Likewise.
73614         (free_fail_stack_return): Likewise.
73615         (check_arrival_expand_ecl): Mark DFA parameter as const.
73616         (check_arrival_expand_ecl_sub): Likewise.
73617         (check_subexp_limits): Likewise.
73618         (sub_epsilon_src_nodes):  Likewise.
73619         (add_epsilon_src_nodes):  Likewise.
73620         (merge_state_array): Likewise.
73621         (update_regs): Likewise.
73622         (build_trtable): Likewise.
73623         (sift_states_backward): Mark MCTX parameter as const.
73624         (build_sifted_states): Likewise.
73625         (update_cur_sifted_state): Likewise.
73626         (sift_states_mkref): Likewise.
73627         (check_arrival_expand_ecl): Mark eclosure as const.
73628         (check_dst_limits_calc_pos_1): Likewise.
73629         * lib/regex_internal.h (re_match_context_t): Make dfa a const
73630         pointer.
73631
73632         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
73633
73634         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
73635         (transit_state_sb): Likewise.
73636         (transit_state_mb): Likewise.
73637         (sift_states_iter_mb): Likewise.
73638         (check_arrival_add_next_nodes): Likewise.
73639         (check_node_accept_bytes): Change first parameter to pointer-to-const.
73640         [_LIBC] (re_search_2_stub): Use mempcpy.
73641
73642         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
73643         mbrtowc for very simple UTF-8 case.
73644
73645         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
73646         a pointer-to-const.
73647         (re_acquire_state_context): Likewise.
73648         * lib/regex_internal.h: Adjust prototypes.
73649
73650         * lib/regex.c: Prevent using C++ compilers.
73651
73652         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
73653         (re_acquire_state_context): Likewise.
73654
73655 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73656
73657         * modules/regex (Depends-on): Add ssize_t.
73658
73659 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73660
73661         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
73662         translation table.
73663
73664 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73665
73666         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
73667
73668 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
73669             Bruno Haible  <bruno@clisp.org>
73670
73671         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
73672         <sys/types.h> and <inttypes.h>.
73673
73674 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73675
73676         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
73677         `__error_t_defined', so argp.h will not typedef the former.
73678
73679 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
73680
73681         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
73682         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
73683         glibc names.  Even if glibc is changed to conform to POSIX, the
73684         traditional names will be available anyway, since regex depends on
73685         the extensions module.  Also, fix a longstanding typo in the
73686         implementation of Spencer ERE test #75 from grep 2.3.  Problems
73687         reported by Emanuele Giaquinta.  Also, change sense of cached
73688         variable, so that the message makes sense.
73689
73690 2006-03-24  Simon Josefsson  <jas@extundo.com>
73691
73692         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
73693         including some doc fixes.
73694         (base64_encode_alloc): Fix +1 bug on allocation failures.
73695
73696 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73697
73698         * lib/base64.c (base64_encode): Do not read past end of array with
73699         unsanitized input on systems with CHAR_BIT > 8.
73700
73701 2006-03-24  Eric Blake  <ebb9@byu.net>
73702
73703         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
73704
73705 2006-03-22  Karl Berry  <karl@gnu.org>
73706
73707         * config/srclist.txt (*setenv.[ch]): get from coreutils.
73708         * config/srclistvars.sh (COREUTILS): new var.
73709
73710 2006-03-17  Jim Meyering  <jim@meyering.net>
73711
73712         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
73713         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
73714
73715 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73716
73717         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
73718         no longer needs it.  Instead, check that regoff_t is as least
73719         as wide as ptrdiff_t.
73720
73721         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
73722         so that our regex.h stays compatible with the installed regex.
73723         This is helpful for installers who configure --without-included-regex.
73724         Problem reported by Emanuele Giaquinta.
73725
73726 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73727
73728         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
73729         Typedef to long int, not to off_, as POSIX will likely change
73730         in that direction.
73731
73732 2006-03-15  Eric Blake  <ebb9@byu.net>
73733
73734         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
73735
73736 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73737
73738         * lib/argp-help.c (validate_uparams): Fix typo
73739         * lib/argp-parse.c (argp_default_options): Consistently begin help
73740         messages with a lowercase letter.
73741
73742 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
73743
73744         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
73745         overrun buffers and shouldn't be used (much as gets shouldn't be
73746         used).
73747         * lib/time_r.c (asctime_r, ctime_r): Likewise.
73748
73749 2006-03-08  Simon Josefsson  <jas@extundo.com>
73750
73751         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
73752         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73753
73754 2006-03-08  Simon Josefsson  <jas@extundo.com>
73755
73756         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
73757         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73758
73759 2006-03-08  Simon Josefsson  <jas@extundo.com>
73760
73761         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
73762         signal that configure disabled the device.
73763
73764 2006-03-08  Simon Josefsson  <jas@extundo.com>
73765
73766         * build-aux/maint.mk: Fix refresh-po, to handle no translated
73767         languages.
73768
73769 2006-03-07  Simon Josefsson  <jas@extundo.com>
73770
73771         * modules/getopt (Depends-on): Add unistd.
73772
73773         * modules/unistd: New file.
73774
73775 2006-03-07  Simon Josefsson  <jas@extundo.com>
73776
73777         * modules/gc-random: New file.
73778
73779 2006-03-07  Simon Josefsson  <jas@extundo.com>
73780
73781         * m4/unistd_h.m4: New file.
73782
73783 2006-03-07  Simon Josefsson  <jas@extundo.com>
73784
73785         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
73786         test to be side-effect free by storing the result in the cache
73787         variable gl_cv_lib_readline, and moving the assignment of
73788         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
73789         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73790
73791 2006-03-07  Simon Josefsson  <jas@extundo.com>
73792
73793         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
73794         error on missing devices (the functions will return an error).
73795
73796         * m4/gc.m4: Move random stuff to gc-random.m4
73797
73798 2006-03-07  Simon Josefsson  <jas@extundo.com>
73799
73800         * lib/unistd_.h: New file.
73801
73802 2006-03-07  Simon Josefsson  <jas@extundo.com>
73803
73804         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
73805
73806 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73807
73808         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
73809         Problem reported by Juan Manuel Guerrero.
73810
73811 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73812
73813         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
73814         the unistd module.
73815         * lib/getlogin_r.c: Likewise.
73816         * lib/getlogin_r.h: Likewise.
73817         * lib/glob.c: Likewise.
73818         * lib/pagealign_alloc.c: Likewise.
73819         * lib/unistd_.h: Remove; no longer needed.
73820
73821 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73822
73823         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73824         Add unistd.
73825         * modules/c-stack (Depends-on): Add unistd.
73826         * modules/getlogin_r: Likewise.
73827         * modules/glob: Likewise.
73828         * modules/pagealign_alloc: Likewise.
73829         * modules/unistd (Files): Remove lib/unistd_.h.
73830         (EXTRA_DIST): Remove.
73831         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
73832         need unistd_.h.
73833         (MOSTLYCLEANFILES): Remove unistd.h-t.
73834
73835 2006-03-03  Simon Josefsson  <jas@extundo.com>
73836
73837         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
73838
73839 2006-03-03  Simon Josefsson  <jas@extundo.com>
73840
73841         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
73842         libidn and bison.
73843
73844 2006-03-03  Simon Josefsson  <jas@extundo.com>
73845
73846         * build-aux/maint.mk: Add indent target.
73847
73848 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
73849
73850         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
73851         our replacement poll.h in any case, to avoid a differing
73852         declaration from a system header.  Seen on AIX.
73853
73854 2006-03-01  Simon Josefsson  <jas@extundo.com>
73855
73856         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
73857         <kasal@ucw.cz>.
73858
73859 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73860
73861         * modules/gettime (Depends-on): Add extensions module.
73862         * modules/nanosleep (Depends-on): Likewise.
73863         * modules/settime (Depends-on): Likewise.
73864
73865 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73866
73867         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
73868         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
73869         pedantically.
73870         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73871         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
73872
73873         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
73874         not "==".  Reported by Ralf Wildenhues.
73875
73876 2006-03-01  Karl Berry  <karl@gnu.org>
73877
73878         * doc/Copyright/request-*: new files, synced from gnuorg.
73879
73880 2006-03-01  Karl Berry  <karl@gnu.org>
73881
73882         * config/srclist.txt (Copyright/*): new entries.
73883
73884 2006-02-28  Simon Josefsson  <jas@extundo.com>
73885
73886         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
73887
73888 2006-02-27  Simon Josefsson  <jas@extundo.com>
73889
73890         * lib/base64.h: Indent #define's.  From Jim Meyering
73891         <jim@meyering.net>.
73892
73893 2006-02-27  Jim Meyering  <jim@meyering.net>
73894
73895         Revert the change of 2006-02-24, so these files can continue
73896         to be sync'd from gettext.
73897         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
73898         of `config.h'.
73899
73900 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73901
73902         * modules/intprops: New file.
73903         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73904         Add intprops.
73905         * modules/getloadavg (Files): Remove lib/intprops.h.
73906         (Depends-on): Add intprops.
73907         * modules/human: Likewise.
73908         * modules/inttostr: Likewise.
73909         * modules/openat: Likewise.
73910         * modules/sig2str: Likewise.
73911         * modules/userspec: Likewise.
73912         * modules/utimecmp: Likewise.
73913         * modules/xnanosleep: Likewise.
73914         * modules/xstrtol: Likewise.
73915
73916 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
73917
73918         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
73919         * modules/lock-tests (TESTS): Use $(EXEEXT).
73920         * modules/tls-tests: Likewise.
73921         * modules/argp-tests: Likewise.
73922         (check_PROGRAMS): New var, replacing...
73923         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
73924
73925 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73926
73927         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
73928         `config.h'.
73929
73930 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73931
73932         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
73933
73934 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73935
73936         Sync from coreutils.
73937         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
73938         gl_CHDIR_SAFER.
73939
73940 2006-02-22  Jim Meyering  <jim@meyering.net>
73941
73942         Sync from coreutils.
73943         * m4/chdir-safer.m4: New file.
73944
73945 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73946
73947         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
73948         AT_FDCWD exceeds INT_MAX.
73949         * lib/openat.h (AT_FDCWD): Likewise.
73950
73951 2006-02-17  Eric Blake  <address@hidden>
73952
73953         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
73954
73955 2006-02-16  Simon Josefsson  <jas@extundo.com>
73956
73957         * modules/getaddrinfo (Depends-on): Add sys_socket.
73958
73959 2006-02-15  Simon Josefsson  <jas@extundo.com>
73960
73961         * build-aux/maint.mk: Add dsyntax-check rule.
73962
73963 2006-02-15  Eric Blake  <ebb9@byu.net>
73964
73965         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
73966         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
73967         'present but cannot compile' warnings on cygwin.
73968         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
73969         use ws2tcpip.h if sys/socket.h works.
73970         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
73971         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
73972
73973 2006-02-14  Simon Josefsson  <jas@extundo.com>
73974
73975         * modules/maintainer-makefile (Files): Rename.
73976
73977         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
73978         and (the local) Makefile.cfg to maint-cfg.mk.
73979
73980         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
73981         to the latter.
73982
73983         * modules/maintainer-makefile: New module.
73984
73985         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
73986         severaly stripped to make it possible to build it up from scratch
73987         with reliable tests.
73988
73989         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
73990         fixes to permit overriding the default actions when configure and
73991         makefile are not available.
73992
73993 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73994
73995         Sync from coreutils.
73996         * modules/lstat (Depends-on): Don't depend on xalloc.
73997         (License): Change from GPL to LGPL, since this is now simply a
73998         replacement for a libc function.
73999
74000 2006-02-14  Jim Meyering  <jim@meyering.net>
74001
74002         Sync from coreutils.
74003
74004         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
74005         failure on deficient systems, and simplify gnulib lgpl dependencies.
74006         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
74007         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
74008
74009         * lib/xalloc-die.c: Remove unused definition of N_.
74010
74011 2006-02-14  Jim Meyering  <jim@meyering.net>
74012
74013         Sync from coreutils.
74014         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
74015         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
74016         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
74017         double-quote uses of that variable, to accommodate the rare case in
74018         which getmntent is available in none of the libraries checked.  This
74019         happens at least on FreeBSD 5.0.
74020
74021 2006-02-13  Simon Josefsson  <jas@extundo.com>
74022
74023         * gnulib-tool (Usage): Fix --import, from
74024         karl@freefriends.org (Karl Berry).
74025
74026 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74027
74028         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
74029
74030 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
74031
74032         * lib/argp-namefrob.h: Restore changes accidentally lost during the
74033         "autoupdate" on 2005-12-12.
74034
74035 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74036
74037         * modules/closeout (Depends-on): Remove atexit.
74038
74039 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74040
74041         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
74042         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
74043
74044 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74045
74046         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
74047         __EXTENSIONS__ if this causes compilation to fail.  Problem
74048         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
74049         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
74050
74051 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
74052
74053         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
74054         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
74055         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
74056         All uses changed.
74057
74058 2006-01-26  Simon Josefsson  <jas@extundo.com>
74059
74060         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
74061         prototype is visible on mingw32.
74062
74063         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
74064         for mingw32.
74065
74066         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
74067         mingw32).
74068
74069 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74070
74071         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
74072         attempt to open for write; this always fails, at least on POSIX
74073         hosts.  This reinstates the 2006-01-09 change, which was
74074         inadvertently removed.
74075
74076 2006-01-26  Bruno Haible  <bruno@clisp.org>
74077
74078         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
74079         Reported by Paul Eggert.
74080
74081 2006-01-26  Bruno Haible  <bruno@clisp.org>
74082             Paul Eggert  <eggert@cs.ucla.edu>
74083
74084         * lib/stdbool_.h (_Bool)
74085         [(! (defined __cplusplus || defined __BEOS__)
74086           && !defined __GNUC__
74087           && !(defined __HP_cc || defined __xlc__
74088                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
74089                || defined __sgi))]:
74090         #define to signed char in these cases too; this simplifies
74091         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
74092         etc., separately) and makes it more conservative.
74093
74094 2006-01-25  Simon Josefsson  <jas@extundo.com>
74095
74096         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
74097         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
74098         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
74099
74100 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74101
74102         * lib/argp-namefrob.h: Bugfix. Remove stray #
74103
74104 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
74105
74106         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
74107         so that we test the test.
74108         Check for yet another HP-UX cc bug involving *bool |= bool.
74109
74110 2006-01-25  Karl Berry  <karl@gnu.org>
74111
74112         * config/srclist.txt (vasnprintf.c): sync lost.
74113
74114 2006-01-25  Jim Meyering  <jim@meyering.net>
74115
74116         Sync from the stable (b5) branch of coreutils:
74117
74118         * lib/fts.c (fts_children): Don't let close() clobber errno from
74119         failed fchdir().
74120
74121         * lib/fts.c (fts_stat): When following a symlink-to-directory,
74122         don't necessarily interpret stat-fails+lstat-succeeds as indicating
74123         a dangling symlink.  That can also happen at least for ELOOP.
74124         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
74125         FYI, this bug predates the inclusion of fts.c in coreutils.
74126
74127         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
74128         in their own block, so pre-c99 compilers don't object.
74129
74130         Avoid the double-free (first in fts_read, second in fts_close) that
74131         would occur when an `active' directory is made inaccessible (e.g.,
74132         via chmod a-x) during a traversal.
74133         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74134         before returning.  Reproduce this failure by
74135         mkdir -p a/b; cd a; chmod a-x . b
74136         Reported by Stavros Passas.
74137
74138 2006-01-25  Jim Meyering  <jim@meyering.net>
74139
74140         * lib/fileblocks.c: Remove more useless parentheses.
74141         * lib/readutmp.h: Likewise.
74142
74143 2006-01-25  Bruno Haible  <bruno@clisp.org>
74144
74145         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
74146         warnings.
74147         Reported by Paul Eggert.
74148
74149 2006-01-25  Bruno Haible  <bruno@clisp.org>
74150
74151         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
74152         rid of a trap command. For Solaris sh.
74153         Reported by Mark D. Baushke <mdb@gnu.org>.
74154
74155 2006-01-24  Simon Josefsson  <jas@extundo.com>
74156
74157         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
74158         Bruno.
74159
74160 2006-01-24  Karl Berry  <karl@gnu.org>
74161
74162         * config/srclist.txt (argp-namefrob.h): sync lost.
74163
74164 2006-01-24  Jim Meyering  <jim@meyering.net>
74165
74166         * modules/openat (Files): Add lib/intprops.h.
74167         From Mark D. Baushke.
74168
74169 2006-01-24  Jim Meyering  <jim@meyering.net>
74170
74171         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
74172         Reported by Mark D. Baushke.
74173
74174 2006-01-24  Jim Meyering  <jim@meyering.net>
74175
74176         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
74177
74178 2006-01-24  Bruno Haible  <bruno@clisp.org>
74179
74180         * modules/strnlen (Maintainer): Change from glibc to all.
74181
74182 2006-01-24  Bruno Haible  <bruno@clisp.org>
74183
74184         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
74185         Patch by Paul Eggert.
74186
74187 2006-01-24  Bruno Haible  <bruno@clisp.org>
74188
74189         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
74190         already has it.
74191         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
74192         2005-11-26.
74193
74194         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
74195         'signed char' to avoid problems with the built-in _Bool type.
74196         Reported by Paul Eggert on 2005-11-26.
74197
74198 2006-01-24  Bruno Haible  <bruno@clisp.org>
74199
74200         * gnulib-tool (func_import): Avoid constructing complicated sed
74201         expressions inside backquote.
74202         Report and solution by Mark D. Baushke <mdb@gnu.org>.
74203
74204 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
74205
74206         These changes imported from libc.
74207         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
74208         test and two separate function calls.
74209         * lib/strndup.c (__strndup): Add libc_hidden_def.
74210
74211 2006-01-23  Simon Josefsson  <jas@extundo.com>
74212
74213         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
74214         Remove the test_*_SOURCES variable: automake infers it by default.
74215         * modules/tls-tests: Likewise.
74216
74217 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74218
74219         Work around porting bugs reported by Dieter in
74220         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
74221         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
74222         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
74223         Include "getopt.h" first, to check interface.
74224         (getenv): Declare only if defined HAVE_DECL_GETENV &&
74225         !HAVE_DECL_GETENV.
74226         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
74227         (__strndup): Revert to K&R-style function dfns, the glibc style.
74228         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
74229         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
74230         Include strnlen.h first, to get prototype properly.
74231         (strnlen): Renamed from __strnlen.
74232         Remove weak alias.
74233
74234 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74235
74236         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
74237
74238 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74239
74240         * config/srclist.txt: Adjust to reflect glibc reorganization.
74241         This affects only comments.
74242
74243 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74244
74245          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
74246          Reported by Bruce Korb <bkorb@gnu.org>.
74247
74248 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74249
74250         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
74251         to pacify gcc -Wswitch-default.
74252
74253 2006-01-22  Bruno Haible  <bruno@clisp.org>
74254
74255         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
74256         temporary buffer for sprintf, take into account the precision also
74257         for 'd', 'i', 'u', 'o', 'x', 'X'.
74258
74259 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74260
74261         * modules/argp-tests: New module
74262         * tests/test-argp.c: New file
74263         * tests/test-argp-2.sh: New file
74264
74265 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74266
74267         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
74268         (__argp_base_name): Removed
74269         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
74270         typo.
74271         (__argp_base_name): Provide macro definition or extern declaration
74272         depending on the configuration
74273
74274 2006-01-20  Simon Josefsson  <jas@extundo.com>
74275
74276         * modules/inet_ntop (Depends-on): Depend on sys_socket.
74277
74278 2006-01-20  Simon Josefsson  <jas@extundo.com>
74279
74280         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
74281
74282 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74283
74284         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
74285         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
74286         Suggested by Bruno Haible.
74287
74288 2006-01-20  Karl Berry  <karl@gnu.org>
74289
74290         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
74291         until changes propagate, I guess.
74292
74293 2006-01-19  Simon Josefsson  <jas@extundo.com>
74294
74295         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
74296
74297 2006-01-19  Simon Josefsson  <jas@extundo.com>
74298
74299         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
74300
74301 2006-01-19  Simon Josefsson  <jas@extundo.com>
74302
74303         * gnulib-tool: Set check_PROGRAMS.
74304
74305         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74306         modules/des-tests, modules/gc-arcfour-tests,
74307         modules/gc-arctwo-tests, modules/gc-des-tests,
74308         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74309         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74310         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74311         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74312         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74313         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
74314         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
74315         test_*_SOURCES.
74316
74317 2006-01-18  Simon Josefsson  <jas@extundo.com>
74318
74319         * modules/socklen (Depends-on): Depend on sys_socket.
74320
74321 2006-01-18  Simon Josefsson  <jas@extundo.com>
74322
74323         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74324         modules/des-tests, modules/gc-arcfour-tests,
74325         modules/gc-arctwo-tests, modules/gc-des-tests,
74326         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74327         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74328         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74329         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74330         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74331         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
74332         $(EXEEXT) to automake TESTS variable, for mingw32.
74333
74334 2006-01-17  Simon Josefsson  <jas@extundo.com>
74335
74336         * modules/socklen (Include): Need sys/socket.h.
74337
74338 2006-01-17  Bruno Haible  <bruno@clisp.org>
74339
74340         * modules/ssize_t (Include): Add <sys/types.h>.
74341
74342 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
74343
74344         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
74345         it's not portable and it doesn't work with cross-compiles.
74346         Problem reported by Bruno Haible.  Fix missing-$ typo in
74347         'test "gl_cv_ignore_unused_libraries" ...' that prevented
74348         -zignore from being used with Sun's C compiler.
74349
74350 2006-01-12  Simon Josefsson  <jas@extundo.com>
74351
74352         * lib/base64.c: Fix warning, reported by Bruno Haible
74353         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
74354
74355 2006-01-12  Bruno Haible  <bruno@clisp.org>
74356
74357         * modules/ldd: New file.
74358         * build-aux/ldd.sh.in: New file.
74359         * MODULES.html.sh (Support for building libraries and executables): Add
74360         ldd.
74361
74362 2006-01-12  Bruno Haible  <bruno@clisp.org>
74363
74364         * m4/ldd.m4: New file.
74365
74366 2006-01-12  Bruno Haible  <bruno@clisp.org>
74367
74368         * gnulib-tool (func_import, func_create_testdir): Don't go into an
74369         endless loop while replacing $auxdir with build-aux.
74370
74371 2006-01-11  Simon Josefsson  <jas@extundo.com>
74372
74373         * lib/stdint_.h (SIZE_MAX): Add missing (.
74374
74375 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
74376
74377         Sync from coreutils.
74378         * lib/md5.c: Fix commentary typos.
74379         (alignof, UNALIGNED_P): No need for a GCC-specific version.
74380         * lib/md5.h (__attribute__): Remove; unused.
74381         * lib/sha1.c: Fix commentary to match md5 better.
74382         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
74383         so that we don't need to worry about alignment.  All uses changed.
74384         This merges the 2005-10-28 md5 change into sha1.
74385
74386 2006-01-11  Jim Meyering  <jim@meyering.net>
74387
74388         Sync from coreutils.
74389         * lib/md5.c (OP): Fix spacing.
74390
74391 2006-01-11  Bruno Haible  <bruno@clisp.org>
74392
74393         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74394         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
74395         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
74396
74397 2006-01-11  Bruno Haible  <bruno@clisp.org>
74398
74399         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74400         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
74401         the "early" section as well.
74402
74403 2006-01-11  Bruno Haible  <bruno@clisp.org>
74404
74405         Avoid "ar: no archive members specified" error on MacOS X.
74406         * gnulib-tool (func_modules_add_dummy): New function.
74407         (func_import, func_create_testdir): Invoke it.
74408
74409 2006-01-11  Bruno Haible  <bruno@clisp.org>
74410
74411         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
74412         with $auxdir in AC_CONFIG_FILES statements.
74413
74414 2006-01-11  Bruno Haible  <bruno@clisp.org>
74415
74416         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74417         Initialize also noinst_HEADERS to empty.
74418
74419 2006-01-11  Bruno Haible  <bruno@clisp.org>
74420
74421         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
74422         variables.
74423         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
74424         autoreconf.
74425
74426 2006-01-11  Bruno Haible  <bruno@clisp.org>
74427
74428         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
74429         overridable by the user.
74430         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74431
74432 2006-01-10  Simon Josefsson  <jas@extundo.com>
74433
74434         * modules/sys_socket: New file.
74435
74436 2006-01-10  Simon Josefsson  <jas@extundo.com>
74437
74438         * m4/sys_socket_h.m4: New file.
74439
74440 2006-01-10  Simon Josefsson  <jas@extundo.com>
74441
74442         * lib/socket_.h: New file.
74443
74444 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74445
74446         * modules/readutmp (Maintainer): Add myself.
74447
74448 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74449
74450         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
74451         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
74452         People who are still concerned with buggy memcmp implementations
74453         can invoke gl_FUNC_MEMCMP themselves.
74454
74455 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74456
74457         * lib/regex_internal.h (BITSET_WORD_BITS):
74458         Work around a bug in 64-bit PGC (before version 6.1-2), where the
74459         preprocessor mishandles large unsigned values as if they were signed.
74460         Problem reported by Claudio Fontana in
74461         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
74462
74463 2006-01-10  Jim Meyering  <jim@meyering.net>
74464
74465         Avoid the double-free (first in fts_read, second in fts_close) that
74466         would occur when an `active' directory is made inaccessible (e.g.,
74467         via chmod a-x) during a traversal.
74468         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74469         before returning.  Reproduce this failure by
74470         mkdir -p a/b; cd a; chmod a-x . b
74471         Reported by Stavros Passas.
74472
74473         Sync from coreutils.
74474         * lib/sha1.c: Tweak grammar in a comment.
74475
74476 2006-01-10  Jim Meyering  <jim@meyering.net>
74477
74478         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
74479         Patch by Joerg Sonnenberger.
74480
74481 2006-01-10  Bruno Haible  <bruno@clisp.org>
74482
74483         * modules/readutmp: Depend on module free.
74484         * modules/strtok_r: Depend on module restrict.
74485
74486 2006-01-10  Bruno Haible  <bruno@clisp.org>
74487
74488         * modules/gettext (configure.ac): Add an invocation of
74489         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
74490
74491 2006-01-10  Bruno Haible  <bruno@clisp.org>
74492
74493         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
74494         Reported by Werner Lemberg <wl@gnu.org>.
74495
74496 2006-01-10  Bruno Haible  <bruno@clisp.org>
74497
74498         * lib/localcharset.c: Update from GNU gettext.
74499
74500 2006-01-10  Bruno Haible  <bruno@clisp.org>
74501
74502         * lib/argp.h (__const): Remove macro. Use const instead.
74503         * lib/argp-fmtstream.h (__const): Likewise.
74504         * lib/glob_.h (__const): Remove macro.
74505         * lib/glob-libc.h: Use const instead of __const.
74506
74507 2006-01-10  Bruno Haible  <bruno@clisp.org>
74508
74509         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
74510         variable.
74511         Needed to avoid an automake error regarding the 'gettext' module.
74512
74513 2006-01-09  Simon Josefsson  <jas@extundo.com>
74514
74515         * modules/inet_ntop (Depends-on): Add restrict.
74516
74517 2006-01-09  Simon Josefsson  <jas@extundo.com>
74518
74519         * modules/gc-rijndael-tests (License): Put under LGPL.
74520
74521         * modules/gc-des-tests (License): Likewise.
74522
74523         * modules/gc-arcfour-tests (License): Likewise.
74524
74525         * modules/gc-arctwo-tests (License): Likewise.
74526
74527         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
74528
74529         * modules/gc-hmac-sha1-tests (Files): Likewise.
74530
74531         * modules/gc-hmac-md5-tests (License): Likewise.
74532
74533         * modules/gc-sha1-tests (License): Likewise.
74534
74535         * modules/gc-md5-tests (License): Likewise.
74536
74537         * modules/gc-md4-tests (License): Likewise.
74538
74539         * modules/gc-md2-tests (License): Likewise.
74540
74541         * modules/gc-tests (License): Likewise.
74542
74543         * modules/des-tests (License): Likewise.
74544
74545         * modules/md4-tests (License): Likewise.
74546
74547         * modules/md2-tests (License): Likewise.
74548
74549 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74550
74551         Sync from coreutils:
74552
74553         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
74554         * modules/lib-ignore: New file.
74555         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
74556         chdir-safer.m4, lchmod.m4.
74557         * modules/openat: Add mkdirat.c, openat-priv.h.
74558
74559 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74560
74561         Sync from coreutils.
74562         * m4/lib-ignore.m4: New file.
74563         * m4/lchmod.m4: New file.
74564
74565 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74566
74567         Sync from coreutils.
74568         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
74569         for write access: POSIX says that must fail.
74570         * lib/fts.c (diropen): Likewise.
74571         * lib/save-cwd.c (save_cwd): Likewise.
74572         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
74573         well, for minor improvements on hosts that lack O_DIRECTORY.
74574         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
74575         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
74576         Fall back on chown if open failed with EACCES.
74577
74578         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
74579         Report an error at compile-time if only a 1-second nominal clock
74580         resolution is found.
74581
74582         * lib/lchmod.h: New file.
74583         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
74584         (make_dir_parents): Use lchown rather than chown, and
74585         lchmod rather than chmod.
74586
74587         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
74588         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
74589         "proc" reported by n0dalus.
74590
74591         * lib/mountlist.c: Include <limits.h>.
74592         (dev_from_mount_options)
74593         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
74594         New function.  It no longer assumes "dev=" has the System V meaning
74595         on Linux (since it doesn't).  It also parses "dev=" more carefully.
74596         (read_file_system_list)
74597         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
74598         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
74599         dev= in that case.
74600
74601         * lib/posixtm.h (PDS_PRE_2000): New macro.
74602         * lib/posixtm.c (year): Arg is now syntax_bits rather than
74603         allow_century.  All usages changed.  Reject dates outside the range
74604         1969-1999 if PDS_PRE_2000 is used.
74605
74606 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74607
74608         Sync from coreutils.
74609         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
74610         (Time of day items): Mention the possibility of leap seconds.
74611         Problem reported by Dr. David Alan Gilbert.
74612
74613 2006-01-09  Jim Meyering  <jim@meyering.net>
74614
74615         Sync from coreutils.
74616
74617         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
74618
74619         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
74620
74621         * lib/modechange.c (mode_compile): Reject an invalid mode string
74622         that starts with an octal digit.  From Andreas Gruenbacher.
74623
74624         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
74625         and dup to open_safer and dup_safer, respectively.
74626         (openat_permissive): Fix typo in comment.
74627
74628         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
74629         "gettext.h"; either no longer needed or are guaranteed by openat.h.
74630         (_): Remove; no longer needed.
74631         (openat): Renamed from rpl_openat; no need for rpl_openat
74632         since openat.h renames openat for us.
74633         Replace most of the body with a call to openat_permissive,
74634         to avoid duplicate code.
74635         Port to (probably hypothetical) environments were mode_t is
74636         wider than int.
74637         (openat_permissive): Require mode arg, so that we can check
74638         types better.  Put it just after flags.  Change cwd failure
74639         indicator from pointer-to-bool to pointer-to-errno-value.
74640         All callers changed.
74641         Invoke openat_save_fail and/or openat_restore_fail if
74642         cwd_errno is null, so that openat can call us.
74643         (openat_permissive, fdopendir, fstatat, unlinkat):
74644         Simplify errno handling to avoid some duplicate code,
74645         as it's OK to set errno on success.
74646         * lib/openat.h: Revamp code so that function macros depend on
74647         __OPENAT_PREFIX only, not also on AT_FDCWD.
74648         (openat_ro): Remove.  Caller changed to use openat_permissive.
74649         (openat_permissive): Now a macro, if not a function.
74650         (openat_restore_fail, openat_save_fail): Now always functions,
74651         since mkdirat needs them even if __OPENAT_PREFIX is defined.
74652
74653         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
74654         and openat.c.
74655         * lib/mkdirat.c: Include openat-priv.h.
74656         Remove definitions of macros defined therein.
74657         * lib/openat.c: Likewise.
74658
74659         * lib/mkdirat.c (mkdirat): New file and function.
74660         * lib/openat.h (mkdirat): Declare.
74661
74662         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
74663
74664         * lib/openat.h (openat_permissive): Declare.
74665         (openat_ro): Define.
74666
74667         * lib/openat.c (EXPECTED_ERRNO): New macro.
74668         (openat_permissive): New function -- used in remove.c rewrite.
74669         (all functions): Set errno just before returning, only if there
74670         was an actual failure.
74671         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
74672
74673         Emulate openat-family functions using Linux's procfs, if possible.
74674         Idea and some code based on Ulrich Drepper's glibc changes.
74675
74676         * lib/openat.c: (BUILD_PROC_NAME): New macro.
74677         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
74678         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
74679         before falling back on save_cwd and restore_cwd.
74680         (fdopendir, fstatat, unlinkat): Likewise.
74681
74682         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
74683         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
74684
74685         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
74686         as second argument to va_arg.  Otherwise, some versions of gcc
74687         warn that `if this code is reached, the program will abort'.
74688
74689 2006-01-09  Jim Meyering  <jim@meyering.net>
74690
74691         Sync from coreutils.
74692         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
74693         Require openat-priv.h.
74694
74695 2006-01-09  Bruno Haible  <bruno@clisp.org>
74696
74697         * modules/strnlen (Include): Use strnlen.h.
74698
74699 2006-01-09  Bruno Haible  <bruno@clisp.org>
74700
74701         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
74702
74703 2006-01-09  Bruno Haible  <bruno@clisp.org>
74704
74705         * lib/sysexit_.h (EX_OK): New macro.
74706         Suggested by Martin Lambers <marlam@marlam.de>.
74707
74708 2006-01-09  Bruno Haible  <bruno@clisp.org>
74709
74710         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
74711         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
74712
74713 2006-01-09  Bruno Haible  <bruno@clisp.org>
74714
74715         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
74716         numbers.
74717
74718 2006-01-09  Bruno Haible  <bruno@clisp.org>
74719
74720         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
74721         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
74722         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
74723         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
74724
74725 2006-01-09  Bruno Haible  <bruno@clisp.org>
74726
74727         * build-aux/javacomp.sh.in: New file, moved from lib/.
74728         * modules/javacomp-script (Files): Update.
74729         (configure.ac): Add AC_CONFIG_FILES invocation.
74730         (EXTRA_DIST): Remove variable.
74731
74732         * build-aux/javaexec.sh.in: New file, moved from lib/.
74733         * modules/javaexec (Files): Update.
74734         (configure.ac): Add AC_CONFIG_FILES invocation.
74735         (EXTRA_DIST): Remove javaexec.sh.in.
74736
74737         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
74738         * modules/csharpcomp-script (Files): Update.
74739         (configure.ac): Add AC_CONFIG_FILES invocation.
74740         (EXTRA_DIST): Remove variable.
74741
74742         * build-aux/csharpexec.sh.in: New file, moved from lib/.
74743         * modules/csharpexec (Files): Update.
74744         (configure.ac): Add AC_CONFIG_FILES invocation.
74745         (EXTRA_DIST): Remove csharpexec.sh.in.
74746
74747 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74748
74749         Sync from coreutils.
74750
74751         Add POSIX ACL support
74752         * lib/acl.h (copy_acl, set_acl): Add declarations.
74753         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
74754         systems other than Linux.
74755         (chmod_or_fchmod): New function: use fchmod when possible,
74756         and chmod otherwise.
74757         (file_has_acl): Add a POSIX ACL implementation, with a
74758         Linux-specific subcase.
74759         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
74760         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
74761         acls are unsupported.
74762         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
74763         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
74764         are unsupported.
74765
74766 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74767
74768         Sync from coreutils.
74769         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
74770
74771 2006-01-07  Bruno Haible  <bruno@clisp.org>
74772
74773         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
74774         gl_EARLY.
74775
74776 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74777
74778         * lib/strftime.c (tzname): Don't declare if it is already #defined.
74779         Problem reported for Mingw by Mark Junker.
74780
74781 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74782
74783         * README: Gnulib normally doesn't generate a tarball.
74784
74785 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
74786
74787         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
74788         long int, not int, for nanosecond counts, so that people who are
74789         used to POSIX struct timespec won't be surprised.  Reported by Jim
74790         Meyering.
74791
74792 2005-12-28  Bruno Haible  <bruno@clisp.org>
74793
74794         * build-aux/config.rpath: Update from GNU gettext.
74795
74796 2005-12-16  Jim Meyering  <jim@meyering.net>
74797
74798         * modules/fprintftime: New module.
74799         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
74800
74801 2005-12-16  Jim Meyering  <jim@meyering.net>
74802
74803         * m4/fprintftime.m4: New file.
74804
74805 2005-12-16  Jim Meyering  <jim@meyering.net>
74806
74807         * lib/fprintftime.c, lib/fprintftime.h: New files.
74808
74809 2005-12-15  Simon Josefsson  <jas@extundo.com>
74810
74811         * modules/socklen (configure.ac): Fix M4 macro name, to align with
74812         new m4/socklen.m4.
74813
74814 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74815
74816         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
74817         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
74818
74819 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74820
74821         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
74822         * lib/argp-help.c (fill_in_uparams): Check if the constructed
74823         struct uparams is valid. Fall back to the default values if it is
74824         not.
74825
74826 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74827
74828         * modules/argp (Files): Add argp-pin.c
74829         (Depends-on): dirname
74830         (lib_SOURCES): Add argp-pin.c
74831
74832 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74833
74834         * m4/argp.m4:  Check if program_invocation_name and
74835         program_invocation_short_name are declared and define appropriate
74836         macros if they are not.
74837
74838 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74839
74840         * lib/argp-help.c (__argp_base_name): New function
74841         (__argp_short_program_name): Rewrite using __argp_base_name
74842         * lib/argp-namefrob.h: Define program_invocation_name and
74843         program_invocation_short_name if requested
74844         (__argp_base_name): Add prototype
74845         * lib/argp-parse.c (argp_def): Use gettext wrappers
74846         (argp_default_parser): Use __argp_base_name
74847         * lib/argp-pin.c: New file. Defines program_invocation_name and
74848         program_invocation_short_name on systems that lack them.
74849
74850 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74851
74852         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
74853         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74854         porting problem reported by Georg Schwarz in
74855         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74856
74857 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74858
74859         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
74860         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74861         porting problem reported by Georg Schwarz in
74862         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74863
74864 2005-12-05  Bruno Haible  <bruno@clisp.org>
74865
74866         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
74867         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
74868         Reported by Mark Junker <mjscod@gmx.de>.
74869
74870 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
74871
74872         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
74873         Use implementation from Albert Chin, with some
74874         comments/corrections by Stepan Kasal and myself.
74875
74876 2005-12-02  Bruno Haible  <bruno@clisp.org>
74877
74878         * gnulib-tool (func_import): Accept GPLed build tool modules when
74879         --lgpl is given.
74880         * modules/csharpcomp-script: New file.
74881         * modules/csharpcomp: Depend on it.
74882         * modules/javacomp-script: New file.
74883         * modules/javacomp: Depend on it.
74884         Suggested by Simon Josefsson.
74885
74886 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
74887
74888         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
74889         statement, to work around an HP-UX 10.20 compiler bug reported by
74890         Peter O'Gorman.
74891
74892 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74893
74894         * modules/savedir (Depends-on): Add openat.
74895
74896 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74897
74898         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
74899         (uintmax_t) [defined uintmax_t]: Do not declare.
74900         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
74901         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
74902         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
74903         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
74904         sake of portability to weird hosts that C allows (though we don't
74905         know of any practical examples).
74906
74907         * lib/savedir.h (fdsavedir): New decl.
74908         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
74909         contains most of the former guts of savedir.
74910         (savedir): Use savedirstream.
74911         Include "openat.h".
74912
74913 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74914
74915         * modules/obstack (Files): Add m4/ulonglong.m4.
74916         Problem reported by Davide Angelocola.
74917
74918 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
74919
74920         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
74921         coreutils no longer futzes with rounding modes.
74922
74923 2005-11-14  Jim Meyering  <jim@meyering.net>
74924
74925         * lib/mkstemp-safer.c: Include <config.h>, required for possible
74926         replacement of mkstemp.
74927
74928 2005-11-10  Simon Josefsson  <jas@extundo.com>
74929
74930         * lib/readline.c: Remove EOL.
74931
74932 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74933
74934         * modules/gethrxtime (Depends-on): Add gettime.
74935
74936 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74937
74938         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
74939         or gettimeofday; no longer needed.
74940
74941 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74942
74943         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
74944         time business.
74945         (gethrxtime) [! (HAVE_NANOUPTIME
74946         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
74947         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
74948         our own approximation.
74949
74950 2005-11-08  Eric Blake  <ebb9@byu.net>
74951
74952         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74953
74954 2005-11-08  Eric Blake  <ebb9@byu.net>
74955
74956         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74957
74958 2005-11-04  Bruno Haible  <bruno@clisp.org>
74959
74960         * gnulib-tool: Implement --update mode.
74961
74962 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74963
74964         Fix porting problem reported by Theodoros V. Kalamatianos.
74965         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
74966         Don't assume that futimes failing means we must fail.
74967
74968 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74969
74970         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
74971         variables to suggest the intended function of the PATH_MAX check.
74972
74973 2005-10-30  Kean Johnston  <jkj@sco.com>
74974
74975         Trivial changes to support SCO systems.
74976         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
74977         as PATH_MAX.
74978         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
74979         where __ptr is null when no I/O is pending.
74980
74981 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74982
74983         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
74984         leave errno alone.  Problem reported by Dmitry V. Levin.
74985
74986 2005-10-28  Simon Josefsson  <jas@extundo.com>
74987
74988         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
74989         Test more.
74990
74991         * tests/test-gc-md2.c, tests/test-md2.c: New files.
74992
74993         * modules/md2, modules/md2-tests: New files.
74994
74995 2005-10-28  Simon Josefsson  <jas@extundo.com>
74996
74997         * m4/inet_ntop.m4: More tests.
74998
74999         * m4/gc-md2.m4, md2.m4: New file.
75000
75001 2005-10-28  Simon Josefsson  <jas@extundo.com>
75002
75003         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
75004         "restrict" keywords, as per POSIX.  Protect the function
75005         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
75006         Don't use K&R prototypes.  Check the sprintf return values.
75007         Re-define EAFNOSUPPORT if not present.  Indent.
75008
75009         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
75010         suggested by Bruno Haible <bruno@clisp.org>.
75011
75012         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
75013
75014         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
75015
75016         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
75017         libgcrypt).
75018
75019         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
75020
75021         * lib/md2.h, lib/md2.c: New files.
75022
75023 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
75024
75025         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
75026         errno alone.  Problem reported by Frederic Jolliton.
75027
75028 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75029
75030         * modules/verify (License): Change from GPL to LGPL.  This is a
75031         tiny module and there are apparently near-equivalents that are
75032         under the BSD license.
75033
75034 2005-10-24  Simon Josefsson  <jas@extundo.com>
75035
75036         * modules/sha1: Relicense to LGPL.
75037
75038 2005-10-24  Simon Josefsson  <jas@extundo.com>
75039
75040         * lib/md4.h: Shrink buffer size, now that we changed the type.
75041
75042 2005-10-23  Simon Josefsson  <jas@extundo.com>
75043
75044         * gnulib-tool (func_import): Fix --tests-base.
75045
75046 2005-10-22  Simon Josefsson  <jas@extundo.com>
75047
75048         * modules/arcfour (Depends-on): Need stdint.
75049
75050 2005-10-22  Simon Josefsson  <jas@extundo.com>
75051
75052         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
75053         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
75054
75055 2005-10-22  Simon Josefsson  <jas@extundo.com>
75056
75057         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
75058         suggested by Bruno Haible <bruno@clisp.org>.
75059
75060 2005-10-22  Simon Josefsson  <jas@extundo.com>
75061
75062         * lib/crc.h: Include stddef.h, for size_t.
75063
75064 2005-10-22  Simon Josefsson  <jas@extundo.com>
75065
75066         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
75067         arcfour_context struct (simplify test vector testing in GNU
75068         Shishi).
75069
75070 2005-10-21  Simon Josefsson  <jas@extundo.com>
75071
75072         * modules/des, modules/des-tests: New files.
75073
75074         * modules/gc-des, modules/gc-des-tests: New files.
75075
75076         * tests/test-des.c, tests/test-gc-des.c: New file.
75077
75078 2005-10-21  Simon Josefsson  <jas@extundo.com>
75079
75080         * modules/arctwo, modules/arctwo-tests: New files.
75081
75082         * tests/test-arctwo.c: New file.
75083
75084         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
75085
75086         * tests/test-gc-arctwo.c: New file.
75087
75088 2005-10-21  Simon Josefsson  <jas@extundo.com>
75089
75090         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
75091         Bruno Haible <bruno@clisp.org>.
75092
75093         * m4/gc-des.m4: New file.
75094
75095 2005-10-21  Simon Josefsson  <jas@extundo.com>
75096
75097         * m4/arctwo.m4: New file.
75098
75099         * m4/gc-arctwo.m4: New file.
75100
75101 2005-10-21  Simon Josefsson  <jas@extundo.com>
75102
75103         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
75104         block.
75105
75106 2005-10-21  Simon Josefsson  <jas@extundo.com>
75107
75108         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
75109         <bruno@clisp.org>.
75110
75111         * lib/hmac-sha1.c (hmac_sha1): Likewise.
75112
75113         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
75114         Bruno Haible <bruno@clisp.org>.
75115
75116         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
75117         <bruno@clisp.org>.
75118
75119 2005-10-21  Simon Josefsson  <jas@extundo.com>
75120
75121         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
75122
75123 2005-10-21  Simon Josefsson  <jas@extundo.com>
75124
75125         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
75126
75127 2005-10-21  Simon Josefsson  <jas@extundo.com>
75128
75129         * lib/des.h, lib/des.c: New files.
75130
75131         * lib/gc-gnulib.c: Support DES.c
75132
75133 2005-10-21  Simon Josefsson  <jas@extundo.com>
75134
75135         * lib/arctwo.h, lib/arctwo.c: New files.
75136
75137         * lib/gc-gnulib.c: Support ARCTWO.
75138
75139 2005-10-21  Simon Josefsson  <jas@extundo.com>
75140
75141         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
75142         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75143
75144 2005-10-21  Simon Josefsson  <jas@extundo.com>
75145
75146         * gnulib-tool (func_import, func_create_testdir): Define automake
75147         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
75148         Makefile.am snippet),
75149         suggested by Bruno Haible <bruno@clisp.org>.
75150
75151         * modules/gc (Makefile.am): Use it.
75152
75153 2005-10-21  Bruno Haible  <bruno@clisp.org>
75154
75155         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
75156         patch.
75157
75158 2005-10-19  Simon Josefsson  <jas@extundo.com>
75159
75160         * tests/test-gc-rijndael.c: New file.
75161
75162         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
75163
75164 2005-10-19  Simon Josefsson  <jas@extundo.com>
75165
75166         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
75167         interface too.
75168
75169 2005-10-19  Simon Josefsson  <jas@extundo.com>
75170
75171         * tests/test-gc-arcfour.c: New file.
75172
75173         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
75174
75175 2005-10-19  Simon Josefsson  <jas@extundo.com>
75176
75177         * modules/gc-md4, modules/gc-md4-tests: New file.
75178
75179         * tests/test-gc-md4.c: New file.
75180
75181 2005-10-19  Simon Josefsson  <jas@extundo.com>
75182
75183         * m4/gc-md4.m4: New file.
75184
75185 2005-10-19  Simon Josefsson  <jas@extundo.com>
75186
75187         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
75188         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
75189         <kasal@ucw.cz>.
75190
75191 2005-10-19  Simon Josefsson  <jas@extundo.com>
75192
75193         * m4/gc-arcfour.m4: New file.
75194
75195         * m4/gc-rijndael.m4: New file.
75196
75197 2005-10-19  Simon Josefsson  <jas@extundo.com>
75198
75199         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
75200
75201 2005-10-19  Simon Josefsson  <jas@extundo.com>
75202
75203         * lib/gc-gnulib.c: Support ARCFOUR.
75204
75205 2005-10-19  Simon Josefsson  <jas@extundo.com>
75206
75207         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
75208         support.
75209
75210         * lib/gc.h: Add ECB enum type.
75211
75212         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
75213
75214 2005-10-18  Simon Josefsson  <jas@extundo.com>
75215
75216         * tests/test-md5.c: New file.
75217
75218         * modules/md5-tests: New file.
75219
75220 2005-10-18  Simon Josefsson  <jas@extundo.com>
75221
75222         * tests/test-md4.c: New file.
75223
75224         * modules/md4, modules/md4-tests: New files.
75225
75226 2005-10-18  Simon Josefsson  <jas@extundo.com>
75227
75228         * m4/md4.m4: New file.
75229
75230 2005-10-18  Simon Josefsson  <jas@extundo.com>
75231
75232         * lib/md4.h, lib/md4.c: New files, based on md5.?.
75233
75234 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
75235
75236         * gnulib-tool (func_create_testdir): Omit the second check whether
75237         BUILT_SOURCES in nonempty.
75238
75239 2005-10-17  Simon Josefsson  <jas@extundo.com>
75240
75241         * tests/test-rijndael.c: New file.
75242
75243 2005-10-17  Simon Josefsson  <jas@extundo.com>
75244
75245         * modules/sha1: Depend on stdint instead of md5.
75246
75247         * modules/md5: Depend on stdint, remove uint32_t.
75248
75249 2005-10-17  Simon Josefsson  <jas@extundo.com>
75250
75251         * modules/gc-sha1-tests: New file.
75252
75253         * tests/test-gc-sha1.c: New file.
75254
75255 2005-10-17  Simon Josefsson  <jas@extundo.com>
75256
75257         * m4/md5.m4: Remove call to uint32_t.m4.
75258
75259 2005-10-17  Simon Josefsson  <jas@extundo.com>
75260
75261         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
75262
75263         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
75264         md5.h.
75265
75266         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
75267
75268         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
75269
75270 2005-10-17  Simon Josefsson  <jas@extundo.com>
75271
75272         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
75273
75274 2005-10-17  Simon Josefsson  <jas@extundo.com>
75275
75276         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
75277
75278 2005-10-17  Simon Josefsson  <jas@extundo.com>
75279
75280         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
75281
75282         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
75283
75284 2005-10-17  Bruno Haible  <bruno@clisp.org>
75285
75286         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
75287         that it can also be used in a test.
75288
75289 2005-10-16  Bruno Haible  <bruno@clisp.org>
75290
75291         * gnulib-tool (func_emit_tests_Makefile_am): Also define
75292         TESTS_ENVIRONMENT, so that individual tests can augment it.
75293
75294         * gnulib-tool (func_create_testdir): Use an intermediate target for
75295         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
75296         macros, like $(ALLOCA_H), which cannot be passed through the command
75297         line.
75298
75299 2005-10-15  Simon Josefsson  <jas@extundo.com>
75300
75301         * modules/rijndael-tests: New file.
75302
75303         * modules/rijndael: New file.
75304
75305 2005-10-15  Simon Josefsson  <jas@extundo.com>
75306
75307         * m4/rijndael.m4: New file.
75308
75309 2005-10-15  Simon Josefsson  <jas@extundo.com>
75310
75311         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
75312
75313         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
75314
75315 2005-10-14  Simon Josefsson  <jas@extundo.com>
75316
75317         * tests/test-arcfour.c: New file.
75318
75319         * modules/arcfour, modules/arcfour-tests: New files.
75320
75321 2005-10-14  Simon Josefsson  <jas@extundo.com>
75322
75323         * m4/arcfour.m4: New file.
75324
75325 2005-10-14  Simon Josefsson  <jas@extundo.com>
75326
75327         * lib/arcfour.h, lib/arcfour.c: New files.
75328
75329 2005-10-14  Roland McGrath  <roland@redhat.com>
75330
75331         Import from libc.  [BZ #1331]
75332         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
75333         macro argument.
75334         Reported by Matej Vela <vela@debian.org>.
75335
75336 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75337
75338         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
75339         include <wchar.h>; no longer needed.
75340
75341 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75342
75343         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
75344
75345 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
75346         and  Ulrich Drepper  <drepper@redhat.com>
75347
75348         Import from libc.
75349         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
75350         instead of inline stream orientation test and two separate
75351         function calls.  Pay no attention to USE_IN_LIBIO.
75352
75353 2005-10-13  Simon Josefsson  <jas@extundo.com>
75354
75355         * modules/gc-hmac-md5-tests: New file.
75356
75357         * tests/test-gc-hmac-sha1.c: New file.
75358
75359         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
75360
75361         * modules/gc-hmac-md5-tests: New file.
75362
75363         * tests/test-gc-md5.c: New file.
75364
75365         * modules/gc-md5-tests: New file.
75366
75367 2005-10-13  Simon Josefsson  <jas@extundo.com>
75368
75369         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
75370         Move memory allocation outside of loop.
75371
75372 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
75373
75374         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
75375         intermediate directory is in a read-only file system.  Problem
75376         reported by Eric Blake.
75377
75378 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
75379
75380         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
75381
75382 2005-10-12  Simon Josefsson  <jas@extundo.com>
75383
75384         * tests/test-hmac-sha1.c: New file.
75385
75386         * modules/hmac-sha1-tests: New file.
75387
75388         * modules/hmac-sha1: New file.
75389
75390 2005-10-12  Simon Josefsson  <jas@extundo.com>
75391
75392         * modules/gc-sha1: New file.
75393
75394 2005-10-12  Simon Josefsson  <jas@extundo.com>
75395
75396         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
75397
75398         * tests/test-gc-pbkdf2-sha1.c: New file.
75399
75400 2005-10-12  Simon Josefsson  <jas@extundo.com>
75401
75402         * modules/gc-md5, modules/gc-hmac-md5: New files.
75403
75404         * modules/gc (Files): Remove md5, memxor and hmac files.
75405
75406 2005-10-12  Simon Josefsson  <jas@extundo.com>
75407
75408         * m4/gc-pbkdf2-sha1.m4: New file.
75409
75410         * m4/gc-hmac-sha1.m4: New file.
75411
75412         * m4/gc-sha1: New file.
75413
75414         * m4/hmac-sha1.m4: New file.
75415
75416 2005-10-12  Simon Josefsson  <jas@extundo.com>
75417
75418         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
75419
75420         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
75421
75422 2005-10-12  Simon Josefsson  <jas@extundo.com>
75423
75424         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
75425         suggested by Bruno Haible <bruno@clisp.org>.
75426
75427 2005-10-12  Simon Josefsson  <jas@extundo.com>
75428
75429         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
75430
75431 2005-10-12  Simon Josefsson  <jas@extundo.com>
75432
75433         * lib/gc-pbkdf2-sha1.c: New file.
75434
75435         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
75436
75437 2005-10-12  Simon Josefsson  <jas@extundo.com>
75438
75439         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
75440
75441         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
75442
75443 2005-10-12  Simon Josefsson  <jas@extundo.com>
75444
75445         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
75446         GC_USE_HMAC_MD5, respectively.
75447
75448         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
75449         (gc_md5): Fix typo.
75450
75451         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
75452
75453         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
75454
75455         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
75456
75457 2005-10-12  Bruno Haible  <bruno@clisp.org>
75458
75459         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
75460         Reported by Stepan Kasal <kasal@ucw.cz>.
75461
75462 2005-10-11  Simon Josefsson  <jas@extundo.com>
75463
75464         * tests/test-crc.c: New file.
75465
75466         * modules/crc, modules/crc-tests: New files.
75467
75468 2005-10-11  Simon Josefsson  <jas@extundo.com>
75469
75470         * m4/crc.m4: New file.
75471
75472 2005-10-11  Simon Josefsson  <jas@extundo.com>
75473
75474         * lib/gc.h: Add gc_hash and gc_hash_buffer.
75475
75476         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
75477
75478         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
75479
75480 2005-10-11  Simon Josefsson  <jas@extundo.com>
75481
75482         * lib/crc.h, lib/crc.c: New files.
75483
75484         * lib/gc.h (gc_hash_buffer): Add doc.
75485
75486 2005-10-11  Bruno Haible  <bruno@clisp.org>
75487
75488         * modules/c-strcasestr: New file.
75489         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
75490
75491 2005-10-11  Bruno Haible  <bruno@clisp.org>
75492
75493         * modules/c-strcase: New file.
75494         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
75495
75496 2005-10-11  Bruno Haible  <bruno@clisp.org>
75497
75498         * lib/strcasecmp.c: Include limits.h.
75499         (strcasecmp): Avoid integer overflow on exotic platforms.
75500         * lib/strncasecmp.c: Include limits.h.
75501         (strncasecmp): Avoid integer overflow on exotic platforms.
75502         Reported by Paul Eggert.
75503
75504 2005-10-11  Bruno Haible  <bruno@clisp.org>
75505
75506         * lib/c-strcasestr.h: New file, from GNU gettext.
75507         * lib/c-strcasestr.c: New file, from GNU gettext.
75508
75509 2005-10-11  Bruno Haible  <bruno@clisp.org>
75510
75511         * lib/c-strcase.h: New file, from GNU gettext.
75512         * lib/c-strcasecmp.c: New file, from GNU gettext.
75513         * lib/c-strncasecmp.c: New file, from GNU gettext.
75514
75515 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75516
75517         * modules/mempcpy (License): GPL -> LGPL.
75518         * modules/strchrnul (License): Likewise.
75519         * modules/sysexits (License): Likewise.
75520
75521 2005-10-08  Simon Josefsson  <jas@extundo.com>
75522
75523         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
75524
75525 2005-10-07  Simon Josefsson  <jas@extundo.com>
75526
75527         * m4/memxor.m4: Remove gl_C_RESTRICT call.
75528
75529 2005-10-06  Simon Josefsson  <jas@extundo.com>
75530
75531         * tests/test-hmac-md5.c: New file.
75532
75533         * modules/hmac-md5-tests: New file.
75534
75535         * modules/hmac-md5: New file.
75536
75537 2005-10-06  Simon Josefsson  <jas@extundo.com>
75538
75539         * m4/hmac-md5.m4: New file.
75540
75541         * m4/memxor.m4: Require gl_C_RESTRICT.
75542
75543 2005-10-06  Simon Josefsson  <jas@extundo.com>
75544
75545         * lib/memxor.c (memxor): Avoid casts and warnings.
75546
75547 2005-10-06  Simon Josefsson  <jas@extundo.com>
75548
75549         * lib/hmac-md5.c: New file.
75550
75551         * lib/hmac.h: New file.
75552
75553 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75554
75555         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
75556         promotes to int, not unsigned int, to catch the AIX 5.3
75557         compiler bug.
75558
75559 2005-10-05  Simon Josefsson  <jas@extundo.com>
75560
75561         * modules/memxor: New file.
75562
75563         * modules/iconv (Files): Move config.rpath to havelib, it is used
75564         there.
75565
75566         * modules/havelib (Files): Add config.rpath.
75567
75568 2005-10-05  Simon Josefsson  <jas@extundo.com>
75569
75570         * m4/memxor.m4: New file.
75571
75572 2005-10-05  Simon Josefsson  <jas@extundo.com>
75573
75574         * lib/memxor.c (memxor): Fix compiler error.
75575
75576         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
75577         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
75578
75579         * lib/memxor.h, lib/memxor.c: New files.
75580
75581         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
75582         we assume all systems have it, suggested by Jim Meyering
75583         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
75584         any systems lack sys/socket.h; mingw32 is known to lack it, but we
75585         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
75586         same reasons.
75587
75588 2005-10-05  Simon Josefsson  <jas@extundo.com>
75589
75590         * config/srclist.txt: Add glibc bug 1423 for md5.h.
75591
75592 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75593
75594         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
75595         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
75596         needed, since the source code now assumes these .h files.
75597
75598 2005-10-05  Derek Price  <derek@ximbiot.com>
75599
75600         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
75601
75602 2005-10-05  Bruno Haible  <bruno@clisp.org>
75603
75604         * modules/stdint (License): Change to LGPL.
75605
75606 2005-10-04  Simon Josefsson  <jas@extundo.com>
75607
75608         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
75609         D. Baushke" <mdb@gnu.org>.
75610
75611 2005-10-04  Bruno Haible  <bruno@clisp.org>
75612
75613         * lib/verify.h (verify_true): Provide alternative definition for C++.
75614
75615 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
75616
75617         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
75618         (SSIZE_MAX): New macro, if not already defined.
75619         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
75620         than 2 GiB.
75621
75622 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75623
75624         Sync from coreutils.
75625         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
75626         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
75627         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
75628         ULLONG_MAX doesn't work with 2.7.2.1.
75629
75630 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75631
75632         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
75633         From Ben Pfaff.
75634
75635         * modules/exclude (Depends-on): Depend on verify.
75636         * modules/strtoimax (Depends-on): Likewise.
75637         * modules/utimecmp (Depends-on): Likewise.
75638
75639 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75640
75641         * lib/exclude.c: Include verify.h.
75642         (verify): Remove.  All callers changed to use verify.h's version.
75643         * lib/strtoimax.c: Likewise.
75644         * lib/utimecmp.c: Likewis.e
75645
75646         Sync from coreutils.
75647         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
75648         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
75649         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
75650         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
75651         bother returning ENOSYS if settimeofday or stime fails; just let
75652         them return whatever errno they want to return.
75653         * lib/utimens.c: Include unistd.h, for dup2.
75654         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
75655         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
75656
75657 2005-10-02  Jim Meyering  <jim@meyering.net>
75658
75659         Sync from coreutils.
75660         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
75661         from glibc-2.2.5 that fails for read-only files.
75662
75663 2005-10-02  Jim Meyering  <jim@meyering.net>
75664
75665         Sync from coreutils.
75666         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
75667         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
75668         `#if HAVE_CONFIG_H'.
75669         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
75670         Remove AT_FDCWD test.
75671         Do not consume the fd unless successful.
75672         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
75673         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
75674         block, so that we don't even try to compile it if settimeofday is
75675         available.  This works around a compilation failure on OSF1 V5.1,
75676         due to stime requiring a `long int*' while tv_sec is `int'.
75677
75678 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
75679
75680         Sync from coreutils.
75681         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
75682         against `yes', rather than just testing for nonempty.
75683
75684 2005-10-01  Simon Josefsson  <jas@extundo.com>
75685
75686         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
75687         and Darwin.
75688
75689         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
75690         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
75691         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
75692         freeaddrinfo and gai_strerror are declared by the POSIX headers.
75693         Check if struct addrinfo is declared.
75694
75695 2005-10-01  Simon Josefsson  <jas@extundo.com>
75696
75697         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
75698         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
75699         AI_* and EAI_* definitions.  Protect function declarations.
75700
75701 2005-10-01  Jim Meyering  <jim@meyering.net>
75702
75703         Sync from coreutils.
75704
75705         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
75706         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
75707         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
75708         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75709         in the inet and nsl libraries.  Required on Solaris 5.7.
75710
75711 2005-10-01  Jim Meyering  <jim@meyering.net>
75712
75713         Sync from coreutils.
75714         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75715         in the inet and nsl libraries.  Required on Solaris 5.7.
75716
75717 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
75718
75719         * lib/getdelim.c (getdelim): Remove unused variables.
75720
75721 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75722
75723         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
75724         so that the code works even with ancient cpp.  Portability problem
75725         with GCC 2.7.2.1 reported by Thomas M.Ott.
75726
75727 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75728
75729         * modules/regex (Depends-on): Add strcase.
75730
75731         * modules/gethostname (Licence): Change from GPL to LGPL, since
75732         gethostname.c is a trivial implementation of a standard library
75733         function.
75734         * modules/poll (License): Change from GPL to LGPL, since it's
75735         derived from LGPL code.
75736
75737 2005-09-27  Jim Meyering  <jim@meyering.net>
75738
75739         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
75740         HAVE_CONFIG_H.
75741
75742         * lib/intprops.h (signed_type_or_expr__): Define.
75743         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
75744         for unsigned types.
75745
75746 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75747
75748         * lib/verify.h (verify_expr): Remove, replacing with:
75749         (verify_true): New macro that returns true instead of void.
75750         (verify_type__): Remove.
75751         (verify): Use verify_true rather than verify_type__.
75752
75753 2005-09-26  Bruno Haible  <bruno@clisp.org>
75754
75755         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
75756         is necessary.
75757         (lib_SOURCES): Remove mbchar.c.
75758         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
75759         (Files): Add m4/mbrtowc.m4.
75760         * modules/mbiter: Likewise.
75761         * modules/mbuiter: Likewise.
75762
75763 2005-09-26  Bruno Haible  <bruno@clisp.org>
75764
75765         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
75766         compile mbchar.c if they are not both present.
75767         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
75768         * m4/mbiter.m4 (gl_MBITER): Likewise.
75769         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
75770         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
75771         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
75772
75773 2005-09-25  Jim Meyering  <jim@meyering.net>
75774
75775         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
75776         also uses socklen_t.
75777
75778 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
75779
75780         * lib/utimens.c (ENOSYS): Define if not already defined.
75781         (futimens): Support having a null PATH if the file descriptor
75782         is nonnegative.
75783
75784         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
75785         Remove.
75786         (__attribute): Define to empty unless GCC 3.1 or later.
75787         This works around a core dump on OpenBSD 3.4, which has GCC
75788         2.95.3, which dumps core when given __attribute__(()).  It also
75789         simplifies other tests, since we really don't want to bother with
75790         worrying about which ancient version of GCC supported what.
75791         Original problem reported by Yoann Vandoorselaere, with part of
75792         the fix suggested by Derek Price.
75793
75794 2005-09-24  Jim Meyering  <jim@meyering.net>
75795
75796         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
75797         so we can once again use a positive bitfield width of 1 -- now we
75798         don't have to explain why we were using a bitfield width of 2.
75799
75800 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75801
75802         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
75803         and similarly for the other external symbols.  Problem reported
75804         by James Gallager.
75805
75806         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
75807         bug reported by Jim Meyering.
75808
75809         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
75810         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
75811         not needed, since socklen is a prerequisite module.
75812
75813 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75814
75815         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
75816         Problem reported by Eric Blake.
75817         (getaddrinfo): Initialize se so that it's not garbage.
75818         Redo internal storage allocation so that it doesn't make unportable
75819         assumptions about alignment.
75820         Fix a memory leak.
75821
75822         * lib/utimens.c (futimens): Use futimesat if available.
75823         Prefer it to futimes since it doesn't have the futimes bug.
75824
75825         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
75826         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
75827         Instead, declare a function that returns a pointer to an array,
75828         and use verify_type__ to declare the size of the array.
75829         Problem and germ of a solution reported by Bruno Haible.
75830         (verify_type__): Use 2, not 1, for bitfield size, to avoid
75831         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
75832
75833 2005-09-23  Jim Meyering  <jim@meyering.net>
75834
75835         Sync from coreutils.
75836         Correct build failure (socklen_t not defined) on at least
75837         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
75838         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
75839
75840 2005-09-23  Jim Meyering  <jim@meyering.net>
75841
75842         * modules/getaddrinfo (Depends-on): Add socklen.
75843
75844 2005-09-23  Bruno Haible  <bruno@clisp.org>
75845
75846         * tests/test-verify.c: New file.
75847
75848 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75849
75850         Sync from coreutils.
75851
75852         * modules/argmatch (Depends-on): Add verify.
75853         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
75854         unistd-safer.
75855         * modules/save-cwd (Depends-on): Likewise.
75856
75857         * modules/openat (Files): Add lib/openat-die.c.
75858         (Depends-on): Remove error, exitfail.
75859         Add dirname.
75860
75861         * modules/verify: New file.
75862         * MODULES.html.sh (Diagnostics <assert.h>): New section,
75863         with "verify" module.
75864
75865 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75866
75867         Sync from coreutils.
75868
75869         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
75870         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
75871         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
75872         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
75873         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
75874         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
75875         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
75876         Don't bother checking for string.h, stdlib.h, unistd.h.
75877         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
75878         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
75879         module's job.
75880         * m4/jm-macros.m4 (gl_MACROS): Likewise.
75881         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
75882
75883         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
75884         (gl_GETDATE): Use it.
75885
75886         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
75887
75888 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75889
75890         Sync from coreutils.
75891
75892         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
75893         stat-time.h.
75894         * lib/argmatch.h: Include verify.h
75895         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
75896         (ARGMATCH_ASSERT): Remove; unused.
75897         * lib/canonicalize.c: Assume STDC_HEADERS.
75898         * lib/exclude.c: Include "strcase.h".
75899         * lib/regex_internal.h [!defined _LIBC]: Likewise.
75900         * lib/getusershell.c: Include stdio--.h rather than stdio.h
75901         and stdio-safer.h.
75902         (getusershell): Call fopen, not fopen_safer.
75903         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
75904         Do not include unistd-safer.h.
75905         (save_cwd): Don't call fd_safer; no longer needed
75906         now that we include fcntl--.h.
75907
75908         * lib/getdate.y (relative_time): New type.
75909         (RELATIVE_TIME_0): New constant.
75910         (parser_control): Use relative_time instead of doing it ourselves.
75911         (%union): Add new relative_time rel member.
75912         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
75913         Now typeless.
75914         (relunit, relunit_snumber): Now of type rel.
75915         (zone, rel, relunit, get_date): Adjust to above changes.
75916
75917         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
75918         Do not include unistd-safer.h.
75919         (getloadavg): Don't call fd_safer; no longer needed
75920         now that we include fcntl--.h.
75921
75922         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
75923         (make_dir_parents): Treat ENOSYS like EEXIST.
75924
75925         Improve quality of diagnostics on restore_cwd failure.
75926         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
75927         (make_dir_parents): Last arg is now int * (for errno), not bool *.
75928         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
75929         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
75930         each time through the loop.  Do not diagnose restore_cwd failure;
75931         that is the caller's job (and perhaps the caller does not care).
75932
75933         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
75934         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
75935         If the file already exists but is not a directory, don't bother
75936         to try to make its parents.
75937         Close potential file descriptor leak if we can't chdir("/") (!).
75938         Don't always return true if chdir($PWD) fails; return true only
75939         if the requested action was done successfully (except for the
75940         chdir($PWD)).
75941         Don't log final directory unless we actually made it.
75942         Refactor to avoid duplicate code to fix up permissions.
75943         Don't attempt to fix up parent permissions if chdir($PWD) fails.
75944
75945         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
75946         to make it a bit faster and (I hope) clearer.
75947         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
75948         Fix bug in formats like %2N.
75949
75950         * lib/verify.h: New file.
75951
75952 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75953
75954         Sync from coreutils.
75955         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
75956
75957 2005-09-22  Jim Meyering  <jim@meyering.net>
75958
75959         Sync from coreutils.
75960
75961         * m4/lstat.m4 (gl_FUNC_LSTAT):
75962         Use AC_LIBSOURCES to require lstat.c and lstat.h.
75963         Remove obsolete comment.
75964         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
75965         * m4/xstrtod.m4: Likewise.
75966
75967         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
75968
75969 2005-09-22  Jim Meyering  <jim@meyering.net>
75970
75971         Sync from coreutils.
75972
75973         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
75974
75975         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
75976         the .tm_year member, since otherwise gcc-4.0 would now warn about
75977         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
75978
75979         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
75980         order to avoid an unsuppressible warning from gcc on 64-bit systems.
75981
75982         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
75983         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
75984         when run in a time zone for which daylight savings time is in effect
75985         for the starting date.
75986
75987         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
75988         stop us from restricting permissions of just-created absolute-named
75989         directories.
75990         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
75991         to restore initial working directory.
75992         * lib/mkdir-p.c (make_dir_parents): New parameter:
75993         different_working_dir, to tell caller if/when we change the working
75994         directory and are unable to return to the initial one.
75995         * lib/mkdir-p.h (make_dir_parents): Update prototype.
75996         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
75997         `return false'.  This fixes a bug introduced on 2004-07-30.
75998
75999         * lib/openat.c (fdopendir): Be sure to close the supplied
76000         file descriptor before returning.  This makes our replacement
76001         implementation a little closer to Solaris's, where fdopendir
76002         ties the file descriptor to the returned DIR* pointer.
76003         * lib/openat.c (unlinkat): New function.
76004         * lib/openat.h (unlinkat): Add prototype.
76005         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
76006         (openat_restore_fail): Rename from openat_restore_die.
76007         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
76008
76009         Provide an alternative to exiting immediately upon save_cwd or
76010         restore_cwd failure.  Now, an application can arrange e.g.,
76011         to perform a longjump in that case.
76012         * lib/openat.c: Include dirname.h.
76013         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
76014         (rpl_openat, fdopendir, fstatat): Call openat_save_die
76015         and openat_restore_die rather than calling error directly.
76016         Don't include "error.h" or "exitfail.h"; they're no longer needed.
76017
76018         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
76019         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
76020         define.
76021
76022         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
76023         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
76024                             int utc, int nanoseconds);
76025         Background:
76026         date should not have to allocate a megabyte of virtual memory to
76027         handle a format argument like +%1048575T.  When implemented with
76028         strftime, it must allocate such a buffer, use strftime to fill it
76029         in, print it, then free it.
76030         With fprintftime, it simply prints everything and exits.
76031         With no need for memory allocation, that's one fewer way to fail.
76032         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
76033         optional field width, not before, so we accept %9:z, not %:9z.
76034         (my_strftime): Be sure to use L_('x') for literals.
76035
76036         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
76037         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
76038         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
76039         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
76040         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
76041         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
76042         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
76043         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
76044         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
76045         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
76046         * lib/xgethostname.c, lib/xreadlink.c:
76047         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
76048
76049         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
76050         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
76051         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
76052         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76053         and don't include <sys/file.h>).
76054
76055 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
76056
76057         Sync from coreutils.
76058
76059         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
76060         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
76061         [!LDAV_DONE]: Avoid unused variable warning.
76062
76063 2005-09-21  Bruno Haible  <bruno@clisp.org>
76064
76065         * lib/unicodeio.h (unicode_to_mb): New declaration.
76066
76067 2005-09-20  Derek Price  <derek@ximbiot.com>
76068
76069         * lib/getaddrinfo.c: Don't include <netdb.h> included from
76070         getaddrinfo.h.
76071
76072 2005-09-20  Bruno Haible  <bruno@clisp.org>
76073
76074         * gnulib-tool: Remove trailing slashes from the values specified for
76075         --source-base, --m4-base, --tests-base, --aux-dir.
76076         Suggested by Simon Josefsson <jas@extundo.com>.
76077
76078 2005-09-20  Bruno Haible  <bruno@clisp.org>
76079
76080         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
76081         func_modules_to_filelist, func_import, func_create_testdir): Make all
76082         sorting results locale-independent, so that gnulib-cache.m4 doesn't
76083         change when gnulib-tool is invoked in a different locale.
76084
76085 2005-09-19  Simon Josefsson  <jas@extundo.com>
76086
76087         * m4/socklen.m4: Fix typo.
76088
76089 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76090
76091         Use a consistent style for including <config.h>.
76092         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
76093         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
76094         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
76095         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
76096         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
76097         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
76098         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
76099         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
76100         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
76101         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
76102         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
76103         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
76104         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
76105         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
76106         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
76107         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
76108         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
76109         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
76110         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
76111         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
76112         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
76113         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
76114         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
76115         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
76116         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
76117         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
76118         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
76119         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
76120         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
76121         lib/xstrtoumax.c, lib/yesno.c:
76122         Standardize inclusion of config.h.
76123         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
76124         lib/inttostr.h:  Removed inclusion of config.h from header files.
76125         * lib/inttostr.c:  Adjusted in-tree users.
76126         * lib/timespec.h: Remove superfluous warning to include config.h.
76127         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
76128         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
76129         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
76130         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
76131         config.h with HAVE_CONFIG_H.
76132
76133 2005-09-19  Jim Meyering  <jim@meyering.net>
76134
76135         * modules/pathmax (License): Change to LGPL.
76136
76137 2005-09-19  Derek Price  <derek@ximbiot.com>
76138
76139         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
76140
76141 2005-09-19  Bruno Haible  <bruno@clisp.org>
76142
76143         * gnulib-tool (import): Provide default for --tests-base.
76144
76145 2005-09-19  Bruno Haible  <bruno@clisp.org>
76146
76147         * doc/quote.texi: New file, extracted from gnulib.texi.
76148         * doc/ctime.texi: New file, extracted from gnulib.texi.
76149         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
76150         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
76151         * doc/gnulib.texi: Include them.
76152
76153 2005-09-18  Bruno Haible  <bruno@clisp.org>
76154
76155         Portability fix.
76156         * gnulib-tool (func_readlink): New function.
76157         (func_ln_if_changed): Use it.
76158
76159 2005-09-18  Bruno Haible  <bruno@clisp.org>
76160
76161         * gnulib-tool: Support --with-tests also with --import.
76162         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
76163         (func_import): Use variables $testsbase and $inctests. Emit a
76164         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
76165         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
76166         SUBDIRS += $testsdir.
76167         (func_create_testdir): Update.
76168
76169 2005-09-18  Bruno Haible  <bruno@clisp.org>
76170
76171         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
76172         instead of $dry_run.
76173         (func_cp_if_changed, func_mv_if_changed): Remove functions.
76174         (func_ln_if_changed): Don't handle dry-run here.
76175         (func_import): In dry-run mode, detect more precisely which actions
76176         would be performed, and don't use "...ing" verbs.
76177
76178 2005-09-18  Bruno Haible  <bruno@clisp.org>
76179
76180         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
76181         (func_import): Use join on two temporary files instead of three nested
76182         loops, in order to determine which files are new or old.
76183
76184 2005-09-18  Bruno Haible  <bruno@clisp.org>
76185
76186         * gnulib-tool (func_import): Comment out code that spits out the
76187         new files with --dry-run.
76188
76189 2005-09-18  Bruno Haible  <bruno@clisp.org>
76190
76191         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
76192
76193 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76194
76195         * lib/stat-time.h: New file.
76196         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
76197         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
76198         in a different way.
76199         (timespec_cmp): New function.
76200         * lib/utimecmp.c: Include stat-time.h.
76201         (SYSCALL_RESOLUTION): Depend on whether various struct stat
76202         members exist, not on the obsolescent ST_MTIM_NSEC.
76203         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
76204
76205 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76206
76207         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
76208
76209 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76210
76211         * MODULES.html.sh (File system functions): Add stat-time.
76212         * modules/stat-time: New file.
76213         * modules/timespec (Files): Remove m4/st_mtim.m4; this
76214         is now done in a different way, by the stat-time module.
76215         * modules/utimecmp (Depends-on): Add stat-time.
76216
76217 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76218
76219         * m4/st_mtim.m4: Remove.  Superseded by...
76220         * m4/stat-time.m4: New file.
76221         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
76222         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
76223
76224 2005-09-15  Derek Price  <derek@ximbiot.com>
76225
76226         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
76227
76228 2005-09-15  Derek Price  <derek@ximbiot.com>
76229
76230         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
76231         * lib/regex_internal.c: Ditto, using this...
76232         (__GNUC_PREREQ): ...new macro.
76233         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
76234         using...
76235         (__GNUC_PREREQ): ...this new macro.
76236
76237         * lib/strstr.h: Include string.h. Define strstr as a macro here.
76238
76239 2005-09-15  Derek Price  <derek@ximbiot.com>
76240             Paul Eggert  <eggert@cs.ucla.edu>
76241
76242         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
76243         changes, consolidating in...
76244         * lib/regex_internal.h: ...this file.
76245
76246 2005-09-13  Jim Meyering  <jim@meyering.net>
76247
76248         * lib/canon-host.c: Filter through gnu indent and reword comments
76249         slightly.
76250         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
76251
76252 2005-09-13  Derek Price  <derek@ximbiot.com>
76253
76254         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
76255         failure.
76256         Reported by Jim Meyering  <jim@meyering.net>.
76257
76258 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76259
76260         * lib/base64.c: Typo.
76261         (base64_encode): Put b64str in initialized data section.
76262
76263 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
76264
76265         Merge glibc and coreutils changes into gnulib, plus a few
76266         extra fixes.
76267         * lib/md5.c: Use #error rather than a string.
76268         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
76269         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
76270         (__attribute__): Define to empty for non recent-GCC.
76271         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
76272         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
76273         Renamed from their non-__ counterparts, with new macros replacing
76274         them if not _LIBC.  Add __THROW attribute.
76275         (rol): Remove.
76276         (struct md5_ctx): Align buffer if using GCC.
76277         * lib/sha1.h (struct sha1_ctx): Likewise.
76278         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
76279         The old name was backwards.
76280         (NOTSWAP): Remove; not used.
76281         (rol): New macro, moved here from md5.h.
76282         (sha1_process_block): Remove a FIXME that doesn't make sense.
76283
76284 2005-09-12  Derek Price  <derek@ximbiot.com>
76285
76286         Return usable errors from canon-host.
76287         * lib/canon-host.h: New file.
76288         * lib/canon-host.c (canon_host): Wrap...
76289         (canon_host_r): ...this new function, which now relies exclusively on
76290         getaddrinfo.
76291         (ch_strerror): New function.
76292         (last_cherror): New global.
76293         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
76294         interface.
76295         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
76296         void *.
76297         (freeaddrinfo): Free ai->ai_canonname when set.
76298
76299 2005-09-12  Derek Price  <derek@ximbiot.com>
76300
76301         Make canon-host require getaddrinfo.
76302         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
76303         AC_LIBSOURCE canon-host.h.  Call...
76304         (gl_PREREQ_CANON_HOST): ...this new function, which requires
76305         gl_GETADDRINFO.
76306         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
76307
76308 2005-09-12  Derek Price  <derek@ximbiot.com>
76309
76310         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
76311         LGPL.
76312         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
76313
76314 2005-09-12  Derek Price  <derek@ximbiot.com>
76315
76316         * lib/gai_strerror.c: Include config.h when available.  Include
76317         getaddrinfo.h before other headers to test interface.
76318         Reported by Larry Jones <lawrence.jones@ugs.com>.
76319
76320 2005-09-12  Derek Price  <derek@ximbiot.com>
76321             Paul Eggert  <eggert@cs.ucla.edu>
76322
76323         * modules/glob (Files): Add glob-libc.h.
76324
76325 2005-09-12  Derek Price  <derek@ximbiot.com>
76326             Paul Eggert  <eggert@cs.ucla.edu>
76327
76328         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
76329         glob_.h, glob-libc.h.
76330         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
76331
76332 2005-09-12  Derek Price  <derek@ximbiot.com>
76333             Paul Eggert  <eggert@cs.ucla.edu>
76334
76335         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
76336         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
76337         protecting things that should be done only in gnulib contexts.
76338         * lib/glob_.h: New file, containing only the glob things needed for
76339         gnulib.
76340         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
76341         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
76342         (glob, globfree, glob_pattern_p): Now defined simply in terms of
76343         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
76344         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
76345         and to respect the namespace rules better.
76346
76347 2005-09-08  Simon Josefsson  <jas@extundo.com>
76348
76349         * modules/socklen: New file.
76350
76351 2005-09-08  Simon Josefsson  <jas@extundo.com>
76352
76353         * m4/socklen.m4: New file.
76354
76355 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76356
76357         * modules/utimens (Files): Add m4/utimbuf.m4, since
76358         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
76359         Reported by Sergey Poznyakoff.
76360
76361 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76362
76363         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
76364         definitions, since that's the preferred style in glibc.
76365         Fix a minor spacing issue, and update copyright notice to match
76366         glibc's.
76367
76368 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76369
76370         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
76371
76372 2005-09-06  Simon Josefsson  <jas@extundo.com>
76373
76374         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
76375         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
76376
76377 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76378
76379         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
76380         warning.
76381
76382 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76383
76384         * config/srclist.txt: Add glibc bug 1302.
76385
76386 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
76387
76388         Change bitset word type from unsigned int to unsigned long int,
76389         as this has better performance on typical 64-bit hosts.
76390         Port bitset code to hosts with unusual word sizes.
76391         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
76392         (build_collating_symbol):
76393         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
76394         argument is a bitset.  This is merely a style issue, but it makes
76395         it clearer that an entire array is expected.
76396         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
76397         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
76398         Port to the case where bitset_word is not the same as unsigned int.
76399         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76400         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
76401         Likewise.
76402         * lib/regexec.c (check_dst_limits_calc_pos_1,
76403         check_subexp_matching_top):
76404         (build_trtable, group_nodes_into_DFAstates):
76405         Likewise.
76406         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
76407         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
76408         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
76409         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
76410         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
76411         * lib/regcomp.c (optimize_subexps, lower_subexp):
76412         Work even if bitset_word has holes in its bitwise representation.
76413         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
76414         * lib/regexec.c (check_dst_limits_calc_pos_1,
76415         check_subexp_matching_top):
76416         Likewise.
76417         * lib/regex_internal.c (re_string_reconstruct):
76418         Don't assume UCHAR_MAX == 255.
76419         * lib/regex_internal.h (bitset_set_all): Likewise.
76420         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
76421         All uses changed.
76422         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
76423         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
76424         All uses changed.
76425         (BITSET_WORD_MAX): New macro.
76426         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
76427         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
76428         (bitset_empty, bitset_copy):
76429         Prefer sizeof (bitset) to multiplying it out ourselves.
76430         (bitset_not_merge): Remove; unused.
76431         (bitset_contain): Return bool, not unsigned int with one bit on.
76432         All callers changed.
76433         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
76434         alignment than re_node_set; do this by defining a new internal
76435         type struct dests_alloc and using it to allocate memory.
76436
76437 2005-09-05  Bruno Haible  <bruno@clisp.org>
76438
76439         * gnulib-tool (func_import): Fix comparison in handling of symbolic
76440         links.
76441
76442 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
76443
76444         * modules/size_max (Makefile.am): Add size_max.h
76445
76446 2005-09-04  Derek Price  <derek@ximbiot.com>
76447
76448         * gnulib-tool (func_import): Fix reversed $symbolic logic.
76449
76450 2005-09-03  Simon Josefsson  <jas@extundo.com>
76451
76452         * gnulib-tool: Fix typo.
76453
76454 2005-09-03  Simon Josefsson  <jas@extundo.com>
76455
76456         * config/srclist.txt: Add glibc bug 1293.
76457
76458 2005-09-03  Derek Price  <derek@ximbiot.com>
76459
76460         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
76461         From Larry Jones <lawrence.jones@ugs.com>.
76462
76463 2005-09-02  Simon Josefsson  <jas@extundo.com>
76464
76465         * modules/socklen: New file.
76466
76467 2005-09-02  Simon Josefsson  <jas@extundo.com>
76468
76469         * modules/havelib: New module.
76470
76471         * modules/gettext, modules/iconv, modules/lock, modules/readline:
76472         Use havelib.
76473
76474 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76475
76476         Check for arithmetic overflow when calculating sizes, to prevent
76477         some buffer-overflow issues.  These patches are conservative, in the
76478         sense that when I couldn't determine whether an overflow was possible,
76479         I inserted a run-time check.
76480         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
76481         macros.
76482         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
76483         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
76484         (re_xnrealloc, re_x2nrealloc): New inline functions.
76485         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
76486         parse_bracket_exp):
76487         (build_equiv_class, build_charclass): Check for arithmetic overflow
76488         in size expression calculations.
76489         * lib/regex_internal.c (re_string_realloc_buffers):
76490         (build_wcs_upper_buffer, re_node_set_add_intersect):
76491         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
76492         (re_dfa_add_node, register_state): Likewise.
76493         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
76494         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
76495         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
76496         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
76497
76498 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76499
76500         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76501         m4/ulonglong.m4.  Problem reported by Martin Lambers.
76502
76503 2005-09-02  Bruno Haible  <bruno@clisp.org>
76504
76505         Support for lib vs. lib64 distinction on biarch platforms.
76506         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
76507         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
76508         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
76509
76510 2005-09-02  Bruno Haible  <bruno@clisp.org>
76511
76512         * gnulib-tool (import): In the other first-use case, provide defaults
76513         as well.
76514
76515 2005-09-02  Bruno Haible  <bruno@clisp.org>
76516
76517         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
76518         patches not yet found in the latest gettext release.
76519
76520 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76521
76522         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
76523         to avoid a collision with bits/local_lim.h in glibc.
76524         All uses changed.  Problem reported by Dmitry V. Levin in
76525         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
76526
76527         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
76528         bugs in int versus size_t comparisons.
76529         (re_string_context_at): Fix bug where the code assumed that
76530         Idx is signed.
76531
76532         Use bool where appropriate.
76533         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
76534         All callers changed.
76535         (calc_eclosure_iter): Likewise, for ROOT arg.
76536         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
76537         (build_charclass_op): Likewise, for NON_MATCH arg.
76538         * lib/regex_internal.c (re_string_allocate, re_string_construct):
76539         (re_string_construct_common): Likewise, for ICASE arg.
76540         * lib/regexec.c (re_search_2_stub, re_search_stub):
76541         Likewise, for RET_LEN arg.
76542         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
76543         (set_regs): Likewise, for FL_BACKTRACK arg.
76544         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
76545         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
76546         (calc_eclosure_iter, parse_bracket_exp):
76547         Use bool for internal variables that are booleans.
76548         * lib/regexec.c (re_search_internal, check_matching,
76549         proceed_next_node):
76550         (set_regs, build_sifted_states, sift_states_bkref):
76551         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
76552         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76553         (find_collation_sequence_value):
76554         Likewise.
76555         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
76556         (re_node_set_compare):
76557         Return bool, not int. All callers changed.
76558         * lib/regexec.c (check_halt_node_context, check_dst_limits):
76559         (build_trtable, check_node_accept): Likewise.
76560         * lib/regex_internal.h: Include stdbool.h.
76561
76562         Fix bugs uncovered when converting to bool.
76563         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
76564         failure instead of charging ahead blindly.
76565         * lib/regex_internal.c (register_state): Likewise.
76566         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
76567         for freeing internal storage.
76568         (group_nodes_into_DFA_states): Use unsigned int, not int, for
76569         bitset pieces used as boolean, to avoid undefined behavior
76570         on hosts that do int overflow checking.
76571
76572 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76573
76574         * config/srclist.txt: Add glibc bugs 1285-1287.
76575
76576 2005-09-01  Jim Meyering  <jim@meyering.net>
76577
76578         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
76579         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
76580         Require gl_STAT_MACROS, too.
76581
76582 2005-09-01  Bruno Haible  <bruno@clisp.org>
76583
76584         * gnulib-tool (import): In the first-use case, provide defaults.
76585
76586 2005-09-01  Bruno Haible  <bruno@clisp.org>
76587
76588         * gnulib-tool (func_import): Remove the .tmp files.
76589
76590 2005-09-01  Bruno Haible  <bruno@clisp.org>
76591
76592         * gnulib-tool (func_import): Fix handling of symbolic links.
76593
76594 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76595
76596         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
76597         old glibc regex code mishandles strings longer than 2**31 bytes.
76598         This patch fixes this when the regex code is used in gnulib
76599         (i.e., outside glibc).
76600
76601         This patch should not affect the use of the regex code inside
76602         glibc.  No doubt this problem also needs to be handled for glibc
76603         as well, but the result will be an incompatible change to the
76604         glibc ABI, and the old ABI will have to be supported too.  That
76605         can be the the subject for another patch.
76606
76607         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
76608         governing whether the rest of this patch is active.  By default,
76609         the macro is disabled and the patch has no effect.
76610         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
76611         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
76612         (struct re_pattern_buffer, re_search, re_search_2, re_match):
76613         (re_match_2, re_set_registers): Use the new types.
76614         * lib/regex_internal.h (Idx, re_hashval_t): New types.
76615         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
76616         New macros.
76617         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
76618         (re_string_context_at, bin_tree_t, re_dfastate_t):
76619         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
76620         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
76621         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
76622         (re_string_char_size_at, re_string_wchar_at):
76623         (re_string_elem_size_at):
76624         Use the new types and macros to port to 64-bit hosts.
76625         Use unsigned types for internal values, so that the code
76626         mostly works even for arrays larger than SSIZE_MAX.
76627         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
76628         (search_duplicated_node, calc_eclosure_iter, fetch_number):
76629         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
76630         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
76631         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
76632         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
76633         (calc_inveclosure, parse_dup_op, build_range_exp):
76634         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
76635         (fetch_number, create_token_tree, mark_opt_subexp):
76636         Likewise.
76637         * lib/regex_internal.c (re_string_construct_common,
76638         create_ci_newstate):
76639         (create_cd_newstate, re_string_allocate, re_string_construct):
76640         (re_string_realloc_buffers, build_wcs_upper_buffer):
76641         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76642         (re_string_reconstruct, re_string_peek_byte_case):
76643         (re_string_fetch_byte_case, re_string_context_at):
76644         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76645         (re_node_set_init_copy, re_node_set_add_intersect):
76646         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76647         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76648         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76649         (re_acquire_state, re_acquire_state_context, register_state):
76650         Likewise.
76651         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
76652         search_cur_bkref_entry):
76653         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
76654         (re_search_internal, re_search_2_stub, re_search_stub)
76655         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
76656         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
76657         (update_cur_sifted_state, check_dst_limits):
76658         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76659         (check_subexp_limits, sift_states_bkref, merge_state_array):
76660         (check_subexp_matching_top, get_subexp, get_subexp_sub):
76661         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
76662         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76663         (expand_bkref_cache, check_node_accept_bytes):
76664         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
76665         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
76666         (acquire_init_state_context, check_halt_node_context):
76667         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
76668         (sift_states_backward, clean_state_log_if_needed):
76669         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
76670         (find_recover_state, transit_state_sb, transit_state_mb):
76671         (transit_state_bkref, build_trtable, match_ctx_clean):
76672         Likewise.
76673         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
76674         to work around an assumption that REG_MISSING is negative.
76675
76676         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
76677         (seek_collating_symbol_entry) [defined _LIBC]:
76678         (lookup_collation_sequence_value) [defined _LIBC]:
76679         (build_range_exp, build_collating_symbol) [defined _LIBC]:
76680         Use prototypes rather than old-style function definitions.
76681         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
76682         (transit_state_sb) [0]:
76683         (find_collation_sequence_value) [defined _LIBC]: Likewise.
76684
76685         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
76686         rm_eo.
76687
76688         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
76689         (optimize_subexps, lower_subexp):
76690         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
76691         since the signed shift might overflow.  Use 1u<<31 instead.
76692         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76693         Likewise.
76694         * lib/regexec.c (check_dst_limits_calc_pos_1,
76695         check_subexp_matching_top): Likewise.
76696
76697         * lib/regcomp.c (optimize_subexps, lower_subexp):
76698         Use CHAR_BIT rather than 8, for clarity.
76699         * lib/regexec.c (check_dst_limits_calc_pos_1):
76700         (check_subexp_matching_top): Likewise.
76701         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
76702         have to worry about portability issues when shifting it left.
76703         Remove no-longer-needed test for table_size > 0.
76704         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
76705         in a word, as the resulting behavior is undefined.
76706         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
76707         in one case, a <= should have been an <, and in another case the
76708         whole test was missing.
76709         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
76710         the standard name CHAR_BIT.
76711         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
76712         this is not true on one's complement and signed-magnitude hosts.
76713
76714         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
76715         next_last_offset.
76716         (struct re_dfa_t): Remove unused member states_alloc.
76717         * lib/regcomp.c (init_dfa): Don't initialize unused members.
76718
76719 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76720
76721         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
76722         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
76723         and large-file glibc and in 32-bit large-file Solaris.
76724
76725 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76726
76727         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
76728         lengths fit in regoff_t; this isn't true if regoff_t is the same
76729         width as size_t.
76730         * lib/regex.c (re_search_internal): 5th arg is LAST_START
76731         (= START + RANGE) instead of RANGE.  This avoids overflow
76732         problems when regoff_t is the same width as size_t.
76733         All callers changed.
76734         (re_search_2_stub): Check for overflow when adding the
76735         sizes of the two strings.
76736         (re_search_stub): Check for overflow when adding START
76737         to RANGE; if it occurs, substitute the extreme value.
76738
76739 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76740
76741         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
76742
76743 2005-08-31  Jim Meyering  <jim@meyering.net>
76744
76745         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
76746         a pointer-to-const.
76747         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
76748         (register_state): Likewise.
76749         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
76750         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76751         (group_nodes_into_DFAstates): Likewise.
76752
76753 2005-08-31  Jim Meyering  <jim@meyering.net>
76754
76755         * check-module: Add a FIXME comment.
76756
76757 2005-08-31  Eric Blake  <ebb9@byu.net>
76758
76759         * modules/unistd-safer (Files): Add unistd--.h.
76760         * modules/stdio-safer (Files): Add stdio--.h.
76761
76762 2005-08-31  Derek Price  <derek@ximbiot.com>
76763
76764         * lib/getdelim.c (getdelim): Return EOF on EOF.
76765         Reported by Larry Jones <lawrence.jones@ugs.com>.
76766
76767 2005-08-31  Bruno Haible  <bruno@clisp.org>
76768
76769         Avoid unnecessary diffs in the generated lib/Makefile.am.
76770         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
76771         the generated files.
76772         (func_import): Don't set cmd.
76773
76774 2005-08-31  Bruno Haible  <bruno@clisp.org>
76775
76776         * lib/strstr.c: Include <stddef.h>, for NULL.
76777         * lib/strcasestr.c: Likewise.
76778         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76779
76780 2005-08-31  Bruno Haible  <bruno@clisp.org>
76781
76782         * gnulib-tool: New option --macro-prefix.
76783         (func_import): Use macro_prefix.
76784         (import): Handle option --macro-prefix.
76785
76786 2005-08-31  Bruno Haible  <bruno@clisp.org>
76787
76788         * gnulib-tool (import): Rename most ac_* variables to cached_*.
76789         Also use new variables cached_lgpl, cached_libtool.
76790
76791 2005-08-31  Bruno Haible  <bruno@clisp.org>
76792
76793         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
76794         always instantiating them.
76795
76796 2005-08-31  Bruno Haible  <bruno@clisp.org>
76797
76798         * gnulib-tool (func_import): Read the previous cached settings
76799         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
76800         earlier added by gnulib but are now dropped. Warn when a gnulib file
76801         overwrites a non-gnulib file.
76802
76803 2005-08-31  Bruno Haible  <bruno@clisp.org>
76804
76805         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
76806         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
76807         projects that don't keep autogenerated files in CVS. Put into
76808         actioncmd only the specified modules, not the transitive closure.
76809
76810 2005-08-31  Bruno Haible  <bruno@clisp.org>
76811
76812         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
76813         Create directories that shall be filled.
76814         (import): Don't look for gl_* macros in configure.ac. Recurse across
76815         all directories containing a gnulib-cache.m4 files, if meaningful.
76816
76817 2005-08-31  Bruno Haible  <bruno@clisp.org>
76818
76819         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
76820         (import): Set seen_libtool when we see gl_LIBTOOL.
76821
76822 2005-08-31  Bruno Haible  <bruno@clisp.org>
76823
76824         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
76825         declaration macro definitions from generated gnulib.m4.
76826
76827 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
76828
76829         * lib/iconvme.h: Add prototype for iconv_alloc.
76830
76831 2005-08-29  Simon Josefsson  <jas@extundo.com>
76832
76833         * lib/iconvme.c: Fix errno.
76834
76835 2005-08-29  Bruno Haible  <bruno@clisp.org>
76836
76837         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
76838         that it works when the directory contains spaces.
76839
76840 2005-08-29  Bruno Haible  <bruno@clisp.org>
76841
76842         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
76843
76844 2005-08-29  Bruno Haible  <bruno@clisp.org>
76845
76846         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
76847         Emit more advice.
76848
76849 2005-08-29  Bruno Haible  <bruno@clisp.org>
76850         and Stepan Kasal  <kasal@ucw.cz>
76851
76852         * check-module: If more parameters are given, check each of them
76853         separately; add more exceptions, as noted by Jim Meyering.
76854         (check_module): New procedure.
76855         (%exempt_header): Now contains all exceptions.
76856
76857 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
76858
76859         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
76860
76861 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76862
76863         * lib/iconvme.c: Split iconv_string into iconv_alloc.
76864
76865 2005-08-28  Bruno Haible  <bruno@clisp.org>
76866
76867         * m4/gnulib-tool.m4: New file.
76868
76869 2005-08-27  Jim Meyering  <jim@meyering.net>
76870
76871         * modules/unistd-safer (Files): Add pipe-safer.c.
76872         * modules/fcntl-safer (Files): Add creat-safer.c.
76873
76874 2005-08-27  Jim Meyering  <jim@meyering.net>
76875
76876         * m4/stdlib-safer.m4: New file.  From coreutils.
76877         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
76878         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
76879         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
76880         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
76881         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
76882
76883 2005-08-27  Jim Meyering  <jim@meyering.net>
76884
76885         * lib/fopen-safer.c: Merge minor changes from coreutils.
76886         * lib/dup-safer.c: Likewise.
76887         * lib/fd-safer.c: Likewise.
76888
76889         Merge from coreutils.
76890         * lib/stdio--.h: New file.
76891         * lib/stdlib--.h: New file.
76892         * lib/mkstemp-safer.c: New file.
76893
76894         GNU tar needs these.
76895         * lib/pipe-safer.c: New file.
76896         * lib/creat-safer.c: New file.
76897         * lib/fcntl--.h (creat): Define to creat_safer.
76898         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
76899         * lib/unistd--.h (pipe): Define to pipe_safer.
76900         * lib/unistd-safer.h: Declare pipe_safer.
76901
76902 2005-08-26  Simon Josefsson  <jas@extundo.com>
76903
76904         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
76905         Haible <bruno@clisp.org>.
76906
76907 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
76908
76909         * lib/regex_internal.h: Remove all references to
76910         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
76911         or better.
76912         (bitset_not, bitset_merge, bitset_not_merge):
76913         (bitset_mask, re_string_allocate, re_string_construct):
76914         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
76915         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
76916         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
76917         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
76918         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76919         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76920         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
76921         (re_acquire_state_context):
76922         Remove unnecessary forward decls.
76923         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
76924         Put __attribute at function definition,
76925         now that the function decl has been removed.
76926         * lib/regex_internal.c (re_string_peek_byte_case):
76927         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
76928         Likewise.
76929
76930 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
76931
76932         * m4/regex.m4: Add AC_PREREQ(2.50).
76933         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
76934
76935 2005-08-25  Simon Josefsson  <jas@extundo.com>
76936
76937         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
76938         __fsetlocking.
76939
76940 2005-08-25  Simon Josefsson  <jas@extundo.com>
76941
76942         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
76943         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
76944         GLIBC specific code.
76945
76946 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76947
76948         Make regex safe for g++.  This fixes one real bug (an "err"
76949         that should have been "*err").  g++ problem reported by
76950         Sam Steingold.
76951         * lib/regex_internal.h (re_calloc): New macro, consistent with
76952         re_malloc etc.  All callers of calloc changed to use re_calloc.
76953         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
76954         not int.  All callers changed.
76955         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
76956         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
76957         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
76958         (find_recover_state): Change "err" to "*err"; this fixes what
76959         appears to be a real bug.
76960         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
76961         versus int.
76962
76963 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76964
76965         * modules/regex (Depends-on): Add malloc, since the code
76966         assumes that !malloc(0) means failure.
76967
76968 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76969
76970         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
76971
76972         alloca modernization/simplification for regex.
76973         * lib/regex.c: Remove portability cruft for alloca.  This no longer
76974         needs to be at the start of the file, and can be moved into
76975         regex_internal.h and simplified.
76976         * lib/regex_internal.h: Include <alloca.h>.
76977         (__libc_use_alloca) [!defined _LIBC]: New macro.
76978         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
76979         now works outside glibc.
76980
76981 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76982
76983         * config/srclist.txt: Add glibc bugs 1241, 1245.
76984
76985 2005-08-25  Jim Meyering  <jim@meyering.net>
76986
76987         * lib/open-safer.c: Include <config.h>.
76988         Otherwise, we'd lose LARGEFILE support in any file using
76989         e.g. "fcntl--.h"
76990
76991 2005-08-25  Bruno Haible  <bruno@clisp.org>
76992
76993         * m4/minmax.m4: Require autoconf 2.52.
76994         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
76995         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
76996         alternatives of translit over the alphabet.
76997         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
76998
76999 2005-08-24  Simon Josefsson  <jas@extundo.com>
77000
77001         * tests/test-getpass.c: New file.
77002
77003 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77004
77005         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
77006         for GNU regex features.
77007
77008 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77009
77010         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
77011         * lib/regex.h (regerror): Likewise.
77012
77013         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
77014         requires this.  (The code never needed it.)
77015
77016         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
77017         All uses of recently-renamed identifiers changed to use the new,
77018         POSIX-compliant names.  The code will build and run just fine
77019         without these changes, but it's better to eat our own dog food
77020         and use the standard-conforming names.
77021
77022         * lib/regex.h: Fix a multitude of POSIX name space violations.
77023         These changes have an effect only for programs that define
77024         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
77025         do not change anything for programs compiled in the normal way.
77026         Also, there is no effect on the ABI.
77027
77028         (_REGEX_SOURCE): New macro.
77029         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
77030         defined and _GNU_SOURCE is not; this fixes a name space violation.
77031
77032         Rename the following macros to obey POSIX requirements.
77033         The old names are still visible as macros if _REGEX_SOURCE is defined.
77034         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
77035         RE_BACKSLASH_ESCAPE_IN_LISTS.
77036         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
77037         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
77038         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
77039         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
77040         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
77041         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
77042         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
77043         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
77044         (REG_INTERVALS): renamed from RE_INTERVALS.
77045         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
77046         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
77047         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
77048         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
77049         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
77050         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
77051         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
77052         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
77053         RE_UNMATCHED_RIGHT_PAREN_ORD.
77054         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
77055         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
77056         (REG_DEBUG): renamed from RE_DEBUG.
77057         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
77058         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
77059         unusual, since we can't clash with the POSIX REG_ICASE.
77060         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
77061         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
77062         (REG_NO_SUB): renamed from RE_NO_SUB.
77063         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
77064         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
77065         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
77066         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
77067         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
77068         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
77069         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
77070         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
77071         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
77072         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
77073         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
77074         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
77075         RE_SYNTAX_POSIX_MINIMAL_BASIC.
77076         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
77077         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
77078         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
77079         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
77080         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
77081         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
77082         (REG_FIXED): Renamed from REGS_FIXED.
77083         (REG_NREGS): Renamed from RE_NREGS.
77084
77085         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
77086         of other REG_* macros, since POSIX says the user is allowed to
77087         #undef these macros selectively.
77088
77089         (reg_errcode_t): Update comment stating what other tables need
77090         to be consistent.
77091
77092         Rename the following enum values to obey POSIX requirements.
77093         The old names are still visible as macros.
77094         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
77095         is not defined, since GNU is supposed to be a superset of POSIX as
77096         much as possible, and since we want reg_errcode_t to be a signed
77097         type for implementation consistency.
77098         (_REG_NOERROR): Renamed from REG_NOERROR.
77099         (_REG_NOMATCH): Renamed from REG_NOMATCH.
77100         (_REG_BADPAT): Renamed from REG_BADPAT.
77101         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
77102         (_REG_ECTYPE): Renamed from REG_ECTYPE.
77103         (_REG_EESCAPE): Renamed from REG_EESCAPE.
77104         (_REG_ESUBREG): Renamed from REG_ESUBREG.
77105         (_REG_EBRACK): Renamed from REG_EBRACK.
77106         (_REG_EPAREN): Renamed from REG_EPAREN.
77107         (_REG_EBRACE): Renamed from REG_EBRACE.
77108         (_REG_BADBR): Renamed from REG_BADBR.
77109         (_REG_ERANGE): Renamed from REG_ERANGE.
77110         (_REG_ESPACE): Renamed from REG_ESPACE.
77111         (_REG_BADRPT): Renamed from REG_BADRPT.
77112         (_REG_EEND): Renamed from REG_EEND.
77113         (_REG_ESIZE): Renamed from REG_ESIZE.
77114         (_REG_ERPAREN): Renamed from REG_ERPAREN.
77115         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
77116         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
77117         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
77118         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
77119
77120         (_REG_RE_NAME, _REG_RM_NAME): New macros.
77121         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
77122         changed.  But support the old name if the new one is not defined
77123         and if _REGEX_SOURCE.
77124
77125         Change the following member names in struct re_pattern_buffer.
77126         The old names are still supported if !_REGEX_SOURCE.
77127         The new names are always supported, regardless of _REGEX_SOURCE.
77128         (re_buffer): Renamed from buffer.
77129         (re_allocated): Renamed from allocated.
77130         (re_used): Renamed from used.
77131         (re_syntax): Renamed from syntax.
77132         (re_fastmap): Renamed from fastmap.
77133         (re_translate): Renamed from translate.
77134         (re_can_be_null): Renamed from can_be_null.
77135         (re_regs_allocated): Renamed from regs_allocated.
77136         (re_fastmap_accurate): Renamed from fastmap_accurate.
77137         (re_no_sub): Renamed from no_sub.
77138         (re_not_bol): Renamed from not_bol.
77139         (re_not_eol): Renamed from not_eol.
77140         (re_newline_anchor): Renamed from newline_anchor.
77141
77142         Change the following member names in struct re_registers.
77143         The old names are still supported if !_REGEX_SOURCE.
77144         The new names are always supported, regardless of _REGEX_SOURCE.
77145         (rm_num_regs): Renamed from num_regs.
77146         (rm_start): Renamed from start.
77147         (rm_end): Renamed from end.
77148
77149         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
77150         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
77151         Prepend __ to parameter names.
77152
77153         Undo yesterday's changes.
77154
77155 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77156
77157         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
77158         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
77159         lib/regex.c.
77160
77161 2005-08-24  Jim Meyering  <jim@meyering.net>
77162
77163         Sync from coreutils.
77164         * m4/fcntl-safer.m4: New file.
77165
77166         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
77167         and object files for this module.
77168
77169 2005-08-24  Jim Meyering  <jim@meyering.net>
77170
77171         Sync from coreutils.
77172         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
77173
77174 2005-08-24  Jim Meyering  <jim@meyering.net>
77175
77176         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
77177         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
77178
77179 2005-08-24  Jim Meyering  <jim@meyering.net>
77180
77181         * modules/fcntl-safer: New module.
77182         * modules/fts (Depends-on): Add fcntl-safer.
77183         * MODULES.html.sh (File descriptor based Input/Output):
77184         Add fcntl-safer.
77185
77186 2005-08-24  Bruno Haible  <bruno@clisp.org>
77187
77188         Support for unit test modules.
77189         * modules/README: Mention tests modules.
77190         * modules/TEMPLATE-TESTS: New file.
77191         * gnulib-tool: New options --extract-tests-module, --with-tests and
77192         --tests-base (unused for the moment).
77193         (testsbase, inctests): New variables.
77194         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
77195         (func_verify_module): Exclude TEMPLATE-TESTS.
77196         (func_verify_nontests_module, func_verify_tests_module): New functions.
77197         (func_get_dependencies): Add implicit dependency for tests modules.
77198         (func_get_tests_module): New function.
77199         (func_modules_transitive_closure): When --with-tests was specified,
77200         include the unit tests as well, unless explicitly avoided.
77201         (func_emit_lib_Makefile_am): Ignore the tests modules here.
77202         (func_emit_tests_Makefile_am): New function.
77203         (func_create_testdir): When --with-tests was specified, emit a
77204         tests/ directory.
77205         * MODULES.html.sh (Future developments): Update.
77206
77207 2005-08-24  Bruno Haible  <bruno@clisp.org>
77208
77209         * modules/tls-tests: New file.
77210         * tests/test-tls.c: New file, from GNU gettext.
77211
77212 2005-08-24  Bruno Haible  <bruno@clisp.org>
77213
77214         * modules/lock-tests: New file.
77215         * tests/test-lock.c: New file, from GNU gettext.
77216
77217 2005-08-24  Bruno Haible  <bruno@clisp.org>
77218
77219         * lib/lock.h: Add multiple inclusion guard.
77220         * lib/tls.h: Add multiple inclusion guard.
77221
77222 2005-08-24  Bruno Haible  <bruno@clisp.org>
77223
77224         * gnulib-tool: Add support for the --aux-dir option to
77225         --create-testdir, --create-megatestdir, --test, --megatest.
77226         (func_create_testdir, func_create_megatestdir): Optionally emit a
77227         AC_CONFIG_AUX_DIR directive.
77228         (create-testdir, create-megatestdir, test, megatest): Provide a
77229         default value for $auxdir.
77230
77231 2005-08-24  Bruno Haible  <bruno@clisp.org>
77232
77233         * gnulib-tool (import): Use compound statement instead of subshell
77234         where possible.
77235
77236 2005-08-24  Bruno Haible  <bruno@clisp.org>
77237
77238         * gnulib-tool (import): Change --aux-dir default to "build-aux".
77239
77240 2005-08-24  Bruno Haible  <bruno@clisp.org>
77241
77242         * gnulib-tool (func_version): Update.
77243
77244 2005-08-24  Bruno Haible  <bruno@clisp.org>
77245
77246         * gnulib-tool (func_import, func_create_testdir,
77247         func_create_megatestdir): Quote all autoconf macro arguments.
77248
77249 2005-08-24  Bruno Haible  <bruno@clisp.org>
77250
77251         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
77252         option --force, because --force causes the aclocal.m4 of each
77253         subdirectory to be newer than the corresponding config.h.in.
77254
77255 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77256
77257         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
77258         All contents moved to gl_REGEX.
77259         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
77260         assume that it does.
77261
77262 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77263
77264         * lib/regex.h (REG_NOSYS)
77265         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
77266         Define, since POSIX requires it as of 2001.
77267         (_REG_ENOSYS)
77268         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
77269         New private symbol, used to keep the enum signed in all cases.
77270         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
77271         Youngman in
77272         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
77273
77274         * lib/regex_internal.c (re_string_skip_chars, register_state):
77275         (calc_state_hash):
77276         Remove forward decls; no longer needed now that we use prototypes.
77277         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
77278         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
77279         (clean_state_log_if_needed): Likewise.
77280
77281 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77282
77283         * config/srclist.txt: Add glibc bugs 1231-1233.
77284
77285 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77286
77287         Fix problems reported by Sam Steingold in
77288         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
77289         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
77290         assumed that reg_errcode_t is a signed type, which is not
77291         necessarily true if _XOPEN_SOURCE is not defined.
77292         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
77293         since some compilers warn about it otherwise.
77294
77295 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77296
77297         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
77298         (init_word_char, create_initial_state, duplicate_node_closure):
77299         (fetch_token, peek_token_bracket, build_range_exp):
77300         (build_collating_symbol): Remove forward decls; no longer needed
77301         now that we use prototypes.
77302
77303         * lib/regcomp.c:
77304         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
77305         (re_compile_fastmap_iter, regcomp, regerror, regfree):
77306         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
77307         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
77308         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
77309         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
77310         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
77311         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
77312         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
77313         (build_range_exp, build_collating_symbol, parse_bracket_exp):
77314         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
77315         (build_charclass, build_charclass_op, fetch_number, create_tree):
77316         (create_token_tree, mark_opt_subexp, duplicate_tree):
77317         Use prototypes rather than old-style definitions.
77318
77319         * lib/regex_internal.c:
77320         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
77321         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
77322         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77323         (re_string_reconstruct, re_string_peek_byte_case):
77324         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
77325         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77326         (re_node_set_init_copy, re_node_set_add_intersect):
77327         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77328         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77329         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77330         (re_acquire_state, re_acquire_state_context, register_state):
77331         (create_ci_newstate, create_cd_newstate, free_state):
77332         Likewise.
77333         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
77334         re_search_2):
77335         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
77336         (re_search_internal, prune_impossible_nodes):
77337         (acquire_init_state_context, check_matching, static):
77338         (check_halt_node_context, check_halt_state_context, proceed_next_node):
77339         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
77340         (update_regs, sift_states_backward, build_sifted_states):
77341         (clean_state_log_if_needed, merge_state_array):
77342         (update_cur_sifted_state, add_epsilon_src_nodes):
77343         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
77344         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
77345         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
77346         (find_recover_state, check_subexp_matching_top, transit_state_mb):
77347         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
77348         (check_arrival, check_arrival_add_next_nodes):
77349         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77350         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77351         (check_node_accept_bytes, check_node_accept, extend_buffers):
77352         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
77353         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
77354         (sift_ctx_init):
77355         Likewise.
77356
77357         * lib/regex_internal.h:
77358         (re_string_allocate, re_string_construct, re_string_reconstruct):
77359         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
77360         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
77361         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
77362         (re_string_context_at, re_string_peek_byte_case):
77363         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
77364         is defined, since we now use prototypes always.
77365
77366         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
77367         C89 or better.  All uses removed.
77368
77369 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77370
77371         * config/srclist.txt: Add glibc bugs 1220-1227.
77372
77373 2005-08-20  Jim Meyering  <jim@meyering.net>
77374
77375         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
77376         of unused local, dfa.
77377
77378 2005-08-20  Bruno Haible  <bruno@clisp.org>
77379
77380         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
77381
77382 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77383
77384         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
77385         (re_node_set_insert_last, re_dfa_add_node):
77386         Rename local variables to avoid GCC shadowing warnings.
77387
77388 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77389
77390         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
77391         [defined lint]: Suppress bogus uninitialized-variable warnings.
77392
77393         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
77394         and let the caller return REG_ESPACE if out of space.  This
77395         removes an uninitialied-variable warning with GCC 4.0.1, and also
77396         avoids taking the address of a local variable.  All callers
77397         changed.
77398
77399 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77400
77401         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
77402         $LIBCSRC/posix/regexec.c.
77403         Add glibc bug 1217 for regcomp.c.
77404
77405 2005-08-19  Jim Meyering  <jim@meyering.net>
77406
77407         * lib/regexec.c (proceed_next_node): Redo local variables to
77408         avoid GCC shadowing warnings.
77409
77410 2005-08-18  Bruno Haible  <bruno@clisp.org>
77411
77412         * lib/strstr.c (strstr): Fix return value in multibyte case.
77413         * lib/strcasestr.c (strcasestr): Likewise.
77414
77415 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77416
77417         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
77418
77419 2005-08-17  Jim Meyering  <jim@meyering.net>
77420
77421         Make the %s format (seconds since the epoch) work for a negative
77422         number and when used with a zero-padded field width, e.g. %015s.
77423
77424         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
77425         label so that it precedes the code to set `digits'.  Otherwise,
77426         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
77427         print `00-22'.  Now, it prints `-0022', as it should.
77428
77429 2005-08-17  Bruno Haible  <bruno@clisp.org>
77430
77431         * modules/strstr (Files): Add m4/mbrtowc.m4.
77432         (Depends-on): Add mbuiter.
77433
77434 2005-08-17  Bruno Haible  <bruno@clisp.org>
77435
77436         * modules/strcasestr: New file.
77437         * MODULES.html.sh (String handling, based on ANSI C 89): Add
77438         strcasestr.
77439
77440 2005-08-17  Bruno Haible  <bruno@clisp.org>
77441
77442         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
77443
77444 2005-08-17  Bruno Haible  <bruno@clisp.org>
77445
77446         * modules/mbuiter: New file.
77447         * MODULES.html.sh (Extended multibyte and wide character utilities):
77448         Add mbuiter.
77449
77450 2005-08-17  Bruno Haible  <bruno@clisp.org>
77451
77452         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
77453         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
77454
77455 2005-08-17  Bruno Haible  <bruno@clisp.org>
77456
77457         * m4/strcasestr.m4: New file.
77458
77459 2005-08-17  Bruno Haible  <bruno@clisp.org>
77460
77461         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
77462         * lib/strstr.c: Completely rewritten, with multibyte locale support.
77463
77464 2005-08-17  Bruno Haible  <bruno@clisp.org>
77465
77466         * lib/strcasestr.h: New file.
77467         * lib/strcasestr.c: New file.
77468
77469 2005-08-17  Bruno Haible  <bruno@clisp.org>
77470
77471         * lib/strcasecmp.c: Use mbuiter.h.
77472
77473 2005-08-17  Bruno Haible  <bruno@clisp.org>
77474
77475         * lib/mbuiter.h: New file.
77476
77477 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77478
77479         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
77480         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
77481         and gl_GETOPT are both invoked via different paths (as happens
77482         with GNU tar CVS because it uses both argp and getopt), the former
77483         wins.
77484
77485 2005-08-16  Bruno Haible  <bruno@clisp.org>
77486
77487         * modules/tls: New file.
77488         * MODULES.html.sh (Multithreading): Add tls.
77489
77490 2005-08-16  Bruno Haible  <bruno@clisp.org>
77491
77492         * modules/strnlen1: New file.
77493         * MODULES.html.sh (String handling): Add strnlen1.
77494
77495 2005-08-16  Bruno Haible  <bruno@clisp.org>
77496
77497         * modules/strcase (Files): Add m4/mbrtowc.m4.
77498         (Depends-on): Add strnlen1, mbchar.
77499
77500 2005-08-16  Bruno Haible  <bruno@clisp.org>
77501
77502         * modules/mbiter: New file.
77503         * MODULES.html.sh (Extended multibyte and wide character utilities):
77504         Add mbiter.
77505
77506 2005-08-16  Bruno Haible  <bruno@clisp.org>
77507
77508         * modules/mbfile: New file.
77509         * MODULES.html.sh (Extended multibyte and wide character utilities):
77510         Add mbfile.
77511
77512 2005-08-16  Bruno Haible  <bruno@clisp.org>
77513
77514         * modules/mbchar: New file.
77515         * MODULES.html.sh (Extended multibyte and wide character utilities):
77516         New section.
77517
77518 2005-08-16  Bruno Haible  <bruno@clisp.org>
77519
77520         * m4/tls.m4: New file, from GNU gettext.
77521
77522 2005-08-16  Bruno Haible  <bruno@clisp.org>
77523
77524         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
77525         always.
77526         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
77527
77528 2005-08-16  Bruno Haible  <bruno@clisp.org>
77529
77530         * m4/mbiter.m4: New file.
77531
77532 2005-08-16  Bruno Haible  <bruno@clisp.org>
77533
77534         * m4/mbfile.m4: New file.
77535
77536 2005-08-16  Bruno Haible  <bruno@clisp.org>
77537
77538         * m4/mbchar.m4: New file.
77539
77540 2005-08-16  Bruno Haible  <bruno@clisp.org>
77541
77542         * lib/tls.h: New file, from GNU gettext.
77543         * lib/tls.c: New file, from GNU gettext.
77544
77545 2005-08-16  Bruno Haible  <bruno@clisp.org>
77546
77547         * lib/strnlen1.h: New file.
77548         * lib/strnlen1.c: New file.
77549
77550 2005-08-16  Bruno Haible  <bruno@clisp.org>
77551
77552         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
77553         (mbi_init): Update.
77554         (mbi_avail, mbi_advance): Let the iteration end before the terminating
77555         NUL byte, not after it.
77556
77557 2005-08-16  Bruno Haible  <bruno@clisp.org>
77558
77559         * lib/strcase.h (strcasecmp): Add note in comments.
77560         * lib/strncasecmp.c: Use code from strcasecmp.c.
77561         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
77562         (strcasecmp): Work correctly in multibyte locales.
77563
77564 2005-08-16  Bruno Haible  <bruno@clisp.org>
77565
77566         * lib/mbiter.h: New file.
77567
77568 2005-08-16  Bruno Haible  <bruno@clisp.org>
77569
77570         * lib/mbfile.h: New file.
77571
77572 2005-08-16  Bruno Haible  <bruno@clisp.org>
77573
77574         * lib/mbchar.h: New file.
77575         * lib/mbchar.c: New file.
77576
77577 2005-08-16  Bruno Haible  <bruno@clisp.org>
77578
77579         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
77580         the valid ones. Makes the comparison operations transitive:
77581         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
77582         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
77583
77584 2005-08-15  Simon Josefsson  <jas@extundo.com>
77585
77586         * modules/ssize_t (License): Change to 'unlimited'.
77587
77588         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
77589
77590 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77591
77592         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
77593         Add comments for each pending glibc patch.
77594
77595 2005-08-15  Bruno Haible  <bruno@clisp.org>
77596
77597         * lib/regex.h (__restrict_arr): Don't define to __restrict if
77598         __cplusplus is defined.
77599
77600 2005-08-14  Jim Meyering  <jim@meyering.net>
77601
77602         Sync from coreutils.
77603
77604         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
77605         Use the hash-table-based cycle-detection code not just when
77606         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
77607         Reported by James Youngman in
77608         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
77609         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
77610         FTS_TIGHT_CYCLE_CHECK.
77611         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
77612         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
77613         once again.
77614         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
77615         * lib/fts.c (fd_safer): Remove decl.
77616         Include fcntl--.h rather than unistd-safer.h
77617         (fts_safe_changedir): Don't call fd_safer; no longer needed
77618         now that we include fcntl--.h.
77619
77620 2005-08-12  Simon Josefsson  <jas@extundo.com>
77621
77622         * modules/getndelim2: Use ssize_t module.
77623         * modules/getnline: Likewise.
77624         * modules/safe-read: Likewise.
77625         * modules/xreadlink: Likewise.
77626
77627         * modules/ssize_t: New file.
77628
77629 2005-08-12  Simon Josefsson  <jas@extundo.com>
77630
77631         * m4/readline.m4: Look for termcap, curses or ncurses if required.
77632
77633 2005-08-12  Simon Josefsson  <jas@extundo.com>
77634
77635         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77636         ssize_t.
77637
77638 2005-08-12  Simon Josefsson  <jas@extundo.com>
77639
77640         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
77641         readline, getdelim and check_version.
77642         (Support for systems lacking ISO C 99: Sizes of integer types):
77643         Add size_max.
77644
77645 2005-08-12  Bruno Haible  <bruno@clisp.org>
77646
77647         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
77648
77649 2005-08-11  Simon Josefsson  <jas@extundo.com>
77650
77651         * modules/readline: New file.
77652
77653         * modules/strnlen (Files): Add strnlen.h.
77654
77655 2005-08-11  Simon Josefsson  <jas@extundo.com>
77656
77657         * m4/readline.m4: New file.
77658
77659 2005-08-11  Simon Josefsson  <jas@extundo.com>
77660
77661         * lib/readline.h, readline.c: New file.
77662
77663 2005-08-11  Simon Josefsson  <jas@extundo.com>
77664
77665         * doc/gnulib.texi (Initial import, Finishing touches): Mention
77666         gl_AVOID.
77667
77668 2005-08-11  Bruno Haible  <bruno@clisp.org>
77669
77670         * lib/strnlen.h (strnlen): Change parameter name to match comment.
77671
77672 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
77673
77674         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
77675
77676 2005-08-10  Simon Josefsson  <jas@extundo.com>
77677
77678         * tests/test-iconvme.c: New file.
77679
77680 2005-08-10  Simon Josefsson  <jas@extundo.com>
77681
77682         * m4/strnlen.m4: New file.
77683
77684         * m4/strndup.m4: Don't check for strnlen declaration, done in
77685         strnlen.m4.
77686
77687 2005-08-10  Simon Josefsson  <jas@extundo.com>
77688
77689         * lib/strndup.c: Use strnlen.h.
77690
77691         * lib/strnlen.h: New file.
77692
77693 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77694
77695         * README: Typos.
77696
77697 2005-08-02  Simon Josefsson  <jas@extundo.com>
77698
77699         * modules/readline: New file.
77700
77701 2005-08-02  Simon Josefsson  <jas@extundo.com>
77702
77703         * modules/getdelim: New file.
77704
77705         * modules/getline: Rewrite, don't use getndelim2.
77706
77707 2005-08-02  Simon Josefsson  <jas@extundo.com>
77708
77709         * m4/getline.m4: Separate out getdelim stuff into separate module.
77710
77711         * m4/getdelim.m4: New file.
77712
77713 2005-08-02  Simon Josefsson  <jas@extundo.com>
77714
77715         * lib/getline.h, getline.c: Rewrite.
77716
77717         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
77718
77719 2005-07-31  Bruno Haible  <bruno@clisp.org>
77720
77721         * lib/lock.h (gl_lock_initializer): New macro.
77722         (gl_lock_define_initialized): Use it.
77723         (gl_rwlock_initializer): New macro.
77724         (gl_rwlock_define_initialized): Use it.
77725         (gl_recursive_lock_initializer): New macro.
77726         (gl_recursive_lock_define_initialized): Use it.
77727
77728 2005-07-30  Karl Berry  <karl@gnu.org>
77729
77730         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
77731         Report from Ben Pfaff, regarding getopt.
77732
77733 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
77734
77735         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
77736         normal way.
77737         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
77738         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
77739         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
77740         (gl_GETOPT): Use the new macros.  Most of the implementation
77741         is moved to the new macros.  This is for programs like Emacs
77742         that don't want all the functionality of gl_GETOPT.
77743
77744 2005-07-26  Bruno Haible  <bruno@clisp.org>
77745
77746         * m4/lock.m4: Update from GNU gettext.
77747
77748 2005-07-26  Bruno Haible  <bruno@clisp.org>
77749
77750         * lib/lock.h: Update from GNU gettext.
77751         * lib/lock.c: Update from GNU gettext.
77752
77753 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
77754
77755         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
77756         obsolescent AC_TRY_RUN.  Include the default includes files, for
77757         'exit'.
77758
77759 2005-07-24  Bruno Haible  <bruno@clisp.org>
77760
77761         * modules/visibility: New file.
77762         * MODULES.html.sh (Misc): Add visibility.
77763
77764 2005-07-24  Bruno Haible  <bruno@clisp.org>
77765
77766         * m4/visibility.m4: New file.
77767
77768 2005-07-24  Bruno Haible  <bruno@clisp.org>
77769
77770         * doc/visibility.texi: New file.
77771
77772 2005-07-22  Bruno Haible  <bruno@clisp.org>
77773
77774         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
77775         $(ALLOCA_H), redundant through BUILT_SOURCES.
77776         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
77777         redundant through BUILT_SOURCES.
77778         * modules/byteswap (Makefile.am): Remove explicit dependency on
77779         $(BYTESWAP_H), redundant through BUILT_SOURCES.
77780         * modules/fnmatch (Makefile.am): Remove explicit dependency on
77781         $(FNMATCH_H), redundant through BUILT_SOURCES.
77782         * modules/getopt (Makefile.am): Remove explicit dependency on
77783         $(GETOPT_H), redundant through BUILT_SOURCES.
77784         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
77785         redundant through BUILT_SOURCES.
77786         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
77787         redundant through BUILT_SOURCES.
77788         * modules/stdbool (Makefile.am): Remove explicit dependency on
77789         $(STDBOOL_H), redundant through BUILT_SOURCES.
77790         * modules/stdint (Makefile.am): Remove explicit dependency on
77791         $(STDINT_H), redundant through BUILT_SOURCES.
77792         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
77793         Remove explicit dependency on $(SYSEXITS_H).
77794         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
77795
77796 2005-07-18  Simon Josefsson  <jas@extundo.com>
77797
77798         * lib/check-version.c (check_version): Accept identical versions too.
77799
77800 2005-07-18  Bruno Haible  <bruno@clisp.org>
77801
77802         * modules/lock: New file.
77803         * MODULES.html.sh (Multithreading): New section.
77804
77805 2005-07-18  Bruno Haible  <bruno@clisp.org>
77806
77807         * m4/lock.m4: New file, from GNU gettext.
77808
77809 2005-07-18  Bruno Haible  <bruno@clisp.org>
77810
77811         * lib/lock.h: New file, from GNU gettext.
77812         * lib/lock.c: New file, from GNU gettext.
77813
77814 2005-07-18  Bruno Haible  <bruno@clisp.org>
77815
77816         * lib/lock.h (gl_once_t): New type.
77817         (gl_once_define, gl_once): New macros.
77818         * lib/lock.c (fresh_once): New variable.
77819         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
77820         functions.
77821
77822 2005-07-16  Simon Josefsson  <jas@extundo.com>
77823
77824         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
77825         workaround, suggested by Bruno.
77826
77827 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77828
77829         * modules/xalloc (Depends-on): Add xalloc-die.
77830         * modules/xvasprintf (Depends-on): Add xalloc-die.
77831
77832 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77833
77834         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
77835         with a minor change.
77836
77837 2005-07-15  Bruno Haible  <bruno@clisp.org>
77838
77839         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
77840         When using lib/poll.c, define poll as rpl_poll.
77841
77842 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
77843
77844         * modules/argp (Depends-on): Remove unlocked-io.
77845
77846 2005-07-14  Derek Price  <derek@ximbiot.com>
77847
77848         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
77849         for glob symlink bug.
77850
77851 2005-07-14  Bruno Haible  <bruno@clisp.org>
77852
77853         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
77854         Instead, test for *_unlocked function declarations directly.
77855
77856 2005-07-11  Simon Josefsson  <jas@extundo.com>
77857
77858         * modules/size_max: New file.
77859
77860         * modules/xsize: Depend on size_max module for size_max.m4.
77861
77862 2005-07-11  Simon Josefsson  <jas@extundo.com>
77863
77864         * lib/size_max.h: New file.
77865
77866 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
77867
77868         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
77869         copyright symbol and the year.
77870         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
77871         (version_etc_va): Use parameterized copyright notice.
77872         Reword to conform to the current GNU coding standards.
77873
77874 2005-07-11  Karl Berry  <karl@gnu.org>
77875
77876         * doc/gnulib.texi (Quoting): new node.
77877         (Initial import): more info, from Patrice.
77878
77879 2005-07-11  Bruno Haible  <bruno@clisp.org>
77880
77881         * gnulib-tool (func_usage): Document option --avoid.
77882         (Command line options): Handle --avoid.
77883         (func_acceptable): New function.
77884         (func_modules_transitive_closure): Use it.
77885
77886 2005-07-11  Bruno Haible  <bruno@clisp.org>
77887
77888         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
77889         Reported by Jim Meyering.
77890
77891 2005-07-10  Bruno Haible  <bruno@clisp.org>
77892
77893         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
77894         Needed when size_t is smaller than 'unsigned int'.
77895         Reported by Paul Eggert.
77896
77897 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77898
77899         * modules/argp (Depends-on): Add unlocked-io
77900
77901 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77902
77903         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
77904         block of defines.
77905
77906 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77907
77908         * config/srclist.txt: Comment out regcomp.c, since we have a porting
77909         fix now.
77910
77911 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
77912         and Paul Eggert  <eggert@cs.ucla.edu>
77913
77914         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
77915         in wint_t, not wchar_t.  Remove now-unnecessary cast.
77916
77917 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77918
77919         * modules/regex (Files): Add lib/regex_internal.c,
77920         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
77921         (Depends-on): Add extensions.
77922         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
77923
77924 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77925
77926         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
77927         pathconf.
77928         * m4/same.m4 (gl_SAME): Likewise.
77929         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
77930
77931         * m4/regex.m4: Adjust to new libc regex implementation.
77932         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
77933         all the .c and .h parts of (the new) regex.
77934         Quote the m4 stuff better.
77935         Check for RE_ICASE bug of old gnulib.
77936         Check for REG_STARTEND of recent libc.
77937         Rename local variables from jm_* to gl_*.
77938         Quote operand of "test -f".
77939         Say "recent enough" version of libc, not "version 2".
77940         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
77941         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
77942         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
77943         Remove check for btowc, isascii.
77944         Require AM_LANGINFO_CODESET.
77945
77946 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77947
77948         * lib/regex.c, regex.h: Sync from libc.
77949         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
77950         * lib/regexec.c:
77951         New files, synced from libc, except that regex_internal.h
77952         currently has a small porting fix.
77953
77954 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77955
77956         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
77957         regex_internal.c, regexec.c.
77958         Add regex_internal.h too, but as a comment, since the libc version
77959         is currently broken in gnulib mode.
77960
77961 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77962
77963         Support programs like Emacs that use gnulib but not gettext.
77964         * MODULES.html.sh (Internationalization functions): Add gettext-h.
77965         * modules/gettext-h: New file.
77966         * modules/gettext (Files): Remove lib/gettext.h.
77967         (Depends-on): Add gettext-h.
77968         (Makefile.am): Remove lib_SOURCES.
77969         * modules/argmatch, modules/c-stack, modules/closeout:
77970         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
77971         * modules/execute, modules/file-type, modules/getaddrinfo:
77972         * modules/getopt, modules/human, modules/javacomp:
77973         * modules/javaexec, modules/mkdir-p, modules/obstack:
77974         * modules/openat, modules/pagealign_alloc, modules/pipe:
77975         * modules/quotearg, modules/regex, modules/rpmatch:
77976         * modules/unicodeio, modules/userspec, modules/version-etc:
77977         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
77978         * modules/xsetenv:
77979         Depend on gettext-h, not gettext.
77980
77981 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77982
77983         * gnulib-tool (func_import): Add support for 'public domain' license.
77984         * modules/alloca, modules/atexit, modules/memmove:
77985         Now public domain, not GPL.
77986         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
77987         * modules/realloc, modules/strerror, modules/strtod:
77988         Now LGPL, not GPL.
77989
77990 2005-07-05  Bruno Haible  <bruno@clisp.org>
77991
77992         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
77993         autoconf CVS. Needed for mingw.
77994
77995 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77996
77997         Remove the dependency of the strftime module on the tzset module.
77998         * modules/strftime (Depends-on): Remove dependency on tzset.
77999
78000 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78001
78002         Remove the dependency of the strftime module on the tzset module.
78003         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
78004         gl_FUNC_TZSET_CLOBBER.
78005
78006 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78007
78008         Remove the dependency of the strftime module on the tzset module.
78009         * lib/strftime.c (my_strftime)
78010         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
78011         Copy the input structure, to work around some of the bug with
78012         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
78013         Solaris releases, you should also use the tzset module, but we won't
78014         require it as a dependency any more since we don't want LGPLed code
78015         to depend on GPLed code.
78016
78017 2005-07-02  Jim Meyering  <jim@meyering.net>
78018
78019         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
78020         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
78021         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
78022         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
78023
78024 2005-07-02  Jim Meyering  <jim@meyering.net>
78025
78026         * lib/backupfile.c (backup_args): Change a `0' to NULL.
78027
78028 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78029
78030         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
78031         declares only 'struct timespec;' (!).
78032
78033 2005-07-01  Jim Meyering  <jim@meyering.net>
78034
78035         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
78036         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
78037         * lib/save-cwd.c, tempname.c:
78038         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
78039         and don't include <sys/file.h>).
78040
78041 2005-06-29  Jim Meyering  <jim@meyering.net>
78042
78043         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
78044         type name.  Use the variable name instead.
78045         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
78046         Likewise.
78047
78048 2005-06-28  Simon Josefsson  <jas@extundo.com>
78049
78050         * modules/check-version (Files): Add check-version.m4.
78051
78052 2005-06-28  Simon Josefsson  <jas@extundo.com>
78053
78054         * m4/check-version.m4: New file, suggested by Jim Meyering
78055         <jim@meyering.net>.
78056
78057 2005-06-28  Simon Josefsson  <jas@extundo.com>
78058
78059         * lib/check-version.h, lib/check-version.c: New files.
78060
78061 2005-06-28  Simon Josefsson  <jas@extundo.com>
78062
78063         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
78064         collision with global variable.  Better indentation.  Don't
78065         increment buffer pointer beyond buffer end.  Based on comments
78066         from Paul Eggert <eggert@cs.ucla.edu>.
78067
78068         * lib/base64.h: Indent.
78069
78070 2005-06-28  Simon Josefsson  <jas@extundo.com>
78071
78072         * doc/gnulib.texi (Library version handling): New section.
78073
78074 2005-06-28  Jim Meyering  <jim@meyering.net>
78075
78076         * check-module (find_included_lib_files): Hard-code another
78077         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
78078         but modules/fts-lgpl (correctly) does not list those files.
78079
78080         * modules/canonicalize (Files): Add lib/pathmax.h.
78081
78082 2005-06-25  Simon Josefsson  <jas@extundo.com>
78083
78084         * modules/check-version: New file.
78085
78086 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
78087
78088         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
78089         initializer of struct addrinfo, as an indication that we don't
78090         care how many members the structure has.
78091
78092 2005-06-24  Derek Price  <derek@ximbiot.com>
78093         and Bruno Haible  <bruno@clisp.org>
78094
78095         Remove stat module & update lstat.
78096         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
78097         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78098         * m4/stat.m4: Remove this file.
78099
78100 2005-06-24  Derek Price  <derek@ximbiot.com>
78101         and Bruno Haible  <bruno@clisp.org>
78102
78103         Remove stat module & update lstat.
78104         * lib/stat.c: Remove this file...
78105         (slash_aware_lstat): ...moving this content and its support...
78106         * lib/lstat.c (rpl_lstat): ...into here.
78107         * lib/lstat.h: New file.
78108
78109 2005-06-24  Derek Price  <derek@ximbiot.com>
78110         and Bruno Haible  <bruno@clisp.org>
78111
78112         Remove stat module & update lstat.
78113         * config/srclist.txt (libc sources): Remove stat.
78114
78115 2005-06-24  Derek Price  <derek@ximbiot.com>
78116         and Bruno Haible  <bruno@clisp.org>
78117
78118         Remove stat module & update lstat.
78119         * MODULES.html.sh (stat): Remove.
78120         * MODULES.html: Regenerated.
78121         * modules/lstat (Description): Correct function name.
78122         (Files): Add "lstat.h".
78123         (Depends-on): Remove stat, add xalloc, stat-macros.
78124         * modules/stat: Remove this file.
78125         (Include): Add "lstat.h", remove <sys/stat.h>.
78126
78127 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
78128
78129         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
78130         (ranged_convert): Don't save conversion in a temporary struct.
78131         This causes a warning with GCC 4.0.0, and anyway in the typical
78132         case it's not worth the extra 100 bytes or so of code.
78133         (ranged_convert, __mktime_internal): When calling a function via a
78134         pointer P, use P () rather than (*P) (), as we now assume C89 or
78135         better.
78136
78137 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78138
78139         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
78140         "who -r" failed to give output.  Problem reported by Tim Waugh.
78141
78142         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
78143         (xcalloc): Use it to avoid needless tests.
78144         Problem reported by Jim Meyering.
78145
78146 2005-06-20  Derek Price  <derek@ximbiot.com>
78147
78148         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
78149         unnecessary for Autoconfs > 2.59c.
78150
78151 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78152
78153         * lib/argp.h (__option_is_short): Check upper limit of
78154         __key. Isprint() requires its argument to have the value
78155         of an unsigned char or EOF.
78156
78157 2005-06-16  Jim Meyering  <jim@meyering.net>
78158
78159         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
78160         when either N or S is zero.
78161
78162 2005-06-16  Derek Price  <derek@ximbiot.com>
78163
78164         * m4/bison.m4: Declare YACC & YFLAGS precious.
78165
78166 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
78167
78168         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
78169         multibyte string or pattern, fall back on unibyte matching.
78170         Problem reported by James Youngman.
78171
78172 2005-06-08  Bruno Haible  <bruno@clisp.org>
78173
78174         * modules/csharpcomp: New file.
78175         * MODULES.html.sh (C#): Add csharpcomp.
78176
78177 2005-06-08  Bruno Haible  <bruno@clisp.org>
78178
78179         * m4/csharpcomp.m4: New file, from GNU gettext.
78180
78181 2005-06-08  Bruno Haible  <bruno@clisp.org>
78182
78183         * lib/csharpcomp.h: New file, from GNU gettext.
78184         * lib/csharpcomp.c: New file, from GNU gettext.
78185         * lib/csharpcomp.sh.in: New file, from GNU gettext.
78186
78187 2005-06-08  Bruno Haible  <bruno@clisp.org>
78188
78189         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
78190         warning on mingw.
78191
78192 2005-06-07  Derek Price  <derek@ximbiot.com>
78193
78194         Sync from CVS.
78195         * lib/glob_.h: Indent nested #ifdef.
78196
78197 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78198
78199         Sync from coreutils.
78200         Use "file name" when talking about file names, instead of "filename"
78201         or "path", as per the GNU coding standards.
78202         * lib/mkdir-p.c: Renamed from makepath.c.
78203         (make_dir_parents): Renamed from make_path.  All callers changed.
78204         * lib/mkdir-p.h: Likewise.  All includers changed.
78205         * lib/filenamecat.c: Renamed from path-concat.c.
78206         (file_name_concat): Renamed from path_concat.  All callers changed.
78207         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
78208         * lib/filenamecat.h: Likewise.  All includers changed.
78209         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
78210         in comments or local variable names.
78211         * lib/basename.c: Likewise.
78212         * lib/canonicalize.c, canonicalize.h: Likewise.
78213         * lib/dirname.c, dirname.h: Likewise.
78214         * lib/euidaccess.c: Likewise.
78215         * lib/exclude.c: Likewise
78216         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
78217         * lib/fsusage.c, fsuage.h: Likewise.
78218         * lib/fts.c, fts_.h: Likewise.
78219         * lib/getcwd.c: Likewise.
78220         * lib/getloadavg.c: Likewise.
78221         * lib/mkstemp.c: Likewise.
78222         * lib/mountlist.c, mountlist.h: Likewise.
78223         * lib/openat.c, openat.h: Likewise.
78224         * lib/readlink-stub.c: Likewise.
78225         * lib/readutmp.c, readutmp.h: Likewise.
78226         * lib/rename.c: Likewise.
78227         * lib/rmdir.c: Likewise.
78228         * lib/same.c: Likewise.
78229         * lib/savedir.c: Likewise.
78230         * lib/stripslash.c: Likewise.
78231         * lib/tempname.c: Likewise.
78232         * lib/xreadlink.c: Likewise.
78233         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
78234         All uses changed.
78235         * lib/exclude.h: Likewise.
78236
78237         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
78238         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78239         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
78240         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78241         * lib/pathmax.h: Include <limits.h> unconditionally, since other
78242         files have been getting away with it for years (MORE/BSD 4.3
78243         is extinct now).
78244         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
78245         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78246
78247         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
78248         Define to 256, not 255, as per modern POSIX.
78249
78250 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78251
78252         Sync from coreutils.
78253         Use "file name" when talking about file names, instead of "filename"
78254         or "path", as per the GNU coding standards.
78255         * MODULES.html.sh: mkdir-p renamed from makepath.
78256         filenamecat renamed from path-concat.
78257         * modules/filenamecat: Renamed from modules/path-concat.
78258         (Files): filenamecat.h and filenamecat.c renamed from
78259         path-concat.h and path-concat.c.
78260         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
78261         (Include): filenamecat.h, not path-concat.h.
78262         * modules/mkdir-p: Renamed from modules/makepath.
78263         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
78264         makepath.c.
78265         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
78266         (Include): mkdir-p.h, not makepath.h.
78267
78268 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78269
78270         Sync from coreutils.
78271         * m4/mkdir-p.m4: Renamed from makepath.m4.
78272         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
78273         Rename files from makepath.c to mkdir-p.c, and from
78274         makepath.h to mkdir-p.h.
78275         * m4/filenamecat.m4: Renamed from path-concat.m4.
78276         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
78277         Rename files from path-concat.c to filenamecat.c,
78278         and from path-concat.h to filenamecat.h.
78279         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
78280         "file name" in local variables or comments.
78281         * m4/rename.m4: Likewise.
78282
78283 2005-06-01  Bruno Haible  <bruno@clisp.org>
78284
78285         * modules/csharpexec: New file.
78286         * MODULES.html.sh (C#): New section.
78287
78288 2005-06-01  Bruno Haible  <bruno@clisp.org>
78289
78290         * m4/csharp.m4: New file, from GNU gettext.
78291         * m4/csharpexec.m4: New file, from GNU gettext.
78292
78293 2005-06-01  Bruno Haible  <bruno@clisp.org>
78294
78295         * lib/csharpexec.h: New file, from GNU gettext.
78296         * lib/csharpexec.c: New file, from GNU gettext.
78297         * lib/csharpexec.sh.in: New file, from GNU gettext.
78298
78299 2005-05-31  Derek Price  <derek@ximbiot.com>
78300             Paul Eggert  <eggert@cs.ucla.edu>
78301
78302         Sync from cvs.
78303         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78304
78305 2005-05-31  Derek Price  <derek@ximbiot.com>
78306             Paul Eggert  <eggert@cs.ucla.edu>
78307
78308         Sync from cvs.
78309         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78310
78311 2005-05-29  Derek Price  <derek@ximbiot.com>
78312
78313         * config/srclist.txt (glob_.h, glob.c): Add these files.
78314
78315 2005-05-29  Derek Price  <derek@ximbiot.com>
78316
78317         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
78318         * modules/glob: New file.
78319         * modules/getlogin_r: Add link to POSIX spec in description.
78320
78321 2005-05-29  Derek Price  <derek@ximbiot.com>
78322             Paul Eggert  <eggert@cs.ucla.edu>
78323
78324         * m4/glob.m4: New file.
78325
78326 2005-05-29  Derek Price  <derek@ximbiot.com>
78327             Paul Eggert  <eggert@cs.ucla.edu>
78328
78329         * lib/glob_.h, lib/glob.c: New files.
78330
78331 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78332
78333         * modules/fts (Files): Remove m4/inttypes-pri.m4.
78334         * modules/fts-lgpl (Depends-on): Remove gettext.
78335
78336 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78337
78338         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
78339         and don't require gt_INTTYPES_PRI.
78340
78341 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78342
78343         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
78344
78345         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
78346         the configuration hassle isn't worth it.
78347         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
78348         (LONGEST_MODIFIER, PRIuMAX): Remove.
78349
78350 2005-05-27  Bruno Haible  <bruno@clisp.org>
78351
78352         * lib/getlogin_r.h: Remove second include of <stddef.h>.
78353
78354 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
78355
78356         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
78357         _POSIX_PTHREAD_SEMANTICS for Solaris.
78358
78359 2005-05-25  Derek Price  <derek@ximbiot.com>
78360
78361         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
78362
78363 2005-05-25  Derek Price  <derek@ximbiot.com>
78364             Paul Eggert  <eggert@cs.ucla.edu>
78365
78366         * modules/getlogin_r, m4/getlogin_r.m4: New files.
78367         * lib/getlogin_r.c, getlogin_r.h: New files.
78368
78369 2005-05-25  Bruno Haible  <bruno@clisp.org>
78370             Derek Price  <derek@ximbiot.com>
78371
78372         * lib/getlogin_r.h: Simplify API documentation.
78373
78374 2005-05-23  Derek Price  <derek@ximbiot.com>
78375
78376         * modules/minmax (Files): Add m4/minmax.m4.
78377         (configure.ac): Add gl_MINMAX.
78378
78379 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78380
78381         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
78382         so that unistd-safer.h (GPL'ed code) need not be included.
78383
78384 2005-05-22  Bruno Haible  <bruno@clisp.org>
78385
78386         * m4/minmax.m4: New file.
78387         Based on a patch by Derek Price <derek@ximbiot.com>.
78388
78389 2005-05-22  Bruno Haible  <bruno@clisp.org>
78390
78391         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
78392         (INT64_MIN): Fix definition.
78393         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
78394
78395         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
78396         NEED_SIGNED_INT_TYPES.
78397
78398         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
78399         HAVE_SYSTEM_INTTYPES.
78400
78401 2005-05-22  Bruno Haible  <bruno@clisp.org>
78402
78403         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
78404         Also include <sys/param.h> if it defines MIN, MAX.
78405         Based on a patch by Derek Price <derek@ximbiot.com>.
78406
78407 2005-05-21  Jim Meyering  <jim@meyering.net>
78408
78409         * modules/fts (Files): Add m4/inttypes-pri.m4.
78410         (Depends-on): Add lstat and remove gettext.  Alphabetize.
78411
78412 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78413
78414         New fts module.
78415         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
78416         (setup_dir, free_dir): New functions.
78417         (enter_dir, leave_dir): Define trivial
78418         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
78419         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
78420         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
78421         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
78422         Move to fts-cycle.c.
78423         (fts_open): Use setup_dir.
78424         (fts_close): Use free_dir.
78425         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
78426         This adds a label and some gotos, but the alternatives were messier.
78427         Check for memory allocation failure when entering a dir.
78428         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
78429         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
78430         (FTS): New member fts_cycle, that is a union that contains the
78431         old active_dir_ht and cycle_state.  All uses changed to mention
78432         fts_cycle.ht and fts_cycle.state.
78433         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
78434         fts.c, with the following changes:
78435         (setup_dir, free_dir): New functions.
78436         (enter_dir): Now returns bool.  Return true if successful, false
78437         if memory exhausted.  All callers changed.
78438         Do not bother partly cleaning up on
78439         memory allocation failure; that is free_dir's job.
78440         However, free ad if hash_insert fails, to avoid memory leak.
78441         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
78442         fts->fts_options to see which union member to use.
78443
78444 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78445
78446         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
78447         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
78448
78449 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78450
78451         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
78452
78453 2005-05-20  Jim Meyering  <jim@meyering.net>
78454
78455         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
78456         Now a macro, to pacify GCC.
78457
78458 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78459
78460         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
78461         of -1.
78462
78463 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78464
78465         * lib/chown.c (rpl_chown): Return -1 on failure.
78466
78467 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78468
78469         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
78470         Don't check for stddef.h.
78471         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
78472         don't use its results.
78473         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
78474         since we include them unconditionally.  Don't require
78475         AM_STDBOOL_H, since stdbool is a prerequisite.
78476         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
78477         since we assume C89 or better.
78478         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
78479         as we don't use their results.
78480         Don't check for fchdir, memmove, memset, strrchr, as we use
78481         them unconditionally.
78482         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
78483         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
78484
78485 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78486
78487         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
78488         Include <stddef.h> unconditionally, since we assume C89 now.
78489         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
78490         * lib/fts.c: Include fts_.h first, to check interface.
78491         Do not include intprops.h; no longer needed.
78492         Include cycle-check.h and hash.h, since fts_.h no longer does.
78493         Remove unnecessary casts of closedir to void.
78494         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
78495         decide whether to decrement nlinks.
78496         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
78497         (FTS): Use struct hash_table * instead of Hash_table, so that
78498         we no longer need to include hash.h here.
78499
78500 2005-05-18  Jim Meyering  <jim@meyering.net>
78501
78502         * modules/dirfd (License): Change to LGPL.  Most of the code
78503         is already in the public domain.
78504
78505 2005-05-18  Jim Meyering  <jim@meyering.net>
78506
78507         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
78508         Reported by Yoann Vandoorselaere.
78509
78510 2005-05-17  Jim Meyering  <jim@meyering.net>
78511
78512         * m4/fts.m4: New file, from coreutils.
78513
78514 2005-05-17  Jim Meyering  <jim@meyering.net>
78515
78516         * lib/fts.c, lib/fts_.h: New files, from coreutils.
78517
78518 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78519
78520         Sync from coreutils.
78521         * m4/unlinkdir.m4: New file.
78522
78523 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78524
78525         Sync from coreutils.
78526         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
78527         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
78528         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
78529         White space changes only.
78530         * lib/makepath.c (make_path): Port to hosts where leading "//" is
78531         special.
78532         * lib/yesno.c: Include getline.h, not ctype.h.
78533         (yesno): Don't remove leading white space; POSIX doesn't allow it.
78534         Use getline to remove arbitrary restriction on response length.
78535
78536 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78537
78538         * config/srclist-update: Spell out "Street" in FSF postal
78539         mail address; this is the style the FSF seems to prefer.
78540
78541         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
78542         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
78543         this updates FSF postal mail address.
78544
78545         Sync from coreutils.
78546         * modules/unlinkdir: New file.
78547         * modules/yesno (Depends-on): Add getline.
78548         * MODULES.html.sh (File system functions): Add unlinkdir.
78549
78550 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78551
78552         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
78553         lib/strsep.h:
78554         Change the initial comment to refer to GPL, not LGPL.
78555         gnulib-tool will change it to LGPL as needed.
78556
78557         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
78558         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
78559         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
78560         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
78561         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
78562         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
78563         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
78564         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
78565         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
78566         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
78567         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
78568         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
78569         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
78570         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
78571         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
78572         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
78573         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
78574         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
78575         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
78576         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
78577         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
78578         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
78579         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
78580         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
78581         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
78582         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
78583         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
78584         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
78585         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
78586         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
78587         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
78588         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
78589         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
78590         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
78591         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
78592         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
78593         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
78594         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
78595         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
78596         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
78597         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
78598         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
78599         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
78600         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
78601         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
78602         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
78603         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
78604         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
78605         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
78606         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
78607         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78608         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
78609         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
78610         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
78611         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
78612         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
78613         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
78614         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
78615         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
78616         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
78617         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
78618         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
78619         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
78620         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
78621         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
78622         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
78623         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
78624         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
78625         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
78626         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
78627         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
78628         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
78629         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
78630         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
78631         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
78632         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
78633         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
78634         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
78635         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
78636         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
78637         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
78638         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
78639         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
78640         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
78641         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
78642         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
78643         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
78644         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
78645         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
78646         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
78647         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
78648         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
78649         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
78650         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
78651         lib/yesno.c, lib/yesno.h:
78652         Update FSF postal mail address.
78653
78654 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78655
78656         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
78657         tests/test-memmem.c, tests/test-stpncpy.c:
78658         Update FSF postal mail address.
78659
78660 2005-05-13  Bruno Haible  <bruno@clisp.org>
78661
78662         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
78663         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
78664         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
78665         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
78666         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
78667         Add support for 64-bit integers in the MSVC compiler.
78668
78669 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78670
78671         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
78672
78673 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
78674
78675         * gnulib-tool (func_import): Sort and uniquify recommended includes.
78676
78677 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
78678
78679         * doc/getdate.texi (General date syntax): Don't say that date
78680         date --iso-8601=ns generates acceptable dates; it doesn't yet.
78681         Problem reported by Nic Ferrier.
78682
78683 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78684
78685         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
78686         specified in ai_socktype. Fix invalid ai_protocol
78687         check. ai_protocol is usually set to 0 or depending on
78688         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
78689         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
78690         ai_socktype / ai_protocol in the returned addrinfo structure.
78691
78692 2005-05-10  Simon Josefsson  <jas@extundo.com>
78693
78694         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
78695         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78696
78697 2005-05-10  Karl Berry  <karl@gnu.org>
78698
78699         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
78700         (from http://www.gnu.org/licenses).
78701         * doc/COPYING.LIB: also rename to COPYING.LESSER.
78702         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
78703         fdl.texi suffices.
78704
78705 2005-05-10  Karl Berry  <karl@gnu.org>
78706
78707         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
78708         (COPYING.DOC): remove.
78709
78710         * config/srclist-update: new FSF address.
78711
78712 2005-05-10  Derek Price  <derek@ximbiot.com>
78713
78714         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
78715         possible.
78716
78717 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78718             Bruno Haible  <bruno@clisp.org>
78719
78720         * modules/inet_ntop: New file.
78721         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78722         inet_ntop.
78723
78724 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78725             Bruno Haible  <bruno@clisp.org>
78726
78727         * m4/inet_ntop.m4: New file.
78728
78729 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78730             Bruno Haible  <bruno@clisp.org>
78731
78732         * lib/inet_ntop.h: New file.
78733         * lib/inet_ntop.c: New file, from glibc with modifications.
78734
78735 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
78736
78737         * modules/time_r (License): Change to LGPL.
78738         * modules/extensions (License): Change to LGPL.  Actually,
78739         the license is more permissive than that, but currently gnulib-tool
78740         doesn't know how to handle more-permissive licenses.
78741
78742         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
78743         Problem reported by Dave Love.
78744
78745 2005-05-08  Jim Meyering  <jim@meyering.net>
78746
78747         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
78748         blank.
78749
78750 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78751
78752         * modules/argmatch (Depends-on): Add stdbool.
78753         * modules/backupfile (Depends-on): Likewise.
78754         * modules/chdir-long (Depends-on): Likewise.
78755         * modules/closeout (Depends-on): Likewise.
78756         * modules/cycle-check (Depends-on): Likewise.
78757         * modules/dirname (Depends-on): Likewise.
78758         * modules/fnmatch (Depends-on): Likewise.
78759         * modules/fsusage (Depends-on): Likewise.
78760         * modules/fwriteerror (Depends-on): Likewise.
78761         * modules/getcwd (Depends-on): Likewise.
78762         * modules/getloadavg (Depends-on): Likewise.
78763         * modules/hard-locale (Depends-on): Likewise.
78764         * modules/makepath (Depends-on): Likewise.
78765         * modules/mountlist (Depends-on): Likewise.
78766         * modules/nanosleep (Depends-on): Likewise.
78767         * modules/posixtm (Depends-on): Likewise.
78768         * modules/quotearg (Depends-on): Likewise.
78769         * modules/readtokens (Depends-on): Likewise.
78770         * modules/readtokens0 (Depends-on): Likewise.
78771         * modules/readutmp (Depends-on): Likewise.
78772         * modules/save-cwd (Depends-on): Likewise.
78773         * modules/strftime (Depends-on): Likewise.
78774         * modules/userspec (Depends-on): Likewise.
78775         * modules/utimecmp (Depends-on): Likewise.
78776         * modules/xgetcwd (Depends-on): Likewise.
78777         * modules/xnanosleep (Depends-on): Likewise.
78778         * modules/xstrtod (Depends-on): Likewise.
78779         * modules/yesno (Depends-on): Likewise.
78780
78781 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
78782
78783         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
78784         needless checks.
78785
78786 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78787
78788         Merge from coreutils.  Among other things,
78789         add bulletproofing for cases where stdin, stdout, or stderr are closed.
78790         * lib/fd-safer.c: New file.
78791         * lib/fcntl-safer.h, open-safer.c: Remove.
78792         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
78793         * lib/dup-safer.c: Include unistd-safer.h first.
78794         Don't include errno.h.
78795         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
78796         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
78797         * lib/file-type.c: Rely on file-type.h change.
78798         * lib/getloadavg.c: Include unistd-safer.h.
78799         (getloadavg): Use safer open.
78800         * lib/getusershell.c: Include "stdio-safer.h".
78801         (getusershell): Use safer fopen.
78802         * lib/long-options.c (long_options): Use NULL rather than 0.
78803         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
78804         'free'.
78805         * lib/modechange.c: Likewise.
78806         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
78807         (MODE_DONE): New constant.
78808         (struct mode_change): Remove 'next' member.
78809         (make_node_op_equals): New function; like the old one of the
78810         same name, except it allocates an array.
78811         (mode_compile, mode_create_from_ref): Use it.
78812         (mode_compile): Allocate result as an array, not a linked list.
78813         Parse octal string ourself, so that we catch mistakes like "+0".
78814         (mode_adjust): Arg is an array, not a linked list.
78815         * lib/modechange.c: Include stat-macros.h, xalloc.h.
78816         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
78817         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
78818         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
78819         Remove.  This is now stat-macros.h's job.
78820         (talloc): Remove.  All callers replaced by xalloc, so that
78821         our invokers don't have to worry about reporting memory failures.
78822         (make_node_op_equals): Remove.
78823         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78824         New constants.
78825         (struct mode_change): Moved here from modechange.h.
78826         (mode_append_entry): Remove.
78827         (mode_compile): Remove MASKED_OPS arg, since it encouraged
78828         apps to have incorrect behavior.  Use simpler algorithm for head
78829         and tail.  Don't futz with umask; that's now the job of mode_adjust.
78830         Detect more invalid usages rather than having somewhat-random behavior.
78831         Don't insert an "a=" action, as that leads to incorrect behavior.
78832         (mode_compile, mode_create_from_ref): Return NULL on error instead
78833         of an enum, since now there's only one way to have an error.  All
78834         callers changed.
78835         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
78836         at the correct time.  Simplify calculation of "+u" and its ilk.
78837         Don't mishandle "+X".
78838         (mode_free): Remove "register" and localize decls.
78839         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78840         (struct mode_change): Move to modechange.c; callers don't
78841         need to see this stuff.
78842         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
78843         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
78844         (mode_change, mode_adjust): Reflect the new signatures noted above.
78845         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
78846         that might redefine system include files.
78847         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
78848         (my_usleep): Use NULL rather than (void *) 0.
78849         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
78850         Use siginterrupt to specify that system calls should be interrupted.
78851         (rpl_nanosleep): Move initialization of suspended closer to call of
78852         my_usleep.
78853         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
78854         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
78855         (desirable_utmp_entry): New function.
78856         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
78857         using x2nrealloc, to simplify logic.
78858         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
78859         size calculation.  Do not assume utmp file is a regular file.
78860         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
78861         (READ_UTMP_CHECK_PIDS): New constant.
78862         * lib/save-cwd.c: Include unistd-safer.h.
78863         (save_cwd): Use fd_safer.
78864         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
78865         [!_LIBC] Include "stat-macros.h" instead.
78866         * lib/unistd-safer.h (fd_safer): New decl.
78867
78868 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78869
78870         * modules/getloadavg (Depends-on): Add unistd-safer.
78871         * modules/getusershell (Depends-on): Add stdio-safer.
78872         * modules/lstat (Depends-on): Remove xalloc.
78873         * modules/mkstemp (Depends-on): Add stat-macros.
78874         * modules/modechange (Depends-on): Remove xstrtol.
78875         Add stat-macros, xalloc.
78876         * modules/save-cwd (Depends-on): Add unistd-safer.
78877         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
78878         * modules/unistd-safer (Files): Add lib/fd-safer.c
78879         (Makefile.am): Remove lib_SOURCES.
78880
78881         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
78882         Remove fcntl-safer; unistd-safer supersedes it.
78883
78884 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78885
78886         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
78887         AC_HEADER_STAT.
78888         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
78889         (gl_PREREQ_CHOWN): Remove.
78890         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
78891         it.  Don't require AC_HEADER_STAT.
78892         (gl_PREREQ_LSTAT): Remove.
78893         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
78894         Don't require AC_HEADER_STAT.
78895         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
78896         (gl_PREREQ_RMDIR): Remove.
78897         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
78898         mention stat-macros.h or AC_HEADER_STAT, since we'll make
78899         the stat-macros module a prerequisite.
78900         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
78901         * m4/filemode.m4 (gl_FILEMODE): Likewise.
78902         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
78903         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
78904         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
78905         variable names.
78906         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
78907         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
78908         variable prefixes.
78909         * m4/fcntl-safer.m4: Remove.
78910         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
78911         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
78912         Invoke gl_PREREQ_FD_SAFER.
78913         (gl_PREREQ_FD_SAFER): New macro.
78914         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
78915         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
78916         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
78917         Remove duplicate call to AC_LIBOBJ(readutmp).
78918         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
78919
78920         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
78921         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
78922
78923 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78924
78925         * MODULES.html.sh (Misc): Add byteswap.
78926
78927 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78928
78929         * modules/getcwd (Depends-on): Add extensions.
78930         * modules/openat (Depends-on): Likewise.
78931
78932 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78933
78934         * modules/byteswap: New file.
78935
78936 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78937
78938         * m4/byteswap.m4: New file.
78939
78940 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78941
78942         * lib/byteswap_.h: New file.
78943
78944 2005-04-25  Karl Berry  <karl@gnu.org>
78945
78946         * m4/gettext.m4: Update from GNU gettext 0.14.4.
78947
78948 2005-04-25  Albert Chin  <china@thewrittenword.com>
78949
78950         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
78951         Toolkit C bug.
78952
78953 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
78954
78955         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
78956         (func_ln_if_changed): Remove forcibly for no error message
78957         in case file does not exist.
78958
78959 2005-04-19  Simon Josefsson  <jas@extundo.com>
78960
78961         * gnulib-tool (Options): Make --symlink mean --symbolic.
78962
78963 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
78964
78965         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
78966
78967 2005-04-16  Simon Josefsson  <jas@extundo.com>
78968
78969         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
78970
78971 2005-04-15  Simon Josefsson  <jas@extundo.com>
78972
78973         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
78974
78975 2005-04-15  Simon Josefsson  <jas@extundo.com>
78976
78977         * gnulib-tool: Rename --symlink to --symbolic.
78978
78979 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
78980
78981         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
78982         symbolic links to files instead of copying/moving.  Add --aux-dir,
78983         specifying directory relative --dir where auxiliary build tools
78984         are placed.
78985
78986 2005-04-14  Bruno Haible  <bruno@clisp.org>
78987
78988         * modules/allocsa (License): Change to LGPL.
78989         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
78990
78991 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78992
78993         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
78994         that "UTC +1 second" continues to work.  Problem reported
78995         by Dmitry V. Levin.
78996         (relunit_snumber): New rule.
78997         (relunit): Use it.
78998
78999 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79000
79001         * lib/getdate.y (universal_time_zone_table): New constant.
79002         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
79003         universal_time_zone_table.
79004         (lookup_zone): Prefer universal_time_zone_table to
79005         local_time_zone_table, so that "GMT" time stamps are allowed in
79006         London during the summer.  Problem reported by Ian Abbott.
79007
79008 2005-04-12  Jim Meyering  <jim@meyering.net>
79009
79010         * lib/human.c (humblock): Set *options even when returning due to
79011         xstrtoumax conversion failure.  Thanks to a used-uninitialized
79012         warning from gcc-4.
79013
79014 2005-04-09  Jim Meyering  <jim@meyering.net>
79015
79016         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
79017         -Wuninitialized: initialize tm0.tm_year.
79018
79019 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
79020
79021         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
79022         count, since there's no maximum.  All uses changed.
79023         Add member dsts_seen.
79024         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
79025         not being INT_MAX.
79026         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
79027         Use pc_rels_seen to decide whther a date is absolute.
79028
79029         * lib/getdate.y (number): Don't overwrite year.
79030         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
79031         check.
79032
79033 2005-04-02  Simon Josefsson  <jas@extundo.com>
79034
79035         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
79036         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
79037
79038 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
79039
79040         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
79041         where no absolute path name can be longer than PATH_MAX.
79042
79043 2005-03-27  Jim Meyering  <jim@meyering.net>
79044
79045         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
79046
79047 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
79048
79049         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
79050         "one's complement" -> "ones' complement" in comment, as per Knuth.
79051         "value of type" -> "type or expression" in comment.
79052         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
79053
79054 2005-03-26  Jim Meyering  <jim@meyering.net>
79055
79056         Comment nits.
79057         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
79058         Correct typos: s/or/of/.
79059
79060 2005-03-26  Jim Meyering  <jim@meyering.net>
79061
79062         * modules/check-include-files: Move to ../ and rename to...
79063         * check-module: ...this.
79064
79065 2005-03-25  Jim Meyering  <jim@meyering.net>
79066
79067         * modules/xvasprintf (Files): Add xalloc.h.
79068
79069 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
79070
79071         * modules/gettext (Files): config/config.rpath ->
79072         build-aux/config.rpath
79073         * modules/iconv (Files): Likewise.
79074         Problem reported by Oskar Liljeblad.
79075
79076 2005-03-23  Jim Meyering  <jim@meyering.net>
79077
79078         * modules/check-include-files: New script to check for
79079         missing dependencies, multiple includes, etc.
79080
79081         * modules/c-strtold (Depends-on): Add xalloc.
79082         * modules/c-strtod (Depends-on): Add xalloc.
79083         * modules/hash (Depends-on): Add xalloc.
79084         (Files): Remove lib/xalloc.h.
79085
79086         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
79087         * modules/userspec (Files): Add lib/inttostr.h.
79088
79089 2005-03-23  Jim Meyering  <jim@meyering.net>
79090
79091         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
79092
79093 2005-03-22  Jim Meyering  <jim@meyering.net>
79094
79095         * modules/stat-macros: New module.
79096         * modules/canonicalize, modules/euidaccess, modules/file-type,
79097         * modules/filemode, modules/lchown, modules/makepath,
79098         * modules/rmdir, modules/stat: Depend on new stat-macros module
79099         rather than listing lib/stat-macros.h manually.
79100         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
79101
79102 2005-03-22  Jim Meyering  <jim@meyering.net>
79103
79104         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
79105
79106 2005-03-22  Bruno Haible  <bruno@clisp.org>
79107
79108         * config/srclist.txt: Replace target directory 'config' with
79109         'build-aux'.
79110         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
79111         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
79112         ../build-aux/.
79113
79114 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
79115
79116         * modules/chdir-long (Depends-on): Add mempcpy.
79117
79118         * modules/acl, modules/backupfile, modules/c-strtod,
79119         modules/c-strtold, modules/canon-host, modules/canonicalize,
79120         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
79121         modules/exclude, modules/exitfail, modules/file-type,
79122         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
79123         modules/getdate, modules/getline, modules/getpagesize,
79124         modules/getpass, modules/getugroups, modules/group-member,
79125         modules/hard-locale, modules/hash, modules/human, modules/idcache,
79126         modules/inttostr, modules/long-options, modules/makepath,
79127         modules/md5, modules/memcasecmp, modules/memcoll,
79128         modules/modechange, modules/mountlist, modules/path-concat,
79129         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
79130         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
79131         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
79132         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
79133         modules/strftime, modules/strndup, modules/strverscmp,
79134         modules/timespec, modules/unlocked-io, modules/userspec,
79135         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
79136         modules/yesno:
79137         Remove lib_SOURCES line from Makefile.am section, as this is now
79138         done automatically by the corresponding Autoconf macro.
79139
79140 2005-03-21  Jim Meyering  <jim@meyering.net>
79141
79142         Changes imported from coreutils.
79143
79144         * lib/cycle-check.c: Don't include xalloc.h.
79145
79146         * lib/path-concat.c: Don't include assert.h.
79147         (path_concat): Remove assertion that would have triggered
79148         for ABASE starting with more than one slash.
79149         Reported by Andreas Schwab.
79150
79151         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
79152         properly when ABASE is an absolute file name.
79153         Correct the description of this function.
79154         Include <assert.h>.
79155         Add an assertion and a test driver.
79156         This fixes a bug introduced on 2004-07-02.
79157         Andreas Schwab reported the resulting failure of cp --parents:
79158         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
79159
79160 2005-03-21  Jim Meyering  <jim@meyering.net>
79161
79162         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
79163         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
79164
79165 2005-03-21  Jim Meyering  <jim@meyering.net>
79166         and  Paul Eggert  <eggert@cs.ucla.edu>
79167
79168         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
79169         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
79170         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
79171         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
79172         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
79173         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
79174         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
79175         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
79176         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
79177         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
79178         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
79179         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
79180         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
79181         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
79182         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
79183         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
79184         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
79185         for these modules.
79186
79187 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
79188
79189         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
79190         (which shouldn't happen), generate nothing instead of returning 0
79191         immediately, so that nstrftime (NULL, ...) doesn't return 0.
79192
79193 2005-03-16  Bruno Haible  <bruno@clisp.org>
79194
79195         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
79196         HAVE_LONGLONG_64BIT.
79197
79198 2005-03-16  Bruno Haible  <bruno@clisp.org>
79199
79200         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
79201         HAVE_LONGLONG_64BIT.
79202
79203 2005-03-16  Bruno Haible  <bruno@clisp.org>
79204
79205         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
79206         HAVE_LONGLONG_64BIT.
79207
79208 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79209
79210         * lib/strftime.c (my_strftime): Prepend space to format so that we can
79211         reliably distinguish strftime failure from empty output on POSIX
79212         hosts.
79213
79214 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79215
79216         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
79217         (iconv_string): Don't guess a size-zero buffer, as that might cause
79218         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
79219         result would be 'too large', where 'too large' is (heuristically)
79220         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
79221         overflow concerns.  This will prevent some unwanted malloc failures
79222         when the inputs are very large.
79223
79224 2005-03-15  Karl Berry  <karl@gnu.org>
79225
79226         * config/srclist.txt (config.rpath): from gettext.
79227         * config/config.rpath: update.
79228
79229 2005-03-15  Bruno Haible  <bruno@clisp.org>
79230
79231         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
79232         to 'negate'.
79233
79234         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
79235         variable.
79236
79237         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
79238         results.
79239
79240 2005-03-14  Simon Josefsson  <jas@extundo.com>
79241
79242         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
79243         <fx@gnu.org>.
79244
79245 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
79246
79247         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
79248         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
79249         intprops.h.
79250         * lib/strtol.c: Likewise.
79251
79252 2005-03-14  Jim Meyering  <jim@meyering.net>
79253
79254         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
79255         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
79256         to be nonzero so that we (and caller) can detect the difference
79257         between a valid zero-length expansion and an error return, even
79258         when the underlying strftime fails before writing anything into
79259         that location.
79260
79261 2005-03-14  Bruno Haible  <bruno@clisp.org>
79262
79263         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
79264         Update from GNU gettext 0.14.3.
79265
79266 2005-03-10  Jim Meyering  <jim@meyering.net>
79267
79268         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
79269
79270 2005-03-10  Jim Meyering  <jim@meyering.net>
79271
79272         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
79273         so that this module works on systems without fchdir.
79274
79275 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
79276
79277         Factor int-properties macros into a single file, except for
79278         glibc-related files.
79279         * lib/intprops.h: New file.
79280         * lib/getloadavg.c: Include it instead of limits.h.
79281         (INT_STRLEN_BOUND): Remove.
79282         * lib/human.c: Include intprops.h.
79283         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
79284         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
79285         302/1000.
79286         * lib/inttostr.h: Include intprops.h instead of limits.h.
79287         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
79288         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
79289         for consistency with intprops.h.
79290         (time_t_is_integer, twos_complement_arithmetic): Use them.
79291         * lib/sig2str.h: Include <signal.h>, intprops.h.
79292         (INT_STRLEN_BOUND): Remove.
79293         * lib/strftime.c (TYPE_SIGNED): Remove.
79294         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
79295         * lib/strtol.c: Adjust comments to match intprops.h.
79296         * lib/userspec.c: Include intprops.h.
79297         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
79298         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
79299         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
79300         instead of rolling our own expressions.
79301         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
79302
79303         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
79304         instead of int.
79305         (my_strftime): Do not mishandle years close to INT_MAX, by doing
79306         the right thing even if adding 1900 would overflow.  Similarly
79307         for tm_mon + 1 and tm_yday + 1.
79308         Make %Y always equivalent to %C%y, and similarly for %G and %g.
79309         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
79310         (DO_SIGNED_NUMBER): New macro.
79311         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
79312
79313 2005-03-07  Bruno Haible  <bruno@clisp.org>
79314
79315         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
79316
79317 2005-03-07  Bruno Haible  <bruno@clisp.org>
79318
79319         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
79320
79321 2005-03-04  Derek R. Price  <derek@ximbiot.com>
79322
79323         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
79324         (func_import): Only replace files via --import when they have actually
79325         changed.
79326
79327 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79328
79329         * m4/mmap-anon.m4: New file.
79330         * m4/pagealign_alloc.m4: New file.
79331
79332 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79333             Bruno Haible  <bruno@clisp.org>
79334
79335         * modules/pagealign_alloc: New file.
79336         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
79337
79338 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79339             Bruno Haible  <bruno@clisp.org>
79340
79341         * lib/pagealign_alloc.h: New file.
79342         * lib/pagealign_alloc.c: New file.
79343
79344 2005-03-03  Bruno Haible  <bruno@clisp.org>
79345
79346         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
79347         Use an all-permissive copyright notice, recommended by RMS.
79348
79349 2005-03-02  Bruno Haible  <bruno@clisp.org>
79350
79351         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
79352         of AIX, the replacement has to be done only after <string.h> is
79353         included, therefore not in config.h. stpncpy.h does the replacement,
79354         and stpncpy.c uses it.
79355
79356 2005-03-02  Bruno Haible  <bruno@clisp.org>
79357
79358         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
79359         stpncpy.c uses it.
79360
79361 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79362
79363         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
79364         The workaround isn't strictly needed for POSIX conformance, and
79365         it's too much of a pain to configure and maintain.  We'll ask
79366         people to fix their kernels instead.
79367         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
79368         (NANOSLEEP_BUG_WORKAROUND): Remove.
79369         (xnanosleep): Remove the workaround.
79370
79371 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79372
79373         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
79374         Reported by Derek Price.
79375         (Include): Add "timespec.h".
79376
79377         * modules/xnanosleep (Depends-on): Remove gethrxtime.
79378
79379 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79380
79381         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
79382         to detect nanosleep bug.
79383
79384 2005-03-01  Bruno Haible  <bruno@clisp.org>
79385
79386         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
79387
79388 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79389
79390         * modules/gethrxtime: New file.
79391         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
79392         (Depends-on): Add gethrxtime.
79393         (configure.ac): Add gl_XNANOSLEEP.
79394         (Makefile.am): Remove lib_SOURCES line.
79395
79396 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79397
79398         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
79399         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
79400
79401 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79402
79403         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
79404         * lib/timespec.h (gettime): Return void, since it always
79405         succeeds now.  All uses changed.
79406         * lib/gettime.c (gettime): Likewise.
79407         [HAVE_NANOTIME]: Prefer nanotime.
79408         Assume gettimeofday succeeds, as POSIX requires.
79409         Assime time () succeeds, since other code already does.
79410         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
79411         (timespec_subtract): Remove.
79412         (NANOSLEEP_BUG_WORKAROUND): New constant.
79413         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
79414         things considerably.  Use it only on GNU/Linux hosts, since the
79415         workaround shouldn't be needed elsewhere.
79416
79417 2005-02-24  Bruno Haible  <bruno@clisp.org>
79418
79419         * modules/gettext (Files): Add m4/glibc2.m4.
79420
79421 2005-02-24  Bruno Haible  <bruno@clisp.org>
79422
79423         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
79424         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
79425         * m4/progtest.m4:
79426         Update from GNU gettext 0.14.2.
79427         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
79428
79429 2005-02-24  Bruno Haible  <bruno@clisp.org>
79430
79431         * lib/localcharset.c: Update from GNU gettext 0.14.2.
79432         * lib/config.charset: Update from GNU gettext 0.14.2.
79433
79434 2005-02-24  Bruno Haible  <bruno@clisp.org>
79435
79436         * lib/gettext.h: Update from GNU gettext 0.14.2.
79437
79438 2005-02-23  Simon Josefsson  <jas@extundo.com>
79439
79440         * m4/iconvme.m4: New file.
79441
79442 2005-02-23  Jim Meyering  <jim@meyering.net>
79443
79444         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
79445         change.
79446         Thanks to Bruno Haible for catching it.
79447
79448 2005-02-22  Simon Josefsson  <jas@extundo.com>
79449
79450         * modules/iconvme: New file.
79451
79452         * MODULES.html.sh: Add iconvme.
79453
79454 2005-02-22  Simon Josefsson  <jas@extundo.com>
79455
79456         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
79457
79458 2005-02-22  Simon Josefsson  <jas@extundo.com>
79459
79460         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
79461
79462 2005-02-22  Jim Meyering  <jim@meyering.net>
79463
79464         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
79465         s/ifndef/ifdef/.
79466
79467 2005-02-20  Neil Conway  <neilc@samurai.com>
79468
79469         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
79470         returned by OSX/Darwin if the specified buffer is not large
79471         enough for the hostname.
79472
79473 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79474
79475         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
79476         pass it to _help, otherwise the latter coredumps trying to
79477         dereference state.root_argp.
79478
79479 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79480
79481         * modules/chdir-long (Depends-on): Add memrchr.
79482         * modules/memrchr (Files): Add lib/memrchr.h.
79483         (Include): "memrchr.h".
79484
79485 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79486
79487         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
79488
79489 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79490
79491         * lib/memrchr.h: New file.
79492         * lib/chdir-long.c: Include it.
79493         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
79494         Don't bother including stddef.h.
79495
79496 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
79497
79498         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
79499         inclusion.
79500         Include <sys/types.h>, for dev_t.
79501         (ME_DUMMY, ME_REMOTE): Move from here....
79502         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
79503         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
79504         Dmitry V. Levin.
79505         Include mountlist.h first, to test the interface.
79506
79507 2005-01-29  Bruno Haible  <bruno@clisp.org>
79508
79509         * lib/progname.c (program_name): Initialize.
79510         Needed when linking statically on MacOS X.
79511
79512 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79513
79514         Sync from coreutils.
79515         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
79516         (Depends-on): Add c-strtod.
79517         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
79518
79519 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79520
79521         Sync from coreutils.
79522         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
79523
79524         Remove files that are specific to coreutils.
79525         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
79526
79527 2005-01-28  Bruno Haible  <bruno@clisp.org>
79528
79529         * modules/javacomp: New file.
79530         * MODULES.html.sh (Java): Add javacomp.
79531
79532 2005-01-28  Bruno Haible  <bruno@clisp.org>
79533
79534         * m4/javacomp.m4: New file, from GNU gettext.
79535
79536 2005-01-28  Bruno Haible  <bruno@clisp.org>
79537
79538         * lib/javacomp.sh.in: New file, from GNU gettext.
79539         * lib/javacomp.h: New file, from GNU gettext.
79540         * lib/javacomp.c: New file, from GNU gettext.
79541
79542 2005-01-26  Simon Josefsson  <jas@extundo.com>
79543
79544         * lib/gai_strerror.c: Use GPL in header.
79545
79546 2005-01-26  Bruno Haible  <bruno@clisp.org>
79547
79548         * modules/javaexec: New file.
79549         * MODULES.html.sh (Java): Add javaexec.
79550
79551 2005-01-26  Bruno Haible  <bruno@clisp.org>
79552
79553         * m4/javaexec.m4: New file, from GNU gettext.
79554
79555 2005-01-26  Bruno Haible  <bruno@clisp.org>
79556
79557         * lib/javaexec.sh.in: New file, from GNU gettext.
79558         * lib/javaexec.h: New file, from GNU gettext.
79559         * lib/javaexec.c: New file, from GNU gettext.
79560
79561 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79562
79563         * modules/lchown (Depends-on): Remove lchown.h
79564
79565 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79566
79567         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
79568         must be defined if the header file was not found, in order
79569         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
79570
79571 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79572
79573         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
79574         initializers for struct pentry_state.
79575         (__argp_error): Check return value of __asprintf
79576         (__argp_failure): Translate error message
79577
79578         * lib/argp-parse.c: Removed braces around the expansion of N_()
79579
79580 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79581
79582         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
79583         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
79584         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
79585         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
79586         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
79587         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
79588         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
79589         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
79590         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
79591         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
79592         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
79593         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
79594         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
79595         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
79596         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
79597         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
79598         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
79599         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
79600         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
79601         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
79602         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
79603         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
79604         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
79605         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
79606         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
79607         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
79608         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
79609         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
79610         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
79611         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
79612         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
79613         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
79614         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
79615         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
79616         xstrtol.m4, xstrtoumax.m4, yesno.m4:
79617         Use an all-permissive copyright notice, recommended by RMS.
79618
79619 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
79620
79621         * modules/chdir-long (Depends-on): Remove mempcpy.
79622
79623 2005-01-21  Jim Meyering  <jim@meyering.net>
79624
79625         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
79626         same value as for Solaris 9.
79627
79628         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
79629         component length.  This included changing the parameter to be
79630         of type `char *' rather than `char const *'.
79631         * lib/chdir-long.h (chdir_long): Update prototype.
79632
79633         * lib/openat.c (fdopendir, fstatat): New functions.
79634         * lib/openat.h: Include headers required for use of DIR and struct
79635         stat.
79636         [AT_SYMLINK_NOFOLLOW]: Define.
79637         (fdopendir, fstatat): Add prototypes.
79638
79639 2005-01-21  Bruno Haible  <bruno@clisp.org>
79640
79641         * modules/classpath: New file.
79642         * MODULES.html.sh (Java): Add classpath.
79643
79644 2005-01-21  Bruno Haible  <bruno@clisp.org>
79645
79646         * lib/classpath.h: New file, from GNU gettext.
79647         * lib/classpath.c: New file, from GNU gettext.
79648
79649 2005-01-20  Simon Josefsson  <jas@extundo.com>
79650
79651         * modules/version-etc-fsf: New file.
79652
79653 2005-01-20  Simon Josefsson  <jas@extundo.com>
79654
79655         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
79656         * lib/version-etc.c: Remove version_etc_copyright.
79657         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
79658         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
79659
79660 2005-01-20  Simon Josefsson  <jas@extundo.com>
79661
79662         * lib/base64.h (isbase64): Add.
79663
79664         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
79665         using a unsigned prototype, don't inline.
79666         (base64_decode): Use it.
79667
79668 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79669
79670         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
79671         it.
79672
79673 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79674
79675         * lib/save-cwd.c (save_cwd): Remove code to support the case
79676         where fchdir is missing or flaky.
79677
79678 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79679
79680         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
79681
79682 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
79683
79684         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
79685         AC_LIBSOURCES now does this.
79686         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
79687         with new ullong_max module.
79688
79689 2005-01-19  Bruno Haible  <bruno@clisp.org>
79690
79691         * modules/sh-quote: New file.
79692         * MODULES.html.sh (Executing programs): Add sh-quote.
79693
79694 2005-01-19  Bruno Haible  <bruno@clisp.org>
79695
79696         * lib/sh-quote.h: New file, from GNU gettext.
79697         * lib/sh-quote.c: New file, from GNU gettext.
79698
79699 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79700
79701         Merge from coreutils.
79702         * m4/ullong_max.m4: New file.
79703         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
79704         (gl_MACROS): Assume localeconv exists.
79705
79706 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79707
79708         Merge changes from coreutils, as described below in several
79709         changelogs dated today.
79710
79711         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
79712         (O_DIRECTORY): Remove; not needed here, since "." must be
79713         a directory.  All uses removed.
79714         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
79715         universal on Suns, and we also need to test for IRIX.
79716         Revamp code to use 'if' rather than '#if'.
79717         Avoid unnecessary comparison of cwd->desc to 0.
79718
79719         * lib/utimens.c (futimens): Robustify the previous patch, by checking
79720         for known valid error numbers rather than observed invalid ones.
79721
79722 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79723
79724         * modules/ullong_max: New file.
79725
79726         * modules/chdir-long, modules/openat: New files.
79727         * modules/save-cwd (Depends-on): Depend on chdir-long.
79728         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
79729
79730 2005-01-18  Jim Meyering  <jim@meyering.net>
79731
79732         Merge from coreutils.
79733         * m4/chdir-long.m4, m4/openat.m4: New files.
79734         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
79735         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
79736         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
79737         is sane and DOES follow symlinks.  Besides, testing 20 different
79738         systems found no broken chown implementations.
79739         Prompted by a change in rsync's copy of this macro.
79740         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
79741
79742         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
79743
79744         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
79745         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
79746         NULL-means-set-to-current-time semantics.
79747         Remove temporary file immediately, rather than waiting
79748         for configure's at-exit trap code to do it.
79749
79750 2005-01-18  Jim Meyering  <jim@meyering.net>
79751
79752         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79753
79754         * lib/utimens.c (futimens): Account for the fact that futimes
79755         can also fail with errno == ENOSYS or errno == ENOENT.
79756         Patch from Dmitry V. Levin.
79757
79758         Change the name of the robust chdir function from chdir to chdir_long.
79759         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
79760         (restore_cwd): Use chdir_long, not chdir.
79761         * lib/chdir-long.c: Renamed from chdir.c.
79762         * lib/chdir-long.h: Renamed from chdir.h.
79763         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
79764         Hurd.
79765
79766 2005-01-18  Bruno Haible  <bruno@clisp.org>
79767
79768         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
79769         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
79770         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
79771         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
79772         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
79773         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
79774         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
79775         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
79776         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
79777         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
79778         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
79779         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
79780         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
79781         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
79782         Use an all-permissive copyright notice, recommended by RMS.
79783
79784 2005-01-18  Bob Proulx  <bob@proulx.com>
79785
79786         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
79787         simplify offsetof() macro construct to avoid compile failure with
79788         native HP-UX 11.0 ANSI C compiler.
79789
79790 2005-01-17  Bruno Haible  <bruno@clisp.org>
79791
79792         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
79793         redundant because stpncpy.m4 takes care of it.
79794
79795 2005-01-17  Bruno Haible  <bruno@clisp.org>
79796
79797         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
79798
79799 2005-01-17  Bruno Haible  <bruno@clisp.org>
79800
79801         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
79802         used.
79803
79804 2005-01-17  Bruno Haible  <bruno@clisp.org>
79805
79806         * lib/fwriteerror.h (fwriteerror): Change specification to include
79807         fclose.
79808         * lib/fwriteerror.c: Include <stdbool.h>.
79809         (fwriteerror): At the end, close the file stream. Record whether
79810         stdout was already closed.
79811
79812 2005-01-17  Bruno Haible  <bruno@clisp.org>
79813
79814         * lib/execute.c (environ): Declare if needed.
79815         * lib/pipe.c (environ): Likewise.
79816         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
79817
79818 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79819
79820         * modules/argp: Depend on vsnprintf
79821
79822 2005-01-10  Jim Meyering  <jim@meyering.net>
79823
79824         * modules/closeout (Depends-on): Add atexit.
79825
79826 2005-01-06  Bruno Haible  <bruno@clisp.org>
79827
79828         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
79829
79830 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79831
79832         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
79833         definitions to be after all include files, to avoid collisions.
79834         Problem reported by Bob Proulx.
79835
79836 2005-01-04  Jim Meyering  <jim@meyering.net>
79837
79838         Changes imported from coreutils.
79839         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
79840         as the mkstemp template, use a temporary directory and an
79841         8.3-friendly template to avoid trouble on systems like DJGPP.
79842         Reported by Juan M. Guerrero via Stepan Kasal.
79843         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
79844         close. Remove the temporary directory right away, rather than waiting
79845         for configure's at-exit trap code to do it.
79846         Suggestion from Stepan Kasal.
79847
79848 2005-01-01  Simon Josefsson  <jas@extundo.com>
79849
79850         * gnulib-tool: Print #include directives when --import'ing.
79851
79852 2004-12-28  Simon Josefsson  <jas@extundo.com>
79853
79854         * tests/test-base64.c: Include required header files.  Remove
79855         unused variables.
79856
79857 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79858
79859         * modules/error (Depends-on): Remove gettext.
79860
79861 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79862
79863         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
79864         not needed.  This removes a dependency on the gettext module.
79865         [defined _LIBC]: Do not include <libintl.h>; not needed.
79866
79867 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79868
79869         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
79870         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
79871
79872 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79873
79874         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
79875         HAVE_DECL_STRTOLD.
79876
79877 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79878
79879         * modules/getdate (Depends-on): Remove alloca-opt.
79880
79881 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79882
79883         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
79884
79885 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79886
79887         * lib/argp-parse.c: Include <stddef.h>.
79888         (alignof, alignto): New macros.
79889         (parser_init): Don't assume that void * is aligned sufficiently
79890         for struct option.
79891
79892         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
79893         need to extend the stack.
79894         (YYINITDEPTH): New macro, so that the initial stack isn't overly
79895         large.
79896
79897 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79898
79899         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
79900
79901 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79902
79903         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
79904         (2004-10-24) change.  Apparently this was a false alarm.
79905
79906         * modules/getdate: Depend on alloca-opt, not alloca.
79907
79908 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79909
79910         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
79911         Remove now-obsolete comment about AIX.
79912         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
79913         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
79914         (YYMAXDEPTH): New macro.
79915
79916 2004-12-18  Simon Josefsson  <jas@extundo.com>
79917
79918         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
79919
79920 2004-12-18  Bruno Haible  <bruno@clisp.org>
79921
79922         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
79923
79924 2004-12-18  Bruno Haible  <bruno@clisp.org>
79925
79926         * lib/fatal-signal.c (fatal_signals): Make non-const.
79927         (init_fatal_signals): New function.
79928         (uninstall_handlers, install_handlers): Ignore signals that were set to
79929         SIG_IGN.
79930         (at_fatal_signal): Call init_fatal_signals.
79931         (init_fatal_signal_set): Likewise. Ignore signals that were set to
79932         SIG_IGN.
79933         Reported by Paul Eggert.
79934
79935 2004-12-18  Bruno Haible  <bruno@clisp.org>
79936
79937         * doc/alloca.texi: New file.
79938         * doc/alloca-opt.texi: New file.
79939
79940 2004-12-17  Jim Meyering  <jim@meyering.net>
79941
79942         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
79943         Otherwise, install-sh could exit with improper exit status when
79944         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
79945
79946 2004-12-16  Simon Josefsson  <jas@extundo.com>
79947
79948         * tests/test-base64.c: Add license.
79949
79950 2004-12-15  Stepan Kasal  <address@hidden>
79951
79952         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
79953
79954 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
79955
79956         * modules/getcwd (Files): Add m4/d-ino.m4.
79957         Suggested by Mark D. Baushke.
79958
79959 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79960
79961         * lib/getdate.y (textint): New member "negative".
79962         (time_zone_hhmm): New function.
79963         Expect 14 shift-reduce conflicts, not 13.
79964         (o_colon_minutes): New rule.
79965         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
79966         (yylex): Set the "negative" member of signed numbers.
79967
79968 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79969
79970         * doc/getdate.texi (Time of day items, Time zone items):
79971         Describe new formats +00:00, UTC+00:00.
79972
79973 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79974
79975         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
79976         spurious "-l"s.  Problem reported by Stepan Kasal.
79977
79978 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
79979
79980         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
79981         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
79982
79983 2004-12-04  Simon Josefsson  <jas@extundo.com>
79984
79985         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
79986         Vandoorselaere <yoann@prelude-ids.org>.
79987
79988 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79989
79990         Changes imported from coreutils.
79991         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
79992         exist.
79993         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
79994
79995 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79996
79997         Changes imported from coreutils.
79998         * lib/hard-locale.c: Assume <locale.h> exists.
79999         Include "strdup.h".
80000         (GLIBC_VERSION): New macro.
80001         (hard_locale): Assume setlocale exists.
80002         Rewrite to avoid #ifdef.
80003         Use strdup rather than malloc + strcpy.
80004         * lib/human.c: Assume <locale.h> exists.
80005         (human_readable): Assume localeconv exists.
80006
80007 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80008
80009         * modules/hard-locale (Depends-on): Add strdup.
80010
80011 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
80012
80013         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
80014         convert T2, not T.  (Imported from libc.)
80015
80016 2004-11-30  Simon Josefsson  <jas@extundo.com>
80017
80018         * modules/restrict (License): Change to LGPL.
80019
80020 2004-11-30  Simon Josefsson  <jas@extundo.com>
80021
80022         * m4/restrict.m4: Add copyright and copying conditions.
80023
80024 2004-11-30  Simon Josefsson  <jas@extundo.com>
80025
80026         * m4/base64.m4: New file.
80027
80028 2004-11-30  Simon Josefsson  <jas@extundo.com>
80029
80030         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
80031         base64.
80032
80033         * tests/test-base64.c: New file.
80034
80035         * modules/base64: New file.
80036
80037 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80038
80039         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
80040         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
80041
80042         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
80043
80044 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80045
80046         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
80047         (__getcwd.c): Don't restore errno; glibc doesn't.
80048         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
80049         first, falling back to our code only if its results look suspicious.
80050         Ensure that the resulting buffer is only as large as necessary.
80051
80052         * lib/readutmp.c: Include readutmp.h first.
80053         Include <errno.h>, since readutmp.h no longer does that.
80054         * lib/readutmp.h: Don't include <errno.h>,
80055         <sys/param.h>, <time.h>; not needed to establish interface.
80056         (errno): Remove decl.
80057         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
80058         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
80059         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
80060
80061 2004-11-28  Simon Josefsson  <jas@extundo.com>
80062
80063         * lib/base64.h, base64.c: New file.
80064
80065 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
80066
80067         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
80068
80069 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
80070
80071         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
80072         (Depends-on): Remove pathmax, same.  Add mempcpy.
80073         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
80074         (Makefile.am): Append getcwd.h to lib_SOURCES.
80075         (Include): Add getcwd.h.
80076         (Maintainer): Change from Jim Meyering to "all, glibc",
80077         since getdate now uses intended-for-glibc code.
80078         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
80079         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
80080
80081 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80082
80083         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
80084         HP's ANSI C compiler.
80085         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
80086         Declaring int functions causes warnings on some modern systems and
80087         shouldn't be needed to compile on ancient ones.
80088         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
80089         defined.
80090
80091         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
80092         with the following changes.
80093         (__set_errno): Parenthesize properly.
80094         Include <stdbool.h>.
80095         (MIN, MAX, MATCHING_INO): New macros.
80096         (__getcwd): Define with prototype, not K&R form.
80097         Use heuristics to allocate default buffer on stack if possible.
80098         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
80099         behavior, and to avoid the PATH_MAX limit when computing
80100         ../../../../...
80101         Use MATCHING_INO to compare inode number to file.
80102         Check for arithmetic overflow in size calculations.
80103         Fix bug in reallocation of dot array that caused getcwd to fail
80104         on directories nested deeper than 75.
80105         Be more careful about saving errno on error.
80106         Do not use realloc; use only free+malloc, as this is a bit
80107         more flexible and avoids a needless copy operation.
80108         Do not inspect st_dev and st_ino for symbolic links; POSIX
80109         doesn't specify the latter.
80110         Check for closedir errors.
80111         Avoid needless casts.
80112         Use "#ifdef weak_alias" around weak_alias, to be like other
80113         glibc code.
80114         The following changes to getcwd.c have effect only when used in
80115         gnulib; they have no effect inside glibc proper.
80116         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
80117         as alloca isn't used.
80118         (alloca, __alloca): Likewise.
80119         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
80120         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80121         unconditionally, as gnulib assumes C89 or better.
80122         Do not include <sys/param.h>.
80123         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
80124         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
80125         better.
80126         (NULL) [!defined NULL]: Remove; we assume C89 or better.
80127         Include <dirent.h> in a way that is compatible with modern Autoconf.
80128         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
80129         New macros, if not already defined.
80130         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
80131         Use "_LIBC", not "defined _LIBC", for consistency.
80132         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
80133         a mempcpy module.
80134         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
80135         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
80136         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
80137         credit only to Jim Meyering and adjust the copyright dates.
80138         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
80139         <stdlib.h>, <unistd.h>, "pathmax.h".
80140         Instead, include "xgetcwd.h" (first) and "getcwd.h".
80141         (INITIAL_BUFFER_SIZE): Remove.
80142         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
80143
80144 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80145
80146         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
80147         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
80148         Use the _ONCE methods, for efficiency.
80149         Check for fcntl.h.  In test program, include <errno.h>
80150         and <fcntl.h> if available.  Remove old K&R cruft from
80151         test program.  Check for common errors in GNU/Linux,
80152         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
80153         don't do AC_LIBOBJ, as that's getcwd.m4's job.
80154         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
80155         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
80156         name accordingly.
80157         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
80158         accommodate new getcwd.c.
80159         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
80160         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
80161         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
80162         that's all we need now.
80163
80164 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80165
80166         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
80167         argp-parse.c depends on getopt internals, that means we should
80168         always use our getopt, to be on the safe side.
80169         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
80170         order not to spoil the result of an eventual previous invocation
80171         of gl_GETOPT_SUBSTITUTE.
80172
80173 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80174
80175         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
80176         redefinition warnings. To avoid them, include the defines
80177         in `#if !defined __need_getopt ... #endif'. The only place
80178         where __getopt_argv_const is used is in definitions
80179         of getopt_long and getopt_long_only below, which are as well
80180         protected by `#ifndef __need_getopt'.
80181         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
80182         __need_getopt after including <stdio.h> and <unistd.h> These
80183         headers might have defined it.
80184
80185 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80186
80187         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
80188
80189 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80190
80191         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
80192         (futimens): New function, which uses futimes if available.
80193         (futimens, utimens): Support timespec==NULL, with same semantics
80194         as utime and utimens.
80195         * lib/utimens.h (futimens): New decl.
80196
80197 2004-11-23  Jim Meyering  <jim@meyering.net>
80198
80199         * lib/getopt_.h: Remove trailing blanks.
80200
80201 2004-11-23  Jim Meyering  <jim@meyering.net>
80202
80203         * lib/__fpending.c: Add comment.
80204
80205 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
80206
80207         * modules/canonicalize (Depends-on): Add xreadlink.
80208         Problem reported by James Youngman.
80209
80210 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
80211
80212         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
80213         New macros.
80214         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
80215         optopt): Use them instead of invoking ## directly; otherwise, the
80216         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
80217
80218 2004-11-19  Bruno Haible  <bruno@clisp.org>
80219
80220         * lib/strtok_r.c: Move comments from here...
80221         * lib/strtok_r.h: ... to here.
80222
80223 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80224
80225         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
80226         implementations that mishandle size_t overflow.
80227
80228 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80229
80230         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
80231         might fail.  Problem reported by Yoann Vandoorselaere.
80232         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
80233         implementations that mishandle size_t overflow.
80234
80235 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80236
80237         * modules/canon-host (Depends-on): Add strdup.
80238
80239 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80240
80241         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
80242
80243 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80244
80245         * lib/canon-host.c: Include "strdup.h".
80246         (canon_host): Use getaddrinfo if available, so that IPv6 works.
80247         Use strdup instead of malloc/strcpy to duplicate strings.
80248
80249         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
80250         (human_space_before_unit): New constant.
80251         * lib/human.c (human_readable): Support it.
80252
80253         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
80254         (xgetcwd): Set errno correctly when failing.
80255         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
80256         the failure is actually due to a PATH_MAX problem.
80257
80258         Further getopt changes to make it more likely that glibc will
80259         buy the changes back.
80260         * lib/getopt.c (POSIXLY_CORRECT): New constant.
80261         (getopt): Use it, so to preserve glibc semantic
80262         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
80263         when compiling for libc.
80264         * lib/getopt_.h (__getopt_argv_const): Bring it back.
80265         (getopt_long, getopt_long_only): Use it.
80266
80267         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80268         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
80269         (getopt): Argv is now char * const *, as per standard.
80270         (_getopt_internal_r, _getopt_internal): Argv is now char **,
80271         not char *__getopt_argv_const *.
80272         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80273         _getopt_long_only_r): Likewise.
80274         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
80275         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80276         _getopt_long_r, _getopt_long_only_r): Likewise.
80277         * lib/getopt_.h (__getopt_argv_const): Remove.
80278         (getopt): Argv is now char * const *, as per standard.
80279
80280         * lib/getdate.y (tORDINAL): New token.
80281         (day, relunit): Allow it for relative times.
80282         (relative_time_table): Use tORDINAL for ordinals.
80283
80284 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80285
80286         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
80287         Document that "second" isn't allowed as an ordinal number.
80288
80289 2004-11-16  Jim Meyering  <jim@meyering.net>
80290
80291         * modules/closeout (Depends-on): Add fpending.
80292
80293 2004-11-15  Jim Meyering  <jim@meyering.net>
80294
80295         * lib/closeout.c: Include "__fpending.h" once again.
80296         Include <stdbool.h>.
80297         (close_stdout): Don't fail just because stdout was closed initially,
80298         since some programs don't write to stdout in the normal course of
80299         operation (other than --version and --help), and we don't want this
80300         function to make e.g. `touch file >&-' fail.
80301         But do fail if it was closed and someone has tried to write to it.
80302         E.g., `printf foo >&-' must fail.
80303
80304 2004-11-13  Jim Meyering  <jim@meyering.net>
80305
80306         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
80307
80308 2004-11-12  Simon Josefsson  <jas@extundo.com>
80309
80310         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
80311         small doc fix is still pending.
80312
80313 2004-11-11  Simon Josefsson  <jas@extundo.com>
80314
80315         * modules/strtok_r: New file.
80316
80317         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80318         strtok_r.
80319
80320 2004-11-11  Simon Josefsson  <jas@extundo.com>
80321
80322         * m4/strtok_r.m4: New file.
80323
80324         * m4/getopt.m4: Replace opterr.
80325
80326 2004-11-11  Simon Josefsson  <jas@extundo.com>
80327
80328         * lib/strtok_r.h, strtok_r.c: New file.
80329
80330 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80331
80332         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
80333         of replacing opterr, getopt, etc.  This should handle the
80334         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
80335
80336 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80337
80338         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
80339         we can stop lying to compilers about the constness of argv when we
80340         are compiled outside glibc.
80341         (getopt, getopt_long, getopt_long_only): Use it.
80342         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80343         _getopt_internal, getopt): Likewise.
80344         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80345         _getopt_long_only_r): Likewise.
80346         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80347         _getopt_long_r, _getopt_long_only_r): Likewise.
80348
80349         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
80350         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
80351         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
80352         the other external symbols.
80353         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
80354         declaration, since the above renaming now works around collisions.
80355
80356 2004-11-11  Jim Meyering  <jim@meyering.net>
80357
80358         * lib/linebreak.c: Remove trailing blanks.
80359         * lib/alloca_.h: Likewise.
80360         * lib/acosl.c: Likewise.
80361         * lib/euidaccess.c: Likewise.
80362         * lib/allocsa.h: Likewise.
80363
80364 2004-11-10  Simon Josefsson  <jas@extundo.com>
80365
80366         * m4/getaddrinfo.m4: New file.
80367
80368 2004-11-10  Simon Josefsson  <jas@extundo.com>
80369
80370         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
80371
80372 2004-11-10  Simon Josefsson  <jas@extundo.com>
80373
80374         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80375         getaddrinfo.
80376
80377         * modules/getaddrinfo: New file.
80378
80379 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80380
80381         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
80382
80383 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80384
80385         * lib/mktime.c (SHR): New macro, which is a portable
80386         substitute for >> that should work even on Crays.
80387         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
80388         Problem reported by Mark D. Baushke in
80389         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
80390         * lib/getdate.y (SHR): Likewise.
80391         (tm_diff): Use it.
80392         * lib/strftime.c (SHR): Likewise.
80393         (tm_diff): Use it.
80394         * lib/quotearg.c (struct quoting_options): Use unsigned int for
80395         quote_these_too, so that right shifts are well defined.  All uses
80396         changed.
80397
80398 2004-11-10  Jim Meyering  <jim@meyering.net>
80399
80400         Ensure that no close failure goes unreported.
80401         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
80402         return early when it seems there's nothing to flush.
80403         Don't include __fpending.h.
80404
80405 2004-11-10  Jim Meyering  <jim@meyering.net>
80406
80407         * modules/closeout (Depends-on): Remove fpending.
80408
80409 2004-11-10  Jim Meyering  <jim@meyering.net>
80410
80411         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
80412
80413 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80414
80415         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
80416         gl_FUNC_STRFTIME.
80417         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
80418         and AC_REQUIRE when possible, to avoid duplicate checks.
80419         Check for <wchar.h>.
80420
80421 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80422
80423         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
80424
80425 2004-11-09  Bruno Haible  <bruno@clisp.org>
80426
80427         * m4/sockpfaf.m4: New file.
80428
80429 2004-11-05  Bruno Haible  <bruno@clisp.org>
80430
80431         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
80432         Reported by Mark D. Baushke <mdb@cvshome.org>.
80433
80434 2004-11-04  Bruno Haible  <bruno@clisp.org>
80435
80436         2004-09-11  Bruno Haible  <bruno@clisp.org>
80437                 * allocsa.valgrind: New file.
80438         2004-02-06  Bruno Haible  <bruno@clisp.org>
80439                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
80440                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
80441                 Reported by Christopher Seip <chris.seip@hp.com>.
80442
80443 2004-11-04  Bruno Haible  <bruno@clisp.org>
80444
80445         * modules/allocsa (Files): Add lib/allocsa.valgrind.
80446         (Makefile.am): Distribute it.
80447
80448 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
80449
80450         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
80451         with errno == ERANGE if the buffer is too small.
80452         Problem reported by Mark D. Baushke.
80453
80454 2004-11-03  Albert Chin  <china@thewrittenword.com>
80455             Paul Eggert  <eggert@cs.ucla.edu>
80456
80457         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
80458         equivalent, substitute $ac_type for equivalent type rather than
80459         blindly using uint32_t *always* which won't work if uint32_t is not
80460         available.  Define _UINT32_T to work around typedef of uint32_t if
80461         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
80462         2.5.1.
80463
80464 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80465
80466         * m4/jm-macros.m4: Sync from coreutils.
80467         (gl_MACROS): Check for mbrlen, for pathchk.
80468         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
80469
80470 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80471
80472         * lib/xreadlink.c (MAXSIZE): New macro.
80473         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
80474         size does not exceed MAXSIZE.  Avoid cast.
80475         As suggested by Mark D. Baushke in
80476         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
80477         if readlink fails with buffer size just under MAXSIZE, try again
80478         with MAXSIZE.
80479
80480 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80481
80482         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
80483
80484 2004-11-02  Derek R. Price  <derek@ximbiot.com>
80485         and  Paul Eggert  <eggert@cs.ucla.edu>
80486
80487         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
80488         (get_date): Overparenthesize to avoid GCC warning.
80489
80490 2004-11-02  Bruno Haible  <bruno@clisp.org>
80491
80492         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
80493         returns void.
80494
80495 2004-11-02  Bruno Haible  <bruno@clisp.org>
80496
80497         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
80498         function returns void.
80499
80500 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80501
80502         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
80503         fflush_unlocked, flockfile, funlockfile, funlockfile,
80504         fputs_unlocked, putc_unlocked.
80505
80506 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80507
80508         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80509         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
80510         already declared.
80511
80512 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80513
80514         * modules/getdate (Files): Add doc/getdate.texi.
80515         (Depends-on): Add setenv, xalloc.
80516
80517 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80518
80519         * lib/getdate.y: Add support for TZ="foo" within a date string.
80520         Fix some bugs near time_t boundaries.  Reject dates with
80521         out-of-range components, e.g., "Sept 31".
80522         Include <stdlib.h>, "setenv.h", "xalloc.h".
80523         (ISDIGIT_LOCALE): Remove; unused.
80524         Note that the TZ and time functions used here are not reentrant.
80525         (mktime_ok, get_tz): New functions.
80526         (TZBUFSIZE): New constant.
80527         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
80528         This requires that we sometimes generate our own TZ="XXX..." setting.
80529
80530 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80531
80532         * doc/getdate.texi: New file, from coreutils with modifications for
80533         the new TZ parsing.
80534
80535 2004-10-27  Derek R. Price  <derek@ximbiot.com>
80536
80537         * lib/mktime.c (not_equal_tm): Remove redundant check.
80538
80539 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80540
80541         * modules/regex (lib_SOURCES): Add regex.c.
80542         Reported by James Youngman in
80543         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
80544
80545 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80546
80547         * lib/getdate.y: Use Bison 1.875 features, and some minor
80548         code cleanups.  This change does not affect semantics.
80549         Don't include <stdlib.h>; no longer needed.
80550         Don't include unlocked-io.h; only the "#if TEST" code uses
80551         stdio, and performance isn't crucial there.
80552         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
80553         Bison 1.875 features as described below.
80554         All uses of "PC." replaced by "pc->".
80555         (YYSTYPE): Add a forward declaration.
80556         (yylex, yyerror): Use full prototypes in forward decls.
80557         Use "%pure-parser" rather than obsolescent "%pure_parser".
80558         Use %parse-param and %lex-param instead of obsolescent
80559         YYPARSE_PARAM and YYLEX_PARAM.
80560         (meridian_table, month_and_day_table, time_units_table,
80561         relative_time_table, time_zone_table, military_table,
80562         lookup_zone, lookup_word, get_date):
80563         Use NULL instead of 0 where appropriate.
80564         (to_hour): Avoid abort (), to avoid a dependency on
80565         stdlib.h.
80566         (yyerror, yylex): Now accepts parser_control * arg.
80567         (main) [TEST]: Use '\0' rather than 0 for char.
80568
80569 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80570
80571         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
80572
80573 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80574
80575         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
80576         It's now the caller's responsibility to handle the case where
80577         !HAVE_GETPAGESIZE && !defined getpagesize.
80578
80579         * lib/mktime.c (leapyear): Arg is long int, not int.
80580
80581 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
80582
80583         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
80584
80585 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
80586
80587         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
80588         missing.  Problem reported by James Youngman.
80589
80590 2004-10-16  Simon Josefsson  <jas@extundo.com>
80591
80592         * gnulib-tool: Fix comments.  Fix parse problem.
80593         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
80594
80595 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
80596
80597         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
80598         implementation of getopt_long.  Problem reported by Alexander Taler in:
80599         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
80600
80601 2004-10-15  Bruno Haible  <bruno@clisp.org>
80602
80603         * gnulib-tool: Untabify. Initialize supplied_libname.
80604         (func_usage): More homogenous output.
80605         (func_modules_transitive_closure, func_modules_to_filelist,
80606         func_emit_lib_Makefile_am): New functions.
80607         (func_import): New function, extracted from big case statement. Use
80608         func_get_license, func_modules_transitive_closure,
80609         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
80610         opt_lgpl. Don't use test -a, as it's not portable.
80611         (func_create_testdir): Use func_modules_transitive_closure,
80612         func_modules_to_filelist, func_emit_lib_Makefile_am.
80613
80614 2004-10-15  Bruno Haible  <bruno@clisp.org>
80615
80616         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
80617
80618 2004-10-15  Bruno Haible  <bruno@clisp.org>
80619
80620         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
80621         the portions belonging to each module.
80622         Suggested by Derek Robert Price <derek@ximbiot.com>.
80623
80624 2004-10-12  Simon Josefsson  <jas@extundo.com>
80625
80626         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80627         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
80628         to real functions.
80629
80630 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80631
80632         * modules/vsnprintf: New file.
80633
80634 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80635
80636         * m4/vsnprintf.m4: New file.
80637
80638 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80639
80640         * lib/vsnprintf.h: New file.
80641         * lib/vsnprintf.c: New file.
80642
80643 2004-10-11  Bruno Haible  <bruno@clisp.org>
80644
80645         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
80646         vsnprintf.
80647
80648 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80649
80650         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
80651
80652 2004-10-07  Bruno Haible  <bruno@clisp.org>
80653
80654         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
80655         fits into the provided buffer.
80656
80657 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80658
80659         * lib/diacrit.c, diacrit.h: Add GPL notice.
80660
80661         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
80662         notice.
80663         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
80664         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
80665         This avoids a potential constant-folding bug.
80666
80667 2004-10-05  Bruno Haible  <bruno@clisp.org>
80668
80669         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
80670         for the declaration of strsep.
80671
80672 2004-10-05  Bruno Haible  <bruno@clisp.org>
80673
80674         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
80675
80676 2004-10-04  Simon Josefsson  <jas@extundo.com>
80677
80678         * modules/memmem: New file.
80679         * tests/test-memmem.c: New file.
80680         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
80681
80682 2004-10-04  Simon Josefsson  <jas@extundo.com>
80683
80684         * m4/memmem.m4: New file.
80685
80686 2004-10-04  Simon Josefsson  <jas@extundo.com>
80687
80688         * lib/memmem.h: New file.
80689         * lib/memmem.c: New file, taken from glibc.
80690
80691 2004-10-04  Simon Josefsson  <jas@extundo.com>
80692
80693         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
80694         '#ifdef USE_UNLOCKED_IO'.
80695
80696 2004-10-04  Simon Josefsson  <jas@extundo.com>
80697
80698         * config/srclist.txt: Add memmem from glibc.
80699
80700 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80701
80702         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
80703
80704         * modules/argmatch, modules/argp, modules/closeout, modules/error,
80705         modules/exclude, modules/getdate, modules/getline,
80706         modules/getndelim2, modules/getpass, modules/getpass-gnu,
80707         modules/getusershell, modules/linebuffer, modules/md5,
80708         modules/mountlist, modules/posixtm, modules/readtokens,
80709         modules/readutmp, modules/regex, modules/sha1,
80710         modules/version-etc, modules/yesno:
80711         Remove dependency on unlocked-io.
80712
80713 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80714
80715         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
80716
80717         * m4/unlocked-io.m4: Add copyright notice.
80718         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
80719
80720 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80721
80722         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
80723         * lib/xmalloc.c (xmemdup): Likewise.
80724         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
80725         XFREE): Remove these long-obsolescent macros.
80726         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
80727         * lib/xstrdup.c: Remove.
80728
80729         * lib/regex.c (re_comp): Cast gettext return value to char *,
80730         Problem reported by Martin Neitzel via Mark D. Baushke.
80731
80732 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80733
80734         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
80735         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
80736         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
80737         regex.c, sha1.c, version-etc.c, yesno.c:
80738         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
80739         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
80740         the includer's responsibility.
80741
80742         Sync from coreutils.
80743
80744         * lib/modechange.c (mode_compile): Don't decrement a pointer that
80745         points to the start of a string, as the C Standard says the
80746         resulting behavior is undefined.
80747
80748         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
80749         simple -> simple_backups, numbered_existing ->
80750         numbered_existing_backups, numbered -> numbered_backups
80751         to avoid shadowing problems.  All uses changed.
80752         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
80753         * lib/backupfile.c (check_extension, numbered_backup):
80754         Rename locals to avoid shadowing 'basename'.
80755         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
80756         once.
80757
80758         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
80759         * lib/.cvsignore: Add getopt.h.
80760
80761 2004-10-04  Bruno Haible  <bruno@clisp.org>
80762
80763         * modules/README: New file.
80764         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
80765         not a module.
80766
80767 2004-10-02  Jim Meyering  <jim@meyering.net>
80768
80769         * lib/dirfd.h, getpagesize.h: Add copyright notice.
80770
80771 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80772
80773         * modules/strsep: New file.
80774
80775 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80776
80777         * m4/strsep.m4: New file.
80778
80779 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80780
80781         * lib/strsep.h: New file.
80782         * lib/strsep.c: New file.
80783
80784 2004-10-01  Simon Josefsson  <jas@extundo.com>
80785
80786         * lib/snprintf.c (snprintf): Handle size==0.
80787
80788 2004-10-01  Simon Josefsson  <jas@extundo.com>
80789             Bruno Haible  <bruno@clisp.org>
80790
80791         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
80792         (snprintf): Declare 'args'.
80793
80794 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
80795
80796         * lib/snprintf.c: Remove comments as to why each header is needed.
80797
80798 2004-10-01  Bruno Haible  <bruno@clisp.org>
80799
80800         * MODULES.html.sh: Add strsep.
80801
80802 2004-09-30  Simon Josefsson  <jas@extundo.com>
80803
80804         * modules/snprintf: New file.
80805
80806 2004-09-30  Simon Josefsson  <jas@extundo.com>
80807
80808         * m4/snprintf.m4: New file.
80809
80810 2004-09-30  Simon Josefsson  <jas@extundo.com>
80811
80812         * lib/snprintf.h, lib/snprintf.c: New files.
80813
80814 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80815
80816         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
80817         (hol_entry_help): Never translate an empty string.
80818         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
80819         * lib/argp.h (OPTION_NO_TRANS): New option.
80820
80821 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80822
80823         * modules/argp (Maintainer): Replace Simon Josefsson
80824         by Sergey Poznyakoff.
80825
80826 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80827
80828         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
80829         changes merged back into glibc.
80830
80831 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80832
80833         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
80834
80835 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80836
80837         * lib/xvasprintf.c: Include xalloc.h.
80838         (xvasprintf): Use xalloc_die, not xmalloc_die.
80839
80840 2004-09-29  Bruno Haible  <bruno@clisp.org>
80841
80842         * modules/alloca-opt: New file, derived from modules/alloca.
80843         * modules/allocsa: Depend on alloca-opt instead of alloca.
80844         * modules/setenv: Likewise.
80845         * modules/vasnprintf: Likewise.
80846         * MODULES.html.sh: Add alloca-opt.
80847
80848 2004-09-28  Simon Josefsson  <jas@extundo.com>
80849
80850         * gnulib-tool: New parameter --lgpl, to asseert that modules are
80851         LGPL, and to replace license template from GPL to LGPL.
80852
80853 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80854
80855         * modules/dummy: Change license to LGPL.
80856
80857 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80858
80859         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
80860
80861 2004-09-24  Simon Josefsson  <jas@extundo.com>
80862
80863         * modules/minmax (License): Change from GPL to LGPL.
80864
80865 2004-09-23  Simon Josefsson  <jas@extundo.com>
80866
80867         * gnulib-tool (--import): Typo.
80868
80869 2004-09-23  Simon Josefsson  <jas@extundo.com>
80870
80871         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
80872
80873 2004-09-22  Bruno Haible  <bruno@clisp.org>
80874
80875         * modules/*: Add 'License' field.
80876         * gnulib-tool: Accept --extract-license option.
80877         (func_get_license): New function.
80878
80879 2004-09-21  Bruno Haible  <bruno@clisp.org>
80880
80881         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
80882         Reported by Simon Josefsson.
80883
80884 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80885
80886         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
80887         gl_AC_TYPE_LONG_LONG.
80888
80889 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80890
80891         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
80892
80893 2004-09-18  Simon Josefsson  <jas@extundo.com>
80894         and  Paul Eggert  <eggert@cs.ucla.edu>
80895
80896         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
80897         calls with autoreconf.  Define GL_LIB.
80898
80899 2004-09-14  Karl Berry  <karl@gnu.org>
80900
80901         * config/srclist.txt: unsync setenv.c, sigh.
80902
80903 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80904
80905         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
80906         Problem reported by Bruno Haible in:
80907         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
80908
80909 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80910
80911         * config/srclist.txt: Comment out argp-pvh.c.
80912
80913 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
80914
80915         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
80916         in case some system header has #define'd it.  Problem reported by
80917         Soeren D. Schulze in
80918         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
80919
80920 2004-09-09  Karl Berry  <karl@gnu.org>
80921
80922         * regex.[ch]: delete from the root.  These were supposed to be
80923                 synced with emacs cvs, but this has not happened for about
80924                 a year, and anyway nothing else uses emacs regex.[ch].
80925                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
80926                 lib/regex[.ch] is untouched.
80927
80928 2004-09-09  Bruno Haible  <bruno@clisp.org>
80929
80930         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
80931
80932 2004-09-09  Bruno Haible  <bruno@clisp.org>
80933
80934         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
80935         modifications.
80936         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
80937
80938 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80939
80940         * modules/xvasprintf: New file.
80941         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
80942
80943 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80944
80945         * lib/xvasprintf.h: New file.
80946         * lib/xvasprintf.c: New file.
80947         * lib/xasprintf.c: New file.
80948
80949 2004-09-08  Bruno Haible  <bruno@clisp.org>
80950
80951         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
80952
80953 2004-09-08  Bruno Haible  <bruno@clisp.org>
80954
80955         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
80956         length is > INT_MAX.
80957         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
80958         more.
80959
80960 2004-09-08  Bruno Haible  <bruno@clisp.org>
80961
80962         * lib/stdint_.h: New file, taken from GNU clisp.
80963
80964 2004-09-08  Bruno Haible  <bruno@clisp.org>
80965             Oskar Liljeblad  <oskar@osk.mine.nu>
80966
80967         * modules/stdint: New file.
80968         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
80969
80970 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80971
80972         Import from coreutils.
80973         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
80974         strings on unbounded length.  alloca's performance benefits aren't
80975         that important here.
80976         (V_STRDUP): Remove.
80977         (parse_with_separator): New function, with most of the internals
80978         of the old parse_user_spec.  Allow user to omit both user and group,
80979         for compatibility with FreeBSD.
80980         Clone only the user name, not the entire spec.
80981         Do not set *uid, *gid unless entirely successful.
80982         Avoid memory leak in some failing cases.
80983         Fix regression for USER.GROUP reported by Dmitry V. Levin in
80984         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
80985         (parse_user_spec): Rewrite to use parse_with_separator.
80986
80987 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80988
80989         * modules/userspec: Don't depend on alloca.
80990
80991 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80992
80993         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
80994
80995 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80996
80997         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
80998         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
80999         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
81000
81001 2004-08-16  Simon Josefsson  <jas@extundo.com>
81002
81003         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
81004         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
81005         Add --dry-run for --import.
81006         Let user provided command line parameters override configure.ac
81007         settings.
81008
81009 2004-08-12  Simon Josefsson  <jas@extundo.com>
81010
81011         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
81012         as discussed with Paul Eggert in threads rooted at
81013         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
81014         and
81015         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
81016         Before, the test was empty, and relied on ELIDE_CODE in source
81017         code.)
81018         (gl_PREREQ_GETOPT): New macro.
81019         (gl_GETOPT): Use them.
81020
81021 2004-08-12  Simon Josefsson  <jas@extundo.com>
81022
81023         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
81024         * lib/getopt_.h: Renamed from getopt.h.
81025
81026 2004-08-12  Simon Josefsson  <jas@extundo.com>
81027
81028         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
81029         Change default library name from libfoo to libgnu.
81030         Now, if you have a configure.ac that says:
81031                 gl_SOURCE_BASE(gl)
81032                 gl_M4_BASE(gl/m4)
81033                 gl_MODULES(error getopt etcetera)
81034                 gl_INIT
81035         you can import all you need by running:
81036                 ../gnulib/gnulib-tool --import
81037
81038         * modules/getopt (Files): Rename getopt.h to getopt_.h.
81039         (Makefile.am): Rewrite, use logic from argz.
81040         (Include): Use <getopt.h> instead of "getopt.h".
81041
81042 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81043
81044         * modules/argp (Files): Add m4/unlocked-io.m4.
81045         (Depends-on): Add extensions.
81046
81047 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81048
81049         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
81050         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
81051         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
81052         Check for program_invocation_name, program_invocation_short_name,
81053         flockfile, funlockfile, features.h, _getopt_long_only_r.
81054
81055 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81056
81057         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
81058         its complicated substitute.
81059         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
81060         and program_invocation_name.
81061         (__argp_basename) [!_LIBC]: Remove; the only use was
81062         replaced by its body.
81063         (__argp_short_program_name): Change condition from
81064         !defined __argp_short_program_name to
81065         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
81066         to match argp-namefrob.h.
81067         (__argp_failure): Don't assume strerror_r returns char *.
81068         * lib/argp-parse.c (N_): Define unconditionally.
81069         (argp_default_options): Fill out initializers with 0 to avoid
81070         gcc warnings.
81071
81072 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81073
81074         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
81075         getopt1.c.
81076
81077 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81078
81079         Merge from coreutils.
81080
81081         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
81082
81083         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
81084         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
81085
81086 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81087
81088         Merge from coreutils.
81089
81090         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
81091         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
81092         for Reliant Unix 5.43.
81093
81094         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
81095         (union fooround): Use uintmax_t, not long int.
81096         The rest is a merge from libc:
81097         [defined _LIBC]: Include <shlib-compat.h>.
81098         (_obstack) [defined _LIBC]: Remove after 2.3.4.
81099
81100         * lib/settime.c (settime): Recode to avoid warning with
81101         Sun Forte C 6U2.
81102
81103         * lib/strverscmp.c: Convert to UTF-8.
81104
81105 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81106
81107         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81108         m4/uintmax_t.m4.
81109
81110 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81111
81112         * modules/xalloc-die: New file.
81113         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
81114
81115         * modules/md5 (Files): Add m4/uint32_t.m4.
81116         * modules/sha1: Renamed from modules/sha.
81117         (Files):
81118         Rename lib/sha.h to lib/sha1.h.
81119         Rename lib/sha.c to lib/sha1.c.
81120         Rename m4/sha.m4 to m4/sha1.m4.
81121         (lib_SOURCES): Likewise.
81122         (configure.ac): Rename gl_SHA to gl_SHA1.
81123         (Include): sha.h -> sha1.h.
81124
81125 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81126
81127         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
81128         * m4/sha1.m4: Renamed from sha.m4.
81129         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
81130
81131 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81132
81133         * lib/obstack.h (obstack_empty_p):
81134         Don't assume that chunk->contents is suitably aligned.
81135         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
81136         Likewise. Problem reported by Benno in
81137         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
81138
81139         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
81140         readable.  This could be improved further but it'd take some work.
81141
81142 2004-08-08  Simon Josefsson  <jas@extundo.com>
81143
81144         * modules/xgethostname (Depends-on): Remove exit and error (not
81145         used).
81146
81147         * modules/getpass-gnu: Add getpass.h.
81148         (Depends-on): Add stdbool.
81149         * modules/getpass: Add getpass.h.
81150
81151 2004-08-08  Simon Josefsson  <jas@extundo.com>
81152
81153         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
81154         Check getpass declaration.
81155
81156 2004-08-08  Simon Josefsson  <jas@extundo.com>
81157
81158         * lib/xgethostname.c: Don't include error.h (not used).
81159
81160         * lib/getpass.h: Add.
81161         * lib/getpass.c: Include getpass.h first.
81162
81163 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
81164
81165         * lib/xalloc-die.c: New file.
81166         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
81167         All uses removed.
81168         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
81169         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
81170         xalloc-die.c.
81171         (_, N_, xalloc_die): Move to xalloc-die.c.
81172         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
81173         so that we needn't mess with xalloc_msg_memory_exhausted.
81174
81175         * lib/sha1.h: Renamed from sha.h.
81176         (SHA1_H): Renamed from _SHA_H.
81177         (sha1_ctx): Renamed from sha_ctx.
81178         (sha1_init_ctx): Renamed from sha_init_ctx.
81179         (sha1_process_block): Renamed from sha_process_block.
81180         (sha1_process_bytes): Renamed from sha_process_bytes.
81181         (sha1_finish_ctx): Renamed from sha_finish_ctx.
81182         (sha1_read_ctx): Renamed from sha_read_ctx.
81183         (sha1_stream): Renamed from sha_stream.
81184         (sha1_buffer): Renamed from sha_buffer.
81185         * lib/sha1.c: Likewise; renamed from sha.c.
81186         Do not include <sys/types.h>.
81187         Include <stddef.h> rather than <stdlib.h>.
81188
81189 2004-08-08  Bruno Haible  <bruno@clisp.org>
81190
81191         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
81192         FILESYSTEM_PREFIX_LEN.
81193         * lib/progreloc.c: Likewise.
81194         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
81195
81196 2004-08-06  Simon Josefsson  <jas@extundo.com>
81197
81198         * modules/progname (Depends-on): Don't depend on stdbool.
81199
81200 2004-08-06  Simon Josefsson  <jas@extundo.com>
81201
81202         * modules/getsubopt: New file.
81203         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81204         getsubopt.
81205
81206 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81207
81208         More merge from coreutils.
81209
81210         * m4/utimens.m4, m4/utimecmp.m4: New files.
81211         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
81212         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
81213         prereq.m4, sha.m4: Import changes from coreutils.
81214
81215 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81216
81217         More merge from coreutils.
81218         * modules/raise, modules/readtokens0, modules/utimens:
81219         * modules/utimecmp, module/xnanosleep: New files.
81220         * modules/strftime: Add lib/strftime.h.
81221         Change include from <time.h> to "strftime.h".
81222         * modules/yesno: Add lib/yesno.h.
81223         * modules/backupfile: Remove lib/addext.c.
81224         * modules/euidaccess: Add stat-macros.h.
81225         * modules/canonicalize, modules/euidaccess,
81226         modules/filemode, modules/lchown, modules/makepath,
81227         modules/rmdir, modules/stat: Likewise.
81228
81229 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81230
81231         Merge from tar.
81232         * lib/argp-help.c (make_hol, hol_append): Don't assume that
81233         SIZE_MAX is a valid preprocessor constant.
81234         (__argp_basename): Change from "#ifndef _LIBC"
81235         to "#ifndef __argp_short_program_name", so that
81236         we don't compile these functions for tar.
81237
81238         More merges from coreutils.
81239         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
81240         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
81241         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
81242         * lib/addext.c: Remove; no longer needed.
81243         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
81244         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
81245         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
81246         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
81247         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
81248         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
81249         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
81250         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
81251         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
81252         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
81253         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
81254         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
81255         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
81256         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
81257         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
81258         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
81259         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
81260         Import changes from coreutils.
81261
81262 2004-08-05  Simon Josefsson  <jas@extundo.com>
81263
81264         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
81265
81266 2004-08-05  Simon Josefsson  <jas@extundo.com>
81267
81268         * m4/getsubopt.m4: New file.
81269
81270 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81271
81272         Merge from coreutils.
81273
81274         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
81275         * m4/getcwd-path-max.m4: New files.
81276
81277         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
81278         FILESYSTEM_PREFIX_LEN ->
81279         FILE_SYSTEM_PREFIX_LEN.
81280         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
81281         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
81282         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
81283         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
81284
81285         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
81286         prerequisite modules now handle the DOS stuff.
81287         Don't check for unistd.h.
81288
81289 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81290
81291         Merge from coreutils.
81292
81293         * lib/.gdb-history: Remove; this doesn't belong here.
81294
81295         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
81296         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
81297         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
81298         * lib/getcwd.c: New files.
81299
81300         * lib/dirname.h: Include <stdbool.h>.
81301         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
81302         for consistency with POSIX terminology.  All uses changed.
81303         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
81304         (strip_trailing_slashes): Use bool for booleans.
81305         * lib/stripslash.c (strip_trailing_slashes): Likewise.
81306
81307         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
81308         sometimes returns a positive errno value even when it succeeds.
81309         (print_errno_message) [!LIBC]: Fall back on strerror if
81310         __strerror_r fails.
81311
81312         * lib/path-concat.c (mempcpy): Don't define if a system header defines
81313         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
81314         (longest_relative_suffix): New function.
81315         (path_concat): Use it.  Assume first argument is not NULL.
81316         Port to DOS.  Omit redundant separators.
81317         Report an error instead of returning NULL.
81318         Use mempcpy instead of memcpy.
81319         (xpath_concat): Remove: not declared or used.
81320
81321         * lib/same.h: Include <stdbool.h>
81322         (same_name): Return bool, not int.
81323         * lib/same.c (same_name): Likewise.
81324         (errno): Don't declare; we assume C89 or better now.
81325
81326         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
81327         if not already defined.
81328
81329         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
81330         * lib/dup-safer.c (errno): Likewise.
81331
81332 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81333
81334         Merge from coreutils.
81335         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
81336         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
81337         * modules/path-concat: Don't depend on strdup.
81338
81339 2004-08-03  Simon Josefsson  <jas@extundo.com>
81340
81341         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
81342         * lib/progname.h: Don't include stdbool.h.
81343
81344 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81345
81346         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
81347         * MODULES.html.sh (func_all_modules): Remove fatal.
81348
81349 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81350
81351         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
81352
81353 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81354
81355         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
81356         working.
81357
81358 2004-08-02  Simon Josefsson  <jas@extundo.com>
81359
81360         * lib/getsubopt.h: New file, with comments from Bruno Haible.
81361         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
81362         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
81363
81364 2004-08-01  Simon Josefsson  <jas@extundo.com>
81365
81366         * lib/xgetdomainname.c: Include stdlib.h, for free().
81367
81368 2004-07-19  Bruno Haible  <bruno@clisp.org>
81369
81370         * MODULES.html.sh (func_all_modules): Add dummy.
81371
81372 2004-07-16  Simon Josefsson  <jas@extundo.com>
81373
81374         * modules/dummy: New file.
81375
81376 2004-07-16  Simon Josefsson  <jas@extundo.com>
81377
81378         * lib/dummy.c: New file.
81379
81380 2004-07-16  Bruno Haible  <bruno@clisp.org>
81381
81382         * lib/backupfile.h: Add extern "C" for C++.
81383         * lib/closeout.h: Likewise.
81384         * lib/copy-file.h: Likewise.
81385         * lib/findprog.h: Likewise.
81386         * lib/full-write.h: Likewise.
81387         * lib/pathname.h: Likewise.
81388         * lib/progname.h: Likewise.
81389         * lib/stpcpy.h: Likewise.
81390         * lib/stpncpy.h: Likewise.
81391         * lib/strcase.h: Likewise.
81392         * lib/strstr.h: Likewise.
81393         * lib/xalloc.h: Likewise.
81394
81395         * lib/mbswidth.h: Add extern "C" for C++.
81396         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
81397
81398 2004-07-13  Robert Millan  <robertmh@gnu.org>
81399
81400         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
81401
81402 2004-07-09  Simon Josefsson  <jas@extundo.com>
81403
81404         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
81405         failed without this.)
81406
81407 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81408
81409         * modules/chown (Files): Add lib/fchown-stub.c, since
81410         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
81411
81412 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81413
81414         * lib/fchown-stub.c: New file.
81415
81416 2004-06-24  Jim Meyering  <jim@meyering.net>
81417
81418         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
81419
81420 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81421
81422         * modules/argz: Omit "#include".
81423
81424         * MODULES.html.sh (func_all_modules): Add calloc, to match
81425         2004-06-01 addition of calloc module.
81426
81427 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81428
81429         * m4/argz.m4: New file, which is autoupdated from libtool.
81430
81431 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81432
81433         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
81434         libtool.
81435
81436 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81437
81438         * config/srclist-update: Don't insist on "USA." before the
81439         close-comment, as libtool omits the period and puts the */ on a
81440         separate line.
81441         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
81442         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
81443
81444 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
81445
81446         * modules/argz: New file.
81447         * MODULES.html.sh (func_all_modules): Add argz.
81448
81449 2004-06-12  Jim Meyering  <jim@meyering.net>
81450         and  Paul Eggert  <eggert@cs.ucla.edu>
81451
81452         * modules/hash (Files): Add lib/xalloc.h.
81453         * modules/pipe (Depends-on): Add wait-process.
81454         * modules/stat (Depends-on): Add xalloc.
81455         * modules/userspec (Files): Add lib/userspec.h.
81456         * modules/xstrto
81457
81458         Upgrade from gettext-0.13.
81459         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
81460         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
81461         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
81462
81463 2004-06-10  Jim Meyering  <jim@meyering.net>
81464
81465         * lib/calloc.c: New file.
81466
81467 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
81468
81469         * lib/getdate.y (yylex): Allow space between sign and number.
81470         Problem reported by Dan Jacobson.
81471
81472 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81473
81474         Merge from coreutils CVS.
81475
81476         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
81477         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
81478         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
81479         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
81480         xstrtol.m4: Fix copyright date and/or serial number.
81481
81482         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
81483         See if we need an fchown replacement.
81484         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
81485         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
81486         and use the replacement function if we detect either defect.
81487
81488         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
81489         gl_UTIMECMP.
81490
81491 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81492         and  Jim Meyering  <jim@meyering.net>
81493
81494         Merge from coreutils CVS.
81495
81496         * lib/stat-macros.h: New file, with contents from file-type.h
81497         and coreutils' system.h.
81498         * lib/file-type.c: Include "stat-macros.h".
81499         * lib/file-type.h (file_type): Move all macro definitions to new file,
81500         stat-macros.h.
81501
81502         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
81503         Wrap old code with this conditional.
81504         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
81505         function that does not dereference symlinks.
81506         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
81507
81508         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
81509         dependency problems.
81510         (xreadlink): Accept new arg SIZE, for efficiency.
81511         All decls and uses changed.
81512         * lib/xreadlink.h: Include <stddef.h>, for size_t.
81513
81514         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
81515         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
81516
81517         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
81518         sysexits.h.
81519
81520 2004-06-01  Jim Meyering  <jim@meyering.net>
81521
81522         * m4/calloc.m4: New file.
81523
81524 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
81525
81526         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
81527         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
81528         Also, fix a typo in a diagnostic.
81529
81530 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81531
81532         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
81533         or AC_FUNC_REALLOC.
81534
81535 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81536
81537         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
81538         macros to be defined.
81539         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
81540         the allocator returns NULL because the requested size is zero.
81541
81542 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81543
81544         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
81545         var.  Add comment explaining why libc still defines it.  This
81546         merges the following patch from glibc:
81547         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
81548
81549 2004-05-20  Andreas Schwab  <schwab@suse.de>
81550
81551         * m4/free.m4: Replace free if it not known to work, not the other
81552         way round.
81553
81554 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81555
81556         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
81557         present in glibc since revision 1.1 of this file.
81558         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
81559         obstack_alignment_mask, obstack_alloc, obstack_base,
81560         obstack_blank, obstack_blank_fast, obstack_chunk_size,
81561         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
81562         obstack_grow0, obstack_init, obstack_int_grow,
81563         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
81564         obstack_next_free, obstack_object_size, obstack_ptr_grow,
81565         obstack_ptr_grow_fast, obstack_room): Remove declarations of
81566         nonexistent functions.
81567
81568 2004-05-18  Karl Berry  <karl@gnu.org>
81569
81570         * config/srclist.txt: break link for vasnprintf.c.
81571
81572 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81573
81574         Port obstack to the AS/400, where pointers are 16 bytes wide and
81575         you cannot cast an integer to a valid pointer.  This patch is
81576         currently waiting to be integrated into glibc; see
81577         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
81578
81579         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
81580         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
81581         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
81582         (struct obstack): temp member is now a union of a pointer and
81583         an integer, instead of an integer.  All integer uses changed.
81584         This does not affect the physical layout of struct obstack,
81585         except on hosts (like the AS/400) where the size or alignment of
81586         void * is greater than that of ptrdiff_t.
81587         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
81588         __STDC__)]: Store temporary in pointer member of union, not
81589         integer member.
81590         * lib/obstack.c: Include <stddef.h>, for offsetof.
81591         (struct fooalign): Remove; it doesn't need a name.
81592         (union fooround): Change double to long double, and add void *.
81593         (DEFAULT_ALIGNMENT): Use offsetof to compute.
81594         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
81595         not a macro.  Hence the values are always int; so remove all
81596         casts-to-int in uses.
81597
81598 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81599
81600         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
81601         we can get this patch merged into glibc.
81602
81603 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81604             Paul Eggert  <eggert@cs.ucla.edu>
81605
81606         * m4/argp: Depend on alloca.
81607
81608 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81609             Paul Eggert  <eggert@cs.ucla.edu>
81610
81611         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
81612         freecoding.
81613
81614 2004-05-17  Bruno Haible  <bruno@clisp.org>
81615
81616         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
81617         precision that consists of a '.' followed by an empty digit string.
81618         Patch by Tor Lillqvist <tml@iki.fi>.
81619
81620 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81621
81622         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
81623         for backward compatibility with older code.  We need our own
81624         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
81625         it under some other name, and our alloca.h will define it.
81626
81627 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81628             Derek Price  <derek@ximbiot.com>
81629
81630         * lib/alloca.c: Include <alloca.h>, to get our interface.
81631         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
81632         include <alloca.h> first.  Use C89 prototype for alloca; this
81633         requires including <stddef.h> for size_t.  Use extern "C" if C++.
81634         Use #elif for simplicity, since we can assume C89 now.
81635         Don't try to source the system alloca.h since it will not be found
81636         and to prevent recursively including its replacement.
81637         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
81638         * lib/regex.c: Likewise.
81639
81640 2004-05-16  Derek Price  <derek@ximbiot.com>
81641             Paul Eggert  <eggert@cs.ucla.edu>
81642
81643         getline cleanup.  This changes the getndelim2 API: both order of
81644         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
81645         no delimiter).
81646
81647         * lib/getline.c: Don't include stddef.h or stdio.h, since our
81648         interface does that.
81649         (getline): Always use getdelim, so that we don't have two
81650         copies of this code.
81651         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
81652         if available.
81653         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
81654         (GETNDELIM2_MAXIMUM): New macro.
81655         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
81656         instead of the old practice of delim2==0.  All callers changed.
81657         Return -1 on overflow, instead of returning junk.
81658         Do not set *linesize unless allocation succeeds.
81659         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
81660         that we include sys/types.h.
81661         * lib/getnline.h: Likewise.
81662         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
81663         (getndelim2): Reorder arguments.
81664         * lib/getnline.c (getnline, getndelim):
81665         Don't discard the NMAX argument.
81666         (getnline): Invoke getndelim, to avoid code duplication.
81667         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
81668         of (size_t) -1 by callers of the getnline family.
81669
81670 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81671
81672         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
81673         Check for gettimeofday.
81674         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
81675         Check for settimeofday, stime.
81676
81677 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81678
81679         * lib/nanosleep.c (suspended): Change its type from int to
81680         sig_atomic_t volatile.
81681         (first_call): Make it private to rpl_nanosleep, and have it
81682         be zero initially as that's a bit faster.
81683         (my_usleep): Round up fractional times instead of truncating them,
81684         as this is the usual meaning for 'sleep'.
81685
81686         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
81687         doesn't work.
81688         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
81689         (ENOSYS): Define if not defined.
81690         (settime): Fall back on stime if it exists and settimeofday fails.
81691         But don't bother with fallbacks if a method fails with errno == EPERM.
81692
81693 2004-05-11  Jim Meyering  <jim@meyering.net>
81694
81695         Prior to this change, the save_cwd caller required read access to the
81696         current directory on most systems (ones with the fchdir function).
81697
81698         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
81699         fails, try write-only, and finally, resort to using xgetcwd.
81700
81701 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81702
81703         * lib/obstack.c, obstack.h: Import changes from libc.
81704
81705 2004-04-28  Bruno Haible  <bruno@clisp.org>
81706
81707         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
81708         also implicitly appends .exe to executables.
81709         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
81710         accepts Windows pathnames.
81711         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81712         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81713         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81714         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81715         Reported by Derek Robert Price <derek@ximbiot.com>.
81716
81717 2004-04-21  Karl Berry  <karl@gnu.org>
81718
81719         * config/srclist.txt (localcharset.c): break sync.
81720
81721 2004-04-20  Paul Eggert  <eggert@twinsun.com>
81722
81723         * m4/host-os.m4: Add a copyright notice.
81724
81725 2004-04-20  Jim Meyering  <jim@meyering.net>
81726
81727         Change UTILS_ to gl_ in AC_DEFINE'd names.
81728         Change utils_- and jm_-prefixed variables, too.
81729         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
81730         UTILS_FUNC_MKDIR_TRAILING_SLASH.
81731         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
81732
81733         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
81734         Don't emit trailing blanks.
81735         Also rename jm_-prefixed variables to have gl_ prefix.
81736
81737         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
81738         Also rename jm_-prefixed variables to have gl_ prefix.
81739
81740         * m4/jm-macros.m4: Reflect the renamings.
81741         * m4/prereq.m4: Likewise.
81742
81743 2004-04-20  Jim Meyering  <jim@meyering.net>
81744
81745         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
81746         memory.
81747
81748 2004-04-20  Jim Meyering  <jim@meyering.net>
81749             Bruno Haible  <bruno@clisp.org>
81750
81751         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
81752         memory when realloc fails.
81753
81754 2004-04-19  Jim Meyering  <jim@meyering.net>
81755
81756         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
81757         now that readutmp.c may call `free (0)'.
81758
81759 2004-04-19  Bruno Haible  <bruno@clisp.org>
81760
81761         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
81762         * m4/inttypes_h.m4: Likewise.
81763         * m4/stdint_h.m4: Likewise.
81764         * m4/intmax_t.m4: Likewise.
81765         * m4/uintmax_t.m4: Likewise.
81766
81767 2004-04-18  Jim Meyering  <jim@meyering.net>
81768
81769         * m4/prereq.m4: Don't forbid jm_ prefix.
81770
81771         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
81772         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
81773         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
81774         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
81775         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
81776         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
81777         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
81778         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
81779         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
81780         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
81781         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
81782         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
81783         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
81784         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
81785         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
81786         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
81787         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
81788         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
81789         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
81790
81791 2004-04-18  Jim Meyering  <jim@meyering.net>
81792
81793         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
81794         failure, don't leak memory and do call END_UTMP_ENT.
81795
81796 2004-04-16  Jim Meyering  <jim@meyering.net>
81797
81798         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
81799         coreutils' stat program.
81800         (gl_PREREQ): Don't require jm_PREREQ_STAT.
81801
81802 2004-04-11  Paul Eggert  <eggert@twinsun.com>
81803
81804         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
81805         C89.
81806         (CHAR_BIT): Remove, since we assume C89.
81807         Include <stdint.h> if available, as per current Autoconf CVS advice.
81808
81809 2004-03-31  Jim Meyering  <jim@meyering.net>
81810
81811         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
81812         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
81813         * m4/xalloc.m4: Likewise.
81814
81815 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81816
81817         Merge from coreutils.
81818
81819         * m4/inttostr.m4: New file.
81820         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
81821         Require AM_STDBOOL_H and gl_TIMESPEC instead.
81822         Require gl_CLOCK_TIME.
81823         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
81824
81825 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81826
81827         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
81828         not bool, to be more consistent with Unix conventions.
81829         Suggested by Bruno Haible.
81830
81831         Merge from coreutils.
81832
81833         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
81834         * lib/umaxtostr.c: New files.
81835
81836         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
81837         the usual <time.h> dance.
81838         (get_date): Change signature to support fractional time stamps.
81839         All callers changed.
81840         * lib/getdate.y: Include "getdate.h" first, as we can now
81841         assume C89 and don't need to worry about 'const'.
81842         Similarly, include "unlocked-io.h" near start, not in middle.
81843         Include <limits.h>.
81844         (textint.value): Use long int rather than int.
81845         (textint.digits): Use size_t rather than int.
81846         (BILLION, LOG10_BILLION): New constants.
81847         (parser_control): New member rel_ns.  Members day_ordinal,
81848         time_zone, month, day, hour, minutes, rel_year, rel_month,
81849         rel_day, rel_hour, rel_minutes, rel_seconds
81850         are now long int, not int.  Member seconds is now struct timespec,
81851         not int.  New member timespec_seen.  Members dates_seen, days_seen,
81852         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
81853         not int.
81854         (%union.intval): Now long int, not int.
81855         New member timespec.
81856         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
81857         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
81858         (spec): Now is a timespec or an item list.
81859         (timespec, items): New nonterminals.
81860         (time, rel, relunit, number, get_date):
81861         Add support for fractional seconds.
81862         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
81863         (gmtime, localtime, mktime): Remove decls; not needed with C89.
81864         (to_hour): First arg is now long int, not int.
81865         (to_year): Returns long int, not int.
81866         Don't treat year -70 like 70.
81867         (tm_diff): Returns long int, not int.
81868         (lookup_word): Use bool instead of int when appropriate.
81869         (yylex): Use size_t for count, not int.
81870         Detect overflow when parsing large integer constants.
81871         Add support for fractions.
81872         (get_date): Make pointers 'const' if possible.
81873         Use more-portable code to detect integer overflow.
81874         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
81875         Don't use ctime; it's not reliable if the year has >4 digits.
81876
81877         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
81878         This is for compatibility with BSD.
81879
81880         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
81881         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
81882         From coreutils' system.h.
81883
81884         * lib/userspec.c: Don't include "posixver.h".
81885         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
81886         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
81887         compatible extension.  Simplify code by removing a boolean int
81888         that was always nonzero if a string was nonnull.
81889
81890 2004-03-30  Jim Meyering  <jim@meyering.net>
81891
81892         Merge from coreutils.
81893
81894         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
81895         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
81896         on some systems one must include <grp.h> before it.
81897         Reported by Christian Krackowizer.
81898
81899 2004-03-30  Jim Meyering  <jim@meyering.net>
81900
81901         Merge from coreutils.
81902
81903         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
81904
81905         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
81906         an empty input stream.
81907
81908         * lib/readtokens.c: Include <stdbool.h>.
81909         (readtoken): Use `size_t' rather than int/long.
81910         All callers adjusted.
81911         Use `bool' rather than `int' where appropriate.
81912         Use memset rather than an explicit loop.
81913         Use x2nrealloc rather than xrealloc.
81914         Allow the use of `\0' as a delimiter.
81915         (readtokens): Likewise.
81916         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
81917
81918 2004-03-30  Jim Meyering  <jim@meyering.net>
81919
81920         * m4/realloc.m4: Remove file, since now it does no more than
81921         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
81922         the `configure.ac' section of module/realloc.
81923         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
81924
81925 2004-03-30  Bruno Haible  <bruno@clisp.org>
81926
81927         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
81928         nonnull.
81929
81930 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81931
81932         Merge changes to getloadavg.c from coreutils and Emacs.
81933
81934         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
81935         Define to an expression, not to the empty string.
81936         Include cloexec.h and xalloc.h.
81937         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
81938         Use set_cloexec_flag rather than rolling our own.
81939         * lib/cloexec.c, lib/cloexec.h: New files.
81940
81941 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81942
81943         * m4/cloexec.m4: New file.
81944
81945 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81946
81947         * lib/getopt.h: Sync with libc CVS.
81948
81949 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81950             Bruno Haible  <bruno@clisp.org>
81951
81952         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
81953         mbswidth.
81954
81955 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81956             Bruno Haible  <bruno@clisp.org>
81957
81958         * lib/mbswidth.h: Include <wchar.h> only if
81959         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
81960         <wchar.h>.
81961         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
81962
81963 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81964
81965         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
81966         Sync with libc CVS.
81967         * lib/getopt_int.h: New file, also synced from libc.
81968
81969 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81970
81971         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
81972         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
81973         Bring back getopt.c, getopt.h, getopt1.c.
81974
81975 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81976
81977         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
81978         All uses changed.  Check for sa_sigaction member; this fixes
81979         a bug first reported by Jason Andrade in
81980         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81981
81982 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81983
81984         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
81985         '#if' expressions.  Unlike the code it replaces, it does not
81986         depend on (defined _SC_PAGESIZE).  However, it does depend on
81987         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
81988         first reported by Jason Andrade in
81989         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81990
81991 2004-02-25  Simon Josefsson  <jas@extundo.com>
81992
81993         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
81994
81995 2004-02-25  Simon Josefsson  <jas@extundo.com>
81996
81997         * lib/strdup.h: New file.
81998         * lib/strdup.c: Include it.
81999         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
82000         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
82001
82002 2004-02-23  Karl Berry  <karl@gnu.org>
82003
82004         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
82005         (from fencepost.gnu.org:/gd/gnuorg).
82006
82007 2004-02-23  Karl Berry  <karl@gnu.org>
82008
82009         * config/srclistvars.sh (GNUORG) [karl]: redefine.
82010         * config/srclist.txt: add maintain/standards documents.
82011
82012 2004-02-18  Bruno Haible  <bruno@clisp.org>
82013
82014         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
82015         Reported by Derek Robert Price <derek@ximbiot.com>.
82016
82017 2004-02-16  Karl Berry  <karl@gnu.org>
82018
82019         * config/mkinstalldirs, install-sh: update from automake.
82020
82021 2004-02-06  Karl Berry  <karl@gnu.org>
82022
82023         * m4/po.m4: update from gettext 0.14.1.
82024
82025 2004-02-06  Karl Berry  <karl@gnu.org>
82026
82027         * lib/config.charset: update from gettext 0.14.1.
82028
82029 2004-02-05  Paul Eggert  <eggert@twinsun.com>
82030
82031         Add comments and code, prompted by suggestions from Bruno Haible
82032         for sh-quote.
82033         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
82034         describing the enum quoting_style values.
82035         * lib/quotearg.c (quotearg_alloc): New function.
82036         (quotearg_buffer_restyled): Treat lone { and } as special.
82037         Treat = as special.  Work around bug with older shells
82038         that "see" a '\' that is really the 2nd byte of a multibyte char.
82039         Quote empty string with shell_quoting_style.
82040
82041 2004-02-03  Bruno Haible  <bruno@clisp.org>
82042
82043         * m4/pipe.m4: New file, from GNU gettext.
82044
82045 2004-02-03  Bruno Haible  <bruno@clisp.org>
82046
82047         * lib/pipe.h: New file, from GNU gettext.
82048         * lib/pipe.c: New file, from GNU gettext.
82049
82050 2004-01-27  Bruno Haible  <bruno@clisp.org>
82051
82052         * m4/execute.m4: New file, from GNU gettext.
82053
82054 2004-01-27  Bruno Haible  <bruno@clisp.org>
82055
82056         * lib/execute.h: New file, from GNU gettext.
82057         * lib/execute.c: New file, from GNU gettext.
82058         * lib/w32spawn.h: New file, from GNU gettext.
82059
82060 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82061
82062         Merge from diffutils.
82063
82064         * lib/file-type.c (file_type): Add typed memory objects.
82065         * lib/file-type.h (S_TYPEISTMO): New macro.
82066
82067         * lib/c-stack.h (c_stack_action): Remove argv argument.
82068         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
82069         (die): Don't calculate message unless segv_action returns.
82070         (get_stack_location, min_address_from_argv, max_address_from_argv,
82071         volatile stack_base, volatile_stack_size): Remove.
82072         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
82073         that every segmentation violation is a stack overflow.  (Ouch!)
82074         See Debian bug 136249 (still outstanding) for more info about why
82075         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
82076
82077 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82078
82079         Exit-status fix from coreutils.
82080
82081         Use exit_failure consistently in place of EXIT_FAILURE,
82082         so that program exit statuses are consistent on failure.
82083
82084         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
82085         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
82086         * lib/argmatch.h: Comment fix to match the above.
82087         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
82088         Now a macro referring to exit_failure, instead of a separate
82089         variable.  Include "exitfail.h" to get it.
82090         * lib/xstrtol.h: Include "exitfail.h".
82091         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
82092
82093         * lib/long-options.c (parse_long_options): Use prototype
82094         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
82095         for clarity.
82096
82097 2004-01-21  Jim Meyering  <jim@meyering.net>
82098
82099         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
82100         so as not to conflict with a different-sized __mktime_internal
82101         function in GNU libc.
82102         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
82103         Problem building statically-linked `ls' reported by Michael Brunnbauer.
82104
82105 2004-01-20  Karl Berry  <karl@gnu.org>
82106
82107         * config/config.guess: update from config.
82108
82109         * config/srclistvars.sh: GNUWWWLICENSES for karl.
82110
82111 2004-01-20  Bruno Haible  <bruno@clisp.org>
82112
82113         Safer stack allocation.
82114         * lib/setenv.c: Include allocsa.h.
82115         (alloca): Remove fallback definition.
82116         (freea): Remove macro.
82117         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
82118         instead of freea.
82119
82120 2004-01-20  Bruno Haible  <bruno@clisp.org>
82121
82122         * m4/eealloc.m4: New file, from GNU gettext.
82123
82124 2004-01-20  Bruno Haible  <bruno@clisp.org>
82125
82126         * m4/allocsa.m4: New file, from GNU gettext.
82127
82128 2004-01-20  Bruno Haible  <bruno@clisp.org>
82129
82130         * lib/xallocsa.h: New file, from GNU gettext.
82131         * lib/xallocsa.c: New file, from GNU gettext.
82132
82133 2004-01-20  Bruno Haible  <bruno@clisp.org>
82134
82135         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
82136
82137 2004-01-20  Bruno Haible  <bruno@clisp.org>
82138
82139         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
82140         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
82141         specially.
82142
82143 2004-01-20  Bruno Haible  <bruno@clisp.org>
82144
82145         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
82146         patch.
82147
82148 2004-01-20  Bruno Haible  <bruno@clisp.org>
82149
82150         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
82151
82152 2004-01-20  Bruno Haible  <bruno@clisp.org>
82153
82154         * lib/eealloc.h: New file.
82155
82156 2004-01-20  Bruno Haible  <bruno@clisp.org>
82157
82158         * lib/binary-io.h: Avoid warnings on Cygwin.
82159
82160 2004-01-20  Bruno Haible  <bruno@clisp.org>
82161
82162         * lib/allocsa.h: New file, from GNU gettext.
82163         * lib/allocsa.c: New file, from GNU gettext.
82164
82165 2004-01-18  Karl Berry  <karl@gnu.org>
82166
82167         * doc/gpl.texi, doc/lgpl.texi: new files.
82168
82169 2004-01-18  Karl Berry  <karl@gnu.org>
82170
82171         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
82172         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
82173
82174 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82175
82176         Merge from coreutils.
82177
82178         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
82179         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
82180         (gl_DEFAULT_POSIX2_VERSION): Move
82181         the documentation from 'configure' into 'config.hin',
82182         so that 'configure --help' isn't burdened by it and
82183         we don't have to worry about its formatting there.
82184         Reword the documentation so that it's more succinct
82185         and can be run together into a single paragraph.
82186         * m4/same.m4 (gl_SAME): Check for pathconf.
82187
82188 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82189
82190         Merge from coreutils.
82191
82192         * lib/posixver.c: Include posixver.h.
82193
82194         * lib/same.c: Include <stdbool.h>, <limits.h>.
82195         (_POSIX_NAME_MAX): Define if not defined.
82196         (MIN): New macro.
82197         (same_name): If file names are silently truncated, report
82198         that the file names are the same if they are the same after
82199         the silent truncation.
82200
82201         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
82202         conversion function.
82203         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
82204         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
82205         longer needed.
82206
82207 2004-01-15  Jim Meyering  <jim@meyering.net>
82208
82209         Merge from coreutils.
82210
82211         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
82212         if no library is required.
82213         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
82214         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
82215         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
82216         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
82217         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
82218         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
82219         value, $ac_cv_search_crypt, if it's "none required".
82220         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
82221         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
82222         not gl_FUNC_GETLOADAVG.
82223         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
82224         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
82225
82226 2004-01-15  Jim Meyering  <jim@meyering.net>
82227
82228         Merge from coreutils.
82229
82230         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
82231         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
82232         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
82233
82234         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
82235         optional configure-time default.
82236
82237         * lib/version-etc.c (version_etc_copyright): Update copyright date.
82238
82239         * lib/xreadlink.c (xreadlink): Correct outdated comment.
82240
82241 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
82242
82243         Merge from coreutils.
82244
82245         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
82246         value, $ac_cv_search_nanosleep, if it's "none required".
82247
82248 2004-01-14  Paul Eggert  <eggert@twinsun.com>
82249
82250         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
82251         with like-named macro in fnmatch.c.
82252         (EXT): Use an internal constant instead.
82253
82254         Merge fnmatch patches from glibc.
82255         * lib/fnmatch.c (mbsinit): Remove define.
82256         Add libc_hidden_ver (__fnmatch, fnmatch).
82257         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
82258         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
82259
82260 2004-01-14  Karl Berry  <karl@gnu.org>
82261
82262         * config/install-sh: update from automake.
82263
82264 2004-01-13  Karl Berry  <karl@gnu.org>
82265
82266         * config/install-sh: update from automake.
82267
82268 2004-01-09  Karl Berry  <karl@gnu.org>
82269
82270         * config/install-sh: update from automake.
82271
82272 2004-01-05  Karl Berry  <karl@gnu.org>
82273
82274         * config/config.{sub,guess}: update from config.
82275
82276 2003-12-31  Karl Berry  <karl@gnu.org>
82277
82278         * config/depcomp: update from automake.
82279
82280 2003-12-14  Karl Berry  <karl@gnu.org>
82281
82282         * lib/config.charset: update from gettext-runtime.
82283
82284 2003-12-03  Paul Eggert  <eggert@twinsun.com>
82285
82286         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
82287         Bug reported by Alfred M. Szmidt.
82288
82289 2003-12-03  Bruno Haible  <bruno@clisp.org>
82290
82291         * m4/gettext.m4: Upgrade from gettext-0.13.
82292         * m4/po.m4: Upgrade from gettext-0.13.
82293         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
82294         * m4/intmax.m4: New file, from gettext-0.13.
82295         * m4/printf-posix.m4: New file, from gettext-0.13.
82296
82297 2003-11-29  Karl Berry  <karl@gnu.org>
82298
82299         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
82300
82301 2003-11-25  Paul Eggert  <eggert@twinsun.com>
82302             Bruno Haible  <bruno@clisp.org>
82303
82304         * lib/printf-parse.h: Don't include sys/types.h.
82305         (ARG_NONE): New macro.
82306         (char_directive): Change type of *arg_index fields to size_t.
82307         * lib/printf-parse.c: Don't include sys/types.h.
82308         (SSIZE_MAX): Remove macro.
82309         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
82310         Remove unnecessary overflow check.
82311         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
82312         fields.
82313
82314 2003-11-25  Bruno Haible  <bruno@clisp.org>
82315
82316         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
82317
82318 2003-11-25  Bruno Haible  <bruno@clisp.org>
82319
82320         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
82321         gt_TYPE_SSIZE_T.
82322
82323 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82324
82325         * modules/alloca: Remove dependency on xalloc.
82326
82327 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82328
82329         * lib/alloca.c: Remove dependency on xalloc module.
82330         (xalloc_die): Remove.
82331         (memory_full) [!defined emacs]: New macro.
82332         [!defined emacs]: Don't include xalloc.h.
82333         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
82334         address arithmetic overflows.  Change datatypes a bit to avoid
82335         unnecessary casts.
82336
82337 2003-11-22  Jim Meyering  <jim@meyering.net>
82338
82339         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
82340         s/size/size_t/.
82341
82342 2003-11-21  Karl Berry  <karl@gnu.org>
82343
82344         * config/config.{sub,guess}: update from config.
82345
82346 2003-11-18  Karl Berry  <karl@gnu.org>
82347
82348         * config/config.{sub,guess}: update from config.
82349
82350         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
82351
82352 2003-11-17  Paul Eggert  <eggert@twinsun.com>
82353
82354         * README: Mention that S+T cannot overflow if S is the size of
82355         an existing object and T is sufficiently small.
82356
82357 2003-11-17  Jim Meyering  <jim@meyering.net>
82358
82359         On systems without utime and without a utimes function capable of
82360         dealing with a NULL struct utimbuf* argument, this utime replacement
82361         could -- in unusual circumstances -- leak a file descriptor.
82362         * lib/utime.c: Include <unistd.h> and <errno.h>.
82363         (utime_null): Be sure to close `fd' and to preserve errno.
82364         Reported by Geoff Collyer via Arnold Robbins.
82365
82366 2003-11-17  Bruno Haible  <bruno@clisp.org>
82367
82368         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
82369         (Depends-on): Add xsize.
82370
82371 2003-11-17  Bruno Haible  <bruno@clisp.org>
82372
82373         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
82374
82375 2003-11-17  Bruno Haible  <bruno@clisp.org>
82376
82377         * lib/vasnprintf.c (alloca): Remove fallback definition.
82378         (freea): Remove definition.
82379         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
82380         Reported by Paul Eggert.
82381
82382 2003-11-16  Paul Eggert  <eggert@twinsun.com>
82383             Bruno Haible  <bruno@clisp.org>
82384
82385         Protect against address arithmetic overflow.
82386         * lib/printf-args.h: Include stddef.h.
82387         (arguments): Change type of field 'count' to size_t.
82388         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
82389         'unsigned int' where appropriate.
82390         * lib/printf-parse.h: Include sys/types.h.
82391         (char_directive): Change type of *arg_index fields to ssize_t.
82392         (char_directives): Change type of fields 'count', max_*_length to
82393         size_t.
82394         * lib/printf-parse.c: Include sys/types.h and xsize.h.
82395         (SSIZE_MAX): Define fallback value.
82396         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
82397         instead of 'int' where appropriate. Check a_allocated, d_allocated
82398         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
82399         * lib/vasnprintf.c: Include xsize.h.
82400         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
82401         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
82402         overflow. Avoid wraparound when converting a width or precision from
82403         decimal to binary.
82404
82405 2003-11-16  Bruno Haible  <bruno@clisp.org>
82406
82407         Update from GNU gettext.
82408         * lib/printf-parse.c: Generalize to it can be compiled for wide
82409         strings.
82410         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
82411         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
82412         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
82413         SNPRINTF): New macros.
82414         Don't include <alloca.h> if the file is used inside libintl.
82415         (local_wcslen): New function, for Solaris 2.5.1.
82416         (VASNPRINTF): Use it instead of wcslen.
82417
82418 2003-11-16  Bruno Haible  <bruno@clisp.org>
82419
82420         * lib/xsize.h (xmax): New function.
82421         (xsum, xsum3, xsum4): Declare as "pure" functions.
82422
82423 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82424
82425         * modules/xalloc (Files): Undo latest change, since xalloc.h
82426         no longer needs SIZE_MAX or PTRDIFF_MAX.
82427
82428 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82429
82430         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
82431         gl_PTRDIFF_MAX.
82432
82433 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82434
82435         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
82436         "return", to pacify some unknown compiler.  Problem reported
82437         by Joerg Schilling.
82438
82439 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82440
82441         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
82442         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
82443         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
82444         heuristic is just as accurate as far as we know, and it removes a
82445         dependency on size_max.m4 and ptrdiff_max.m4.
82446
82447 2003-11-11  Bruno Haible  <bruno@clisp.org>
82448
82449         * modules/xsize (Files): Add m4/size_max.m4.
82450         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
82451
82452 2003-11-11  Bruno Haible  <bruno@clisp.org>
82453
82454         * m4/size_max.m4: New file.
82455         * m4/ptrdiff_max.m4: New file.
82456         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
82457         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
82458         (gl_XALLOC): Invoke it.
82459
82460 2003-11-11  Bruno Haible  <bruno@clisp.org>
82461
82462         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
82463         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
82464         defined.
82465
82466 2003-11-10  Paul Eggert  <eggert@twinsun.com>
82467
82468         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
82469         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
82470         rejected some allocations of exactly SIZE_MAX - 2 bytes.
82471         From Bruno Haible.
82472         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
82473         not (size_t) -1, since it's defined here.
82474
82475 2003-11-09  Karl Berry  <karl@gnu.org>
82476
82477         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
82478
82479 2003-11-06  Paul Eggert  <eggert@twinsun.com>
82480
82481         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
82482         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
82483         Reject sizes of exactly SIZE_MAX bytes.
82484         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
82485         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
82486
82487 2003-11-05  Bruno Haible  <bruno@clisp.org>
82488
82489         * lib/xsize.h: Include limits.h, to avoid a possible collision with
82490         SIZE_MAX defined in <limits.h> on Solaris.
82491
82492 2003-11-04  Jim Meyering  <jim@meyering.net>
82493
82494         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
82495         variable names, rather than @VAR@.
82496         * modules/poll: Likewise.
82497
82498 2003-11-04  Bruno Haible  <bruno@clisp.org>
82499
82500         * modules/xsize: New file.
82501         * modules/linebreak: Depend on xsize.
82502         * MODULES.html.sh (func_all_modules): Add xsize.
82503
82504 2003-11-04  Bruno Haible  <bruno@clisp.org>
82505
82506         * m4/xsize.m4: New file.
82507
82508 2003-11-04  Bruno Haible  <bruno@clisp.org>
82509
82510         * lib/xsize.h: New file.
82511         * lib/linebreak.c: Include xsize.h.
82512         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
82513         argument for overflow.
82514         Suggested by Paul Eggert.
82515
82516 2003-11-03  Karl Berry  <karl@gnu.org>
82517
82518         * config/config.{guess,sub}: update from config.
82519
82520 2003-11-03  Jim Meyering  <jim@meyering.net>
82521
82522         * modules/userspec (lib_SOURCES): Add userspec.h.
82523         (Include): Add "userspec.h".
82524         Improve description.
82525
82526 2003-11-03  Jim Meyering  <jim@meyering.net>
82527
82528         * lib/userspec.c: Include "userspec.h".
82529         * lib/userspec.h: New file.
82530
82531 2003-11-03  Bruno Haible  <bruno@clisp.org>
82532
82533         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
82534
82535 2003-11-03  Bruno Haible  <bruno@clisp.org>
82536
82537         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
82538         available, to avoid (extremely rare) race condition.
82539         Suggested by Paul Eggert.
82540
82541 2003-11-02  Karl Berry  <karl@gnu.org>
82542
82543         * config/srclist.txt (vasprintf.c): sync broken, sigh.
82544
82545 2003-10-31  Paul Eggert  <eggert@twinsun.com>
82546
82547         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
82548         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
82549         (read_filesystem_list): Set and use me_type_malloced.
82550         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
82551         whatever the type happens to be), for brevity and consistency.
82552         Check for size calculation overflow on Alphas running OSF/1.
82553
82554 2003-10-31  Jim Meyering  <jim@meyering.net>
82555
82556         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
82557
82558         * lib/linebuffer.c: Include <string.h> for declaration of memset.
82559
82560 2003-10-30  Paul Eggert  <eggert@twinsun.com>
82561             Bruno Haible  <bruno@clisp.org>
82562
82563         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
82564         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
82565
82566 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82567
82568         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
82569         netbsd*-gnu*.  Suggested by Robert Millan.
82570
82571 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82572
82573         * modules/group-member: Depend on stdbool.
82574
82575 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82576
82577         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
82578
82579 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82580
82581         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
82582         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
82583         after the 'gnu' in these cases.  This fixes some bugs in the
82584         previous change, and is based on suggestions by Robert Millan.
82585
82586 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82587
82588         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
82589         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
82590         no longer needed.
82591         * lib/quotearg.c (quotearg_n_options): Use it.
82592         * lib/group-member.c: Include <stdbool.h>.
82593         (free_group_info): Arg is now const *; don't free arg.
82594         (get_group_info): Now returns bool and accepts struct group_info *,
82595         rather than returning a malloc'ed struct group_info *.
82596         All uses changed.  Check for overflow in internal size calculation.
82597
82598         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
82599         rather than xmalloc/xrealloc.
82600         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
82601         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
82602         conformance bug: the old code used a pointer after freeing the
82603         storage that it addressed.
82604         * lib/hash.c (hash_initialize): Simplify the code by using
82605         xalloc_oversized rather than doing it by hand.
82606         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
82607         the buffer preserved.  Use free and xmalloc instead.
82608         * lib/quotearg.c (quotearg_n_options): Likewise.
82609         Use a simpler test for size overflow.  Don't use xalloc_oversized
82610         because unsigned int might be wider than size_t (!); this suggests
82611         that we should switch from unsigned int to size_t for slot numbers.
82612
82613 2003-10-28  Paul Eggert  <eggert@twinsun.com>
82614
82615         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
82616         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
82617         NetBSD kernels.  Requested by Richard Stallman.
82618
82619 2003-10-27  Paul Eggert  <eggert@twinsun.com>
82620
82621         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
82622         to allocate the returned structure.  Do not allocate a subarray,
82623         as x2nrealloc will do that.
82624         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
82625         instead of xnrealloc.
82626         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
82627
82628 2003-10-27  Bruno Haible  <bruno@clisp.org>
82629
82630         * lib/stdbool_.h: Better support for BeOS.
82631
82632 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82633
82634         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
82635         now uses inline.
82636
82637 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82638
82639         * lib/xalloc.h (xalloc_oversized): New static inline function, for
82640         callers that want to do their own size-overflow checking.  Include
82641         <stdbool.h>, since xalloc_oversized returns bool.
82642         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
82643         to use xalloc_oversized.
82644
82645         Add two functions x2realloc, x2nrealloc, for programs that grow
82646         arrays dynamically by doubling their sizes.
82647         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
82648         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
82649         New functions.
82650
82651         Port to C99 semantics for 'inline' of external functions.
82652         Bug reported by Bruno Haible.
82653         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
82654         with the old contents of xnmalloc.
82655         (xnmalloc, xmalloc): Use it.
82656         (xnrealloc_inline): New static inline function,
82657         with the old contents of xnrealloc.
82658         (xnrealloc, xrealloc): Use it.
82659
82660         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
82661         that.
82662
82663 2003-10-26  Karl Berry  <karl@gnu.org>
82664
82665         * config/srclist.txt (COPYING.DOC): no longer available from
82666         /gd/gnuorg; don't know where the ultimate source is.
82667
82668 2003-10-25  Paul Eggert  <eggert@twinsun.com>
82669
82670         Fix several address-calculation bugs in the hash modules,
82671         plus some minor code cleanup.
82672
82673         * lib/hash.h: Include <stdbool.h>, for bool.
82674         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
82675         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
82676         hash_get_n_entries, hash_get_max_bucket_length,
82677         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
82678         hash_rehash): Use size_t rather than unsigned.
82679         * lib/hash.c (struct hash_table, hash_get_n_buckets,
82680         hash_get_n_buckets_used, hash_get_n_entries,
82681         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
82682         hash_get_entries, hash_do_for_each, hash_string, is_prime,
82683         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
82684         Likewise.
82685         (SIZE_MAX): Define if not defined.
82686         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
82687         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
82688         hash_print):
82689         Use const * when possible.
82690         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
82691         (check_tuning): Fix bug: if tuning parameters were very close to
82692         0 or 1, rounding errors could have caused subscript violations.
82693         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
82694         (hash_initialize): Add 'fail:' label
82695         to free table and return NULL, and use it to simplify code.
82696         Use calloc rather than clearing the storage ourself.
82697         (hash_initialize, hash_rehash): Check for arithmetic overflow in
82698         buffer size calculations.
82699         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
82700         Include <stddef.h>, for size_t.
82701         * lib/hash-pjw.c (hash_pjw): Likewise.
82702         Switch to method described by Bruno Haible.
82703         Include <limits.h>, for CHAR_BIT.
82704         (SIZE_BITS): New macro.
82705
82706 2003-10-23  Paul Eggert  <eggert@twinsun.com>
82707
82708         * m4/getline.m4 (AM_FUNC_GETLINE):
82709         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
82710         hosts.  Problem reported by Derek Robert Price in
82711         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
82712         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
82713         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
82714
82715 2003-10-21  Paul Eggert  <eggert@twinsun.com>
82716
82717         * lib/getndelim2.c (getndelim2): When size calculation overflows,
82718         ceiling the allocation at NMAX bytes rather than silently
82719         discarding input bytes before NMAX is reached.  This makes
82720         a difference only if NMAX exceeds SIZE_MAX / 2.
82721
82722         * lib/obstack.c: Merge from glibc.
82723         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
82724         Add libc_hidden_def (_obstack_newchunk).
82725         (_obstack_free) [! defined _LIBC]: Remove.
82726         [defined _LIBC]: Make a strong alias from obstack_free, rather than
82727         a clone of the function body.
82728         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
82729         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
82730
82731         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
82732         glibc.
82733         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
82734         arg to memcpy.
82735
82736         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
82737         (obstack_ptr_grow_fast, obstack_int_grow_fast):
82738         Don't use lvalue casts, as GCC plans to remove support for them
82739         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
82740         was also present in the non-GCC version, indicating that this
82741         code had always been buggy and had never been widely used.
82742         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
82743         Use the fast variant of each macro, rather than copying the
82744         definiens of the fast variant; that way, we'll be more likely to
82745         catch future bugs in the fast variants.
82746
82747 2003-10-20  Bruno Haible  <bruno@clisp.org>
82748
82749         * modules/wait-process: New file.
82750         * MODULES.html.sh (func_all_modules): Add wait-process.
82751
82752 2003-10-20  Bruno Haible  <bruno@clisp.org>
82753
82754         * m4/wait-process.m4: New file.
82755
82756 2003-10-20  Bruno Haible  <bruno@clisp.org>
82757
82758         * lib/wait-process.h: New file, from GNU gettext.
82759         * lib/wait-process.c: New file, from GNU gettext.
82760
82761 2003-10-19  Jim Meyering  <jim@meyering.net>
82762
82763         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
82764         HPUX 10.20.
82765
82766 2003-10-18  Karl Berry  <karl@gnu.org>
82767
82768         * config/config.guess: update from config.
82769
82770 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82771
82772         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
82773         (getgroups): First arg is int, not size_t.
82774         Don't let 'free' mangle errno.
82775
82776 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82777
82778         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
82779
82780 2003-10-16  Karl Berry  <karl@gnu.org>
82781
82782         * config/config.{guess,sub}: update from config.
82783
82784 2003-10-16  Jim Meyering  <jim@meyering.net>
82785
82786         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
82787         memcpy.
82788
82789 2003-10-15  Paul Eggert  <eggert@twinsun.com>
82790
82791         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
82792         (SIZE_MAX): Remove.
82793         (new_exclude, add_exclude_file): Initial size no longer needs to
82794         be a power of 2.
82795         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
82796         our own address arithmetic overflow checking.
82797
82798         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
82799         (fnmatch): Do not alloca more than 2000 wide characters;
82800         instead, use malloc for large buffers.
82801         Check for address arithmetic overflow, and return -1
82802         with errno set to ENOMEM in that case.
82803         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
82804         (NEW_PATTERN): Do not alloca more than 8000 bytes;
82805         instead, return -1.  Check for address arithmetic overflow.
82806
82807 2003-10-14  Paul Eggert  <eggert@twinsun.com>
82808
82809         Handle invalid suffixes and overflow independently, so that
82810         callers can treat them independently as needed.  Fix some bugs in
82811         suffix handling, e.g., "100k@" was not diagnosed as an invalid
82812         suffix for a human-readable blocksize.  The major caller-visible
82813         change is the addition of a new
82814         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
82815         that both overflow and suffix chars were found.
82816
82817         * lib/human.c (humblock): Don't check separately for invalid suffix
82818         char; that is xstrtoumax's job (now that its bug is fixed).
82819         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
82820         INTMAX_MAX]: New macros.
82821         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
82822         TYPE_MAXIMUM): New macros.
82823         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
82824         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
82825         if overflow occurs, as it's what __strtol does and it's more useful
82826         in practice.
82827         (__xstrtol): If __strtol reports some error other than ERANGE,
82828         reflect it to the caller as LONGINT_INVALID.  If it reports
82829         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
82830         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
82831         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
82832         value.
82833         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
82834         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
82835         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
82836         [defined UINTMAX_MAX]: New macros.
82837
82838 2003-10-14  Bruno Haible  <bruno@clisp.org>
82839
82840         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
82841
82842 2003-10-14  Bruno Haible  <bruno@clisp.org>
82843
82844         * m4/sig_atomic_t: New file, from GNU gettext.
82845         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
82846
82847 2003-10-14  Bruno Haible  <bruno@clisp.org>
82848
82849         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
82850         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
82851         Also use volatile where needed.
82852
82853 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82854
82855         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
82856         Change maintainer from Bruno Haible to 'all'.
82857
82858 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82859
82860         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
82861
82862 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82863
82864         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
82865         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
82866         and define in terms of the other primitives.
82867         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
82868         (SIZE_MAX): Define if not already defined.
82869         (array_size_overflow): New function.
82870         (xalloc_die): Abort instead of exiting if 'error' returns.
82871         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
82872         (xmalloc, xrealloc): Use them.
82873         (xcalloc): Check for address arithmetic overflow.
82874         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
82875         a bit faster than strcpy.
82876
82877 2003-10-10  Simon Josefsson  <jas@extundo.com>
82878
82879         * modules/argp (Depends-on): Add restrict and strcase.
82880
82881 2003-10-10  Simon Josefsson  <jas@extundo.com>
82882
82883         * m4/argp.m4: Add AC_C_INLINE.
82884
82885 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82886
82887         Merge getpass from libc, plus a few fixes.
82888
82889         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
82890         Include <stdbool.h>.
82891         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
82892         __fsetlocking to empty.
82893         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
82894         do include <bits/libc-lock.h>.
82895         Do not include <fcntl.h>; not needed.
82896         [_LIBC]: Include <wchar.h>.
82897         (NOTCANCEL_MODE): New macro.
82898         (flockfile, funlockfile) [_LIBC]: New macros.
82899         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
82900         [!_LIBC]: New macros.
82901         (call_fclose): New function.
82902         (getpass): Use it.  Save tty stream separately; this simplifies the
82903         code and makes it more reliable if stdin happens to equal stdout.
82904         Invoke __fsetlocking on tty.
82905         Handle thread cancellation if needed.
82906         Namespace cleanup (use __tcgetattr, __getline).
82907         Use bool for Booleans.
82908         [USE_IN_LIBIO]: Handle wide streams.
82909         [!_LIBC]: Unconditionally do the fseek, since we don't know what
82910         stream might go where.
82911
82912         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
82913         doesn't have to include <stdio.h> before us.
82914         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
82915         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
82916         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
82917         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
82918         if not declared, so that we can use getpass.c code from libc without
82919         rewriting it.
82920         (flockfile, ftrylockfile, funlockfile): New macros.
82921
82922 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82923
82924         * modules/getpass: Depend on stdbool.
82925
82926 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82927
82928         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
82929
82930 2003-10-07  Karl Berry  <karl@gnu.org>
82931
82932         * config/config.{guess,sub}: update from config.
82933
82934 2003-10-06  Jim Meyering  <jim@meyering.net>
82935             Bruno Haible  <bruno@clisp.org>
82936
82937         This lets translators provide better translations for the
82938         "Written by ..." part of --version output.
82939         * lib/version-etc.h: Include stdarg.h.
82940         (version_etc_copyright): Declare as readonly.
82941         (version_etc): Make this function variadic with a NULL-terminated list
82942         of author name strings.
82943         (version_etc_va): New declaration.
82944         * lib/version-etc.c: Include stdarg.h, stdlib.h.
82945         (version_etc_copyright): Declare as readonly.
82946         (version_etc_va): New function. Provide a different translatable string
82947         for each possible number of authors < 10. Abbreviate when there are 10
82948         authors or more.
82949         (version_etc): Make this function variadic. Call version_etc_va.
82950         Suggestion from Gary V. Vaughan.
82951
82952         * lib/long-options.h (parse_long_options): Change prototype: the
82953         authors string is moved to the end and becomes variadic.
82954         * lib/long-options.c: Include stdarg.h.
82955         (parse_long_options): Make this function variadic, too.
82956         Call version_etc_va, not version_etc.
82957
82958 2003-10-06  Bruno Haible  <bruno@clisp.org>
82959
82960         * modules/version-etc-2: Remove file.
82961         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
82962
82963 2003-10-06  Bruno Haible  <bruno@clisp.org>
82964
82965         * modules/fatal-signal: New file.
82966         * MODULES.html.sh (func_all_modules): Add fatal-signal.
82967
82968 2003-10-06  Bruno Haible  <bruno@clisp.org>
82969
82970         * m4/fatal-signal.m4: New file.
82971         * m4/signalblocking.m4: New file, from GNU gettext.
82972
82973 2003-10-06  Bruno Haible  <bruno@clisp.org>
82974
82975         * lib/version-etc-2.h: Remove file.
82976         * lib/version-etc-2.c: Remove file.
82977
82978 2003-10-06  Bruno Haible  <bruno@clisp.org>
82979
82980         * lib/fatal-signal.h: New file, from GNU gettext.
82981         * lib/fatal-signal.c: New file, from GNU gettext.
82982
82983 2003-10-05  Paul Eggert  <eggert@twinsun.com>
82984
82985         * README: Rework advice for preventing empty .o files.
82986         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
82987         not <sys/types.h>.
82988
82989 2003-10-04  Karl Berry  <karl@gnu.org>
82990
82991         * lib/argp*: update from libc.
82992
82993 2003-10-04  Karl Berry  <karl@gnu.org>
82994
82995         * config/config.{guess,sub}: update from config.
82996
82997 2003-10-02  Bruno Haible  <bruno@clisp.org>
82998
82999         * modules/lchown (Include): Add lchown.h.
83000         * modules/time_r (Include): Use "..." syntax.
83001         * modules/xgetdomainname (Include): Add xgetdomainname.h.
83002
83003 2003-10-01  Simon Josefsson  <jas@extundo.com>
83004
83005         * MODULES.html.sh (func_all_modules): Move gethostname from section
83006         'based on' to section 'lacking' POSIX:2001.
83007
83008 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
83009
83010         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
83011         to output mode on the same stream.
83012
83013 2003-09-29  Paul Eggert  <eggert@twinsun.com>
83014
83015         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
83016         Fix arg typo in previous patch.
83017
83018 2003-09-28  Jim Meyering  <jim@meyering.net>
83019
83020         * lib/error.c: Correct cpp indentation.
83021
83022 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83023
83024         * modules/free: New file.
83025
83026 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83027
83028         * m4/free.m4: New file.
83029
83030 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83031
83032         * lib/minmax.h (MIN, MAX)
83033         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
83034         Omit the special code that used __typeof__, since we worry that
83035         it could be more trouble than it's worth.  See:
83036         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
83037         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
83038
83039         * lib/free.c: New file.
83040
83041 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
83042
83043         Trivial fixes to Makefile.am parts of module listings.
83044         * modules/strstr: Append strstr.h to lib_SOURCES.
83045         * modules/strcase: Likewise, for strcase.h.
83046
83047 2003-09-27  Karl Berry  <karl@gnu.org>
83048
83049         * config/mkinstalldirs: update from automake.
83050
83051 2003-09-26  Paul Eggert  <eggert@twinsun.com>
83052
83053         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
83054         (error_tail): Do not loop, reallocating temporary buffer, since
83055         the output cannot contain more wide characters than the input
83056         contains bytes, the size must be big enough already.  This avoids
83057         one potential size overflow calculation.  Check for size overflow
83058         when calculating temporary buffer size.  Free temporary buffer
83059         when done, if it was allocated with malloc; this plugs a memory
83060         leak.  Remove casts from void * to pointers, that are no longer
83061         needed now that we're assuming C89 or better.
83062
83063         Merge error changes from glibc.
83064
83065         * lib/error.c, error.h: Update copyright notice header to match glibc.
83066         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
83067         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
83068         Disable cancellation while printing error.
83069         * lib/error.h: Prepend __ to parameter names.
83070
83071 2003-09-26  Jim Meyering  <jim@meyering.net>
83072
83073         * lib/error.c (error_tail): Move some declarations
83074         into inner scope where the local variables are used.
83075
83076 2003-09-26  Bruno Haible  <bruno@clisp.org>
83077
83078         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
83079         stpncpy().
83080         Don't define stpncpy through config.h; it's now done through stpncpy.h.
83081
83082 2003-09-26  Bruno Haible  <bruno@clisp.org>
83083
83084         * lib/stpncpy.h (gnu_stpncpy): New declaration.
83085         (stpncpy): Define as alias for gnu_stpncpy.
83086         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
83087
83088 2003-09-25  Simon Josefsson  <jas@extundo.com>
83089
83090         * lib/xgetdomainname.h: New file.
83091         * lib/xgetdomainname.c: New file.
83092
83093 2003-09-25  Simon Josefsson  <jas@extundo.com>
83094             Bruno Haible  <bruno@clisp.org>
83095
83096         * modules/getdomainname: New file.
83097         * modules/xgetdomainname: New file.
83098         * MODULES.html.sh (func_all_modules): Add getdomainname,
83099         xgetdomainname.
83100
83101 2003-09-25  Simon Josefsson  <jas@extundo.com>
83102             Bruno Haible  <bruno@clisp.org>
83103
83104         * m4/getdomainname.m4: New file.
83105
83106 2003-09-25  Simon Josefsson  <jas@extundo.com>
83107             Bruno Haible  <bruno@clisp.org>
83108
83109         * lib/getdomainname.h: New file.
83110         * lib/getdomainname.c: New file.
83111
83112 2003-09-25  Karl Berry  <karl@gnu.org>
83113
83114         * lib/argp-fmtstream.c, argp-help.c: update from libc.
83115
83116 2003-09-25  Karl Berry  <karl@gnu.org>
83117
83118         * config/install-sh: update from automake.
83119
83120 2003-09-25  Bruno Haible  <bruno@clisp.org>
83121
83122         * modules/version-etc-2: New file, from modules/version-etc with
83123         modifications.
83124         * MODULES.html.sh (func_all_modules): Add version-etc-2.
83125
83126 2003-09-25  Bruno Haible  <bruno@clisp.org>
83127
83128         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
83129         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
83130
83131 2003-09-24  Simon Josefsson  <jas@extundo.com>
83132
83133         * modules/xgethostname: Add xgethostname.h.
83134
83135 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83136
83137         * lib/linebuffer.c (freebuffer): Don't free the argument, just
83138         the buffer associated with the argument.  Bug reported by
83139         Simon Josefsson.
83140
83141 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83142
83143         * README: Document assumptions that 'int' is at least 32 bits
83144         wide, that integer arithmetic is 2's complement without overflow,
83145         that there are no holes in integer values, that adding sizes of
83146         two nonoverlapping objects can't overflow, and that all-bits-zero
83147         yields scalar zero.  Fix spelling and capitalization typos.
83148
83149 2003-09-19  Karl Berry  <karl@gnu.org>
83150
83151         * lib/argp.h: update from libc.
83152
83153 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83154
83155         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
83156         to avoid spurious warnings like "AC_RUN_IFELSE was called before
83157         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
83158
83159 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83160
83161         * gnulib-tool: Use "test -h", not "test -L", for portability
83162         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
83163         (tags_regexp): Remove, since \| doesn't conform to POSIX.
83164         (sed_extract_prog): Issue s commands one-by-one, rather than
83165         using \| in one s command.
83166
83167 2003-09-16  Paul Eggert  <eggert@twinsun.com>
83168
83169         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
83170         input error, instead of returning NULL the next time we are called
83171         (and therefore losing track of errno).
83172
83173 2003-09-16  Bruno Haible  <bruno@clisp.org>
83174
83175         * gnulib-tool (func_create_testdir): Warn about duplicated
83176         dependencies.
83177
83178 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83179
83180         * modules/argmatch, modules/fatal, modules/obstack,
83181         modules/xalloc, modules/xgethostname: Sort dependencies by
83182         importance, not alphabetically.
83183
83184 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83185
83186         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
83187         fails, so that the caller gets the proper errno.
83188
83189         * lib/readutmp.c (read_utmp): Likewise.
83190         Check for fstat error.  Close stream and free storage
83191         when failing.
83192
83193 2003-09-14  Karl Berry  <karl@gnu.org>
83194
83195         * config/srclist.txt (strdup.c): disable for c89 changes.
83196
83197 2003-09-14  Jim Meyering  <jim@meyering.net>
83198
83199         * lib/getloadavg.c: Correct cpp indentation.
83200         * lib/strdup.c: Likewise.
83201         * lib/vasnprintf.c: Likewise.
83202
83203 2003-09-14  Bruno Haible  <bruno@clisp.org>
83204
83205         * modules/fwriteerror: New file.
83206         * MODULES.html.sh (func_all_modules): Add fwriteerror.
83207
83208 2003-09-14  Bruno Haible  <bruno@clisp.org>
83209
83210         * lib/fwriteerror.h: New file.
83211         * lib/fwriteerror.c: New file.
83212
83213 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83214
83215         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
83216         modules/xgethostname, modules/xalloc: Depend on exit.
83217
83218 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83219
83220         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
83221
83222         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
83223         and AC_MINIX, too, so that their extensions are available.
83224
83225         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
83226         This macro has been superseded by gl_BACKUPFILE.
83227
83228         More patches to assume C89 or better.
83229
83230         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
83231
83232         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
83233         unconditionally.
83234         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
83235         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
83236         Include <string.h>, <stdlib.h> unconditionally.
83237         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
83238         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
83239         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
83240         headers or for string.h.
83241         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
83242         or strtoul.
83243
83244         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
83245         headers.
83246         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
83247         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83248         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
83249         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
83250         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83251         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
83252         memcpy, memset.
83253         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
83254         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
83255         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
83256         strtol.
83257         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
83258         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
83259         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
83260         strtoul.
83261
83262 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83263
83264         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
83265         * lib/obstack.c [!defined _LIBC]: Likewise.
83266         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
83267         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
83268         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
83269
83270         More changes to assume C89 or better.
83271
83272         * lib/error.c (error_tail): Assume vprintf.
83273
83274         * lib/argmatch.c (getenv): Remove decl.
83275         * lib/progreloc.c (get_full_program_name): Define via prototype.
83276         * lib/setenv.c (clearenv): Likewise.
83277         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
83278         needed.
83279         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
83280         (malloc, memcpy): Remove decls.
83281         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
83282         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
83283         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83284         (memcpy): Remove macro.
83285         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
83286         (__P): Remove.  All uses removed.
83287         (PTR): Remove.  All uses changed to void *.
83288         (CHAR_BIT, NULL): Remove.
83289         (spaces, zeros, memset_space, memset_zero)
83290         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
83291         Remove.
83292         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
83293         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
83294         Define with prototype.
83295         Remove now-unnecessary prototype decl.
83296         (extra_args_spec): Assume ANSI C.  All uses changed.
83297         (extra_args_spec_iso): Remove.
83298         (my_strftime, emacs_strftimeu): Define via prototype.
83299         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
83300         unconditionally.
83301         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
83302         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
83303         (strtoul, strtol): Remove decls.
83304         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
83305         LONG_MAX): Remove.
83306         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83307         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
83308         (LOCALE_PARAM_PROTO): New macro.
83309         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
83310         (INTERNAL (strtol), strtol): Define with a prototype.
83311         (PARAMS): Remove.  All uses removed.
83312         * lib/tempname.c: Include <string.h> unconditionally.
83313         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
83314         * lib/xgethostname.c (main): Define with a prototype.
83315         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
83316         Include <stdlib.h> unconditionally.
83317         (calloc, malloc, realloc, free): Remove decls.
83318         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
83319         Include <stdlib.h> unconditionally.  Sort include file names.
83320         (strtod): Remove.
83321         (xstrtod): Define with a prototype.
83322         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
83323         (strtol, strtoul): Remove decls.
83324
83325 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83326
83327         More patches to assume C89 or better.
83328         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
83329         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
83330         string.h, memchr, STDC_HEADERS.
83331
83332 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83333
83334         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
83335         Include <stdlib.h>, <string.h> unconditionally.
83336         Remove now-unnecessary cast to char *.
83337         * lib/strnlen.c: Include <string.h> unconditionally.
83338         * lib/yesno.c (yesno): Define with a prototype.
83339
83340 2003-09-11  Bruno Haible  <bruno@clisp.org>
83341
83342         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
83343
83344 2003-09-10  Jim Meyering  <jim@meyering.net>
83345
83346         * lib/error.c: Correct indentation of cpp directives.
83347
83348 2003-09-10  Bruno Haible  <bruno@clisp.org>
83349
83350         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
83351         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
83352         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
83353         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
83354         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
83355         <stdlib.h> and <string.h> checks.
83356         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
83357         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
83358
83359 2003-09-10  Bruno Haible  <bruno@clisp.org>
83360
83361         * lib/strcspn.c: Include <string.h> unconditionally.
83362         * lib/strpbrk.c: Include <string.h> unconditionally.
83363         * lib/strstr.c: Include <string.h> unconditionally.
83364         * lib/unicodeio.c: Include <string.h> unconditionally.
83365         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
83366         * lib/unsetenv.c: Likewise.
83367         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
83368         * lib/yesno.c: Include <stdlib.h> unconditionally.
83369         (rpmatch): Add prototype.
83370
83371 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83372
83373         More patches to assume C89 or better.
83374         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
83375         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
83376         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
83377         or for string.h.
83378         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
83379         stdlib.h.
83380         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
83381         C headers.
83382         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
83383         string.h.
83384         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
83385         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
83386         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
83387         or for string.h.
83388         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
83389         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
83390         C headers.
83391         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
83392         memcpy.
83393         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
83394         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
83395         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
83396         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
83397         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
83398         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
83399         string.h, free.
83400         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
83401         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
83402         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
83403         C headers, or for string.h.
83404         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
83405         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
83406         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
83407         headers, memory.h, stdlib.h, string.h, strings.h.
83408         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
83409         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
83410         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
83411         strchr.
83412         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
83413         headers, memory.h, string.h.
83414         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
83415         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
83416         free.
83417         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
83418         headers.
83419         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
83420         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
83421         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
83422         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
83423         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
83424
83425 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83426
83427         More K&R removal.
83428
83429         * lib/acosl.c (main): Use a prototype.
83430         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
83431         tanl.c: Likewise.
83432
83433         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
83434
83435         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
83436         (getopt, etopt_long, getopt_long_only, _getopt_internal)
83437         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
83438         with a prototype.
83439         * lib/getopt.c (const): Remove macro.
83440         Include <string.h> unconditionally.
83441         (my_index): Remove; all uses changed to strchr.
83442         (strlen): Remove decl.
83443         (exchange): Remove forward decl; no longer needed.
83444         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
83445         Define with prototype.
83446         * lib/getopt1.c (const): Remove macro.
83447         (getopt_long, getopt_long_only, main): Define with prototype.
83448
83449         * lib/getugroups.c: Include <string.h> unconditionally.
83450
83451         * lib/getusershell.c: Include <stdlib.h> unconditionally.
83452         (getusershell, setusershell, endusershell, readname, main):
83453         Define with prototypes.
83454
83455         * lib/group-member.c: Include group-member.h first.
83456         Include <stdlib.h> unconditionally.
83457
83458         * lib/hard-locale.c: Include hard-locale.h first.
83459         Include <stdlib.h>, <string.h> unconditionally.
83460
83461         * lib/hash.c (free, malloc): Remove decls.
83462         Include <stdlib.h> unconditionally.
83463
83464         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
83465         (getenv): Do not declare.
83466
83467         * lib/idcache.c: Include <string.h> unconditionally.
83468
83469         * lib/long-options.c: Include long-options.h first, to test interface.
83470         Include <stdlib.h> unconditionally.
83471
83472         * lib/makepath.c: Include makepath.h first, to test interface.
83473         Include <stdlib.h> and <string.h> unconditionally.
83474
83475         * lib/linebuffer.c: Include <stdlib.h>.
83476         (free): Remove decl.
83477
83478         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
83479         stddef.h. rpl_malloc returns void *, not char *.
83480         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
83481         prototype.
83482
83483         * lib/md5.h: Include <limits.h> unconditionally.
83484         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
83485         (__P): Remove; all uses removed.
83486         * lib/md5.c: Include "md5.h" first.
83487         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
83488         md5_buffer, md5_process_bytes, md5_process_block):
83489         Define with prototypes.
83490         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
83491         * lib/sha.c: Include "sha.h" first.
83492         Include <stdlib.h>, <string.h> unconditionally.
83493
83494         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
83495         * lib/memcmp.c (__ptr_t): Likewise.
83496         * lib/memrchr.c (__ptr_t): Likewise.
83497         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
83498         Include <string.h> unconditionally.
83499         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
83500         * lib/memchr.c: Include <stdlib.h> unconditionally.
83501         * lib/memchr.c (LONG_MAX): Remove.
83502         * lib/memrchr.c (LONG_MAX): Likewise.
83503         * lib/memchr.c (__memchr): Define via a prototype.
83504         * lib/memrchr.c (__memrchr): Likewise.
83505         * lib/memcmp.c (__P): Remove, and remove all uses.
83506         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
83507         Remove forward decls; no longer needed.
83508         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
83509         Use types required by C89 in prototype.
83510
83511         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
83512         * lib/savedir.c: Likewise.
83513         * lib/mkdir.c (free): Remove decl.
83514         * lib/rmdir.c (rmdir): Define with a prototype.
83515         * lib/savedir.c: Include savedir.h first, to test interface.
83516
83517         * lib/mktime.c (STDC_HEADERS): Remove.
83518         Include <stdlib.h>, <string.h> unconditionally.
83519
83520         * lib/modechange.c: Include <stdlib.h> unconditionally.
83521         (malloc): Remove decl.
83522
83523         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
83524         (free): Remove decl.
83525
83526         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
83527         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
83528         (This type really should be intptr_t, but that's a C99ism.)
83529         (_obstack_memcpy): Remove: all uses changed to memcpy.
83530         Include <string.h> unconditionally.
83531         (struct obstack): Assume __STDC__ for types of members
83532         chunkfun, freefun, extra_arg.
83533         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
83534         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
83535         obstack_begin, obstack_specify_allocation,
83536         obstack_specify_allocation_with_arg, obstack_chunkfun,
83537         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
83538         Remove unprototyped decls and the macros that use them.
83539         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
83540         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
83541         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
83542         (defined __STDC__ && __STDC__)]:
83543         Remove nonprototyped code.
83544         Include <stdlib.h> unconditionally.
83545         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
83546         _obstack_allocated_p, _obstack_free, obstack_free,
83547         _obstack_memory_used, print_and_abort):
83548         Define using prototypes.
83549         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
83550         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
83551         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
83552         obstack_next_free, obstack_object_size, obstack_room) [0]:
83553         Remove unused, unprototyped code.
83554
83555         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
83556
83557         * lib/physmem.c (physmem_total, physmem_available, main): Define
83558         with prototypes.
83559
83560         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
83561         (main): Define with a prototype.
83562
83563         * lib/posixver.c (getenv): Remove decl.
83564
83565         * lib/putenv.c (malloc): Returns void *, not char *.
83566         Include <string.h> unconditionally.
83567         (strchr, memcpy, NULL): Do not define.
83568
83569         * lib/readtokens.c: Include readtokens.h first, to test interface.
83570         Include <stdlib.h>, <string.h> unconditionally.
83571         (init_tokenbuffer): Define with a prototype.
83572
83573         * lib/regex.c (PARAMS): Remove.  All uses removed.
83574         All uses of _RE_ARGS removed, too.
83575         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83576         unconditionally.
83577         (bzero): Assume memset exists.
83578         (memcmp, memcpy, NULL): Remove.
83579         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
83580         char, or assignments to local vars of type signed char.
83581         (init_syntax_once, PREFIX(extract_number_and_incr),
83582         PREFIX(print_partial_compiled_pattern),
83583         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
83584         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
83585         PREFIX(regex_grow_registers), PREFIX(regex_compile),
83586         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
83587         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
83588         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
83589         wcs_compile_range, byte_compile_range, truncate_wchar,
83590         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
83591         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
83592         count_mbs_length, wcs_re_match_2_internal,
83593         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
83594         PREFIX(alt_match_null_string_p),
83595         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
83596         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
83597         regfree, PREFIX(extract_number)): Define with prototype.  Remove
83598         now-unnecessary declaration, if any.
83599         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
83600         regcomp, regexec):
83601         Remove now-unnecessary casts among pointer types.
83602         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
83603
83604         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
83605         (free): Remove decl.
83606
83607         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
83608
83609         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
83610         (free): Remove decl.
83611
83612         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
83613         * lib/xgetcwd.c: Likewise.
83614
83615         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
83616         (free): Remove decl.
83617
83618         * lib/strchrnul.c (strchrnul): Define with a prototype.
83619         Fix bug: c_in was not converted to char before searching.
83620
83621         The following changes are not K&R related:
83622
83623         * lib/group-member.h: Include <sys/types.h>, so that this file is
83624         self-contained.
83625         * lib/makepath.h: Likewise.
83626
83627         * lib/getusershell.c (readname, default_index, line_size, readname):
83628         Use size_t, not int, for sizes.
83629         (readname): If the size overflows, report an error instead of
83630         looping forever.
83631
83632 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83633
83634         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
83635         libc.
83636
83637 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83638
83639         * README: New section: portability guidelines.
83640
83641 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83642
83643         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
83644         C89 spec.
83645
83646 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83647
83648         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
83649
83650 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83651
83652         Assume C89 or better; remove K&R cruft.
83653         A few of these changes were first proposed by Derek Robert Price
83654         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
83655
83656         * lib/addext.c: Include <string.h> unconditionally.
83657         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
83658         Don't declare getenv or malloc.
83659
83660         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
83661         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
83662         (NULL): Remove.
83663         (find_stack_direction, alloca): Use prototypes.
83664
83665         * lib/atexit.c (atexit): Define using a prototype.
83666
83667         * lib/basename.c, dirname.c, stripslash.c:
83668         Include <string.h> unconditionally.
83669
83670         * lib/bcopy.c: Include <stddef.h>.
83671         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
83672
83673         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
83674
83675         * lib/error.h (error, error_at_line, error_print_progname)
83676         [! (defined (__STDC__) && __STDC__)]: Remove decls.
83677         * lib/error.c: Include error.h first, to check interface.
83678         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83679         (VA_START): Remove; all uses changeed to va_start.
83680         (exit, strerror): Remove decls.
83681         (error_print_progname): Prototype uncondionally.
83682         Don't include <errno.h>; no longer needed.
83683         (private_strerror): Remove.
83684         (error_tail): Always define.
83685         (error, error_at_line): Assume C89 or better; always use prototypes.
83686         * lib/fatal.c: Include "fatal.h" first, to test interface.
83687         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83688         (VA_START): Remove; all uses changed to va_start.
83689         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
83690         this case.
83691         (exit): Remove decl.
83692         (fatal): Prototype unconditionally.  Assume va_start works.
83693         Abort at end, to pacify gcc.
83694
83695         * lib/euidaccess.c (main): Define with a prototype.
83696
83697         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
83698
83699         * lib/exitfail.c: Include <stdlib.h> unconditionally.
83700
83701         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
83702         prototypes.
83703         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
83704         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
83705         (getenv): Remove decl.
83706         (fnmatch): Define using a prototype.
83707         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
83708         (FCT): Define using a prototype.
83709
83710         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
83711
83712         * lib/gethostname.c: Include <stddef.h>.
83713         (gethostname): Define with prototype.  Length is size_t, not int.
83714
83715 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83716
83717         Assume C89 or better; remove K&R cruft.
83718         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
83719         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
83720         string.h, getenv, malloc.
83721         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
83722         headers.
83723         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
83724         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
83725         do not check for strerror.
83726         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
83727         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
83728         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
83729         do not check for doprnt or vprintf.
83730         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
83731         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
83732
83733 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83734
83735         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
83736         getversion.c should have been removed then, but was accidentally
83737         preserved.
83738
83739         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
83740         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
83741
83742 2003-09-08  Karl Berry  <karl@gnu.org>
83743
83744         * config/config.sub, config.guess, srclistvars.sh: update from savannah
83745                 config, forget about prep.
83746
83747         * config/depcomp, missing: update from automake.
83748
83749 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83750
83751         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
83752         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83753
83754 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83755
83756         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
83757         copy_tm_result.  Bug reported by Simon Josefsson in
83758         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83759
83760 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83761
83762         * m4/time_r.m4: New file.
83763         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
83764         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
83765         is. Check for timegm declaration.
83766         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
83767         Do not check for gmtime_r.
83768         Replace mktime if __mktime_internal does not exist and if mktime
83769         hasn't been replaced already.
83770
83771 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83772
83773         * lib/time_r.c, lib/time_r.h: New files.
83774
83775         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
83776         __localtime_r.
83777         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
83778         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
83779
83780         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
83781         __gmtime_r.
83782         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
83783         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
83784         Include <time_r.h>.
83785
83786         * lib/timegm.c: Switch to glibc implementation, with the following
83787         changes:
83788         [defined HAVE_CONFIG_H]: Include <config.h>.
83789         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
83790         (__mktime_internal) [!defined _LIBC]: New decl.
83791         (__gmtime_r) [!defined _LIBC]: New macro and function.
83792         (timegm): Use a prototype, since gnulib assumes C89.
83793         Do not bother declaring tmp to be const, as it's not really usefu.
83794         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
83795         (timegm): Declare only if HAVE_DECL_TIMEGM.
83796
83797 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83798
83799         * MODULES.html.sh (func_all_modules): Add time_r.
83800         * modules/time_r: New file.
83801         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
83802         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
83803
83804 2003-09-03  Paul Eggert  <eggert@twinsun.com>
83805
83806         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
83807         Bug reported by Lute Kamstra in
83808         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
83809
83810         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
83811         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
83812         course with correspondingly smaller numbers for tomorrow and
83813         yesterday.  From Tadayoshi Funaba.  Originally installed into
83814         sh-utils on 1999-08-07, but the patch got lost (I guess during the
83815         coreutils merge?).
83816
83817 2003-08-31  Simon Josefsson  <jas@extundo.com>
83818
83819         * modules/timegm: New file.
83820         * MODULES.html.sh (func_all_modules): Add timegm.
83821
83822 2003-08-31  Simon Josefsson  <jas@extundo.com>
83823
83824         * m4/timegm.m4: New file.
83825
83826 2003-08-31  Simon Josefsson  <jas@extundo.com>
83827
83828         * lib/timegm.h: New file.
83829         * lib/timegm.c: New file.  Based on
83830         wget-1.8.2/src/http.c:mktime_from_utc.
83831
83832 2003-08-31  Karl Berry  <karl@gnu.org>
83833
83834         * lib/argp.h: update from libc.
83835
83836 2003-08-28  Bruno Haible  <bruno@clisp.org>
83837
83838         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
83839         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
83840         followed by '#define fnmatch fnmatch_posix' gives an error.
83841
83842 2003-08-28  Bruno Haible  <bruno@clisp.org>
83843
83844         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
83845         warning on QNX, which defines O_BINARY to 000000.
83846
83847 2003-08-27  Jim Meyering  <jim@meyering.net>
83848
83849         * m4/mkstemp.m4: Require that the system mkstemp be able to create
83850         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
83851         would fail after 32.  Reported by Danny Levinson.  Details here:
83852         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
83853
83854 2003-08-24  Bruno Haible  <bruno@clisp.org>
83855
83856         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
83857         MSVC7 <stdio.h> is included later.
83858
83859 2003-08-22  Simon Josefsson  <jas@extundo.com>
83860
83861         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
83862
83863 2003-08-20  Karl Berry  <karl@gnu.org>
83864
83865         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
83866
83867 2003-08-20  Bruno Haible  <bruno@clisp.org>
83868
83869         * modules/progname: New file.
83870         * MODULES.html.sh (func_all_modules): Add progname.
83871
83872 2003-08-20  Bruno Haible  <bruno@clisp.org>
83873
83874         * lib/progname.h: New file, from GNU gettext.
83875         * lib/progname.c: New file, from GNU gettext.
83876         * lib/progreloc.c: New file, from GNU gettext.
83877
83878 2003-08-19  Jim Meyering  <jim@meyering.net>
83879
83880         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
83881         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
83882
83883 2003-08-19  Bruno Haible  <bruno@clisp.org>
83884
83885         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
83886         more.
83887
83888 2003-08-19  Bruno Haible  <bruno@clisp.org>
83889
83890         * lib/xstrdup.c: Assume <string.h> exists.
83891
83892 2003-08-18  Paul Eggert  <eggert@twinsun.com>
83893
83894         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
83895         in makefile rules.
83896
83897 2003-08-18  Jim Meyering  <jim@meyering.net>
83898
83899         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
83900         * m4/lib-ld.m4: Likewise.
83901
83902 2003-08-18  Jim Meyering  <jim@meyering.net>
83903
83904         * lib/setenv.h: Indent nested cpp directive.
83905         * lib/vasnprintf.c: Remove trailing blanks.
83906
83907 2003-08-17  Simon Josefsson  <jas@extundo.com>
83908
83909         * modules/xstrndup: New file.
83910         * MODULES.html.sh (func_all_modules): Add xstrndup.
83911
83912 2003-08-17  Simon Josefsson  <jas@extundo.com>
83913
83914         * modules/argp: Fix autoconf macro name. Add more dependencies.
83915
83916 2003-08-17  Simon Josefsson  <jas@extundo.com>
83917
83918         * m4/xstrndup.m4: New file.
83919
83920 2003-08-17  Simon Josefsson  <jas@extundo.com>
83921
83922         * m4/argp.m4: New file.
83923
83924 2003-08-17  Simon Josefsson  <jas@extundo.com>
83925             Bruno Haible  <bruno@clisp.org>
83926
83927         * lib/xstrndup.h: New file.
83928         * lib/xstrndup.c: New file.
83929
83930 2003-08-17  Bruno Haible  <bruno@clisp.org>
83931
83932         * modules/strndup (Files, Include): Add lib/strndup.h.
83933
83934 2003-08-17  Bruno Haible  <bruno@clisp.org>
83935
83936         * modules/euidaccess (Files): Add lib/euidaccess.h.
83937
83938 2003-08-17  Bruno Haible  <bruno@clisp.org>
83939
83940         * lib/strndup.h: New file.
83941
83942 2003-08-17  Bruno Haible  <bruno@clisp.org>
83943
83944         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
83945         like AC_GNU_SOURCE.
83946         * modules/extensions (configure.ac): Comment out the invocation of
83947         gl_USE_SYSTEM_EXTENSIONS.
83948
83949 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83950
83951         Merges from coreutils, etc.
83952         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
83953         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
83954         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
83955         fixing a typo.
83956         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
83957         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
83958
83959 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83960
83961         Document merge from coreutils.
83962         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
83963         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
83964         * modules/utime: Add m4/utimes-null.m4.
83965
83966 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83967
83968         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
83969         space, undoing this 2003-08-12 change:
83970         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83971
83972 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83973
83974         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
83975         strtoul.c from libc, undoing this 2003-08-12 change:
83976         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83977
83978 2003-08-16  Jim Meyering  <jim@meyering.net>
83979
83980         Merges from coreutils.
83981         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
83982         prefix.  Adjust cache variables similarly.  Create 500 rather than
83983         just 300 files, to exercise bug on Darwin6.5, too.
83984         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
83985         $missing_dir.
83986         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
83987         AM_SYS_POSIX_TERMIOS.
83988         Reported by mkc@mathdogs.com.
83989         Also change use of $am_cv_sys_posix_termios
83990         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
83991         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
83992         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
83993         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
83994         in /proc/mounts until it finds one with matching device number.  This
83995         is unnecessary when the FILE argument *is* a mount point.  No stat call
83996         is necessary in that case.  So, disable the statvfs-testing code on
83997         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
83998         as RedHat bug# 84846.
83999         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84000         to 1MB, so as not to render systems with no stack size limit (e.g.,
84001         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84002         Include <unistd.h>.  On some systems,
84003         it is required for the definition of _SC_PAGESIZE.
84004
84005 2003-08-16  Jim Meyering  <jim@meyering.net>
84006
84007         Merge from coreutils.
84008         * lib/xstrtoimax.c: #else #if -> #elif.
84009         * lib/xstrtoumax.c: Likewise.
84010
84011 2003-08-16  Jim Meyering  <jim@meyering.net>
84012
84013         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
84014         * m4/utimes.m4: Removed.
84015         * m4/utimes-null.m4: Renamed from utimes.m4.
84016
84017         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84018         to 1MB, so as not to render systems with no stack size limit (e.g.,
84019         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84020         Include <unistd.h>.  On some systems,
84021         it is required for the definition of _SC_PAGESIZE.
84022
84023 2003-08-16  Jim Meyering  <jim@meyering.net>
84024         and Paul Eggert  <eggert@cs.ucla.edu>
84025
84026         Merges from coreutils, etc.
84027
84028         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
84029         using the latest version from cvs.  This avoids problems with #line
84030         directives using a vendor (Sun) compiler.
84031         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
84032         Don't set GETGROUPS_LIB here; now it's
84033         done via getgroups.m4's wrapper function.
84034         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
84035         rather than just in sh-util/configure.in, so that the
84036         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
84037         same.
84038         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
84039         AC_FUNC_GETLOADAVG where to find getloadavg.c.
84040         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
84041         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
84042         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
84043         Remove code that is now done by the newly-required macros.
84044         Append $(EXEEXT) to DF_PROG.
84045         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
84046         Do not invoke or require the following here,
84047         since prereq.m4 or some gnulib .m4 now does this for us:
84048         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
84049         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
84050         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
84051         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
84052         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
84053         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
84054         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
84055         AC_FUNC_OBSTACK.
84056         Do not replace the following functions, as this is now the job
84057         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
84058         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
84059         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
84060         atexit getpass, strdup, getpagesize.
84061         Replace 'raise'.
84062         Do not check for the following functions, as this is now the job
84063         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
84064         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
84065         setregid.
84066         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
84067         Check for sys/sysctl.h.
84068         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
84069         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
84070         of checking for ssize_t ourselves.
84071
84072         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
84073         Require every macro that gnulib/modules/* suggests for us.
84074         (jm_PREREQ_ADDEXT): New macro.
84075         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
84076         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
84077
84078         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
84079         (gl_PHYSMEM): Use it.
84080         Also check for `table' function.
84081         Check for new headers and functions.
84082         Add check for sys/sysmp.h.
84083         With suggestions from Kaveh Ghazi.
84084         Ignore headers that are present but cannot be compiled.  This
84085         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
84086         C 5.4.
84087
84088 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84089
84090         Document merge from coreutils.
84091         * modules/userspec: Depend on posixver.
84092         * modules/strftime: Depend on tzset.
84093
84094 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84095
84096         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
84097         rather than tab, after '#' in shell-script copyright notices.
84098         Suggested by Bruno Haible.
84099
84100 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84101
84102         * config/srclist-update: Use three spaces, rather than tab, after '#'
84103         in shell-script copyright notices.  Suggested by Bruno Haible.
84104         Remove unnecessary parenthesization in regular expression.
84105
84106 2003-08-15  Jim Meyering  <jim@meyering.net>
84107
84108         Merge from coreutils.
84109         * lib/xgethostname.c: Include <stdlib.h>.
84110         (xghostname): Don't exit for anything other than memory-related
84111         failure; just return NULL.
84112         * lib/userspec.c: Include "posixver.h".
84113         (parse_user_spec): Accept `.' as a separator only
84114         in pre-POSIX-200112 mode.
84115         * lib/strtoimax.c: Use #elif rather than #else #if.
84116         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
84117         Remove function, now that we can rely on a working tzset function.
84118         [!_LIBC]: Ensure that the required autoconf test has been run.
84119         [!defined _NL_CURRENT && HAVE_STRFTIME]:
84120         Use underlying_strftime for %r.
84121         * lib/sha.c: Merge in some clean-up and optimization changes from
84122         glibc.
84123         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
84124         Ensure that it is a multiple of 64.
84125         Rearrange loop exit tests so as to avoid performing an
84126         additional fread after encountering an error or EOF.
84127         * lib/realloc.c: Update copyright date.
84128
84129 2003-08-15  Jim Meyering  <jim@meyering.net>
84130         and Paul Eggert  <eggert@twinsun.com>
84131
84132         Merge from coreutils.
84133         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
84134         member but strut utmpx does not.  Needed for AIX 4.3.3.
84135         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
84136
84137 2003-08-15  Jim Meyering  <jim@meyering.net>
84138         and Paul Eggert  <eggert@cs.ucla.edu>
84139
84140         Merges from coreutils, etc.
84141         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
84142         Require gl_FUNC_TZSET_CLOBBER.
84143         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
84144         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
84145         members.
84146
84147 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84148
84149         Help the merge from coreutils.
84150         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
84151         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
84152         * m4/tzset.m4: Use it too.
84153
84154 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84155
84156         * modules/tzset: New file.
84157
84158 2003-08-14  Jim Meyering  <jim@meyering.net>
84159
84160         Merges from coreutils.
84161         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
84162         variable names, rather than @FNMATCH_H@.
84163         * modules/alloca: Likewise for $(ALLOCA_H).
84164
84165         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
84166         the three copies of the literal target, `fnmatch.h'.
84167         * modules/alloca (alloca.h): Likewise.
84168
84169 2003-08-14  Jim Meyering  <jim@meyering.net>
84170
84171         Merge from coreutils.
84172         * m4/tzset.m4: New file.
84173         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
84174         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
84175         otherwise, AIX 5.1 systems would end up using the latter.
84176         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
84177         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
84178         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
84179         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
84180
84181 2003-08-14  Jim Meyering  <jim@meyering.net>
84182
84183         Merge from coreutils.
84184         * lib/obstack.h: Whitespace changes.
84185         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
84186         and xcalloc return values.
84187         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
84188         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
84189         hang on OSF/1 5.1 for DIR on both local and remote file systems.
84190         Reported by (and fix confirmed by) Nelson H. F. Beebe.
84191         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84192         error from mntctl.
84193         Use mntctl's return value to drive the entry-processing loop, since
84194         we can't rely on the value of the vmt_length member in the last
84195         entry.  On some systems doing so could result in exhausting
84196         virtual memory.  Based in part on a patch from Mike Jetzer.
84197
84198 2003-08-14  Jim Meyering  <jim@meyering.net>
84199         and Paul Eggert  <eggert@twinsun.com>
84200
84201         Merges from coreutils, plus other fixes.
84202         * lib/physmem.c: Merge in portability changes from gcc/libiberty
84203         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
84204         for credits and details.  Thanks to Kaveh Ghazi for helping
84205         to keep these files in sync.
84206         (ARRAY_SIZE): Define it.
84207         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
84208         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
84209         (memcasecmp): Don't assume size_t fits in unsigned int.
84210         Remove casts and duplicate code.
84211         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
84212         (memcpy): Remove definition.
84213         Merge in some clean-up and optimization changes from glibc.
84214         [BLOCKSIZE]: Move definition to top of file.
84215         Ensure that it is a multiple of 64.
84216         Rearrange loop exit tests so as to avoid performing an
84217         additional fread after encountering an error or EOF.
84218         * lib/md5.h (md5_uintptr): Define.
84219         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
84220         return to the initial working directory.  Preserve errno
84221         for caller.
84222         * lib/idcache.c: Include "xalloc.h".
84223         (xmalloc, xrealloc): Remove decls.
84224         (getuser): Remove casts no longer required in C89.
84225         * lib/human.c: Include stdio.h, for sprintf.
84226         * lib/group-member.c: Include "xalloc.h".
84227         (xmalloc, xrealloc): Remove decls.
84228         (get_group_info): Remove casts no longer required in C89.
84229         * lib/getusershell.c (readname): Remove casts no longer required in
84230         C89.
84231         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
84232         * lib/getline.c: Whitespace fix, from coreutils.
84233
84234 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84235
84236         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
84237         Check for isascii.
84238
84239         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84240         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84241         Undo previous (whitespace-only) change.
84242
84243 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84244
84245         * lib/exclude.c: Include <ctype.h>
84246         (IN_CTYPE_DOMAIN): New macro.
84247         (is_space): New fn.
84248         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
84249         and empty lines.
84250
84251         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84252         Undo previous (whitespace-only) change.
84253
84254 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84255
84256         * config/srclist-update: Change update back to the old behavior,
84257         leaving whitespace alone.  Use one 'sed' command rather than a
84258         pipeline.
84259         (fixlicense): Now a variable, not a function.
84260         (remove_trailing_blanks): Remove.
84261         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
84262         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84263         Undo previous (whitespace-only) change.
84264
84265 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84266
84267         Merge from coreutils.
84268         * modules/euidaccess: Add lib_SOURCES, include for new
84269         file euidaccess.h
84270
84271 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84272
84273         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84274         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84275         Normalize leading white space and remove trailing white space.
84276
84277         Merge from coreutils
84278         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
84279
84280         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
84281         0.12.1.  These files are now being upgraded automatically by
84282         ../config/srclist-update.
84283
84284 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84285
84286         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84287         Normalize leading white space and remove trailing white space.
84288         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
84289         notice, as per ../config/srclist-update.
84290
84291         Merge from coreutils.
84292         * lib/euidaccess.h: New file.
84293         * lib/euidaccess.c: Include it.
84294         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
84295         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
84296         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
84297
84298 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84299
84300         * config/srclist-update: Add copyright notice.
84301         (remove_id_lines, remove_trailing_blanks): New constants.
84302         (fixfile): Use them to normalize spacing a bit in copied files.
84303         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84304         Normalize leading white space and remove trailing white space.
84305
84306         * config/texinfo.tex: Sync with texinfo.
84307
84308         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
84309         strtoul.c from libc, to merge coreutils whitespace changes.
84310
84311         * config/srclist.txt: Get the following m4 files from gettext:
84312         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
84313         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
84314         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
84315         wint_t.m4.
84316
84317 2003-08-12  Karl Berry  <karl@gnu.org>
84318
84319         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
84320         been made.
84321
84322 2003-08-11  Paul Eggert  <eggert@twinsun.com>
84323
84324         * modules/gnu-source, m4/gnu-source.m4:
84325         Remove; we're assuming Autoconf 2.54 or later now.
84326         Suggested by Bruno Haible.
84327         * MODULES.html.sh (func_all_modules): Remove gnu-source.
84328
84329 2003-08-11  Bruno Haible  <bruno@clisp.org>
84330
84331         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
84332
84333 2003-08-11  Bruno Haible  <bruno@clisp.org>
84334
84335         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
84336         (vasnprintf): Use it instead of wcslen.
84337
84338 2003-08-11  Bruno Haible  <bruno@clisp.org>
84339
84340         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
84341         value to ensure that _Bool promotes to int. Use #define for _Bool when
84342         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
84343
84344 2003-08-10  Karl Berry  <karl@gnu.org>
84345
84346         * lib/regex.h: update from libc (whitespace fix).
84347
84348 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84349
84350         Merge some files from coreutils.  These changes were
84351         originally made by Jim Meyering.
84352         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
84353         many older Unixes require this.
84354         * lib/alloca.c (alloca): Remove cast to argument of free;
84355         no longer needed in C89.
84356         * lib/alloca_.h, regex.h: Fix white space to match
84357         what GNU indent does.
84358
84359 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84360
84361         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
84362         apparently Emacs's Unicode mode got confused before my 2003-08-05
84363         checkin.
84364
84365 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84366
84367         * m4/extensions.m4: New file.
84368         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
84369         Require gl_USE_SYSTEM_EXTENSIONS.
84370         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
84371         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
84372
84373 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84374
84375         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
84376         * modules/extensions, modules/gnu-source: New files.
84377         * modules/timespec, modules/unlocked-io: Depend on extensions.
84378
84379 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84380
84381         * modules/restrict: New file.
84382         * MODULES.html.sh (func_all_modules): Add restrict.
84383         * modules/regex: Depend on restrict.
84384
84385 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84386
84387         * m4/restrict.m4: New file.
84388         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
84389
84390 2003-08-07  Bruno Haible  <bruno@clisp.org>
84391
84392         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
84393         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
84394
84395 2003-08-07  Bruno Haible  <bruno@clisp.org>
84396
84397         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
84398         makes the module 'getndelim2' compatible with the module 'getline'.
84399
84400 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84401
84402         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
84403         byte with "\201" to avoid glitches when editing that source file
84404         with multi-gnome-terminal.
84405
84406 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84407
84408         * lib/bumpalloc.h: Remove.
84409
84410 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84411
84412         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
84413         * modules/bumpalloc: Remove.
84414
84415 2003-08-04  Paul Eggert  <eggert@twinsun.com>
84416
84417         * lib/getloadavg.c: Change copyright notice and spacing to conform to
84418         GNU coding style.
84419
84420         Merge from coreutils.
84421         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
84422         1. From glibc.
84423         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
84424         from Karl Berry, implemented by Jim Meyering.
84425         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
84426         from Dmitry V. Levin.
84427         Remove anachronistic cast of xrealloc.
84428         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
84429         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
84430         type. Otherwise, it wouldn't compile with at least /bin/cc on
84431         ymp-cray-unicos9.0.2.X.
84432         Combine two mostly-identical uses of alloca into one.
84433         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
84434
84435 2003-08-04  Dave Love  <d.love@dl.ac.uk>
84436
84437         [From Emacs.]
84438
84439         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
84440         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
84441         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
84442         obsolete NLIST_NAME_UNION.
84443         [__GNU__]: Undef BSD and FSCALE.
84444         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
84445
84446 2003-08-03  Paul Eggert  <eggert@twinsun.com>
84447
84448         * lib/stdbool_.h (_Bool): Make it signed char, instead of
84449         an enum type, so that it's guaranteed to promote to int.  See:
84450         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
84451
84452 2003-08-03  Karl Berry  <karl@gnu.org>
84453
84454         * config/depcomp: update from automake.
84455
84456 2003-07-31  Paul Eggert  <eggert@twinsun.com>
84457
84458         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
84459         (strerror): Don't assume that a printable int fits in 14 bytes.
84460
84461 2003-07-31  Bruno Haible  <bruno@clisp.org>
84462
84463         * modules/getpass-gnu: New file.
84464         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
84465
84466 2003-07-31  Bruno Haible  <bruno@clisp.org>
84467
84468         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
84469
84470 2003-07-24  Karl Berry  <karl@gnu.org>
84471
84472         * config/missing: update from automake.
84473
84474 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
84475             Bruno Haible  <bruno@clisp.org>
84476
84477         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
84478         * lib/getline.c (getline, getdelim): Likewise.
84479         Remove _GNU_SOURCE define; now it's defined in config.h through
84480         m4/getline.m4.
84481
84482 2003-07-23  Karl Berry  <karl@gnu.org>
84483
84484         * config/config.sub: update from prep.
84485
84486 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84487
84488         * modules/xalloc (Depends-on): Add exitfail.
84489         * modules/xmemcoll: Likewise.
84490
84491 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84492
84493         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
84494         over-parenthesization in macros.
84495
84496         Sync with coreutils.
84497
84498         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
84499         required by C99.
84500
84501         Use `exit_failure' for xalloc and xmemcoll instead of their own
84502         private exit-failure variables.
84503         * lib/xalloc.h (xalloc_exit_failure): Remove.
84504         * lib/xmalloc.c: Likewise.  Include exitfail.h.
84505         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
84506         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
84507         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
84508         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
84509
84510 2003-07-20  Jim Meyering  <jim@meyering.net>
84511
84512         * modules/closeout (Depends-on): Add exitfail.
84513         Suggestion from Bruno Haible.
84514
84515 2003-07-19  Karl Berry  <karl@gnu.org>
84516
84517         * config/config.sub: update from prep.
84518
84519 2003-07-18  Paul Eggert  <eggert@twinsun.com>
84520
84521         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
84522         Remove.
84523         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
84524         to test that it can stand by itself.  Include "exitfail.h".
84525         Clients should set exit_failure instead.
84526         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
84527
84528 2003-07-18  Bruno Haible  <bruno@clisp.org>
84529
84530         * modules/getndelim2: New file.
84531         * modules/getline: Share files with module getndelim2.
84532         * modules/getnline: Depend on getndelim2 instead of sharing files with
84533         it. Add getnline.c to lib_SOURCES.
84534         * MODULES.html.sh (func_all_modules): Add getndelim2.
84535
84536 2003-07-18  Bruno Haible  <bruno@clisp.org>
84537
84538         * m4/getndelim2.m4: New file.
84539         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
84540         invoke gl_PREREQ_GETNDELIM2.
84541         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
84542         gl_PREREQ_GETNDELIM2.
84543         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
84544         gl_GETNDELIM2.
84545
84546 2003-07-18  Bruno Haible  <bruno@clisp.org>
84547
84548         * lib/getndelim2.h: New file.
84549         * lib/getndelim2.c: Make into a module of its own. Include config.h,
84550         getndelim2.h.
84551         (getndelim2): Make non-static. Change return type to ssize_t.
84552         * lib/getline.h: Change argument names.
84553         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
84554         * lib/getnline.c: Include getndelim2.h.
84555
84556 2003-07-18  Andreas Schwab  <schwab@suse.de>
84557
84558         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
84559
84560 2003-07-17  Karl Berry  <karl@gnu.org>
84561
84562         * config/config.sub: update from prep.
84563
84564 2003-07-17  Bruno Haible  <bruno@clisp.org>
84565
84566         * modules/getnline: New file.
84567         * modules/getline: Add lib/getndelim2.c to source file list.
84568         * MODULES.html.sh (func_all_modules): Add getnline.
84569
84570 2003-07-17  Bruno Haible  <bruno@clisp.org>
84571
84572         * m4/getnline.m4: New file.
84573
84574 2003-07-17  Bruno Haible  <bruno@clisp.org>
84575
84576         * m4/Makefile.am.in: Remove file.
84577         * m4/Makefile.am: Remove file.
84578         * m4/Makefile.in: Remove file.
84579
84580 2003-07-17  Bruno Haible  <bruno@clisp.org>
84581
84582         * lib/getnline.h: New file.
84583         * lib/getnline.c: New file.
84584         * lib/getndelim2.c: New file, extracted from getline.c.
84585         (getndelim2): Renamed from getdelim2, with added nmax argument.
84586         * lib/getline.c: Include getndelim2.c.
84587         (getdelim2): Moved out to getndelim2.c.
84588         (getline, getdelim): Update.
84589
84590 2003-07-17  Bruno Haible  <bruno@clisp.org>
84591
84592         * lib/Makefile.am: Remove file.
84593         * lib/Makefile.in: Remove file.
84594
84595 2003-07-17  Bruno Haible  <bruno@clisp.org>
84596
84597         * configure.in: Remove file.
84598         * Makefile.in: Remove file.
84599
84600 2003-07-17  Bruno Haible  <bruno@clisp.org>
84601
84602         * MODULES.html.sh: Put the </BODY> right before </HTML>.
84603
84604 2003-07-16  Karl Berry  <karl@gnu.org>
84605
84606         * config/srclist-update: was running fixlicense twice, which caused
84607                 texinfo.tex to be nullified for some reason.  Simplify,
84608                 $gplsrc is no longer needed as far as I can see?
84609
84610 2003-07-16  Jim Meyering  <jim@meyering.net>
84611
84612         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
84613
84614 2003-07-15  Paul Eggert  <eggert@twinsun.com>
84615
84616         * config/srclist.txt: Get the following files from gettext-runtime/intl
84617         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
84618         ref-del.sin.  From Bruno Haible.
84619         * config/srclist-update (fixfile): Change grep pattern again, since the
84620         previous fix didn't work (there was another trailing $).  Use
84621         '[$]' to escape the $s.
84622
84623 2003-07-15  Karl Berry  <karl@gnu.org>
84624
84625         * lib/vasnprintf.c: update from gettext.
84626
84627 2003-07-15  Karl Berry  <karl@gnu.org>
84628
84629         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
84630         gets expanded when surrounded by '$'.
84631
84632 2003-07-15  Jim Meyering  <jim@meyering.net>
84633
84634         * modules/save-cwd: Don't depend on error.  From Derek Price.
84635
84636 2003-07-15  Jim Meyering  <jim@meyering.net>
84637
84638         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
84639
84640 2003-07-14  Simon Josefsson  <jas@extundo.com>
84641
84642         * modules/mempcpy: New file.
84643         * MODULES.html.sh (func_all_modules): Add mempcpy.
84644
84645 2003-07-14  Simon Josefsson  <jas@extundo.com>
84646
84647         * m4/mempcpy.m4: New file.
84648
84649 2003-07-14  Simon Josefsson  <jas@extundo.com>
84650
84651         * lib/mempcpy.h: New file.
84652         * lib/mempcpy.c: New file.
84653
84654 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84655
84656         * modules/getdate, modules/posixtm: Depend on mktime.
84657
84658 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84659
84660         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
84661         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
84662         unicodeio.c, unicodeio.h, unlocked-io.h:
84663         Switch from LGPL to GPL.
84664
84665 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84666
84667         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
84668         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
84669         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
84670         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
84671         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
84672         updated automatically by ../config/srclist-update.  This changes
84673         their license from LPGL to GPL.
84674
84675 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84676
84677         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
84678         assumed to refer to the root of the most recent stable gettext version.
84679         * config/srclistvars.sh: Add defaults for eggert.
84680         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
84681         Match "This program" as well as "The program".  This is needed
84682         for gettext.
84683
84684 2003-07-14  Jim Meyering  <jim@meyering.net>
84685
84686         Don't emit diagnostics.  Let callers do that.
84687         * lib/save-cwd.c: Don't include "error.h".
84688         (save_cwd): Don't call error.  Ensure that errno is valid
84689         when returning nonzero.
84690
84691         * lib/save-cwd.h (restore_cwd): Update prototype.
84692         * lib/save-cwd.c (restore_cwd): Remove two parameters.
84693         Simplify.  Don't call error upon failure.  Let callers do that.
84694         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
84695         when auditing is enabled.  But don't bother updating the #if.
84696
84697 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
84698
84699         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
84700         it breaks C++ compilation.
84701         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
84702
84703 2003-07-10  Simon Josefsson  <jas@extundo.com>
84704
84705         * modules/strchrnul (Makefile.am): Add strchrnul.h.
84706
84707 2003-07-10  Jim Meyering  <jim@meyering.net>
84708
84709         * m4/clock_time.m4: Remove trailing blank.
84710         * m4/intmax_t.m4: Likewise.
84711
84712 2003-07-10  Jim Meyering  <jim@meyering.net>
84713
84714         * lib/vasnprintf.c: Remove trailing blanks.
84715         Make cpp indentation consistent.
84716
84717 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84718
84719         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
84720         posixver.c, strftime.c, strnlen.c, strverscmp.c:
84721         Switch from LGPL to GPL.
84722
84723 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84724
84725         * config/srclist.txt: Sort sublists.  Add
84726         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
84727         that differ from gnulib for one reason or another; we'd like this list
84728         to be smaller but for now let's document what we have.
84729
84730 2003-07-08  Paul Eggert  <eggert@twinsun.com>
84731
84732         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
84733         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
84734         and sweeter "eval x=$x".
84735         * config/srclist.txt: Get lib/argp* from glibc.
84736
84737 2003-07-07  Paul Eggert  <eggert@twinsun.com>
84738
84739         * lib/mktime.c: Fix some boundary cases and remove need for floating
84740         point.
84741
84742         Issue a compile-time diagnostic if time_t is floating point, or if
84743         two's complement arithmetic is not in effect, or if arithmetic
84744         right shift does not propagate the sign.  These assumptions were
84745         all in the original code but they weren't checked.
84746
84747         (TIME_T_MIDPOINT, verify): New macros.
84748         (__isleap): Remove; it has integer overflow problems.
84749         (leapyear): New function, without those problems.
84750         (ydhms_tm_diff): Remove; splitting into two parts.
84751         (ydhms_diff): New function, containing the arithmetic part of
84752         the old ydhms_tm_diff function.  Issue a compile-time
84753         diagnostic if we are not using C99 integer division.
84754         Avoid casts when possible.
84755         (guess_time_tm): New function, containing the checking part of
84756         the old ydhms_tm_diff function.  Return the new value, rather than
84757         the difference between it and the old.  Accept a new argument T
84758         so that *T specifies the old value.  Check for overflow in the result.
84759
84760         (__mktime_internal): Use a time_t offset, not a long int offset.
84761         This undoes the 2003-06-04 change, which is no longer needed now
84762         that we have better overflow checking.
84763         (localtime_offset): Likewise.
84764
84765         (__mktime_internal): Avoid harmful overflow on hosts where time_t
84766         and long are 64-bit but int is only 32-bit.
84767         (ydhms_diff): Use long int to store year1 and yday1.
84768         Issue a compile-time diagnostic if long int is not wide enough.
84769
84770         (__mktime_internal): Use long int to store adjusted year and yday.
84771         Use plain C rather than preprocessor commands, if that doesn't
84772         affect efficiency.
84773         Check for overflow (and try to repair) after each probe
84774         rather than checking only at the very end.  This avoids some bugs
84775         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
84776         does not equal GMT offset at maximum time).
84777         Use integer to check for overflow rather than floating point; this
84778         is more portable to non-IEEE hosts, and is a tad faster.
84779         When we detect that we are oscillating between two values,
84780         don't check whether tm_isdst has the requested value, since
84781         we already know the answer.  When tm_isdst has the wrong value,
84782         use a different heuristic to find the right one, based on the
84783         extreme values actually observed in practice in tz2003a,
84784         rather than the (overly optimistic) "previous 3 calendar quarters".
84785
84786         (not_equal_tm, print_tm, check_result): Use "const T" rather than
84787         "T const" to accommodate glibc style.
84788         (check_result): Use less-confusing report format.  "long" -> "long int.
84789         (main): Likewise.
84790         Don't loop if the iteration overflows time_t.
84791         Allow a negative step in the iteration.
84792
84793 2003-07-06  Karl Berry  <karl@gnu.org>
84794
84795         * config/depcomp: update from automake.
84796         * config/config.sub: update from prep.
84797
84798 2003-07-03  Karl Berry  <karl@gnu.org>
84799
84800         * config/config.guess: update from prep.
84801
84802 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84803
84804         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
84805         xreadlink.c now includes it unconditionally.
84806
84807 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84808
84809         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
84810         having it depend on HAVE_SYS_TYPES_H.
84811
84812 2003-07-01  Bruno Haible  <bruno@clisp.org>
84813
84814         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
84815         <sys/types.h> should be sufficient.
84816         Reported by Paul Eggert.
84817
84818 2003-06-26  Karl Berry  <karl@gnu.org>
84819
84820         * config/depcomp: update from automake.
84821
84822 2003-06-26  Bruno Haible  <bruno@clisp.org>
84823
84824         * modules/human: Depend on module stdbool.
84825
84826 2003-06-25  Bruno Haible  <bruno@clisp.org>
84827
84828         * modules/readlink: New file.
84829         * modules/xreadlink: Depend on it.
84830         * MODULES.html.sh (func_all_modules): Add readlink.
84831
84832 2003-06-25  Bruno Haible  <bruno@clisp.org>
84833
84834         * m4/readlink.m4: New file.
84835
84836 2003-06-25  Bruno Haible  <bruno@clisp.org>
84837
84838         * lib/readlink.c: New file.
84839
84840 2003-06-22  Karl Berry  <karl@gnu.org>
84841
84842         * config/srclist.txt: update mkinstalldirs from automake.
84843         * config/mkinstalldirs: update.
84844
84845 2003-06-22  Bruno Haible  <bruno@clisp.org>
84846
84847         Portability to mingw32.
84848         * m4/ssize_t.m4: New file, from GNU gettext.
84849         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
84850         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
84851
84852 2003-06-22  Bruno Haible  <bruno@clisp.org>
84853
84854         * modules/safe-read: Add m4/ssize_t.m4.
84855         * modules/xreadlink: Add m4/ssize_t.m4.
84856
84857 2003-06-20  Bruno Haible  <bruno@clisp.org>
84858
84859         Assume C89, so PARAMS isn't needed.
84860         * lib/unicodeio.h (PARAMS): Remove.
84861         * lib/unicodeio.c: Don't use PARAMS.
84862
84863 2003-06-18  Karl Berry  <karl@gnu.org>
84864
84865         * config/config.{guess,sub}: update from prep.
84866
84867 2003-06-18  Jim Meyering  <jim@meyering.net>
84868
84869         Merge changes from coreutils.
84870         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
84871         Remove explicit declarations of xmalloc and realloc.
84872         Include xalloc.h.
84873         (read_utmp): Remove anachronistic cast of xmalloc.
84874
84875 2003-06-17  Paul Eggert  <eggert@twinsun.com>
84876
84877         Assume C89, so PARAMS isn't needed.
84878         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
84879         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
84880         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
84881         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
84882         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
84883         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
84884         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
84885         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
84886         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
84887         lib/xstrtod.h, lib/xstrtol.h: Likewise.
84888         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
84889         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
84890         no longer needed. Anyway, config.h should always be included before any
84891         other file.
84892
84893 2003-06-11  Simon Josefsson  <jas@extundo.com>
84894
84895         * modules/sysexits: New file.
84896         * MODULES.html.sh (func_all_modules): Add sysexits.
84897
84898 2003-06-11  Simon Josefsson  <jas@extundo.com>
84899
84900         * lib/sysexit_.h: New file.
84901
84902 2003-06-11  Derek Price  <derek@ximbiot.com>
84903
84904         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
84905         necessary.
84906
84907 2003-06-11  Bruno Haible  <bruno@clisp.org>
84908
84909         * m4/sysexits.m4: New file.
84910
84911 2003-06-10  Simon Josefsson  <jas@extundo.com>
84912
84913         * lib/argp.h: New file, from glibc.
84914         * lib/argp-ba.c: New file, from glibc.
84915         * lib/argp-eexst.c: New file, from glibc.
84916         * lib/argp-fmtstream.c: New file, from glibc.
84917         * lib/argp-fmtstream.h: New file, from glibc.
84918         * lib/argp-fs-xinl.c: New file, from glibc.
84919         * lib/argp-help.c: New file, from glibc.
84920         * lib/argp-namefrob.h: New file, from glibc.
84921         * lib/argp-parse.c: New file, from glibc.
84922         * lib/argp-pv.c: New file, from glibc.
84923         * lib/argp-pvh.c: New file, from glibc.
84924         * lib/argp-xinl.c: New file, from glibc.
84925
84926 2003-06-10  Simon Josefsson  <jas@extundo.com>
84927
84928         * modules/strchrnul: New file.
84929
84930 2003-06-10  Simon Josefsson  <jas@extundo.com>
84931
84932         * modules/argp: New file.
84933
84934 2003-06-10  Simon Josefsson  <jas@extundo.com>
84935
84936         * m4/strchrnul.m4: New file.
84937
84938 2003-06-10  Simon Josefsson  <jas@extundo.com>
84939
84940         * lib/strchrnul.h: New file.
84941         * lib/strchrnul.c: New file.
84942
84943 2003-06-10  Bruno Haible  <bruno@clisp.org>
84944
84945         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
84946
84947 2003-06-07  Karl Berry  <karl@gnu.org>
84948
84949         * config/config.{guess,sub}: update from prep.
84950
84951 2003-06-07  Jim Meyering  <jim@meyering.net>
84952
84953         * modules/strtod: Use $(...) notation, not @...@ for
84954         AC_REPLACE'd variables.
84955         * modules/localcharset: Likewise.
84956
84957 2003-06-07  Jim Meyering  <jim@meyering.net>
84958
84959         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
84960         in place of my name in the copyright comment.
84961         Remove definition and uses of __P.
84962
84963         From coreutils.
84964         * lib/stat.c: Don't declare xmalloc explicitly.
84965         Instead, include "xalloc.h".
84966         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
84967         xrealloc, and xcalloc return values.
84968         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
84969         Improve comment.
84970         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
84971
84972 2003-06-07  Bruno Haible  <bruno@clisp.org>
84973
84974         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
84975         avoid AC_CONFIG_LINKS.
84976         * modules/fnmatch (Makefile.am): Use explicit creation rule for
84977         fnmatch.h, to avoid AC_CONFIG_LINKS.
84978         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
84979
84980 2003-06-07  Bruno Haible  <bruno@clisp.org>
84981
84982         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
84983         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
84984         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84985         directory.
84986         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
84987         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84988         directory.
84989
84990 2003-06-06  Jim Meyering  <jim@meyering.net>
84991
84992         Merge from coreutils.
84993         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
84994         Consolidate declarations and initializations of *_base* locals.
84995
84996         Merge from coreutils.
84997         This avoids a core dump on systems without GNU putenv,
84998         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
84999         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
85000         (unsetenv): New static function, from GNU libc.
85001         (rpl_putenv): Use it.
85002
85003         * lib/modechange.c: Remove trailing blanks.
85004
85005         Merge from coreutils.
85006         * lib/fsusage.c: Remove declaration of statfs.
85007         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
85008
85009         * lib/posixtm.c: Include <stdbool.h> unconditionally.
85010
85011 2003-06-06  Jim Meyering  <jim@meyering.net>
85012
85013         * lib/stdbool_.h: Renamed from stdbool.h.in.
85014
85015 2003-06-06  Jim Meyering  <jim@meyering.net>
85016             Bruno Haible  <bruno@clisp.org>
85017
85018         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
85019         Adjust Makefile.am snippet not to redirect directly to target.
85020         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
85021
85022 2003-06-05  Paul Eggert  <eggert@twinsun.com>
85023
85024         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
85025         mismatch, look in future quarters as well as past.  This fixes a
85026         bug when processing fall-backwards gaps immediately after a long
85027         period of daylight-saving time.
85028
85029         * lib/mktime.c: Assume freestanding C89 or better.
85030         (HAVE_LIMITS_H): Remove.  Assume it's 1.
85031         (__P): Remove; not used.
85032         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
85033         (mktime, not_equal_tm, print_tm, check_result,
85034         main): Use prototypes.  Use const * where appropriate.
85035         (main): Fix typo in testing code that uncovered by above changes.
85036         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
85037
85038 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85039
85040         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
85041         locale.h, localeconv.  This merges changes from coreutils.
85042
85043         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
85044         It can be removed after the next Autoconf is released.
85045         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
85046         needed.
85047
85048 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85049
85050         * lib/mktime.c: Fix Debian bug 177940
85051         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
85052         (localtime_offset): Now long int, not time_t, because we want it
85053         to be guaranteed to be signed.  All uses changed.
85054         (__mktime_internal): If overflow would occur when adding offset,
85055         don't add it.
85056
85057         Merge 'human' changes from coreutils.  Rewrite to support
85058         locale-specific notations like thousands separators.
85059         * lib/human.c: Simplify authorship notice.
85060         Include human.h immediately after config.h.
85061         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
85062         <limits.h>: Do not include, since human.h does.
85063         (SIZE_MAX, UINTMAX_MAX): New macros.
85064         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
85065         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
85066         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
85067         (power_letter): Renamed from suffixes.
85068         (generate_suffix_backwards): Remove.
85069         (adjust_value): Now takes int style (because of human.h changes)
85070         and long double value (for greater precision on some platforms).
85071         (group_number): New function.
85072         (human_readable): Use it.  Use integer options, not enum.
85073         Put the options before the sizes in the arg list.
85074         Support all the new options.
85075         The old human_readable function has been removed;
85076         use inttostr.h instead.
85077         (human_readable, default_block_size, humblock):
85078         Use uintmax_t, not int, for block sizes.
85079         (human_readable_inexact, block_size_types): Remove.
85080         (block_size_opts): New constant.
85081         (human_options): Renamed from human_block_size, with new signature
85082         that allows block sizes up to UINTMAX_MAX.  All callers changed.
85083         * lib/human.h: Add copyright and authorship notice.
85084         Include <limits.h> and <stdbool.h> unconditionally.
85085         (PARAMS): Remove.  All uses removed.
85086         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
85087         (enum human_inexact_style): Remove tag; now a nameless enum.
85088         (human_floor, human_ceiling, human_round_to_even): Now have
85089         values 2, 0, 1 rather than -1, 1, 0.
85090         (human_group_digits, human_suppress_point_zero, human_autoscale,
85091         human_base_1024, human_SI, human_B): New constants.
85092         (human_readable_inexact, human_block_size): Remove.
85093         (human_readable): Size args are now uintmax_t, not int.
85094         (human_options): New decl.
85095
85096         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
85097         unnecessary now that we assume C89 or better.  This change
85098         imported from coreutils.
85099
85100         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85101         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
85102         in the 2003-05-30 sync from glibc.
85103
85104         .h files should stand alone, but we shouldn't include <sys/types.h>
85105         if we can get away with just <stddef.h>.
85106
85107         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
85108         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
85109         rather than <sys/types.h>, as we merely need size_t.
85110         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
85111         to get size_t.
85112         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
85113         Include <stdio.h>, to get FILE.
85114         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
85115         memcasecmp.h has included <stddef.h> and all we need is size_t.
85116         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
85117         our interface, instead of including <sys/types.h>
85118
85119 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85120
85121         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
85122         now, as glibc mktime is buggy on non-glibc systems.
85123
85124 2003-06-03  Karl Berry  <karl@gnu.org>
85125
85126         * config/config.sub: update from prep.
85127
85128 2003-06-02  Paul Eggert  <eggert@twinsun.com>
85129
85130         [from coreutils]
85131         Fix some minor time-related bugs with POSIX time arguments.
85132         Some valid time stamps were being rejected (notably -1, and
85133         time stamps before 1900 on 64-bit hosts).  And some invalid
85134         time stamps were being accepted, e.g. September 31.
85135
85136         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
85137         that we can return (time_t) -1 successfully.
85138         * lib/posixtm.c: Likewise.
85139         [HAVE_STDBOOL_H]: Include <stdbool.h>.
85140         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
85141         (t): Remove static var.
85142         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
85143         of static var.  All uses changed.
85144         (year): Do not reject years before 1900; they can occur with
85145         64-bit time_t.
85146         (posix_time_parse): Do not check for out-of-range components;
85147         that is now the caller's responsibility, since our checks were
85148         only approximations.
85149         (posixtime): Use mktime to check for out-of-range components,
85150         since it knows them exactly.
85151         If mktime returns (time_t) -1, check whether an error actually occurred
85152         by invoking localtime on -1.
85153         (main) [TEST_POSIXTIME]: Check for input data errors, and report
85154         posixtime failures better.
85155         Improve the test data (in comments only).
85156
85157 2003-06-02  Karl Berry  <karl@gnu.org>
85158
85159         * config/mkinstalldirs (version): new variable.
85160         (--version): new option.
85161         (usage): improve message.
85162
85163 2003-05-30  Karl Berry  <karl@gnu.org>
85164
85165         * lib/mktime.c: update from libc.
85166
85167 2003-05-30  Bruno Haible  <bruno@clisp.org>
85168
85169         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
85170         * config/config.rpath: Upgrade to gettext-0.12.1.
85171
85172 2003-05-30  Bruno Haible  <bruno@clisp.org>
85173
85174         * m4/gettext.m4: Upgrade to gettext-0.12.1.
85175         * m4/nls.m4: New file, from gettext-0.12.1.
85176         * m4/po.m4: New file, from gettext-0.12.1.
85177         * m4/progtest.m4: Upgrade to gettext-0.12.1.
85178
85179 2003-05-30  Bruno Haible  <bruno@clisp.org>
85180
85181         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
85182         * lib/localcharset.h: Likewise.
85183         * lib/localcharset.c: Likewise.
85184
85185 2003-05-29  Karl Berry  <karl@gnu.org>
85186
85187         * config/config.rpath: update from gettext.
85188
85189 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85190
85191         Assume the headers required for C89 freestanding compilers.
85192         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
85193         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
85194         * m4/human.m4 (gl_HUMAN): Likewise.
85195         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
85196         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
85197         * m4/userspec.m4 (gl_USERSPEC): Likewise.
85198         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
85199         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
85200         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
85201
85202 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85203
85204         Assume the headers required for C89 freestanding compilers.
85205         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
85206         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
85207         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
85208         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
85209         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
85210         define, since <limits.h> is guaranteed to do that.
85211         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
85212         * lib/exclude.c: Include <stdbool.h> unconditionally.
85213         * lib/tempname.c: Include <stddef.h> unconditionally.
85214         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
85215         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
85216         <stddef.h> does that.
85217         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
85218         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
85219         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
85220         needed.
85221         * lib/xstrtol.c: Likewise.
85222         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
85223         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
85224
85225         * lib/addext.c (addext): Use assignment rather than cast, to avoid
85226         warnings on some platforms.
85227
85228         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85229         arbitrarily.
85230
85231 2003-05-26  Jim Meyering  <jim@meyering.net>
85232
85233         Merge in a change from coreutils:
85234         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
85235         that is guaranteed to be `no'.  Use `no_such_member' to indicate
85236         that condition, rather than `-1' which is slightly misleading.
85237         Change the name of the cache variable to have the gl_ prefix.
85238         Prompted by a patch from Richard Dawe for DJGPP.
85239
85240 2003-05-24  Karl Berry  <karl@gnu.org>
85241
85242         * config/config.guess: update from prep.
85243
85244 2003-05-22  Karl Berry  <karl@gnu.org>
85245
85246         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
85247
85248 2003-05-20  Karl Berry  <karl@gnu.org>
85249
85250         * config/config.guess: update from prep.
85251
85252 2003-05-18  Karl Berry  <karl@gnu.org>
85253
85254         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
85255         might actually be set by the user.
85256
85257         * config/depcomp, install-sh, mdate-sh: update from automake.
85258
85259 2003-05-17  Bruno Haible  <bruno@clisp.org>
85260
85261         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
85262         invalid expansion for AC_EGREP_CPP.
85263         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
85264         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
85265         Suggested by Akim Demaille <akim@epita.fr> in
85266         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
85267
85268 2003-05-12  Jim Meyering  <jim@meyering.net>
85269
85270         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
85271         the space-padded-by-default conversion specifiers, %e, %k, %l.
85272
85273 2003-05-12  Bruno Haible  <bruno@clisp.org>
85274
85275         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
85276         the string is longer than 4 KB.
85277
85278 2003-05-11  Karl Berry  <karl@gnu.org>
85279
85280         * config/config.{guess,sub}: update from prep.
85281
85282 2003-05-09  Bruno Haible  <bruno@clisp.org>
85283
85284         * modules/error: Add m4/strerror_r.m4 to file list.
85285
85286 2003-05-03  Bruno Haible  <bruno@clisp.org>
85287
85288         Upgrade to Unicode-4.0.
85289         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
85290         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
85291         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
85292         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
85293         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
85294         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
85295         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
85296         Change width of U+E0100..U+E01EF from 1 to 0.
85297
85298 2003-04-25  Jim Meyering  <jim@meyering.net>
85299
85300         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
85301         of type size_t, not int.
85302
85303 2003-04-25  Bruno Haible  <bruno@clisp.org>
85304
85305         * lib/copy-file.c: Include <stddef.h>, for size_t.
85306
85307 2003-04-21  Paul Eggert  <eggert@twinsun.com>
85308
85309         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
85310         code which expansion is under static control.  Patch imported from
85311         Akim Demaille's patch to Bison; see
85312         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
85313
85314 2003-04-14  Bruno Haible  <bruno@clisp.org>
85315
85316         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
85317
85318 2003-04-11  Jim Meyering  <jim@meyering.net>
85319
85320         Merge changes from Coreutils.
85321
85322         2003-03-22  Jim Meyering  <jim@meyering.net>
85323
85324         * lib/strftime.c (widen): Cast alloca return value to proper type.
85325
85326         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
85327
85328         From GNU libc.
85329         * lib/strftime.c (my_strftime): Handle very large width
85330         specifications for numeric values correctly.  Improve checks for
85331         overflow.
85332
85333         2003-01-19  Jim Meyering  <jim@meyering.net>
85334
85335         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
85336         definitions.
85337         (nl_get_alt_digit) [! defined my_strftime]: Define.
85338         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
85339         _nl_get_alt_digit and _nl_get_walt_digit.
85340
85341         * lib/strftime.c (my_strftime): Merge in locale-related changes from
85342         libc. These changes have no effect outside of _LIBC.
85343
85344 2003-04-10  Bruno Haible  <bruno@clisp.org>
85345
85346         * modules/findprog: New file.
85347         * MODULES.html.sh (func_all_modules): Add it.
85348
85349 2003-04-10  Bruno Haible  <bruno@clisp.org>
85350
85351         * m4/findprog.m4: New file.
85352         * m4/eaccess.m4: New file.
85353
85354 2003-04-10  Bruno Haible  <bruno@clisp.org>
85355
85356         * lib/findprog.h: New file, from GNU gettext.
85357         * lib/findprog.c: New file, from GNU gettext.
85358
85359 2003-04-05  Jim Meyering  <jim@meyering.net>
85360
85361         Merge changes from Coreutils.
85362
85363         * lib/exclude.h (PARAMS): Remove definition and uses.
85364         * lib/exclude.c: Remove uses of `PARAMS'.
85365
85366         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
85367         Add test-cases for DOS filenames. Declare program_name.
85368         (main): Set up program_name.  Patch by Rich Dawe.
85369
85370         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85371         error from mntctl.
85372         Use mntctl's return value to drive the entry-processing loop, since
85373         we can't rely on the value of the vmt_length member in the last
85374         entry.  On some systems doing so could result in exhausting
85375         virtual memory.  Based in part on a patch from Mike Jetzer.
85376
85377 2003-04-04  Bruno Haible  <bruno@clisp.org>
85378
85379         * modules/linebreak: New file.
85380         * MODULES.html.sh (func_all_modules): Add it.
85381
85382 2003-04-04  Bruno Haible  <bruno@clisp.org>
85383
85384         * m4/linebreak.m4: New file.
85385
85386 2003-04-04  Bruno Haible  <bruno@clisp.org>
85387
85388         * lib/linebreak.h: New file, from GNU gettext.
85389         * lib/linebreak.c: New file, from GNU gettext with slight
85390         modifications.
85391         * lib/lbrkprop.h: New file, from GNU gettext.
85392
85393 2003-04-03  Bruno Haible  <bruno@clisp.org>
85394
85395         * modules/utf8-ucs4: New file.
85396         * modules/utf16-ucs4: New file.
85397         * modules/ucs4-utf8: New file.
85398         * modules/ucs4-utf16: New file.
85399         * MODULES.html.sh (func_all_modules): Add them.
85400
85401 2003-04-03  Bruno Haible  <bruno@clisp.org>
85402
85403         * m4/utf-ucs4.m4: New file.
85404         * m4/ucs4-utf.m4: New file.
85405
85406 2003-04-03  Bruno Haible  <bruno@clisp.org>
85407
85408         * lib/utf8-ucs4.h: New file, from GNU gettext.
85409         * lib/utf16-ucs4.h: New file, from GNU gettext.
85410         * lib/ucs4-utf8.h: New file, from GNU gettext.
85411         * lib/ucs4-utf16.h: New file, from GNU gettext.
85412
85413 2003-04-02  Bruno Haible  <bruno@clisp.org>
85414
85415         * modules/binary-io: New file.
85416         * MODULES.html.sh (func_all_modules): Add it.
85417
85418 2003-04-02  Bruno Haible  <bruno@clisp.org>
85419
85420         * lib/binary-io.h: New file, from GNU gettext.
85421
85422 2003-04-01  Bruno Haible  <bruno@clisp.org>
85423
85424         * modules/pathname: New file.
85425         * MODULES.html.sh (func_all_modules): Add it.
85426
85427 2003-04-01  Bruno Haible  <bruno@clisp.org>
85428
85429         * lib/pathname.h: New file, from GNU gettext.
85430         * lib/concatpath.c: New file, from GNU gettext.
85431
85432 2003-03-30  Bruno Haible  <bruno@clisp.org>
85433
85434         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
85435
85436 2003-03-30  Bruno Haible  <bruno@clisp.org>
85437
85438         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
85439         function chown() doesn't exist.
85440
85441 2003-03-28  Bruno Haible  <bruno@clisp.org>
85442
85443         * modules/copy-file: New file.
85444         * MODULES.html.sh (func_all_modules): Add it.
85445
85446 2003-03-28  Bruno Haible  <bruno@clisp.org>
85447
85448         * m4/copy-file.m4: New file.
85449
85450 2003-03-28  Bruno Haible  <bruno@clisp.org>
85451
85452         * lib/copy-file.h: New file, from GNU gettext.
85453         * lib/copy-file.c: New file, from GNU gettext.
85454
85455 2003-03-18  Jim Meyering  <jim@meyering.net>
85456
85457         * lib/quote.c (quote_n): Fix typo in comment.
85458
85459 2003-03-18  Bruno Haible  <bruno@clisp.org>
85460
85461         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
85462         checking.
85463         * m4/onceonly_2_57.m4: Likewise.
85464
85465 2003-03-17  Bruno Haible  <bruno@clisp.org>
85466
85467         * m4/onceonly.m4: Require autoconf 2.54 or newer.
85468         (m4_quote): Remove macro.
85469         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
85470
85471 2003-03-14  Jim Meyering  <jim@meyering.net>
85472
85473         Merge changes from Coreutils.
85474         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
85475         to be const, in order to avoid warnings.
85476         (obstack_room): Likewise.
85477         (obstack_empty_p): Likewise.
85478
85479 2003-03-14  Bruno Haible  <bruno@clisp.org>
85480
85481         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
85482         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
85483
85484 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85485
85486         Merge changes from Bison.
85487         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
85488         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
85489         when compiling Bison 1.875's `bitset bset = obstack_alloc
85490         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
85491         * lib/hash.c: Include <stdbool.h> unconditionally.
85492
85493 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85494
85495         * m4/onceonly.m4 (m4_quote): New macro.
85496         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
85497         Quote AC_FOREACH variable-expansions properly.
85498
85499 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85500
85501         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
85502
85503 2003-03-09  Paul Eggert  <eggert@twinsun.com>
85504
85505         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
85506         Reported by Bruce Becker; see:
85507         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
85508
85509 2003-03-03  Paul Eggert  <eggert@twinsun.com>
85510             Bruno Haible  <bruno@clisp.org>
85511
85512         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
85513         Reported by John Hughes, see
85514         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
85515
85516 2003-02-20  Bruno Haible  <bruno@clisp.org>
85517
85518         * MODULES.html.sh (func_all_modules): Add poll.
85519
85520 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85521
85522         * modules/poll: New file.
85523
85524 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85525
85526         * lib/poll_.h: New file.
85527         * lib/poll.c: New file.
85528
85529 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85530
85531         * m4/poll.m4: New file.
85532
85533 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85534
85535         * modules/mathl: New file.
85536
85537 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85538
85539         * lib/mathl.h: New file.
85540         * lib/acosl.c: New file.
85541         * lib/asinl.c: New file.
85542         * lib/atanl.c: New file.
85543         * lib/ceill.c: New file.
85544         * lib/cosl.c: New file.
85545         * lib/expl.c: New file.
85546         * lib/floorl.c: New file.
85547         * lib/frexpl.c: New file.
85548         * lib/ldexpl.c: New file.
85549         * lib/logl.c: New file.
85550         * lib/sincosl.c: New file.
85551         * lib/sinl.c: New file.
85552         * lib/sqrtl.c: New file.
85553         * lib/tanl.c: New file.
85554         * lib/trigl.c: New file.
85555         * lib/trigl.h: New file.
85556
85557 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85558
85559         * m4/mathl.m4: New file.
85560
85561 2003-02-18  Bruno Haible  <bruno@clisp.org>
85562
85563         * MODULES.html.sh (func_all_modules): Add mathl.
85564
85565 2003-02-17  Bruno Haible  <bruno@clisp.org>
85566
85567         * modules/mkdtemp: New module.
85568         * MODULES.html.sh (func_all_modules): Add it.
85569
85570 2003-02-17  Bruno Haible  <bruno@clisp.org>
85571
85572         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
85573
85574 2003-02-17  Bruno Haible  <bruno@clisp.org>
85575
85576         * lib/mkdtemp.h: New file, from GNU gettext.
85577         * lib/mkdtemp.c: New file, from GNU gettext.
85578
85579 2003-02-02  Jim Meyering  <jim@meyering.net>
85580
85581         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
85582         e.g. glibc-2.2.93.
85583
85584 2003-01-31  Bruno Haible  <bruno@clisp.org>
85585
85586         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
85587         'rpl_rename'.
85588         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
85589         'rpl_strnlen'.
85590         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
85591         'rpl_strtod'.
85592         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
85593         'rpl_utime'.
85594
85595 2003-01-31  Bruno Haible  <bruno@clisp.org>
85596
85597         * lib/rename.c: #undef rename before defining rpl_rename.
85598         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
85599
85600 2003-01-30  Bruno Haible  <bruno@clisp.org>
85601
85602         * modules/vasnprintf, modules/vasprintf: New modules.
85603         * MODULES.html.sh (func_all_modules): Add them.
85604
85605 2003-01-30  Bruno Haible  <bruno@clisp.org>
85606
85607         * m4/signed.m4: New file, from GNU gettext.
85608         * m4/longdouble.m4: New file, from GNU gettext.
85609         * m4/wchar_t.m4: New file, from GNU gettext.
85610         * m4/wint_t.m4: New file, from GNU gettext.
85611         * m4/vasnprintf.m4: New file.
85612         * m4/vasprintf.m4: New file.
85613
85614 2003-01-30  Bruno Haible  <bruno@clisp.org>
85615
85616         * lib/printf-args.h: New file, from GNU gettext.
85617         * lib/printf-args.c: New file, from GNU gettext.
85618         * lib/printf-parse.h: New file, from GNU gettext.
85619         * lib/printf-parse.c: New file, from GNU gettext.
85620         * lib/vasnprintf.h: New file, from GNU gettext.
85621         * lib/vasnprintf.c: New file, from GNU gettext.
85622         * lib/asnprintf.c: New file, from GNU gettext.
85623         * lib/vasprintf.h: New file, from GNU gettext with modifications.
85624         * lib/vasprintf.c: New file, from GNU gettext.
85625         * lib/asprintf.c: New file, from GNU gettext.
85626
85627 2003-01-29  Bruno Haible  <bruno@clisp.org>
85628
85629         * modules/stpncpy: New module.
85630         * MODULES.html.sh (func_all_modules): Add it.
85631
85632 2003-01-29  Bruno Haible  <bruno@clisp.org>
85633
85634         * m4/stpncpy.m4: New file.
85635
85636 2003-01-29  Bruno Haible  <bruno@clisp.org>
85637
85638         * lib/stpncpy.h: New file, from GNU gettext with modifications.
85639         * lib/stpncpy.c: New file, from GNU gettext with modifications.
85640
85641 2003-01-28  Bruno Haible  <bruno@clisp.org>
85642
85643         * modules/c-ctype: New module.
85644         * MODULES.html.sh (func_all_modules): Add it.
85645
85646 2003-01-28  Bruno Haible  <bruno@clisp.org>
85647
85648         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
85649         Paul Eggert.
85650         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
85651         Paul Eggert.
85652
85653 2003-01-27  Bruno Haible  <bruno@clisp.org>
85654
85655         * modules/xsetenv: New module.
85656         * MODULES.html.sh (func_all_modules): Add it.
85657
85658 2003-01-27  Bruno Haible  <bruno@clisp.org>
85659
85660         * lib/xsetenv.h: New file, from GNU gettext.
85661         * lib/xsetenv.c: New file, from GNU gettext.
85662
85663 2003-01-23  Jim Meyering  <jim@meyering.net>
85664
85665         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
85666         from working on systems without dirfd (at least Irix and OSF1/Tru64).
85667
85668 2003-01-23  Bruno Haible  <bruno@clisp.org>
85669
85670         * modules/minmax: New module.
85671         * MODULES.html.sh (func_all_modules): Add it.
85672
85673 2003-01-23  Bruno Haible  <bruno@clisp.org>
85674
85675         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
85676         Eggert.
85677
85678 2003-01-22  Bruno Haible  <bruno@clisp.org>
85679
85680         * modules/exit: New module.
85681         * MODULES.html.sh (func_all_modules): Add it.
85682
85683 2003-01-22  Bruno Haible  <bruno@clisp.org>
85684
85685         * lib/exit.h: New file, from GNU gettext.
85686
85687 2003-01-19  Bruno Haible  <bruno@clisp.org>
85688
85689         * gnulib-tool: Recognize option --extract-maintainer.
85690         (func_get_maintainer): New function.
85691         * modules/*: Add Maintainer entry.
85692
85693 2003-01-16  Jim Meyering  <jim@meyering.net>
85694
85695         * m4/regex.m4: The `regex' struct is both input and output.
85696         Initialize it before each use.  Patch by Tim Waugh.
85697
85698 2003-01-16  Bruno Haible  <bruno@clisp.org>
85699
85700         * MODULES.html.sh: Add a table of contents. Add the module name as
85701         leftmost column. Add hyperlinks.
85702
85703 2003-01-15  Bruno Haible  <bruno@clisp.org>
85704
85705         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
85706
85707 2003-01-15  Bruno Haible  <bruno@clisp.org>
85708
85709         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
85710         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
85711         suffix.
85712
85713 2003-01-15  Bruno Haible  <bruno@clisp.org>
85714
85715         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
85716
85717 2003-01-15  Bruno Haible  <bruno@clisp.org>
85718
85719         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
85720         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
85721
85722 2003-01-14  Jim Meyering  <jim@meyering.net>
85723
85724         * lib/same.c (same_name): Tweak a comment.
85725
85726 2003-01-14  Bruno Haible  <bruno@clisp.org>
85727
85728         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
85729         when a string comparison is sufficient.
85730
85731 2003-01-14  Bruno Haible  <bruno@clisp.org>
85732
85733         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
85734         'unsigned int'.
85735
85736 2003-01-14  Bruno Haible  <bruno@clisp.org>
85737
85738         * lib/hash-pjw.c: Add comment about low quality of this function.
85739
85740 2003-01-13  Bruno Haible  <bruno@clisp.org>
85741
85742         * modules/stpcpy: Distribute lib/stpcpy.h.
85743         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
85744
85745 2003-01-13  Bruno Haible  <bruno@clisp.org>
85746
85747         * modules/*: Add a description.
85748         * modules/strpbrk: Fix Makefile.am snippet.
85749         * modules/strtoimax: Fix dependencies.
85750         * modules/strtoumax: Likewise.
85751
85752 2003-01-13  Bruno Haible  <bruno@clisp.org>
85753
85754         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
85755         * modules/alloca (Makefile.am): All object files depend on alloca.h.
85756         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
85757
85758 2003-01-13  Bruno Haible  <bruno@clisp.org>
85759
85760         * gnulib-tool (func_create_testdir): Store config/* files in the main
85761         directory.
85762         * config.rpath: Move to ...
85763         * config/config.rpath: ... here.
85764         * modules/gettext: Contains config/config.rpath, not config.rpath.
85765         * modules/iconv: Likewise.
85766
85767 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85768
85769         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85770         to avoid collisions with libcurses and libreadline.
85771
85772         * m4/getstr.m4: Remove.
85773         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
85774
85775 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85776
85777         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85778         to avoid collisions with libcurses and libreadline.
85779
85780         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
85781         * lib/getstr.h, getstr.c: Remove.
85782         * lib/getline.c: Include "getline.h", to check interface.
85783         Move body of old getstr.c here: this defines MIN_CHUNK and
85784         declares getdelim2, which is renamed from getstr.
85785         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
85786
85787         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
85788         All uses changed.
85789         * lib/linebuffer.h: Likewise.
85790         (readline): Remove backward-compatibility macro.
85791
85792 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85793
85794         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85795         to avoid collisions with libcurses and libreadline.
85796         * getstr: Remove.
85797         * MODULES.html.sh: Remove getstr.
85798         * modules/getline: Depend on unlocked-io, not getstr.
85799
85800 2003-01-12  Jim Meyering  <jim@meyering.net>
85801
85802         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
85803
85804 2003-01-10  Bruno Haible  <bruno@clisp.org>
85805
85806         * modules/alloca: Change Makefile.am requirements. Simplify Include
85807         requirements. Add lib/alloca_.h to file list.
85808
85809 2003-01-10  Bruno Haible  <bruno@clisp.org>
85810
85811         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
85812
85813 2003-01-10  Bruno Haible  <bruno@clisp.org>
85814
85815         * lib/alloca_.h: New file.
85816         * lib/getdate.y: Unconditionally include alloca.h.
85817         * lib/makepath.c: Likewise.
85818         * lib/setenv.c: Likewise.
85819         * lib/userspec.c: Likewise.
85820
85821 2003-01-09  Karl Berry  <karl@gnu.org>
85822
85823         * MODULES.html.sh: include `dirname $0` in PATH, to find
85824         gnulib-tool.
85825
85826 2003-01-09  Bruno Haible  <bruno@clisp.org>
85827
85828         * modules/stdbool: Change configure.ac, Makefile.am requirements.
85829         Simplify Include requirements. Add lib/stdbool.h.in to file list.
85830
85831 2003-01-09  Bruno Haible  <bruno@clisp.org>
85832
85833         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
85834
85835 2003-01-09  Bruno Haible  <bruno@clisp.org>
85836
85837         * lib/stdbool.h.in: New file.
85838
85839 2003-01-09  Bruno Haible  <bruno@clisp.org>
85840
85841         * gnulib-tool (func_all_modules): Ignore files ending in ~.
85842         * MODULES.html.sh: Likewise.
85843
85844 2003-01-08  Jim Meyering  <jim@meyering.net>
85845
85846         * lib/full-write.c: Undefine and define-away `const' after inclusion
85847         of errno.h, not before.  Suggestion from Bruno Haible.
85848
85849 2003-01-08  Bruno Haible  <bruno@clisp.org>
85850
85851         * modules/full-read: Depend on full-write.
85852
85853 2003-01-08  Bruno Haible  <bruno@clisp.org>
85854
85855         * lib/safe-read.c: Include specification header first, to ensure its
85856         selfcontainedness.
85857         * lib/full-write.c: Likewise.
85858
85859 2003-01-07  Jim Meyering  <jim@meyering.net>
85860
85861         * lib/full-write.c: Rework so that it may serve to define full_read,
85862         too.
85863         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
85864
85865 2003-01-07  Bruno Haible  <bruno@clisp.org>
85866
85867         * lib/strtoimax.c: Include <stdint.h> as an alternative to
85868         <inttypes.h>.
85869         * lib/xstrtol.h: Likewise.
85870         * lib/xstrtoimax.c: Likewise.
85871         * lib/xstrtoumax.c: Likewise.
85872         * lib/human.h: Likewise.
85873
85874         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
85875         on systems that have <inttypes.h> but not <stdint.h>.
85876
85877 2003-01-07  Bruno Haible  <bruno@clisp.org>
85878
85879         * MODULES.html.sh: Add copyright notice.
85880         (missed_files): Omit CVS directory entries.
85881         (func_module): Make it work with sed-3.02.
85882         * MODULES.txt: Remove file.
85883
85884 2003-01-06  Jim Meyering  <jim@meyering.net>
85885
85886         * lib/version-etc.c: Update year in translatable copyright string.
85887
85888 2003-01-03  Karl Berry  <karl@gnu.org>
85889
85890         * config/config.{guess,sub}: update from prep.
85891
85892 2003-01-02  Karl Berry  <karl@gnu.org>
85893
85894         * doc/COPYING.DOC: belatedly updated to 1.2.
85895
85896 2003-01-01  Karl Berry  <karl@gnu.org>
85897
85898         * gnulib-tool (func_verify_module): report module name $module in
85899         error message, not $1.
85900         * gnulib-tool (create-testdir): don't complain if destdir couldn't
85901         be created, only if it doesn't exist.
85902         * gnulib-tool (last_checkin_date): don't expand the $Date here.
85903
85904 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85905
85906         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
85907
85908 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85909
85910         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
85911         memcmp if strcoll doesn't work.
85912
85913 2002-12-31  Bruno Haible  <bruno@clisp.org>
85914
85915         * lib/utime.c (utime_null): No need to call ftruncate if the file was
85916         nonempty.
85917
85918 2002-12-31  Bruno Haible  <bruno@clisp.org>
85919
85920         * lib/memcoll.c (STRCOLL): New macro.
85921         (memcoll): Use it.
85922
85923 2002-12-31  Bruno Haible  <bruno@clisp.org>
85924
85925         * lib/localcharset.h: New file.
85926         * lib/localcharset.c: Include it.
85927         * lib/unicodeio.c: Likewise.
85928
85929 2002-12-31  Bruno Haible  <bruno@clisp.org>
85930
85931         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
85932         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
85933
85934 2002-12-31  Bruno Haible  <bruno@clisp.org>
85935
85936         * lib/getline.h: Include <stddef.h>, for size_t.
85937
85938         * lib/unicodeio.h: Include <stddef.h>, for size_t.
85939         * lib/unicodeio.c: Don't include <stddef.h>.
85940
85941 2002-12-31  Bruno Haible  <bruno@clisp.org>
85942
85943         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
85944         HAVE_TM_ZONE.
85945
85946 2002-12-24  Karl Berry  <karl@gnu.org>
85947
85948         * config/config.guess: update from prep.
85949
85950 2002-12-24  Bruno Haible  <bruno@clisp.org>
85951
85952         General infrasructure.
85953         * m4/README: Rewritten.
85954         * m4/onceonly.m4: New file.
85955         * m4/onceonly_2_57.m4: New file.
85956
85957         Module atexit.
85958         * m4/atexit.m4: New file.
85959
85960         Module strtod.
85961         * m4/strtod.m4: New file.
85962
85963         Module strtol.
85964         * m4/strtol.m4: New file.
85965
85966         Module strtoul.
85967         * m4/strtoul.m4: New file.
85968
85969         Module memchr.
85970         * m4/memchr.m4: New file.
85971
85972         Module memcmp.
85973         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
85974         (jm_FUNC_MEMCMP): Invoke it.
85975
85976         Module memcpy.
85977         * m4/memcpy.m4: New file.
85978
85979         Module memmove.
85980         * m4/memmove.m4: New file.
85981
85982         Module memset.
85983         * m4/memset.m4: New file.
85984
85985         Module strcspn.
85986         * m4/strcspn.m4: New file.
85987
85988         Module strpbrk.
85989         * m4/strpbrk.m4: New file.
85990
85991         Module strstr.
85992         * m4/strstr.m4: New file.
85993
85994         Module strerror.
85995         * m4/strerror.m4: New file.
85996
85997         Module mktime.
85998         * m4/mktime.m4: Renamed from jm-mktime.m4.
85999         (gl_PREREQ_MKTIME): New macro.
86000         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
86001
86002         Module malloc.
86003         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
86004         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
86005         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
86006
86007         Module realloc.
86008         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
86009         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
86010         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
86011
86012         Module strftime.
86013         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
86014         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
86015         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
86016         gl_TM_GMTOFF.
86017         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
86018
86019         Module xalloc.
86020         * m4/xalloc.m4: New file.
86021
86022         Module alloca.
86023         * m4/alloca.m4: New file.
86024
86025         Module putenv.
86026         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
86027         (jm_FUNC_PUTENV): Invoke it.
86028
86029         Module setenv.
86030         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
86031         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
86032         when invoked twice.
86033         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
86034         gt_FUNC_SETENV.
86035
86036         Module memrchr.
86037         * m4/memrchr.m4: New file.
86038
86039         Module stpcpy.
86040         * m4/stpcpy.m4: New file.
86041
86042         Module strcase.
86043         * m4/strcase.m4: New file.
86044
86045         Module strdup.
86046         * m4/strdup.m4: New file.
86047
86048         Module strnlen.
86049         * m4/strnlen.m4: New file.
86050
86051         Module strndup.
86052         * m4/strndup.m4: New file.
86053
86054         Module xstrtod.
86055         * m4/xstrtod.m4: New file.
86056
86057         Module xstrtol.
86058         * m4/xstrtol.m4: New file.
86059
86060         Module getdate.
86061         * m4/getdate.m4: New file.
86062
86063         Module unlocked-io.
86064         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
86065         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
86066         * m4/jm-glibc-io.m4n: Remove file.
86067
86068         Module long-options.
86069         * m4/long-options.m4: New file.
86070
86071         Module md5.
86072         * m4/md5.m4: New file.
86073
86074         Module sha.
86075         * m4/sha.m4: New file.
86076
86077         Module getstr.
86078         * m4/getstr.m4: New file.
86079
86080         Module getline.
86081         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
86082         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
86083         <sys/types.h>, for size_t. Use the function name gnu_getline, not
86084         simply getline. Infoke gl_PREREQ_GETLINE.
86085
86086         Module obstack.
86087         * m4/obstack.m4: New file.
86088
86089         Module hash.
86090         * m4/hash.m4: New file.
86091
86092         Module readtokens.
86093         * m4/readtokens.m4: New file.
86094
86095         Module strverscmp.
86096         * m4/strverscmp.m4: New file.
86097
86098         Module stdbool.
86099         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
86100         OSF/1.
86101
86102         Module strtoll.
86103         * m4/strtoll.m4: New file.
86104
86105         Module strtoull.
86106         * m4/strtoull.m4: New file.
86107
86108         Module strtoimax.
86109         * m4/strtoimax.m4: New file.
86110
86111         Module strtoumax.
86112         * m4/strtoumax.m4: New file.
86113
86114         Module xstrtoimax.
86115         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
86116         jm_AC_PREREQ_XSTRTOIMAX.
86117         Moved the strtol prerequisites to strtol.m4.
86118         Moved the strtoll prerequisites to strtoll.m4.
86119         Moved the strtoimax prerequisites to strtoimax.m4.
86120
86121         Module xstrtoumax.
86122         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
86123         jm_AC_PREREQ_XSTRTOUMAX.
86124         Moved the strtoul prerequisites to strtoul.m4.
86125         Moved the strtoull prerequisites to strtoull.m4.
86126         Moved the strtoumax prerequisites to strtoumax.m4.
86127
86128         Module chown.
86129         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
86130         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
86131
86132         Module dup2.
86133         * m4/dup2.m4: New file.
86134
86135         Module ftruncate.
86136         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
86137         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
86138
86139         Module getgroups.
86140         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
86141         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
86142
86143         Module gettimeofday.
86144         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
86145         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
86146         gl_PREREQ_GETTIMEOFDAY.
86147
86148         Module mkdir.
86149         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
86150         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
86151
86152         Module mkstemp.
86153         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
86154         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
86155         jm_AC_TYPE_UINTMAX_T.
86156         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
86157
86158         Module stat.
86159         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
86160         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
86161
86162         Module lstat.
86163         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
86164         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
86165
86166         Module timespec.
86167         * m4/timespec.m4 (gl_TIMESPEC): New macro.
86168         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
86169         * m4/st_mtim.m4: Indentation.
86170
86171         Module nanosleep.
86172         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
86173         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
86174         gl_PREREQ_NANOSLEEP.
86175
86176         Module regex.
86177         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
86178         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
86179         (gl_REGEX): New macro.
86180
86181         Module rename.
86182         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
86183         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
86184
86185         Module rmdir.
86186         * m4/rmdir.m4: New file.
86187
86188         Module utime.
86189         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
86190         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
86191         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
86192
86193         Module dirname.
86194         * m4/dirname.m4: New file.
86195
86196         Module getopt.
86197         * m4/getopt.m4: New file.
86198
86199         Module unistd-safer.
86200         * m4/unistd-safer.m4: New file.
86201
86202         Module fnmatch.
86203         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
86204         declaration.
86205         (gl_PREREQ_FNMATCH_EXTRA): New macro.
86206         (gl_FUNC_FNMATCH_POSIX): New macro.
86207         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
86208         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
86209         simply fnmatch.
86210
86211         Module exclude.
86212         * m4/exclude.m4: New file.
86213
86214         Module human.
86215         * m4/human.m4: New file.
86216
86217         Module acl.
86218         * m4/acl.m4: Nop.
86219
86220         Module backupfile.
86221         * m4/backupfile.m4: New file.
86222         * m4/d-ino.m4: Indentation.
86223
86224         Module fsusage.
86225         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
86226         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
86227         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
86228
86229         Module dirfd.
86230         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
86231         requirements.
86232
86233         Module euidaccess.
86234         * m4/euidaccess.m4: New file.
86235
86236         Module file-type.
86237         * m4/file-type.m4: New file.
86238
86239         Module fileblocks.
86240         * m4/fileblocks.m4: New file.
86241
86242         Module filemode.
86243         * m4/filemode.m4: New file.
86244
86245         Module isdir.
86246         * m4/isdir.m4: New file.
86247
86248         Module lchown.
86249         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
86250         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
86251
86252         Module makepath.
86253         * m4/makepath.m4: New file.
86254
86255         Module modechange.
86256         * m4/modechange.m4: New file.
86257
86258         Module mountlist.
86259         * m4/mountlist.m4: New file.
86260         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
86261         Indentation.
86262
86263         Module path-concat.
86264         * m4/path-concat.m4: New file.
86265
86266         Module pathmax.
86267         * m4/pathmax.m4: New file.
86268
86269         Module same.
86270         * m4/same.m4: New file.
86271
86272         Module save-cwd.
86273         * m4/save-cwd.m4: New file.
86274
86275         Module savedir.
86276         * m4/savedir.m4: New file.
86277
86278         Module xgetcwd.
86279         * m4/xgetcwd.m4: New file.
86280         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
86281
86282         Module xreadlink.
86283         * m4/xreadlink.m4: New file.
86284
86285         Module safe-read.
86286         * m4/safe-read.m4: New file.
86287
86288         Module safe-write.
86289         * m4/safe-write.m4: New file.
86290
86291         Module closeout.
86292         * m4/closeout.m4: New file.
86293
86294         Module stdio-safer.
86295         * m4/stdio-safer.m4: New file.
86296
86297         Module getpass.
86298         * m4/getpass.m4: New file.
86299
86300         Module getugroups.
86301         * m4/getugroups.m4: New file.
86302
86303         Module group-member.
86304         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
86305         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
86306
86307         Module idcache.
86308         * m4/idcache.m4: New file.
86309
86310         Module userspec.
86311         * m4/userspec.m4: New file.
86312
86313         Module gettime.
86314         * m4/clock_time.m4: New file.
86315         * m4/gettime.m4: New file.
86316
86317         Module settime.
86318         * m4/settime.m4: New file.
86319
86320         Module posixtm.
86321         * m4/posixtm.m4: New file.
86322
86323         Module gethostname.
86324         * m4/gethostname.m4: New file.
86325
86326         Module canon-host.
86327         * m4/canon-host.m4: New file.
86328
86329         Module gettext.
86330         * m4/codeset.m4: New file, from gettext-0.11.5.
86331         * m4/gettext.m4: New file, from gettext-0.11.5.
86332         * m4/glibc21.m4: New file, from gettext-0.11.5.
86333         * m4/iconv.m4: New file, from gettext-0.11.5.
86334         * m4/intdiv0.m4: New file, from gettext-0.11.5.
86335         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
86336         * m4/inttypes.m4: New file, from gettext-0.11.5.
86337         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
86338         * m4/isc-posix.m4: New file, from gettext-0.11.5.
86339         * m4/lcmessage.m4: New file, from gettext-0.11.5.
86340         * m4/lib-ld.m4: New file, from gettext-0.11.5.
86341         * m4/lib-link.m4: New file, from gettext-0.11.5.
86342         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
86343         * m4/progtest.m4: New file, from gettext-0.11.5.
86344         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
86345         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
86346         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
86347
86348         Module localcharset.
86349         * m4/localcharset.m4: New file.
86350
86351         Module hard-locale.
86352         * m4/hard-locale.m4: New file.
86353
86354         Module mbswidth.
86355         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
86356         onceonly macros.
86357         * m4/mbrtowc.m4: Add comment.
86358
86359         Module memcasecmp.
86360         * m4/memcasecmp.m4: New file.
86361
86362         Module memcoll.
86363         * m4/memcoll.m4: New file.
86364
86365         Module unicodeio.
86366         * m4/unicodeio.m4: New file.
86367
86368         Module rpmatch.
86369         * m4/rpmatch.m4: New file.
86370
86371         Module yesno.
86372         * m4/yesno.m4: New file.
86373
86374         Module exitfail.
86375         * m4/exitfail.m4: New file.
86376
86377         Module c-stack.
86378         * m4/c-stack.m4 (gl_C_STACK): New macro.
86379         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
86380
86381         Module error.
86382         * m4/error.m4 (gl_ERROR): New macro.
86383         (jm_PREREQ_ERROR): Use onceonly macros.
86384
86385         Module fatal.
86386         * m4/fatal.m4: New file.
86387
86388         Module getloadavg.
86389         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
86390         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
86391
86392         Module getpagesize.
86393         * m4/getpagesize.m4: New file.
86394
86395         Module getusershell.
86396         * m4/getusershell.m4: New file.
86397
86398         Module physmem.
86399         * m4/physmem.m4: New file.
86400
86401         Module posixver.
86402         * m4/posixver.m4: New file.
86403
86404         Module quotearg.
86405         * m4/quotearg.m4: New file.
86406
86407         Module quote.
86408         * m4/quote.m4: New file.
86409
86410         Module readutmp.
86411         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
86412
86413         Module sig2str.
86414         * m4/sig2str.m4: New file.
86415
86416         Other.
86417         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
86418         ulonglong.m4.
86419         * m4/intmax_t.m4: New file.
86420         * m4/d-type.m4: Indentation.
86421         * m4/jm-macros.m4: Update.
86422         * m4/prereq.m4 (jm_PREREQ): Update.
86423         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
86424         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
86425         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
86426         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
86427         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
86428         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
86429         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
86430         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
86431         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
86432         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
86433         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
86434         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
86435         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
86436         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
86437         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
86438         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
86439         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
86440         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
86441         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
86442
86443 2002-12-24  Bruno Haible  <bruno@clisp.org>
86444
86445         * MODULES.txt: Update according to m4/ changes.
86446
86447         Module gettext.
86448         * config.rpath: New file, from gettext-0.11.5.
86449
86450         * modules/*: New module descriptions.
86451         * gnulib-tool: New file.
86452         * MODULES.html.sh: New file.
86453
86454 2002-12-21  Karl Berry  <karl@gnu.org>
86455
86456         * doc/fdl.texi: update to version 1.2.
86457
86458 2002-12-19  Karl Berry  <karl@gnu.org>
86459
86460         * config/config.guess: update from prep.
86461
86462 2002-12-18  Bruno Haible  <bruno@clisp.org>
86463
86464         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
86465         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
86466
86467 2002-12-17  Bruno Haible  <bruno@clisp.org>
86468
86469         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
86470         stdlib.h, string.h.
86471
86472 2002-12-17  Bruno Haible  <bruno@clisp.org>
86473
86474         * lib/canon-host.c (strdup): Remove unused declaration.
86475
86476         * lib/fsusage.c: Include full_read.h.
86477         (get_fs_usage): Use full_read instead of safe_read.
86478
86479         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
86480
86481 2002-12-12  Karl Berry  <karl@gnu.org>
86482
86483         * config/config.guess: update from prep.
86484
86485 2002-12-11  Bruno Haible  <bruno@clisp.org>
86486
86487         * m4/setenv.m4: New file, from gettext-0.11.5.
86488
86489 2002-12-11  Bruno Haible  <bruno@clisp.org>
86490
86491         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
86492         not unsetenv().
86493         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
86494         modifications:
86495
86496         2002-12-11  Bruno Haible  <bruno@clisp.org>
86497
86498                 * setenv.c (alloca): Fall back to malloc.
86499                 (freea): New macro.
86500                 (setenv): Use freea() to free memory allocated with alloca().
86501
86502         2002-11-13  Bruno Haible  <bruno@clisp.org>
86503
86504                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
86505                 function declarations.
86506                 * unsetenv.c (unsetenv): Likewise.
86507
86508         2002-03-04  Bruno Haible  <bruno@clisp.org>
86509
86510                 Portability to AIX 4.3.3.
86511                 * unsetenv.c: New file, extracted from setenv.c.
86512                 * setenv.c: Move the unsetenv() function to unsetenv.c.
86513
86514         2001-12-20  Bruno Haible  <bruno@clisp.org>
86515
86516                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
86517                 use malloc instead. For SunOS 4.
86518
86519         2001-12-11  Bruno Haible  <bruno@clisp.org>
86520
86521                 * setenv.c: Declare alloca.
86522                 (compar_fn_t): New typedef.
86523                 (KNOWN_VALUE, STORE_VALUE): Use it.
86524
86525         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
86526         setenv.h.
86527
86528 2002-12-10  Paul Eggert  <eggert@twinsun.com>
86529
86530         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
86531         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
86532         Choose values that are less likely to collide with system fnmatch
86533         options.
86534         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
86535         defined (e.g., a pure POSIX system).
86536         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
86537         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
86538
86539 2002-12-06  Paul Eggert  <eggert@twinsun.com>
86540
86541         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
86542         a pain in practice to deal with generated m4 files.  This change
86543         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
86544
86545         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
86546         and jm-glibc-io.m4, as they are no longer a special case.
86547         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
86548         kludge and the auto-generation stuff.  Check only whether the
86549         functions are declared, not whether they exist, since older hosts
86550         that don't declare the functions can't use the optimization anyway.
86551
86552 2002-12-06  Jim Meyering  <jim@meyering.net>
86553
86554         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
86555
86556         Merge in changes from libc's misc/error.c, in preparation
86557         for the merge of gnulib's changes back into libc.
86558
86559         * lib/error.c (_): Define only if not already defined.
86560         Move definition to follow all #include directives.
86561         Include unlocked-io.h only if !_LIBC.
86562         [_LIBC]: Include <libio/libioP.h>.
86563         [USE_IN_LIBIO]: Include <libio/iolibio.h>
86564         (fflush): Tweak definition to use INTUSE.
86565         (putc): Define.
86566
86567 2002-12-05  Paul Eggert  <eggert@twinsun.com>
86568
86569         * lib/alloca.c [defined emacs]: Include "lisp.h".
86570         (xalloc_die) [defined emacs]: New macro.
86571         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
86572         [! defined emacs]: Include <xalloc.h>.
86573         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
86574         (pointer): Typedef to POINTER_TYPE *.
86575         (malloc): Remove decl; we now always use xmalloc.
86576         (alloca): Use old-style definition, since Emacs needs this.
86577         Check for arithmetic overflow when computing combined size.
86578
86579 2002-12-04  Paul Eggert  <eggert@twinsun.com>
86580
86581         Do not generate unlocked-io.h automatically, since it's easier to
86582         maintain it by hand.
86583
86584         * lib/unlocked-io.h: New file, from GNU diffutils,
86585         but with proper copyright notice and attribution.
86586         * lib/gen-uio: Remove.
86587         * lib/Makefile.am: Add copyright notice.
86588         (libfetish_a_SOURCES): Add unlocked-io.h.
86589         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
86590         (DISTCLEANFILES, io_functions): Remove macros.
86591         (EXTRA_DIST): Remove gen_uio.
86592         (unlocked-io.h): Remove rule.
86593
86594 2002-12-04  Jim Meyering  <jim@meyering.net>
86595
86596         Reflect the fact that stat.c and lstat.c are no longer generated.
86597         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
86598         (DISTCLEANFILES): Likewise.
86599         (EXTRA_DIST): Likewise.
86600         (all_local): Don't depend on stat.c or lstat.c.
86601         (stat.c, lstat.c): Remove rules.
86602         (EXTRA_DIST): Remove xstat.in.
86603
86604         * lib/xstat.in: Remove file.  Contents moved into stat.c.
86605         * lib/stat.c: New file.  Contents mostly from xstat.in.
86606         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
86607         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
86608
86609         * lib/safe-read.c: Rework so that it may serve to define safe_write,
86610         too.
86611         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
86612
86613 2002-12-03  Jim Meyering  <jim@meyering.net>
86614
86615         * lib/safe-read.c, safe-write.c: Change variable names and comments,
86616         but not semantics, to minimize the differences between these two files.
86617         (safe_read): Change comment to mention SAFE_READ_ERROR.
86618
86619         * lib/safe-read.c (IS_EINTR): Define.
86620         (safe_read): Use IS_EINTR in place of in-function cpp directives.
86621
86622 2002-12-02  Jim Meyering  <jim@meyering.net>
86623
86624         * lib/safe-read.c (EINTR): Define.
86625         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86626         (INT_MAX): Provide fallback.
86627         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
86628
86629         * lib/safe-read.h (SAFE_READ_ERROR): Define.
86630
86631 2002-12-02  Bruno Haible  <bruno@clisp.org>
86632
86633         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
86634         Define, taken from safe-read.c.
86635         (INT_MAX): Provide fallback.
86636         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
86637         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
86638
86639         * lib/safe-read.c (EINTR): Remove definition.
86640         (safe_read): Don't use EINTR if it is absent.
86641
86642 2002-12-01  Jim Meyering  <jim@meyering.net>
86643
86644         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
86645         zero.
86646         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
86647
86648 2002-11-27  Paul Eggert  <eggert@twinsun.com>
86649
86650         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
86651         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
86652         with `if (! (value < limit)) abort ();', for readability.
86653
86654 2002-11-26  Karl Berry  <karl@gnu.org>
86655
86656         * lib/strdup.c: copy from libc again, with jim's ok.
86657         * lib/.cppi-disable: re-add strdup.c
86658
86659 2002-11-25  Karl Berry  <karl@gnu.org>
86660
86661         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
86662         instead of "strtol.c".
86663
86664 2002-11-25  Karl Berry  <karl@gnu.org>
86665
86666         * config/install-sh: update from automake for variable quoting, $0 in
86667         error msgs, etc.
86668
86669         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
86670         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
86671         entry.
86672
86673 2002-11-25  Jim Meyering  <jim@meyering.net>
86674
86675         * lib/mktime.c: Sync from libc, now that it has the latest fix.
86676
86677 2002-11-24  Karl Berry  <karl@gnu.org>
86678
86679         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
86680         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
86681
86682 2002-11-24  Jim Meyering  <jim@meyering.net>
86683
86684         Update from coreutils:
86685
86686         * lib/mktime.c: Merge in changes from libc.
86687
86688         Avoid a link-time failure on some Linux systems.
86689         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
86690         (otherwise).
86691         (__mon_yday): Declare with the STATIC attribute.
86692         (__mktime_internal): Likewise.
86693         Based on a report from Greg Schafer.
86694
86695 2002-11-23  Jim Meyering  <jim@meyering.net>
86696
86697         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
86698         Use `unsigned', not `int', as type of index.
86699
86700         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
86701
86702         * lib/fsusage.c: Remove unneeded parentheses around operands of
86703         `defined'.
86704
86705 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86706
86707         * lib/quotearg.h: Allow multiple inclusion by surrounding with
86708         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
86709         so that we can be included first.
86710         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
86711         * lib/quotearg.c: Include quotearg.h immediately after config.h.
86712         No need to include stddef.h or sys/types.h any more.
86713         Surround local include files with "", not "<>".
86714         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
86715         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
86716         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
86717         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
86718         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
86719         (ISPRINT): Remove; no longer needed now that we assume C89.
86720
86721         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
86722         Preserve errno.
86723
86724         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
86725         quotearg_char): Use SIZE_MAX rather than
86726         (size_t) -1 when we are talking about "infinity".
86727
86728         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
86729
86730 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86731
86732         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
86733         hint that one should use `if (! x) abort ();' rather than `assert
86734         (x);', and anyway it's one less thing to worry about configuring.
86735         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
86736         hash_rehash, hash_insert): Use abort rather than assert.
86737
86738 2002-11-22  Bruno Haible  <bruno@clisp.org>
86739
86740         * lib/safe-read.h: Assume C89. Add comments.
86741         (safe_read): Change return type to size_t.
86742         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
86743         byte counts > SSIZE_MAX correctly.
86744         * lib/safe-write.h: New file.
86745         * lib/safe-write.c: New file.
86746         * lib/full-read.h: New file.
86747         * lib/full-read.c: New file.
86748         * lib/full-write.h: Assume C89. Add comments.
86749         * lib/full-write.c: Include safe-write.h.
86750         (full_write): Rewritten to use safe_write.
86751         Suggested by Jim Meyering and Paul Eggert.
86752
86753 2002-11-21  Jim Meyering  <jim@meyering.net>
86754
86755         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
86756
86757         Merge in changes from the coreutils.
86758
86759         2002-09-25  Paul Eggert  <eggert@twinsun.com>
86760         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
86761         <stdint.h>.
86762         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
86763         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
86764         int.  Work more efficiently if X is the same width as uintmax_t.
86765         Do not compare X to -1, to avoid bogus compiler warning.
86766         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
86767         Don't assume that f_frsize and f_bsize are the same type.
86768
86769         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
86770         warning on FreeBSD.
86771
86772         * lib/makepath.c (make_path): Restore umask *before* creating the final
86773         component.
86774         (make_path): Minor reformatting.
86775
86776         * lib/xmalloc.c: Adjust to work with new autoconf macros,
86777         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
86778         HAVE_MALLOC/HAVE_REALLOC.
86779
86780         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
86781         dummy ones.  At least on GNU/Linux systems, `auto' means something
86782         else.
86783         From Michael Stone.
86784
86785 2002-11-21  Bruno Haible  <bruno@clisp.org>
86786
86787         Remove case insensitive option matching.
86788         * lib/argmatch.h (argcasematch): Remove declaration.
86789         (ARGCASEMATCH): Remove macro.
86790         (__xargmatch_internal): Remove case_sensitive argument.
86791         (XARGMATCH): Update.
86792         (XARGCASEMATCH): Remove macro.
86793         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
86794         case_sensitive argument.
86795         (argcasematch): Remove function.
86796         (__xargmatch_internal): Remove case_sensitive argument.
86797         (main): Use XARGMATCH instead of XARGCASEMATCH.
86798
86799         * lib/xmalloc.c: Change compile-time error message. Add comment about
86800         required autoconf version.
86801
86802 2002-11-20  Paul Eggert  <eggert@twinsun.com>
86803
86804         Merge argmatch cleanups from Bison.  Assume C89.
86805
86806         * lib/argmatch.c: Include config.h here, not in argmatch.h.
86807         Include stdlib.h, for EXIT_FAILURE.
86808         Always include <string.h>, since we assume C89.
86809         (EXIT_FAILURE): Remove pre-C89 bug workaround.
86810         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
86811         Include <stddef.h> instead, since it's all we need for size_t.
86812         (PARAMS): Remove.  All uses removed.
86813         (ARRAY_CARDINALITY): Do not bother to #undef.
86814         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
86815         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86816         Remove unnecessary parentheses.
86817         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86818         Insert necessary parentheses.
86819         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
86820         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
86821
86822 2002-11-19  Bruno Haible  <bruno@clisp.org>
86823
86824         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
86825         * lib/mbswidth.h: Include <stddef.h>, for size_t.
86826
86827         * lib/mbswidth.h (PARAMS): Remove macro.
86828         (mbswidth, mbsnwidth): Use ANSI C function declarations.
86829         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
86830
86831         * lib/gcd.h (PARAMS): Remove macro.
86832         (gcd): Use ANSI C function declarations.
86833         * lib/gcd.c (gcd): Likewise.
86834
86835 2002-11-15  Bruno Haible  <bruno@clisp.org>
86836
86837         * lib/strcspn.c: Include <stddef.h>.
86838         (strcspn): Use ANSI C function declaration. Change return type to
86839         size_t. Use NULL.
86840         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
86841         (strpbrk): Use NULL.
86842         * lib/strpbrk.h (PARAMS): Remove macro.
86843         (strpbrk): Use ANSI C function declaration.
86844         * lib/strstr.c: Don't include <sys/types.h>.
86845         * lib/strstr.h (PARAMS): Remove macro.
86846         (strstr): Use ANSI C function declarations.
86847
86848 2002-11-14  Karl Berry  <karl@gnu.org>
86849
86850         * config/mkinstalldirs: `do' on separate line, instead of
86851         `for var; do'.
86852
86853 2002-11-06  Bruno Haible  <bruno@clisp.org>
86854
86855         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
86856         * lib/gcd.c (gcd): Likewise.
86857
86858 2002-11-05  Bruno Haible  <bruno@clisp.org>
86859
86860         * lib/gcd.h: New file, from gettext-0.11.5.
86861         * lib/gcd.c: New file, from gettext-0.11.5.
86862
86863 2002-11-05  Bruno Haible  <bruno@clisp.org>
86864
86865         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86866         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86867         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86868         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86869
86870         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
86871         <libintl.h>.
86872         * lib/makepath.c: Include gettext.h instead of <locale.h> and
86873         <libintl.h>.
86874
86875         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
86876         * lib/human.c: Include gettext.h instead of <libintl.h>.
86877         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
86878         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
86879         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
86880         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
86881         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
86882         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
86883         (textdomain): Remove definition.
86884         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
86885
86886         * lib/long-options.c: Remove include of <libintl.h> and definition of
86887         _.
86888         * lib/same.c: Remove include of <libintl.h> and definition of _.
86889
86890 2002-11-04  Owen Taylor  <otaylor@redhat.com>
86891
86892         * lib/config.charset: A few additions for Solaris.
86893
86894 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86895
86896         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
86897         * lib/localcharset.c (locale_charset): Declare as extern "C".
86898
86899 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86900
86901         * lib/config.charset: msdos in uk_UA uses CP1125.
86902
86903 2002-11-04  Bruno Haible  <bruno@clisp.org>
86904
86905         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
86906         * lib/strcase.h: New file, from GNU gettext-0.11.5.
86907         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
86908         * lib/strstr.h: New file, from GNU gettext-0.11.5.
86909         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
86910
86911 2002-11-04  Bruno Haible  <bruno@clisp.org>
86912
86913         * lib/localcharset.c (locale_charset): Don't return an empty string.
86914
86915 2002-11-04  Bruno Haible  <bruno@clisp.org>
86916
86917         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
86918         aliases.
86919
86920 2002-11-04  Bruno Haible  <bruno@clisp.org>
86921
86922         * lib/config.charset: Update for newest glibc. Add canonical names
86923         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
86924
86925 2002-11-04  Bruno Haible  <bruno@clisp.org>
86926
86927         * lib/config.charset: Add support for NetBSD.
86928
86929 2002-11-04  Bruno Haible  <bruno@clisp.org>
86930
86931         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
86932
86933 2002-11-01  Bruno Haible  <bruno@clisp.org>
86934
86935         * configure.in: Add AC_CONFIG_AUX_DIR call.
86936         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
86937         test/Makefile.
86938         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
86939
86940 2002-09-28  Karl Berry  <karl@gnu.org>
86941
86942         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
86943         installed automake until the next release, since changes have been
86944         made.
86945
86946 2002-09-25  Karl Berry  <karl@gnu.org>
86947
86948         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
86949         * lib/getopt*: copy from libc/posix.
86950         * lib/gettext.h: copy from gettext.
86951         * lib/.cppi-disable: add strdup.c, gettext.h.
86952
86953 2002-09-25  Karl Berry  <karl@gnu.org>
86954
86955         * config/srclist.txt: enable gettext.h check.
86956         * config/config.{guess,sub}: update from prep.
86957         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
86958                 from automake 1.6.3.
86959         See srclist*.
86960
86961 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
86962
86963         * regex.c (PATFETCH): Remove the translating fetch.
86964         (PATFETCH_RAW): Rename to PATFETCH.
86965         (set_image_of_range): New fun.
86966         (SET_RANGE_TABLE_WORK_AREA): Use it.
86967         (regex_compile): Don't translate the pattern chars so eagerly.
86968         Only do it when inserting an `exactn' bytecode or when handling
86969         a char-range.
86970         (mutually_exclusive_p): Avoid empty statement.
86971
86972 2002-07-06  Jim Meyering  <meyering@lucent.com>
86973
86974         * m4/README: Don't mention Makefile.am.in.
86975         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
86976
86977 2002-07-01  Jim Meyering  <meyering@lucent.com>
86978
86979         * lib/c-stack.c: Include sys/time.h.
86980         From Volker Borchert.
86981
86982 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86983
86984         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
86985
86986 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86987
86988         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
86989         New macro.  Use it uniformly instead of
86990         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
86991         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
86992         reported by Vin Shelton.
86993
86994 2002-06-22  Paul Eggert  <eggert@twinsun.com>
86995
86996         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
86997         Do not assume SA_SIGINFO behavior.
86998         Bug reported by Jim Meyering on NetBSD 1.5.2.
86999
87000 2002-06-22  Jim Meyering  <meyering@lucent.com>
87001
87002         * m4/c-stack.m4: New file, from diffutils-2.8.2.
87003         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
87004
87005         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
87006         now that configure.ac uses AC_GNU_SOURCE.
87007         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
87008         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
87009
87010         Update to latest tools.  Suggestions from Paul Eggert.
87011         * m4/stdbool.m4: New file, from diffutils-2.8.2.
87012         * m4/gnu-source.m4: Update from diffutils-2.8.2.
87013         * m4/fnmatch.m4: Likewise.
87014         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
87015         to AC_HEADER_STDBOOL
87016
87017 2002-06-22  Jim Meyering  <meyering@lucent.com>
87018
87019         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
87020         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
87021
87022 2002-06-22  Jim Meyering  <meyering@lucent.com>
87023
87024         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
87025
87026         * lib/exitfail.c, exitfail.h: Likewise.
87027         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
87028
87029         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
87030         of fnmatch.h.
87031         (EXTRA_DIST): Add fnmatch_loop.c.
87032         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
87033
87034         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
87035         * lib/fnmatch.c: Update from diffutils-2.8.2.
87036         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
87037         * lib/fnmatch.h: Remove file.
87038
87039 2002-06-21  Jim Meyering  <meyering@lucent.com>
87040
87041         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
87042         * m4/mbrtowc.m4: Likewise.
87043
87044         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
87045         * m4/mbswidth.m4: Reflect name change:
87046         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
87047         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87048
87049         * m4/lib-link.m4: Update from gettext-0.11.2.
87050         * m4/gettext.m4: Likewise.
87051
87052         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
87053         From Alfred M. Szmidt.
87054
87055 2002-06-18  Paul Eggert  <eggert@twinsun.com>
87056
87057         * lib/file-type.h: Report an error if neither S_ISREG nor
87058         S_IFREG is defined, instead of using a test specific to glibc
87059         2.2.  This should be safe, since POSIX requires S_ISREG and
87060         Unix Version 7 had S_IFREG.  We don't need to check for
87061         <sys/types.h> since we don't use any symbols that it defines.
87062
87063 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
87064
87065         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
87066         $@-t, so that each temporary file name is unique and valid in the first
87067         8 characters, for operation under DOS.
87068
87069 2002-06-15  Paul Eggert  <eggert@twinsun.com>
87070
87071         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
87072
87073 2002-06-15  Jim Meyering  <meyering@lucent.com>
87074
87075         Work even with DJGPP 2.03, which lacks support for symlinks.
87076         From Richard Dawe.
87077         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
87078         is defined.
87079         * lib/lchown.c (S_ISLNK): Likewise.
87080
87081 2002-06-15  Jim Meyering  <meyering@lucent.com>
87082
87083         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
87084         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
87085         have been included before this file.
87086
87087 2002-06-14  Jim Meyering  <meyering@lucent.com>
87088
87089         * lib/file-type.h: Use the version from diffutils-2.8.2.
87090         * lib/file-type.c: Likewise.
87091
87092 2002-06-07  Jim Meyering  <meyering@lucent.com>
87093
87094         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
87095         They're needed at least for NetBSD 1.5.2.
87096         ($statxfs_includes): Include those same headers.
87097         ($statxfs_includes): Include sys/vfs.h if available.
87098         ($statxfs_includes): Likewise for sys/statvfs.h.
87099         Check for the following members in both structs statfs and statvfs:
87100         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
87101
87102 2002-06-01  Jim Meyering  <meyering@lucent.com>
87103
87104         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
87105         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
87106
87107 2002-05-28  Jim Meyering  <meyering@lucent.com>
87108
87109         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
87110         Reported by Volker Borchert.
87111
87112 2002-05-27  Jim Meyering  <meyering@lucent.com>
87113
87114         Fix a problem seen only on nonconforming systems whereby ls.c's
87115         use of localtime, and then of gettimeofday would cause trouble:
87116         the localtime call used to initialize rpl_gettimeofday's save
87117         mechanism would clobber ls's current local time information so
87118         that in any long listing the first file would always be listed
87119         with date 1970-01-01.  Analysis by Volker Borchert.
87120
87121         * lib/gettimeofday.c (localtime): Undefine.
87122         (rpl_localtime): New function.
87123
87124 2002-05-27  Jim Meyering  <meyering@lucent.com>
87125
87126         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
87127         localtime.
87128
87129         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
87130         use the replacement function; it wouldn't resolve at link time.
87131         Reported by Volker Borchert.
87132
87133 2002-05-22  Jim Meyering  <meyering@lucent.com>
87134
87135         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
87136         file-type.h.
87137         * lib/file-type.h: New file.
87138         * lib/file-type.c (file_type): New file/function.  Extracted from
87139         diffutils.
87140
87141 2002-04-30  Jim Meyering  <meyering@lucent.com>
87142
87143         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
87144
87145 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87146
87147         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
87148
87149 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87150
87151         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
87152         Do not check for alloca.h (no longer used) or stdbool.h (was never
87153         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
87154
87155 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87156
87157         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
87158
87159 2002-04-29  Jim Meyering  <meyering@lucent.com>
87160
87161         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
87162         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
87163         Use AC_FUNC_STRNLEN here instead.
87164
87165         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
87166         With autoconf-2.53a, it's part of AC_PROG_CC.
87167
87168 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87169
87170         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
87171         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
87172
87173 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87174
87175         * lib/sig2str.h, lib/sig2str.c: New files.
87176         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
87177
87178 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87179
87180         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
87181         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
87182         of 127, since 64 is the largest conceivable number for ancient
87183         nonstandard hosts.
87184         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
87185
87186 2002-04-28  Jim Meyering  <meyering@lucent.com>
87187
87188         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
87189
87190 2002-04-24  Jim Meyering  <meyering@lucent.com>
87191
87192         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
87193         (jm_PREREQ): Use it.
87194
87195         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
87196         mach/mach.h fcntl.h.
87197         Check for this function: setlocale.
87198
87199 2002-04-24  Jim Meyering  <meyering@lucent.com>
87200
87201         * lib/gettext.h: New file, from Gettext.
87202         * lib/Makefile.am (INCLUDES): Remove -I../intl.
87203         (libfetish_a_SOURCES): Add gettext.h.
87204
87205 2002-04-16  Jim Meyering  <meyering@lucent.com>
87206
87207         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
87208         ut_pid, ut_id, ut_exit.
87209
87210 2002-04-16  Jim Meyering  <meyering@lucent.com>
87211
87212         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
87213         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
87214         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
87215
87216 2002-04-12  Jim Meyering  <meyering@lucent.com>
87217
87218         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
87219         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
87220         existence of the getmntinfo function.  Needed for Darwin 5.3.
87221
87222         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
87223         This is necessary at least on Darwin 5.3.
87224
87225         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
87226         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
87227         strnlen.o in the library, and that makes some versions of ranlib
87228         object.
87229
87230 2002-04-12  Jim Meyering  <meyering@lucent.com>
87231
87232         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
87233
87234 2002-04-09  Jim Meyering  <meyering@lucent.com>
87235
87236         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
87237         to be more precise.  Rather than saying we're checking whether the
87238         function `works', say what we're testing.
87239         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
87240         Reported by Bruno Haible.
87241
87242 2002-03-10  Jim Meyering  <meyering@lucent.com>
87243
87244         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
87245         Suggestion from Santiago Vila.
87246
87247 2002-03-08  Jim Meyering  <meyering@lucent.com>
87248
87249         * lib/rename.c: Mention that this wrapper is needed also on
87250         mips-dec-ultrix4.4 systems.
87251
87252 2002-03-02  Jim Meyering  <meyering@lucent.com>
87253
87254         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
87255         not HAVE_CLOCK_SETTIME.
87256
87257 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87258
87259         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
87260         Check for clock_settime.
87261
87262 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87263
87264         * lib/nanosleep.h: Rename to....
87265         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
87266
87267         * lib/gettime.c: New file.
87268         * lib/settime.c: New file.
87269         * lib/stime.c: Remove.
87270
87271         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
87272         timespec.h.  Remove nanosleep.h.
87273
87274 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87275
87276         * m4/acl.m4: New file.
87277         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
87278         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
87279
87280 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87281
87282         * lib/acl.c, lib/acl.h: New files.
87283         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
87284
87285 2002-02-24  Jim Meyering  <meyering@lucent.com>
87286
87287         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
87288         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
87289         cause trouble.  Reported by Nelson Beebe.
87290
87291 2002-02-23  Paul Eggert  <eggert@twinsun.com>
87292
87293         * lib/path-concat.c (xpath_concat): Reorder code to pacify
87294         compilers that don't know that xalloc_die never returns.
87295
87296 2002-02-20  Jim Meyering  <meyering@lucent.com>
87297
87298         * lib/getdate.c: Regenerate using bison-1.33.
87299
87300 2002-02-17  Jim Meyering  <meyering@lucent.com>
87301
87302         * config/config.guess (main): Don't use `head -1'; it's no longer
87303         portable. Use `sed 1q' instead.
87304
87305 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
87306
87307         * m4/codeset.m4: Upgrade to gettext-0.11.
87308         * m4/gettext.m4: Upgrade to gettext-0.11.
87309         * m4/glibc21.m4: Upgrade to gettext-0.11.
87310         * m4/iconv.m4: Upgrade to gettext-0.11.
87311         * m4/isc-posix.m4: Upgrade to gettext-0.11.
87312         * m4/lcmessage.m4: Upgrade to gettext-0.11.
87313         * m4/lib-ld.m4: New file, from gettext-0.11.
87314         * m4/lib-link.m4: New file, from gettext-0.11.
87315         * m4/lib-prefix.m4: New file, from gettext-0.11.
87316         * m4/progtest.m4: Upgrade to gettext-0.11.
87317
87318 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87319
87320         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
87321         (jm_PREREQ): Use it.
87322
87323 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87324
87325         * lib/posixver.c, lib/posixver.h: New files.
87326         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87327
87328 2002-02-02  Paul Eggert  <eggert@twinsun.com>
87329             Bruno Haible  <bruno@clisp.org>
87330
87331         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
87332         (fwrite_success_callback): New declaration.
87333         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
87334         print_unicode_char. Call failure callback instead of error.
87335         (fwrite_success_callback): New function.
87336         (exit_failure_callback): New function.
87337         (fallback_failure_callback): New function.
87338         (print_unicode_char): Call unicode_to_mb.
87339
87340 2002-01-26  Jim Meyering  <meyering@lucent.com>
87341
87342         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
87343         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
87344
87345 2002-01-26  Jim Meyering  <meyering@lucent.com>
87346
87347         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
87348
87349 2002-01-22  Paul Eggert  <eggert@twinsun.com>
87350
87351         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
87352
87353 2002-01-22  Jim Meyering  <meyering@lucent.com>
87354
87355         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
87356         Otherwise, some versions of automake would omit the rule that makes
87357         Makefile from Makefile.in.
87358
87359 2002-01-21  Paul Eggert  <eggert@twinsun.com>
87360
87361         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
87362         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87363         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
87364         (memcoll): Set errno to zero if there is no error.
87365
87366         * lib/quotearg.c (quotearg_buffer_restyled):
87367         Fix bug with quoting buffers containing NUL when backslashing escapes.
87368         This bug was exposed by the other changes in this patch.
87369         (quotearg_n_options): New arg ARGSIZE.
87370         All callers changed.
87371         (quoting_options_from_style): New function.
87372         (quotearg_n_style): Use it.
87373         (quotearg_n_style_mem): New function.
87374
87375         * lib/quotearg.h (quotearg_n_style_mem): New function.
87376
87377 2002-01-19  Jim Meyering  <meyering@lucent.com>
87378
87379         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
87380         Remove useless quotes: DF_PROG="df".
87381         * m4/strnlen.m4: New file.
87382
87383 2002-01-16  Paul Eggert  <eggert@twinsun.com>
87384
87385         * lib/backupfile.c (ISDIGIT): Comment fix.
87386         * lib/getdate.y (ISDIGIT): Likewise.
87387         * lib/posixtm.c (ISDIGIT, year): Likewise.
87388         * lib/strverscmp.c (ISDIGIT): Likewise.
87389         * lib/userspec.c (ISDIGIT): Likewise.
87390
87391 2002-01-16  Jim Meyering  <meyering@lucent.com>
87392
87393         * lib/getdate.y: Add three semicolons, each just before a closing
87394         brace. Bison (as of version 1.31) no longer papers over that mistake.
87395
87396 2002-01-05  Jim Meyering  <meyering@lucent.com>
87397
87398         * lib/version-etc.c (version_etc_copyright): Update copyright year.
87399
87400 2001-12-19  Paul Eggert  <eggert@twinsun.com>
87401
87402         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
87403         not silently exit merely because the output buffer happens to
87404         have nothing pending.
87405
87406 2001-12-18  Paul Eggert  <eggert@twinsun.com>
87407
87408         See the big note in ../ChangeLog.
87409         * lib/human.c (suffixes): Prefer K to k for 1024.
87410         (generate_suffix_backwards): New function.
87411         (human_readable_inexact): Use it.
87412         * lib/xstrtol.c (__xstrtol): If there is no number but there
87413         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
87414         Accept 'K' as well as 'k'.
87415
87416 2001-12-15  Jim Meyering  <meyering@lucent.com>
87417
87418         * lib/regex.h (__restrict_arr): Update from libc.
87419
87420         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
87421         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
87422         (STREQ): Define.
87423
87424 2001-12-14  Jim Meyering  <meyering@lucent.com>
87425
87426         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
87427         Suggestion from Bruno Haible.
87428
87429 2001-12-10  Jim Meyering  <meyering@lucent.com>
87430
87431         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
87432         xrealloc, Instead, include "xalloc.h".
87433         (initbuffer): Don't cast xmalloc return value to char*.
87434         (readline): Reword comment.
87435         Don't cast xrealloc return value to char*
87436         Return NULL, not 0.
87437
87438 2001-12-09  Jim Meyering  <meyering@lucent.com>
87439
87440         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
87441         about `signed and unsigned type in conditional expression'.
87442         * lib/posixtm.c (posix_time_parse): Likewise.
87443
87444         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
87445
87446         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
87447         to avoid a pedantic warning.
87448
87449         * lib/getstr.c: Don't include assert.h.
87450         (getstr): Remove warning-evoking assertions.
87451         Return -1 if offset parameter is out of bounds.
87452         Change the type of a local from int to size_t.
87453
87454         * lib/strftime.c (my_strftime_localtime_r): Include this function
87455         definition in the `#if ! HAVE_TM_GMTOFF' block.
87456
87457         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
87458         Include xalloc.h instead.
87459
87460 2001-12-02  Jim Meyering  <meyering@lucent.com>
87461
87462         * lib/tempname.c: Don't declare getenv, thus reverting the change of
87463         2001-11-18.  It's no longer necessary, now that stdlib.h is always
87464         included.
87465
87466         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
87467         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
87468
87469 2001-11-30  Akim Demaille  <akim@epita.fr>
87470
87471         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
87472         before being defined.
87473
87474 2001-11-27  Paul Eggert  <eggert@twinsun.com>
87475
87476         * lib/quotearg.h (quotearg_n, quotearg_n_style):
87477         First arg is int, not unsigned.
87478         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
87479         (SIZE_MAX, UINT_MAX): New macros.
87480         (quotearg_n_options): Abort if N is negative.
87481         Avoid overflow check on hosts where size_t is 64 bits and int
87482         is 32 bits, as overflow is impossible there.
87483         Fix off-by-one typo that caused unnecessary reallocation.
87484
87485 2001-11-27  Jim Meyering  <meyering@lucent.com>
87486
87487         * lib/tempname.c: Merge with version from libc.
87488         * lib/regex.c: Likewise.
87489
87490         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
87491         systems for which STDC_HEADERS is 0, it was not included, resulting in
87492         a warning about an integer-to-pointer conversion problem with getenv.
87493         Reported by Volker Borchert.
87494
87495 2001-11-26  Jim Meyering  <meyering@lucent.com>
87496
87497         * lib/gtod.h: Remove file.
87498         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
87499         * lib/gettimeofday.c: Don't include gtod.h.
87500         (GTOD_init): Remove function.
87501         (rpl_gettimeofday): Do its job here instead, rather than aborting.
87502         Suggestion from Volker Borchert.
87503
87504 2001-11-23  Jim Meyering  <meyering@lucent.com>
87505
87506         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
87507         it.
87508         * lib/hash.c (struct hash_table): Define it here instead.
87509
87510 2001-11-22  Jim Meyering  <meyering@lucent.com>
87511
87512         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
87513
87514 2001-11-20  Jim Meyering  <meyering@lucent.com>
87515
87516         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
87517         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
87518
87519 2001-11-19  Jim Meyering  <meyering@lucent.com>
87520
87521         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
87522         directory.  Use "conftestXXXXXX" as the template.
87523         Suggestion from Paul Eggert.
87524
87525         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
87526         immediately, so the test doesn't mistakenly hit the max-open-files
87527         limit.
87528
87529 2001-11-18  Paul Eggert  <eggert@twinsun.com>
87530
87531         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
87532         (TEMPORARIES): New macro.
87533         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
87534         removes an artificial limitation (e.g. HP-UX 10.20, where
87535         TMP_MAX is 17576).
87536
87537 2001-11-18  Jim Meyering  <meyering@lucent.com>
87538
87539         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
87540
87541 2001-11-18  Jim Meyering  <meyering@lucent.com>
87542
87543         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
87544         on SunOS 4.
87545
87546         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
87547         files will be created before anything else.
87548
87549 2001-11-17  Paul Eggert  <eggert@twinsun.com>
87550
87551         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
87552         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
87553
87554 2001-11-17  Jim Meyering  <meyering@lucent.com>
87555
87556         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
87557         Prompted by a report from Bob Proulx.
87558
87559         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
87560         Instead, require UTILS_FUNC_MKSTEMP.
87561
87562 2001-11-17  Jim Meyering  <meyering@lucent.com>
87563
87564         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
87565         Now, that's done as part of AC_FUNC_STRTOD.
87566
87567 2001-11-17  Jim Meyering  <meyering@lucent.com>
87568
87569         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
87570         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
87571         rather than group writable.  Patch by Juan F. Codagnone.
87572
87573         * lib/readtokens.c: Remove explicit declarations of xmalloc and
87574         xrealloc, Instead, include "xalloc.h".
87575
87576         * lib/mountlist.c: Include unlocked-io.h after all system headers.
87577         Remove explicit declarations of xmalloc, xrealloc,
87578         and xstrdup.  Instead, include "xalloc.h".
87579
87580         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
87581         unlocked-io.h.
87582         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
87583         Likewise.
87584         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
87585
87586         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
87587         Reported by Padraig Brady.
87588
87589         * lib/mkstemp.c: #undef mkstemp.
87590         Include config.h.
87591         (rpl_mkstemp): Rename from mkstemp.
87592         Protoize.
87593
87594 2001-11-16  Jim Meyering  <meyering@lucent.com>
87595
87596         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
87597         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
87598         determine the amount of total physical memory, use pstat_getstatic.
87599         HPUX-11 doesn't define _SC_PHYS_PAGES.
87600         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
87601         If sysconf couldn't be used to determine the amount of available
87602         physical memory, use both pstat_getstatic and pstat_getdynamic.
87603         Based on a patch from Bob Proulx.
87604
87605 2001-11-10  Jim Meyering  <meyering@lucent.com>
87606
87607         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
87608         (jm_PREREQ): Use it.
87609
87610 2001-11-09  Jim Meyering  <meyering@lucent.com>
87611
87612         * m4/jm-macros.m4: Require autoconf-2.52f.
87613         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
87614         Use these AC_-prefixed names, not the AM_-prefixed ones.
87615
87616         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
87617
87618 2001-11-05  Jim Meyering  <meyering@lucent.com>
87619
87620         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
87621
87622 2001-11-04  Jim Meyering  <meyering@lucent.com>
87623
87624         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
87625         $DEFS.
87626
87627 2001-11-03  Jim Meyering  <meyering@lucent.com>
87628
87629         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
87630         of AC_DEFUN.
87631
87632         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
87633         know the name of the variable in the macro definition.
87634
87635 2001-11-03  Jim Meyering  <meyering@lucent.com>
87636
87637         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
87638         in argmatch_to_argument call.
87639
87640         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
87641         argument.
87642
87643         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
87644         e.g., a fault due to an attempt to free a NULL pointer.
87645
87646 2001-11-01  Jim Meyering  <meyering@lucent.com>
87647
87648         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
87649         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
87650
87651 2001-11-01  Jim Meyering  <meyering@lucent.com>
87652
87653         * lib/dirfd.c, lib/dirfd.h: New files.
87654         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
87655
87656         * lib/hash.c (hash_print) [TESTING]: Clean up.
87657
87658 2001-10-22  Paul Eggert  <eggert@twinsun.com>
87659
87660         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
87661         to avoid a warning if -Wall.
87662
87663 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
87664
87665         * README: New file
87666         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
87667         (per RMS's instructions, this is now the canonical source)
87668         * lgpl/, gpl/: New directories.
87669
87670 2001-10-21  Paul Eggert  <eggert@twinsun.com>
87671
87672         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
87673
87674 2001-10-21  Jim Meyering  <meyering@lucent.com>
87675
87676         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
87677         this code would end up calling gettext even in packages built
87678         with --disable-nls.
87679         * lib/getopt.c (_): Likewise.
87680         * lib/regex.c (_): Likewise.
87681
87682 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87683
87684         * m4/error.m4 (jm_PREREQ_ERROR):
87685         Do not invoke AC_CHECK_FUNCS with strerror_r, as
87686         AC_FUNC_STRERROR_R does that.
87687         Check for strerror declaration.
87688
87689         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
87690         are supposed to have them these days.
87691         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
87692         Merge changes from latest Autoconf CVS.
87693         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
87694         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
87695         POSIX decided to standardize on the int flavor of strerror_r.
87696
87697 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87698
87699         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
87700         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
87701         Use strerror_r that is only a macro, even if it is not a function.
87702         (strerror): Check for HAVE_DECL_STRERROR before declaring.
87703         (private_strerror): Use prototypes, not old-style function definition.
87704         (print_errno_message): New function.
87705         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
87706         char*-flavored one.
87707         (error_tail, error, error_at_line): Use it.
87708
87709 2001-10-11  Jim Meyering  <meyering@lucent.com>
87710
87711         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
87712         and quote_n (1, ... to avoid clobbering a buffer.
87713
87714 2001-10-05  Jim Meyering  <meyering@lucent.com>
87715
87716         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
87717         hash-pjw.h.
87718         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
87719         * lib/hash-pjw.h: New file.
87720
87721 2001-09-30  Jim Meyering  <meyering@lucent.com>
87722
87723         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
87724         `struct fsstat' has the `f_fstypename' member.
87725         Use that to define FS_TYPE, which is now used to make
87726         the getfsstat link test tighter.
87727
87728 2001-09-30  Jim Meyering  <meyering@lucent.com>
87729
87730         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
87731         Include <sys/ucred.h>, for Apple Darwin.
87732         Include sys/mount.h and sys/fs_types.h only if available.
87733         (FS_TYPE): Define.
87734         (read_filesystem_list): Use FS_TYPE.
87735
87736 2001-09-29  Paul Eggert  <eggert@twinsun.com>
87737
87738         * lib/exclude.c (excluded_filename): 0 -> false, since it's
87739         a boolean context.
87740
87741 2001-09-29  Jim Meyering  <meyering@lucent.com>
87742
87743         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87744         [one-argument getmntent function]): Include stdio.h before mntent.h.
87745         SunOS 4.1.x needs it for the declaration of `FILE'.
87746         Patch by Volker Borchert.
87747
87748         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87749         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
87750         sys/fs_types.h, and make the link-test for getfsstat guard #include
87751         directives with appropriate #if HAVE_*_H tests so that we can
87752         detect getfsstat on Apple Darwin1.3.7 systems.
87753         Reported by Nelson Beebe.
87754         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
87755
87756 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87757
87758         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87759         #defines strtoimax.  Also treat the other strto* functions
87760         like strtoimax.
87761
87762         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87763         Check for strtoul and strtoumax,
87764         as those declarations are made even in the signed case.
87765         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
87766         Likewise, for strtol and strtoimax.
87767
87768 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87769
87770         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87771         #defines strtoimax.  Also treat the other strto* functions
87772         like strtoimax.
87773
87774         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
87775         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
87776         (strtoimax, strtoumax): Do not declare if already defined as a macro.
87777
87778 2001-09-26  Jim Meyering  <meyering@lucent.com>
87779
87780         Most macros in unlocked-io.h had the wrong number of arguments.
87781         * lib/gen-uio: New script.
87782         (USE_UNLOCKED_IO): Define to 1 if not already defined.
87783         * lib/unlocked-io.hin: Remove file.
87784         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
87785         rather than trying to embed it here.
87786         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
87787         Reported by Padraig Brady.
87788
87789 2001-09-25  Volker Borchert  <bt@teknon.de>
87790
87791         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
87792         `result'.
87793
87794 2001-09-24  Jim Meyering  <meyering@lucent.com>
87795
87796         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
87797
87798 2001-09-23  Jim Meyering  <meyering@lucent.com>
87799
87800         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
87801         instead of the mere test for existence of mntent.h.  The latter
87802         would get a false-positive on AIX 3.4 systems.
87803         In the outer getmntent if-block, don't die if neither of the getmntent
87804         tests succeeds.  Instead, just fall through and continue with the
87805         remaining tests.
87806
87807 2001-09-23  Jim Meyering  <meyering@lucent.com>
87808
87809         * lib/mountlist.c: Remove useless parentheses in #if directives.
87810         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
87811         the deprecated MOUNTED symbol is no longer defined in mntent.h.
87812
87813 2001-09-22  Jim Meyering  <meyering@lucent.com>
87814
87815         * m4/gettext.m4: New file.  From gettext.
87816         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
87817         * m4/progtest.m4: Likewise
87818         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
87819         * m4/glibc21.m4: Likewise.
87820
87821         * m4/libintl.m4: Remove.  No longer used.
87822
87823 2001-09-22  Jim Meyering  <meyering@lucent.com>
87824
87825         * lib/localcharset.c: Update from latest gettext.
87826         * lib/config.charset: Likewise.
87827
87828 2001-09-20  Jim Meyering  <meyering@lucent.com>
87829
87830         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
87831         strtoimax.
87832         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
87833         strtoumax.
87834
87835 2001-09-20  Jim Meyering  <meyering@lucent.com>
87836
87837         * lib/xstrtol.c (strtoimax): Guard declaration with
87838         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
87839         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
87840         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
87841         (strtoumax): Likewise, for completeness (it wasn't necessary).
87842
87843 2001-09-17  Paul Eggert  <eggert@twinsun.com>
87844
87845         * lib/strtoimax.c (HAVE_LONG_LONG):
87846         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
87847         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
87848         to work around bug in IBM C compiler.
87849
87850 2001-09-17  Jim Meyering  <meyering@lucent.com>
87851
87852         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
87853         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
87854         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
87855         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
87856         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
87857         whenever the right hand side need not be expanded by the shell.
87858
87859 2001-09-16  Paul Eggert  <eggert@twinsun.com>
87860
87861         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
87862         library.  It's not correct, as some older glibcs are buggy.
87863         fnmatch wasn't fixed until glibc 2.2.
87864
87865         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
87866         special shell magic here.
87867
87868 2001-09-16  Jim Meyering  <meyering@lucent.com>
87869
87870         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
87871         * m4/jm-macros.m4: Require it.
87872
87873 2001-09-16  Jim Meyering  <meyering@lucent.com>
87874
87875         * lib/mkdir.c: New file.
87876
87877 2001-09-15  Jim Meyering  <meyering@lucent.com>
87878
87879         * m4/jm-macros.m4: Check for help2man.
87880
87881 2001-09-11  Jim Meyering  <meyering@lucent.com>
87882
87883         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
87884         The body, by Paul Eggert, was moved here from configure.in.
87885         * m4/jm-macros.m4: Require UTILS_HOST_OS.
87886
87887 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87888
87889         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
87890         (jm_PREREQ): Use it.
87891
87892 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87893
87894         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
87895         Use ssize_t, not int, to store result of readlink.
87896         Check for ssize_t overflow as well as size_t overflow,
87897         as POSIX says the result of readlink is implementation-defined
87898         when ssize_t overflows.
87899         Remove unnecessary cast to char*.
87900         Use free+malloc instead of realloc, as the storage doesn't need
87901         to be preserved and it's clearer and can be more efficient that way.
87902         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
87903         * lib/xreadlink.h (xreadlink): Update prototype.
87904
87905 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87906
87907         * lib/xgetcwd.c: Revert some of the previous change; intead,
87908         fix the HAVE_GETCWD_NULL code to behave more like the
87909         !HAVE_GETCWD_NULL code used to.
87910
87911         Include "xalloc.h".
87912         (xgetcwd): Do not return NULL when memory is exhausted; instead,
87913         invoke xalloc_die.
87914
87915 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87916
87917         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
87918         sys/param.h, as pathmax.h includes them.
87919
87920 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87921
87922         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
87923         (jm_PREREQ_XGETCWD): New macro.
87924
87925         * m4/getcwd.m4: New file.
87926
87927 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87928
87929         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
87930         like the HAVE_GETCWD_NULL code.
87931         Include pathmax.h if not HAVE_GETCWD.
87932         Do not include xalloc.h.
87933         (INITIAL_BUFFER_SIZE): New symbol.
87934         Do not use xmalloc / xrealloc, since the caller is responsible for
87935         handling errors.  Preserve errno around `free' during failure.
87936         Do not overrun buffer when using getwd.
87937
87938 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87939
87940         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
87941         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
87942         getcwd (NULL, 0).
87943
87944 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87945
87946         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
87947         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
87948         spotted by Jim Meyering.
87949
87950 2001-09-03  Jim Meyering  <meyering@lucent.com>
87951
87952         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
87953         failure.
87954
87955 2001-09-02  Jim Meyering  <meyering@lucent.com>
87956
87957         * lib/error.c: Update from GNU libc.
87958
87959 2001-09-01  Jim Meyering  <meyering@lucent.com>
87960
87961         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
87962         Used by df.
87963
87964 2001-09-01  Jim Meyering  <meyering@lucent.com>
87965
87966         * lib/xreadlink.c: New file.
87967         * lib/xreadlink.h: New file.
87968         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
87969         xreadlink.h.
87970
87971         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
87972         doesn't conflict with sparc Solaris 7's definition in
87973         /usr/include/sys/int_types.h.
87974
87975         * lib/exclude.c: Use `""', not `<>' to #include non-system header
87976         files.
87977         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
87978         and strncasecmp as r-values.  Unixware didn't have declarations.
87979
87980 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87981
87982         * lib/xstrtol.h: Add copyright notice.
87983         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
87984         LONGINT_INVALID_SUFFIX_CHAR.
87985
87986 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87987
87988         * lib/xstrtol.c (strtoimax): New decl.
87989
87990 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87991
87992         * lib/xgetcwd.c: Don't include pathmax.h.
87993         Include stdlib.h and unistd.h if available.
87994         Include xalloc.h.
87995         (xmalloc, xstrdup, free): Remove decls.
87996         (xgetcwd): Don't assume sizes fit in unsigned.
87997         Check for overflow when computing sizes.
87998         Simplify reallocation code.
87999
88000 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88001
88002         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
88003         a directory's st_size can have an arbitrary value, so the old
88004         usage could waste an arbitrary amount of memory.  All uses
88005         changed.
88006         * lib/savedir.h: Update prototype.
88007
88008 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88009
88010         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
88011
88012         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
88013         old strtoimax.c.
88014
88015         Also, make the following further changes to make this file's
88016         configuration more similar to that of strtol.c:
88017         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
88018         (strtoumax, uintmax_t, strtoull, strtol): Remove.
88019         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
88020         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
88021         changed to signed values.
88022
88023         And make the following changes as well:
88024         Fix copyright notice, as 1999 was missing.
88025         (verify): New macro.
88026         (strtoimax): Check sizes at compile-time, not run-time.
88027         Prefer strtol to strtoll if both work.
88028         (main): Remove; it was not that useful and was a pain to maintain.
88029
88030         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
88031
88032 2001-08-31  Jim Meyering  <meyering@lucent.com>
88033
88034         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
88035         Use an initial, malloc'd, buffer of length 128 rather than
88036         a statically allocated one of length 1024.
88037
88038 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88039
88040         Simplify code, partly by assuming autoconf 2.52 semantics.
88041
88042         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
88043
88044         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
88045         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
88046         All uses removed.
88047         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
88048         Move AC_REQUIRE to next-to-top level, to avoid confusion.
88049         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
88050         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
88051         jm_AC_HEADER_INTTYPES_H.
88052         * m4/jm-macros.m4 (jm_MACROS): Likewise.
88053
88054         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
88055
88056         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88057         Quote first arg of AC_DEFUN.
88058         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
88059         since they are needed to parse the include file even if we need
88060         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
88061         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
88062         but with opposite signedness.
88063
88064 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88065
88066         Merge 'exclude' changes from tar 1.13.22.
88067         This fixes one or two unlikely storage allocation overflow bugs,
88068         but doesn't change user-visible behavior otherwise.
88069
88070 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88071
88072         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
88073         (jm_PREREQ_EXCLUDE): New macro.
88074
88075 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88076
88077         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
88078         tm to be declared.
88079
88080 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88081
88082         * lib/hash.c: Remove '2001' from copyright notice.
88083
88084 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88085
88086         * lib/full-write.h: New file.
88087         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
88088         * lib/full-write.c: Correct credits, as cccp.c no longer
88089         exists and anyway it was so heavily changed from the old cccp
88090         code as to be unrecognizable.  Include full-write.h.
88091         (full_write): Return size_t, with short writes meaning failure.
88092         All callers changed.  This fixes a bug with large buffers
88093         on 64-bit hosts.
88094         * lib/utime.c: Include full-write.h.
88095
88096 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88097
88098         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
88099         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
88100         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
88101         Include if available.
88102         (<xalloc.h>): Include
88103         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
88104         (verify): New macro.  Use it to verify that EXCLUDE macros do not
88105         collide with FNM macros.
88106         (struct patopts): New struct.
88107         (struct exclude): Use it, as exclude patterns now come with options.
88108         (new_exclude): Support above changes.
88109         (new_exclude, add_exclude_file):
88110         Initial size must now be a power of two to simplify overflow checking.
88111         (free_exclude, fnmatch_no_wildcards): New function.
88112         (excluded_filename): No longer requires options arg, as the options
88113         are determined by add_exclude.  Now returns bool, not int.
88114         (excluded_filename, add_exclude):
88115         Add support for the fancy new exclusion options.
88116         (add_exclude, add_exclude_file): Now takes int options arg.
88117         Check for arithmetic overflow when computing sizes.
88118         (add_exclude_file): xrealloc might modify errno, so don't
88119         realloc until after errno might be used.
88120
88121         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
88122         New macros.
88123         (free_exclude): New decl.
88124         (add_exclude, add_exclude_file): Now takes int options arg.
88125         (excluded_filename): No longer requires options arg, as the options
88126         are determined by add_exclude.  Now returns bool, not int.
88127
88128 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88129
88130         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
88131
88132 2001-08-27  Jim Meyering  <meyering@lucent.com>
88133
88134         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
88135
88136         * lib/version-etc.c (N_): Remove definition.
88137         Revert most of last change.
88138         Instead, simply don't mark the `Copyright...' string for translation.
88139         Based on advice from Paul Eggert.
88140
88141         * lib/strtoxmax.c: Tweak comment.
88142
88143 2001-08-26  Jim Meyering  <meyering@lucent.com>
88144
88145         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
88146
88147         * m4/xstrtoimax.m4: New file.
88148         * m4/xstrtoumax.m4: Add comments explaining why we
88149         AC_REPLACE_FUNCS(strtol).
88150
88151 2001-08-26  Jim Meyering  <meyering@lucent.com>
88152
88153         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
88154         of copyright with `%s' so translators don't get an untranslated
88155         message in 2002.
88156         (COPYRIGHT_YEAR): Define.
88157         (version_etc): Use fprintf rather than fputs.
88158         Suggestion from Ulrich Drepper.
88159
88160         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
88161
88162         * lib/strtoll.c: New file, from GNU libc.
88163         * lib/xstrtoimax.c: New file.
88164
88165         * lib/xstrtol.h: Add xstrtoimax.
88166         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
88167         * lib/strtoimax.c: New file.  Likewise, but first define
88168         STRTOUXMAX_SIGNED.
88169
88170         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
88171         ...
88172         * lib/strtoxmax.c: ... then renamed to this.
88173
88174 2001-08-18  Paul Eggert  <eggert@twinsun.com>
88175
88176         * m4/inttypes.m4: Add AC_PREREQ(2.13).
88177         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
88178         (jm_AC_TYPE_INTMAX_T): New macro.
88179         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
88180
88181         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
88182
88183         * m4/longlong.m4: Renamed from ulonglong.m4.
88184         * m4/inttypes.m4: Renamed from inttypes_h.m4.
88185         * m4/uintmax_t.m4: Removed.
88186
88187 2001-08-13  Paul Eggert  <eggert@twinsun.com>
88188
88189         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
88190         Port to Solaris 8, where 'sed' requires a space after the 'r'
88191         command, and where sh dislikes "$/".  Clean up the spacing a bit.
88192         Redirect output to $tmp just once.
88193
88194 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
88195
88196         * lib/addext.c (<errno.h>): Include.
88197         (errno): Declare if not defined.
88198         (addext): Work correctly when pathconf returns -1 and leaves
88199         errno alone because there is no limit.  Also, work even if
88200         pathconf returns a value greater than SIZE_MAX.
88201
88202 2001-08-12  Jim Meyering  <meyering@lucent.com>
88203
88204         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
88205         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
88206         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
88207         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
88208         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
88209         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
88210         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
88211         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
88212         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
88213         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
88214         utime.m4, utimes.m4, xstrtoumax.m4:
88215         Quote the first argument in each use of AC_DEFUN.
88216
88217 2001-08-12  Jim Meyering  <meyering@lucent.com>
88218
88219         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
88220         Simply `return getcwd (NULL, 0);'.
88221         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
88222         Use 1300 as initial value for length, not PATH_MAX.
88223
88224         * lib/pathmax.h: Clean up cpp syntax.
88225
88226 2001-08-12  Jim Meyering  <meyering@lucent.com>
88227
88228         * lib/gettimeofday.c: New file.
88229         * lib/gtod.h: New file.
88230         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
88231
88232 2001-08-05  Jim Meyering  <meyering@lucent.com>
88233
88234         * m4/jm-macros.m4: Require autoconf-2.52.
88235
88236 2001-08-04  Jim Meyering  <meyering@lucent.com>
88237
88238         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
88239         stmt, to get in sync with glibc.
88240
88241 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88242
88243         The following changes are from gettext 0.10.39 as maintained by
88244         Bruno Haible.
88245
88246         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
88247         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
88248         with inverted sense.  All uses changed.
88249
88250         * lib/mbswidth.c: Don't include <limits.h>.
88251         Include <stdlib.h> and <string.h> unconditionally.
88252         (iswcntrl, mbsinit, ISCNTRL): New macros.
88253         (mbsnwidth): Use K&R style function declarations.
88254         Don't bother checking for MB_LEN_MAX == 1, since the compiler
88255         can optimize it when MB_CUR_MAX == 1.
88256         The width of control characters is zero, not 1.
88257
88258 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88259
88260         The following changes are from gettext 0.10.39 as maintained by
88261         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
88262
88263         * m4/codeset.m4: Upgrade to serial AM1.
88264         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
88265         all uses changed.  Quote first arg of AC_DEFUN.
88266         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
88267
88268         * m4/iconv.m4: Upgrade to serial AM2.
88269         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
88270         Add --with-libconv-prefix.
88271         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
88272         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
88273         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
88274         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
88275         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
88276
88277         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
88278         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
88279         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
88280         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
88281         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
88282         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
88283         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
88284         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
88285         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
88286
88287         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
88288         string.h any more.
88289
88290         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
88291         not the default value.
88292
88293         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
88294         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
88295         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
88296         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
88297         Also check for iswcntrl, used for wcwidth fallback.
88298         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
88299         to Autoconf 2.13.
88300
88301 2001-08-03  Jim Meyering  <meyering@lucent.com>
88302
88303         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
88304         as it was in the original.  Reported by Paul Eggert.
88305
88306 2001-07-16  Jim Meyering  <meyering@lucent.com>
88307
88308         * m4/gettimeofday.m4: New file.
88309         Prompted by a report from Bernhard Baehr.
88310
88311 2001-07-15  Jim Meyering  <meyering@lucent.com>
88312
88313         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
88314         stuff. Now it's in ../Makefile.cfg.
88315
88316 2001-07-15  Jim Meyering  <meyering@lucent.com>
88317
88318         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
88319         (BUILT_SOURCES): Add unlocked-io.h.
88320         (io_functions): Define.
88321         (unlocked-io.h): New rule.
88322         (DISTCLEANFILES): Add unlocked-io.h.
88323         (all-local): Depend on unlocked-io.h, to ensure it is created.
88324
88325         * lib/unlocked-io.hin: New file
88326
88327         * lib/regex.c: Update from glibc.
88328
88329 2001-07-05  Jim Meyering  <meyering@lucent.com>
88330
88331         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
88332         recommendation.
88333         (libfetish_a_SOURCES): Put all .h files here instead.
88334         Remove a thus-exposed (better checks in automake) duplicate and
88335         two unnecessary .h files.
88336
88337 2001-07-04  Jim Meyering  <meyering@lucent.com>
88338
88339         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
88340         that generates jm-glibc-io.m4 so that it doesn't trigger any make
88341         distcheck failure.
88342
88343 2001-07-02  Jim Meyering  <meyering@lucent.com>
88344
88345         The following changes were prompted by suggestions from Bruno Haible.
88346
88347         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
88348         is now generated.
88349         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
88350         definition of EXTRA_DIST.
88351         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
88352         ensure that the generated file is created/updated whenever the list
88353         of $(unlocked_functions) is changed.
88354         (jm-glibc-io.m4): New rule.
88355         (unlocked-io.h): New rule -- currently unused.
88356
88357 2001-06-24  Jim Meyering  <meyering@lucent.com>
88358
88359         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
88360         unmatched right bracket, rather than kludging it with an extra,
88361         falsely-matching quote in a comment.  Patch by Akim Demaille.
88362
88363 2001-06-11  Jim Meyering  <meyering@lucent.com>
88364
88365         * lib/regex.c: Update from GNU libc.
88366
88367 2001-05-27  Jim Meyering  <meyering@lucent.com>
88368
88369         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
88370         Check for ut_type in struct utmp.
88371
88372 2001-05-27  Jim Meyering  <meyering@lucent.com>
88373
88374         * lib/readutmp.h (UT_TYPE): Define.
88375
88376 2001-05-24  Jim Meyering  <meyering@lucent.com>
88377
88378         * lib/argmatch.c: Include "quote.h".
88379         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
88380         quote function.  Reported by Göran Uddeborg.
88381
88382 2001-05-22  Jim Meyering  <meyering@lucent.com>
88383
88384         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
88385         now that we use the package-supplied version unconditionally.
88386         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
88387
88388 2001-05-21  Jim Meyering  <meyering@lucent.com>
88389
88390         * m4/regex.m4: Change a couple backticks to single quotes to avoid
88391         shell syntax errors.
88392
88393 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88394
88395         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
88396
88397 2001-05-20  Paul Eggert  <eggert@twinsun.com>
88398
88399         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
88400         Don't bother to check library strftime, since
88401         we'll be using our own my_strftime function anyway.
88402         Define my_strftime instead of strftime.
88403
88404 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
88405
88406         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
88407         which is not yet declared.
88408
88409 2001-05-15  Jim Meyering  <meyering@lucent.com>
88410
88411         * m4/regex.m4: Use proper quoting so brackets appear in the test
88412         program.
88413         Reported by, and with help from, Bruno Haible.
88414
88415 2001-05-13  Jim Meyering  <meyering@lucent.com>
88416
88417         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
88418         undefined.
88419
88420 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88421
88422         dirname code cleanup.  base_name now behaves more compatibly
88423         with POSIX basename when given file names that have trailing
88424         slashes, and similarly for dir_name.  Add new primitives
88425         base_len and dir_len.  Put the directory-name-related decls
88426         into dirname.h.
88427
88428         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
88429         * lib/backupfile.c (base_name): Likewise.
88430         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
88431         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
88432         * lib/makepath.c (strip_trailing_slashes): Likewise.
88433         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
88434         ISSLASH): Likewise.
88435         * lib/rename.c (strip_trailing_slashes): Likewise.
88436         * lib/same.c (base_name): Likewise.
88437         * lib/stripslash.c (ISSLASH): Likewise.
88438
88439         * lib/addext.c: Include <dirname.h> after size_t is defined.
88440         * lib/backupfile.c: Likewise.
88441
88442         * lib/addext.c (addext): Use base_len to trim redundant
88443         trailing slashes instead of doing it ourselves.
88444         But do not trim the last slash if it is not redundant.
88445
88446         * lib/backupfile.c (find_backup_file_name,
88447         max_backup_version): Use base_len instead of rolling it ourselves.
88448         Handle the case of "" and (on DOS) "C:" correctly.
88449
88450         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
88451         needed. Include <string.h>, <dirname.h>.
88452         (base_name): Allow file names ending in slashes, other than names
88453         that are all slashes.  In this case, return the basename followed
88454         by the slashes.  This is more general, and can be used in places
88455         where the original base_name purposely had an assertion failure.
88456         (base_len): New function.
88457
88458         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
88459         Do not include <assert.h>; no longer needed.
88460         Include xalloc.h.
88461         (memrchr): Remove decl.
88462         (dir_name_r): Remove.
88463         (dir_len): Renamed from dirlen.  All callers changed.
88464         Rewrite in terms of base_name, for simplicity and consistency.
88465         (dir_name): Never return NULL.  All callers changed.
88466         Do not include <stdlib.h> in test program; no longer needed.
88467         return 0; is fine for test program.
88468
88469         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
88470         New macros.
88471         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
88472
88473         * lib/path-concat.c (path_concat): Use base_len to compute
88474         base length, not strlen; this means we cannot rely on memcpy
88475         to null-terminate.
88476
88477         * lib/same.c (STREQ): Remove.
88478         (same_name): Handle the case where the basename ends in trailing '/'.
88479
88480         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
88481         a slash was stripped.  Do not strip the last slash after a
88482         file system prefix.
88483
88484 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88485
88486         * lib/Makefile.am (libfetish_a_SOURCES):
88487         Add strftime.c, since we now compile it on all hosts.
88488
88489         * lib/strftime.c (my_strftime):
88490         Define to nstrftime if emacs, but only if my_strftime is not defined.
88491         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
88492         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
88493         Add one more extra argument: a nanoseconds value.
88494         All uses changed.
88495         (ns): New macro.
88496         (my_strftime function): Add %N format.
88497         (emacs_strftimeu): Renamed from emacs_strftime,
88498         with extra ut argument.
88499
88500 2001-05-09  Paul Eggert  <eggert@twinsun.com>
88501
88502         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
88503
88504 2001-04-21  Jim Meyering  <meyering@lucent.com>
88505
88506         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
88507         doesn't interfere.
88508
88509 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88510
88511         * m4/ftruncate.m4: Check for chsize.
88512         Link with ftruncate.o unconditionally if ftruncate is missing.
88513         This was required when cross-compiling to i586-mingw32msvc.
88514
88515 2001-04-08  Jim Meyering  <meyering@lucent.com>
88516
88517         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
88518         recomputed; that's necessary when the offset spans a DST transition.
88519         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
88520
88521 2001-04-02  Jim Meyering  <meyering@lucent.com>
88522
88523         * lib/regex.h, regex.c: Update from GNU libc.
88524
88525 2001-03-24  Jim Meyering  <meyering@lucent.com>
88526
88527         * m4/jm-macros.m4: Require autoconf-2.49d.
88528
88529 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
88530
88531         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
88532
88533 2001-03-19  Paul Eggert  <eggert@twinsun.com>
88534
88535         * lib/version-etc.c (version_etc_copyright): Update to 2001.
88536
88537 2001-03-17  Jim Meyering  <meyering@lucent.com>
88538
88539         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
88540         now that the version in autoconf is equivalent.
88541         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
88542
88543         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
88544         Suggestion from Akim Demaille.
88545
88546         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
88547         (jm_PREREQ_TEMPNAME): New function.
88548
88549 2001-03-16  Paul Eggert  <eggert@twinsun.com>
88550
88551         * lib/tempname.c (uint64_t): Define to uintmax_t if
88552         not defined, and if UINT64_MAX is not defined.
88553         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
88554         Reported by John David Anglin.
88555
88556 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
88557
88558         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
88559         resolve alias if codeset is empty.
88560         * lib/config.charset (BeOS): Use wildcard syntax.
88561
88562 2001-03-13  Jim Meyering  <meyering@lucent.com>
88563
88564         * lib/path-concat.c (path_concat)
88565         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
88566         concatenating e.g., `C:' and `foo'.
88567         From Bruno Haible.
88568
88569 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88570
88571         * lib/localcharset.c (locale_charset): Don't use
88572         setlocale(LC_CTYPE,NULL). Don't return NULL.
88573         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
88574
88575 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88576
88577         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
88578         support for DOS/DJGPP.
88579
88580 2001-03-01  Paul Eggert  <eggert@twinsun.com>
88581
88582         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
88583         lacks mkstemp.  Compile our own tempname.c if we compile our own
88584         mkstemp.c, as mkstemp relies on tempname.
88585
88586 2001-03-01  Jim Meyering  <meyering@lucent.com>
88587
88588         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
88589         AH_VERBATIM really does output its argument verbatim.
88590
88591 2001-02-28  Paul Eggert  <eggert@twinsun.com>
88592
88593         * lib/Makefile.am (libfetish_a_SOURCES):
88594         Add dup-safer.c, fopen-safer.c.
88595         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
88596
88597         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
88598         * lib/unistd-safer.h: New files.
88599
88600 2001-02-25  Paul Eggert  <eggert@twinsun.com>
88601
88602         The mkstemp replacement is taken from glibc 2.2.2, with some
88603         portability fixes for use outside glibc, as follows:
88604
88605         * lib/tempname.c (struct_stat64): New macro.
88606         (direxists, __gen_tempname): Use it.
88607         This avoids a portability problem with Solaris 8.
88608
88609         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
88610         (<stddef.h>, <stdint.h>, <string.h>):
88611         Include only if STDC_HEADERS || _LIBC.
88612         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
88613         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
88614         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
88615         (__set_errno): Define this macro if <errno.h> doesn't.
88616         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
88617         Define these macros if <stdio.h> doesn't.
88618         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
88619         Define these macros if <sys/stat.h>
88620         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
88621         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
88622         __xstat64): Define if not _LIBC.
88623         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
88624         (__gen_tempname): Invoke gettimeofday only if
88625         HAVE_GETTIMEOFDAY || _LIBC;
88626         otherwise, fall back on plain "time".
88627         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
88628
88629         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
88630
88631         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
88632
88633 2001-02-18  Paul Eggert  <eggert@twinsun.com>
88634
88635         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
88636
88637 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88638
88639         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
88640         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
88641         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
88642         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88643
88644 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88645
88646         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
88647         Remove workaround macros for hosts that have mbrtowc but not
88648         mbstate_t, as we now insist on proper declarations for both
88649         before using mbrtowc.
88650
88651 2001-02-17  Jim Meyering  <meyering@lucent.com>
88652
88653         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
88654         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
88655         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
88656         UnixWare 7.1.1.
88657
88658         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
88659         rather than AC_CACHE_VAL.
88660
88661 2001-02-17  Jim Meyering  <meyering@lucent.com>
88662
88663         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
88664         around included file name.
88665
88666         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
88667
88668         * lib/strftime.c: Update from GNU libc (the only changes were to
88669         comments).
88670
88671 2001-02-17  Jim Meyering  <meyering@lucent.com>
88672
88673         * lib/regex.c: Update from libc.
88674
88675 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
88676
88677         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
88678         clash.
88679
88680 2001-02-16  Paul Eggert  <eggert@twinsun.com>
88681
88682         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
88683         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
88684         Reported by Mark Hounschell via Paul Eggert.
88685
88686 2001-02-07  Jim Meyering  <meyering@lucent.com>
88687
88688         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
88689
88690 2001-02-05  Jim Meyering  <meyering@lucent.com>
88691
88692         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
88693         it includes the patch required for `large file' support with at least
88694         HP-UX's 10.20 /bin/cc.
88695
88696 2001-02-03  Jim Meyering  <meyering@lucent.com>
88697
88698         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
88699         AS_IF, now that it works once again (mysteriously).
88700         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88701
88702 2001-01-30  Jim Meyering  <meyering@lucent.com>
88703
88704         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
88705         * m4/chown.m4: Rename conftestchown to conftest.chown.
88706         * m4/rename.m4: s/conftestdir/conftest.d1/ and
88707         s/conftestdir2/conftest.d2/.
88708         * m4/utimes.m4: s/conftestdata/conftest.data/
88709         Inspired by Pavel Roskin's change in autoconf.
88710
88711 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
88712
88713         * lib/config.charset: Update for FreeBSD 4.2.
88714
88715 2001-01-27  Jim Meyering  <meyering@lucent.com>
88716
88717         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
88718         a use of AS_IF.
88719         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88720
88721 2001-01-26  Jim Meyering  <meyering@lucent.com>
88722
88723         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
88724         quotearg.c includes it.
88725
88726 2001-01-26  Jim Meyering  <meyering@lucent.com>
88727
88728         * lib/quotearg.c: Include stddef.h.
88729         * lib/quote.c: Include stddef.h.
88730         Reported by Axel Kittenberger.
88731
88732         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
88733         line in double quotes so that it evokes a better diagnostic.
88734         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
88735         Reported by Axel Kittenberger.
88736
88737 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
88738
88739         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
88740         as if it was a `charset'.
88741
88742 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88743
88744         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
88745         has const.
88746
88747 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88748
88749         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
88750         to avoid a warning.  Add back 'const' to inptr.
88751
88752 2001-01-20  Jim Meyering  <meyering@lucent.com>
88753
88754         Be sure that headers are checked before used in code compiled
88755         for the type checks.
88756         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
88757         In place of that, invoke jm_CHECK_ALL_TYPES.
88758         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
88759         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
88760         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
88761         The check for ssize_t was mistakenly run before the test for unistd.h.
88762
88763         The configure-time check for stdbool.h was missing.
88764         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
88765         (jm_PREREQ_HASH): New function.
88766
88767 2001-01-17  Jim Meyering  <meyering@lucent.com>
88768
88769         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
88770         for autoconf-2.49c.
88771         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
88772
88773 2001-01-16  Jim Meyering  <meyering@lucent.com>
88774
88775         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
88776         From Bruno Haible.
88777
88778 2001-01-14  Jim Meyering  <meyering@lucent.com>
88779
88780         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
88781         foo and bar.  Create conftestdir/ in the script, not in the C code.
88782         Remove directories in the script, not in the C code.
88783         Remove conftestdir{,2} before trying to create the directory.
88784         Make the entire configure script fail if the mkdir fails.
88785
88786 2001-01-14  Jim Meyering  <meyering@lucent.com>
88787
88788         * lib/rename.c: New file.  From Volker Borchert.
88789         Include stdlib.h, string.h or strings.h, and xalloc.h.
88790         Use strip_trailing_slashes rather than open-coding it.
88791
88792 2001-01-03  Paul Eggert  <eggert@twinsun.com>
88793
88794         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
88795
88796 2001-01-03  Jim Meyering  <meyering@lucent.com>
88797
88798         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
88799         of local `inptr' to avoid warning with some system declarations of
88800         iconv.
88801
88802 2001-01-02  Volker Borchert  <bt@teknon.de>
88803
88804         * m4/rename.m4: New file.
88805         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
88806
88807 2001-01-01  Jim Meyering  <meyering@lucent.com>
88808
88809         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
88810         even on systems with utmpx.h.  It's necessary for the declaration of
88811         utmp's ut_user member.  Reported by Andreas Jaeger.
88812
88813         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
88814         available. They are required for the declarations of getgrgid and
88815         getpwuid resp.
88816         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
88817         Reported by Andreas Jaeger.
88818
88819 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
88820
88821         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
88822         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
88823         so `make install' also works in VPATH builds.
88824
88825 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
88826
88827         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
88828         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
88829         can be used in subdirectories.
88830
88831 2000-12-29  Paul Eggert  <eggert@twinsun.com>
88832
88833         * lib/modechange.c: Do not assume that mode_t uses the
88834         traditional octal encoding.  E.g. "chmod 1 FOO" should set
88835         the other-execute bit of FOO even if S_IXOTH != 1.
88836
88837         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
88838         WOTH, XOTH, ALLM): New macros.
88839         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
88840          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
88841         Use them.
88842         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
88843         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
88844         (mode_compile):
88845         No need to use uintmax_t; unsigned long is long enough.
88846         Don't bother to get suffix since we don't use it.
88847
88848 2000-12-26  Jim Meyering  <meyering@lucent.com>
88849
88850         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
88851         better with autoheader.
88852
88853 2000-12-24  Jim Meyering  <meyering@lucent.com>
88854
88855         * lib/hash.c (is_prime): Return explicit boolean values.
88856         (hash_get_first): Return NULL to appease Irix5.6's 89.
88857         Reported by Nelson Beebe.
88858
88859 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
88860
88861         * lib/localcharset.c (locale_charset): Add support for Win32.
88862
88863 2000-12-18  Paul Eggert  <eggert@twinsun.com>
88864
88865         * lib/physmem.h, lib/physmem.c: New files.
88866
88867         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
88868         (noinst_HEADERS): Add physmem.h.
88869
88870         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
88871         't' for compatibility with Solaris 8 sort.
88872
88873 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
88874
88875         * lib/config.charset: Add support for BeOS.
88876
88877 2000-12-17  Jim Meyering  <meyering@lucent.com>
88878
88879         * m4/dos.m4 (jm_AC_DOS): New file and macro.
88880         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
88881
88882 2000-12-16  Jim Meyering  <meyering@lucent.com>
88883
88884         This bug had a serious impact on chown: `chown N:M FILE' (for integer
88885         N and M) would have treated it like `chown N:N FILE'.
88886
88887         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
88888
88889 2000-12-16  Jim Meyering  <meyering@lucent.com>
88890
88891         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
88892         SHELLS_FILE to a file name that's useful on djgpp systems.
88893         Include stdlib.h.
88894         (ADDITIONAL_DEFAULT_SHELLS): Define.
88895         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
88896         Based mostly on a patch from Prashant TR.
88897
88898 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
88899
88900         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
88901         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
88902         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
88903
88904 2000-12-08  Andreas Schwab  <schwab@suse.de>
88905
88906         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
88907         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
88908
88909 2000-12-07  Jim Meyering  <meyering@lucent.com>
88910
88911         * lib/stripslash.c (ISSLASH): Define.
88912         (strip_trailing_slashes): Use ISSLASH rather than comparing against
88913         `/'.
88914         From Prashant TR.
88915
88916         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
88917         (dir_name_r): Declare this function as static.
88918         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
88919         manifest itself on a name containing a mix of slashes and
88920         backslashes.
88921         Make this function work with names starting with a DOS-style
88922         drive letter and colon prefix.
88923         (dir_name): Append `.' if necessary.
88924         Based mostly on patches from Prashant TR and Eli Zaretskii.
88925
88926         * lib/dirname.h (dir_name_r): Remove prototype.
88927
88928 2000-12-06  Paul Eggert  <eggert@twinsun.com>
88929
88930         * m4/off_t-format.m4: Remove this file.
88931         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
88932
88933 2000-12-06  Jim Meyering  <meyering@lucent.com>
88934
88935         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
88936         replacement strtoull, we may well need the replacement strtoul, too.
88937         Check for declarations of strtoul and strtoull.
88938         Check for strtol.  Mainly as a cue to cause automake to include
88939         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
88940         Check for limits.h -- strtol.c needs it.
88941
88942 2000-12-05  Jim Meyering  <meyering@lucent.com>
88943
88944         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
88945
88946 2000-12-04  Jim Meyering  <meyering@lucent.com>
88947
88948         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
88949         Also include memory.h, stdlib.h, unistd.h if appropriate.
88950         Reported by Andreas Jaeger (conflicting declaration of malloc).
88951
88952 2000-12-02  Jim Meyering  <meyering@lucent.com>
88953
88954         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
88955         * m4/jm-macros.m4 (jm_MACROS): require it.
88956
88957 2000-12-02  Jim Meyering  <meyering@lucent.com>
88958
88959         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
88960
88961 2000-12-01  Paul Eggert  <eggert@twinsun.com>
88962
88963         * lib/memrchr.c: Include <config.h> before any system include file.
88964
88965 2000-11-30  Jim Meyering  <meyering@lucent.com>
88966
88967         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
88968
88969 2000-11-30  Jim Meyering  <meyering@lucent.com>
88970
88971         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
88972
88973 2000-11-29  Paul Eggert  <eggert@twinsun.com>
88974
88975         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
88976
88977 2000-11-26  Jim Meyering  <meyering@lucent.com>
88978
88979         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
88980
88981 2000-11-22  Paul Eggert  <eggert@twinsun.com>
88982
88983         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
88984         size of (size_t) -1; it's not portable.
88985
88986 2000-11-17  Jim Meyering  <meyering@lucent.com>
88987
88988         * lib/strstr.c: Update from GNU libc.
88989
88990 2000-11-17  Akim Demaille  <akim@epita.fr>
88991
88992         * lib/obstack.h: Formatting changes.
88993         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
88994         prevent type checking.
88995         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
88996         cast the value to (void *): assigning a `foo *' to a `void *'
88997         variable is valid.
88998         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
88999
89000 2000-11-16  Jim Meyering  <meyering@lucent.com>
89001
89002         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
89003
89004 2000-11-11  Jim Meyering  <meyering@lucent.com>
89005
89006         * lib/error.c: Add a couple #includes, merging from GNU libc version.
89007
89008 2000-11-10  Jim Meyering  <meyering@lucent.com>
89009
89010         * lib/obstack.h: Update from GNU libc.
89011         * lib/obstack.c: Likewise.
89012
89013 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
89014
89015         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
89016
89017 2000-11-06  Paul Eggert  <eggert@twinsun.com>
89018
89019         * lib/getusershell.c (setusershell): Use rewind rather than
89020         fseek/fseeko, to avoid configuration hassles with fseeko.
89021         Don't bother opening SHELLS_FILE if shellstream is NULL;
89022         it's not necessary.
89023
89024 2000-11-05  Jim Meyering  <meyering@lucent.com>
89025
89026         * lib/makepath.h (make_dir): Declare.
89027         * lib/makepath.c (make_dir): Remove `static' attribute.
89028         Tweak a comment.
89029
89030 2000-11-04  Jim Meyering  <meyering@lucent.com>
89031
89032         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
89033
89034 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
89035
89036         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
89037         last one in a bucket, advance to the next bucket.
89038
89039 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
89040
89041         * lib/fnmatch.c: Do not comment out all the code if we are using
89042         the GNU C library, because in some cases we are replacing buggy
89043         code in the GNU C library itself.
89044
89045 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
89046
89047         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
89048         (regex_compile): Catch bogus \(\1\).
89049
89050 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89051
89052         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
89053         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
89054         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
89055
89056 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89057
89058         * lib/error.h, getline.h, modechange.h:
89059         Remove "2000" from Copyright line, as the file hasn't been
89060         changed this year other than in the copyright notice.
89061
89062         * lib/xalloc.h: Add "2000" to Copyright line, as this file
89063         was changed this year.
89064
89065 2000-10-29  Jim Meyering  <meyering@lucent.com>
89066
89067         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
89068         renaming.
89069         * m4/ls-mntd-fs.m4: Likewise
89070
89071 2000-10-29  Jim Meyering  <meyering@lucent.com>
89072
89073         * lib/xstat.in: Fix grammar in comment.
89074
89075 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
89076
89077         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
89078         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
89079         doesn't define __restrict_arr.
89080
89081 2000-10-28  Jim Meyering  <meyering@lucent.com>
89082
89083         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
89084         (jm_PREREQ_MEMCHR): New function.
89085
89086 2000-10-28  Jim Meyering  <meyering@lucent.com>
89087
89088         * lib/memchr.c: Update from libc.
89089         Adjust for portability:
89090         [HAVE_STDLIB_H]: Include stdlib.h.
89091         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
89092         Undef __memchr, too.
89093         [!weak_alias]: Define __memchr to memchr.
89094
89095         * lib/regex.c: Update from libc.
89096         * lib/regex.h: Likewise.
89097         * lib/getopt1.c: Likewise.
89098         * lib/memcmp.c: Likewise.
89099
89100         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
89101         Avoid using fseek, when possible -- it's broken by design.
89102         Patch by Ulrich Drepper.
89103
89104 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
89105
89106         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
89107         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
89108         Giving in to popular pressure to shut up the compiler with casts.
89109
89110 2000-10-26  Jim Meyering  <meyering@lucent.com>
89111
89112         * lib/strftime.c: Update from libc.
89113
89114 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
89115
89116         * regex.c: More `unsigned char' -> `re_char' changes.
89117         Also change several `int' into `re_wchar_t'.
89118         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
89119         (PUSH_FAILURE_POINTER): Don't cast any more.
89120         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
89121         We want GCC to complain, since this piece of code makes
89122         re_match non-reentrant, which *should* be fixed.
89123         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
89124         (EXTEND_BUFFER): Use RETALLOC.
89125         (SET_LIST_BIT): Don't cast.
89126         (re_wchar_t): New type.
89127         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
89128         that those two functions will always properly return.
89129         (IMMEDIATE_QUIT_CHECK): Cast to void.
89130         (analyse_first): Use recursion rather than an explicit stack.
89131         (re_compile_fastmap): Can't fail anymore.
89132         (re_search_2): Don't check re_compile_fastmap for failure.
89133         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
89134         Now also sets the new value (passed in a new argument).
89135         (re_match_2_internal): Use it.
89136         Also, use a new var `reg' of type size_t when looping through regs
89137         rather than reuse the inappropriate `mcnt'.
89138
89139 2000-10-25  Jim Meyering  <meyering@lucent.com>
89140
89141         * lib/obstack.c: Update from libc.
89142
89143 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
89144
89145         * regex.c (regex_compile): Change the way of handling a range from
89146         a char less than 256 to a char not less than 256.
89147
89148 2000-10-24  Andrew Innes  <andrewi@gnu.org>
89149
89150         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
89151         NT-Emacs only.
89152         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
89153         so that re_search functions only quit when callers expect them to.
89154
89155 2000-10-23  Jim Meyering  <meyering@lucent.com>
89156
89157         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
89158         wrong.  That set_locale call must not have any side effects.
89159         From Paul Eggert.
89160
89161 2000-10-22  Jim Meyering  <meyering@lucent.com>
89162
89163         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
89164         [CYCLIC]: Remove now-unused definition.
89165
89166         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
89167         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
89168         Suggestion from Ulrich Drepper.
89169
89170 2000-10-21  Jim Meyering  <meyering@lucent.com>
89171
89172         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
89173         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
89174         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
89175
89176 2000-10-21  Jim Meyering  <meyering@lucent.com>
89177
89178         * lib/dirname.c (memrchr): Declare if necessary.
89179         (dir_name): Remove the restriction that there be no
89180         trailing slashes.  Now, this code skips past them, effectively
89181         ignoring them.
89182         [TEST_DIRNAME] (main): New unit tests.
89183
89184         * lib/memrchr.c: New file from GNU libc.
89185         Undef __memrchr, too.
89186         [!weak_alias]: Define __memrchr to memrchr.
89187         Guard weak_alias use with `#ifdef weak_alias'.
89188
89189 2000-10-21  Jim Meyering  <meyering@lucent.com>
89190
89191         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
89192         (dir_name): Use dir_name_r.
89193         * lib/dirname.h (dir_name_r): Declare it.
89194
89195 2000-10-17  Jim Meyering  <meyering@lucent.com>
89196
89197         * lib/quote.h (PARAMS): Define and use.
89198         Reported by Akim Demaille.
89199
89200         * lib/getopt.c: Update from libc.
89201
89202 2000-10-16  Jim Meyering  <meyering@lucent.com>
89203
89204         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
89205         setlocale.
89206         From Jan Fedak.
89207
89208 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
89209
89210         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
89211
89212 2000-09-25  Jim Meyering  <meyering@lucent.com>
89213
89214         * lib/md5.h (rol): Define (from GnuPG).
89215
89216         * lib/sha.c: Give credit (GnuPG) where due.
89217         (M): Use rol rather than open-coding it.
89218         Add a FIXME comment.
89219
89220 2000-09-21  Jim Meyering  <meyering@lucent.com>
89221
89222         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
89223         Reported by Michael Stone.
89224
89225 2000-09-20  Jim Meyering  <meyering@lucent.com>
89226
89227         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
89228         (noinst_HEADERS): Add sha.h.
89229         Based on code from Scott G. Miller and from GnuPG.
89230
89231 2000-09-18  Jim Meyering  <meyering@lucent.com>
89232
89233         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
89234         LIBS. Otherwise, everyone ends up linking with -lelf for some
89235         configurations.
89236         Reported by Mike Stone.
89237
89238 2000-09-15  Jim Meyering  <meyering@lucent.com>
89239
89240         * lib/regex.c: Update from libc.
89241
89242 2000-09-10  Jim Meyering  <meyering@lucent.com>
89243
89244         * lib/getopt.c (_getopt_internal): Update from glibc.
89245
89246 2000-09-09  Jim Meyering  <meyering@lucent.com>
89247
89248         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
89249         think it should be used as a general replacement for isascii.
89250         * lib/fnmatch.c: Likewise.
89251         * lib/mbswidth.c: Likewise
89252         * lib/regex.c: Likewise.
89253
89254         Don't use atoi.
89255         * lib/userspec.c: Include sys/param.h and limits.h.
89256         Include xstrtol.h.
89257         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
89258         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
89259         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
89260         UID, GID.  Check range.
89261
89262 2000-09-06  Jim Meyering  <meyering@lucent.com>
89263
89264         * lib/getopt.c (_getopt_internal): Update from glibc.
89265
89266 2000-08-30  Jim Meyering  <meyering@lucent.com>
89267
89268         * lib/strftime.c: Merge in changes from GNU libc.
89269
89270 2000-08-26  Jim Meyering  <meyering@lucent.com>
89271
89272         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
89273         * m4/fpending.m4: New file.
89274
89275 2000-08-26  Jim Meyering  <meyering@lucent.com>
89276
89277         * lib/closeout.c: Include "__fpending.h".
89278         (close_stdout_status): Return right away if there's nothing to flush.
89279
89280         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
89281         * lib/__fpending.c: New file.
89282         * lib/__fpending.h: New file.
89283
89284 2000-08-20  Jim Meyering  <meyering@lucent.com>
89285
89286         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
89287         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
89288         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
89289
89290 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
89291
89292         Improve fileutils installation on systems where running
89293         programs (like install) can't be unlinked.
89294         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
89295         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
89296
89297 2000-08-07  Paul Eggert  <eggert@twinsun.com>
89298
89299         Standardize on "memory exhausted" instead of "Memory exhausted"
89300         or "virtual memory exhausted".
89301         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
89302         "virtual memory exhausted".
89303         * lib/same.c (same_name): Invoke xalloc_die instead of printing
89304         our own message.
89305         * lib/userspec.c (parse_user_spec): Likewise.
89306         * lib/bumpalloc.h: comment fix
89307         * lib/same.c, userspec.c: Include xalloc.h.
89308
89309         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
89310         not char *const and pointing to a constant array.
89311         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
89312         (xrealloc): Comment fix.
89313
89314         * lib/userspec.c (parse_user_spec):
89315         Don't translate a message until just before returning,
89316         to avoid unnecessary translation.
89317
89318 2000-08-07  Jim Meyering  <meyering@lucent.com>
89319
89320         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
89321         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
89322         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
89323         getgroups.c, gethostname.c, getopt.h, group-member.c,
89324         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
89325         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
89326         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
89327         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
89328         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
89329         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
89330         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
89331         yesno.c: Back out Copyright date changes for each file with no change
89332         this year.  This eases coordination with other programs using the same
89333         source code modules.  From Paul Eggert.
89334
89335 2000-08-06  Paul Eggert  <eggert@twinsun.com>
89336
89337         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
89338         not char, for compatibility with glibc 2.1.3 strftime.c.
89339
89340 2000-08-03  Greg McGary  <greg@mcgary.org>
89341
89342         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
89343         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
89344         (EXTEND_BUFFER): Use them.
89345
89346 2000-08-01  Jim Meyering  <meyering@lucent.com>
89347
89348         * lib/dirname.c (ISSLASH): Define.
89349         (BACKSLASH_IS_PATH_SEPARATOR): Define.
89350         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
89351         both `\' and `/' may be use as path separators.
89352         Based on a patch from Prashant TR.
89353
89354 2000-07-31  Paul Eggert  <eggert@twinsun.com>
89355
89356         * lib/quotearg.c (quotearg_n_options): Don't make the initial
89357         slot vector a constant, since it might get modified.
89358
89359 2000-07-31  Jim Meyering  <meyering@lucent.com>
89360
89361         * lib/xmalloc.c: Use `virtual memory exhausted', not
89362         `Memory exhausted'.
89363         * lib/obstack.c (print_and_abort): Likewise.
89364
89365 2000-07-30  Paul Eggert  <eggert@twinsun.com>
89366
89367         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
89368         buffer, so that the caller can always quote one small
89369         component of a "memory exhausted" message in slot 0.
89370         From a suggestion by Jim Meyering.
89371
89372 2000-07-30  Jim Meyering  <meyering@lucent.com>
89373
89374         * lib/makepath.c (make_path): Quote the other instance, too.
89375
89376         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
89377         (STATIC_BUF_SIZE): Define.
89378         (quotearg_n_options): Use only statically allocated storage when
89379         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
89380         than STATIC_BUF_SIZE.
89381
89382 2000-07-29  Jim Meyering  <meyering@lucent.com>
89383
89384         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
89385         * lib/dirname.c (dir_name): Likewise.
89386
89387         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
89388         `/'.
89389
89390         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
89391         (dir_name): Assert that there are no trailing slashes.
89392
89393 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
89394
89395         * lib/mbswidth.h (mbswidth): Add a flags argument.
89396         (mbswidth): New declaration.
89397         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
89398         * lib/mbswidth.c (mbswidth): Add a flags argument.
89399         (mbsnwidth): New function.
89400
89401 2000-07-24  Jim Meyering  <meyering@lucent.com>
89402
89403         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
89404
89405 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89406
89407         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
89408
89409 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89410
89411         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
89412         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
89413         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
89414         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
89415         invoke multibyte primitives.
89416
89417 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89418
89419         * lib/quotearg.c:
89420         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
89421         so that mbstate_t is always defined.
89422
89423         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
89424         be 1 in at least one GCC installation, and this configuration
89425         error is likely to be common.  Ignoring MB_LEN_MAX hurts
89426         performance on hosts that have mbrtowc but have only unibyte
89427         locales, but I assume these hosts are rare.
89428
89429 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89430
89431         * lib/mbswidth.c (_XOPEN_SOURCE):
89432         Don't define; this causes problems on Solaris 7.
89433         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
89434
89435 2000-07-23  Jim Meyering  <meyering@lucent.com>
89436
89437         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
89438         too: getgrgid, getpwuid, getuid.
89439
89440 2000-07-23  Jim Meyering  <meyering@lucent.com>
89441
89442         * lib/basename.c (base_name): Add an assertion.
89443
89444 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
89445
89446         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
89447         shadow its mbsinit function.
89448
89449 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89450
89451         * lib/mbswidth.h: New file.
89452         * lib/mbswidth.c: New file.
89453         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
89454         (noinst_HEADERS): Add mbswidth.h.
89455
89456 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89457
89458         * lib/config.charset: Add support for FreeBSD. Improve support for
89459         HP-UX and IRIX 6.
89460
89461 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
89462
89463         * m4/mbswidth.m4: New file.
89464         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
89465
89466 2000-07-15  Jim Meyering  <meyering@lucent.com>
89467
89468         * lib/makepath.c: Include quote.h.
89469         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
89470         corresponding argument in a `quote (...)' call.
89471         Give better diagnostics.
89472
89473         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
89474         (noinst_HEADERS): Add quote.h.
89475
89476         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
89477         from tar's src/misc.c.
89478         * lib/quote.h: New file.  Prototypes for same.
89479
89480 2000-07-14  Paul Eggert  <eggert@twinsun.com>
89481
89482         From a suggestion by Bruno Haible.
89483         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
89484         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
89485         to decide whether to define the BeOS workaround macro;
89486         this adjusts to the change to AC_MBSTATE_T.
89487
89488 2000-07-14  Jim Meyering  <meyering@lucent.com>
89489
89490         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
89491         jm_AC_TYPE_UINTMAX_T.
89492
89493 2000-07-13  Paul Eggert  <eggert@twinsun.com>
89494
89495         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
89496
89497         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
89498         quotearg_buffer_restyled): Add support for
89499         clocale_quoting_style.  Undo previous change to
89500         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
89501         and "{RIGHT QUOTATION MARK}" msgids.
89502
89503 2000-07-10  Paul Eggert  <eggert@twinsun.com>
89504
89505         From a suggestion by Bruno Haible.
89506         * m4/mbstate_t.m4 (AC_MBSTATE_T):
89507         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
89508         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
89509         and mbstate_t, to a single-part test that simply defines mbstate_t.
89510         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
89511         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
89512
89513 2000-07-10  Jim Meyering  <meyering@lucent.com>
89514
89515         * m4/strerror_r.m4: Mirror the correction made in autoconf.
89516
89517         * m4/gnu-source.m4: Output to confdefs.h directly.
89518         Suggestion from Akim Demaille.
89519
89520 2000-07-09  Paul Eggert  <eggert@twinsun.com>
89521
89522         The old behavior of quoting `like this' doesn't look good with
89523         newer, ISO-style fonts.  See:
89524         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
89525
89526         Instead, quote "like this" by default.  Let the translator
89527         tailor the locale-specific quoting behavior by providing
89528         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
89529
89530         * lib/quotearg.c (N_): New macro.
89531         (gettext_default): New function.
89532         (quotearg_buffer_restyled): Use
89533         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
89534         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
89535
89536 2000-07-09  Jim Meyering  <meyering@lucent.com>
89537
89538         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
89539         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
89540
89541         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
89542         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
89543
89544 2000-07-09  Jim Meyering  <meyering@lucent.com>
89545
89546         * lib/Most files: Update copyright dates to include 2000.
89547
89548 2000-07-08  Jim Meyering  <meyering@lucent.com>
89549
89550         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
89551         if not defined.
89552         (xgethostname): Remove now-unnecessary #ifdef.
89553         Move declaration of `err' into loop where it's used.
89554
89555 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89556         and Bruno Haible  <haible@clisp.cons.org>
89557
89558         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
89559         only if the test for an object-type mbstate_t fails.  This
89560         prevents us from mistakenly reporting that mbstate_t is a
89561         system object type after we "#define mbstate_t int" to work
89562         around its lack.
89563
89564 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89565         and Bruno Haible  <haible@clisp.cons.org>
89566
89567         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
89568
89569 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89570
89571         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
89572         to strerror_r.
89573         Include <ctype.h> for use of isalpha.
89574
89575 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89576
89577         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
89578         by allocating a larger buffer. Test the gethostname return value for
89579         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
89580         returns an error and ENAMETOOLONG isn't defined.
89581
89582 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89583
89584         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
89585         dimension.
89586
89587 2000-07-04  Jim Meyering  <meyering@lucent.com>
89588
89589         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
89590         of the deprecated AC_CHECKING.
89591
89592 2000-07-04  Jim Meyering  <meyering@lucent.com>
89593
89594         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
89595         Reported by Bruno Haible.
89596
89597 2000-07-04  Jim Meyering  <meyering@lucent.com>
89598
89599         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
89600         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
89601         lacks mbrtowc.
89602
89603 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89604
89605         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
89606         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
89607
89608 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89609         and Bruno Haible  <haible@clisp.cons.org>
89610
89611         * lib/quotearg.c (mbrtowc):
89612         Assign to *pwc, and return 1 only if result is nonzero.
89613         (iswprint): Use ISPRINT when substituting our own mbrtowc.
89614
89615 2000-07-03  Jim Meyering  <meyering@lucent.com>
89616
89617         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
89618
89619 2000-07-03  Jim Meyering  <meyering@lucent.com>
89620
89621         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
89622         This is necessary to get a definition of e.g., UTMP_FILE on
89623         HP-UX 10.20.
89624         From Bob Proulx.
89625
89626 2000-07-02  Jim Meyering  <meyering@lucent.com>
89627
89628         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
89629
89630         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
89631         AC_LIBOBJ(function_name).
89632         * m4/chown.m4: Likewise.
89633         * m4/fnmatch.m4: Likewise.
89634         * m4/ftruncate.m4: Likewise.
89635         * m4/getgroups.m4: Likewise.
89636         * m4/getline.m4: Likewise.
89637         * m4/group-member.m4: Likewise.
89638         * m4/jm-macros.m4: Likewise.
89639         * m4/lstat.m4: Likewise.
89640         * m4/malloc.m4: Likewise.
89641         * m4/memcmp.m4: Likewise.
89642         * m4/nanosleep.m4: Likewise.
89643         * m4/putenv.m4: Likewise.
89644         * m4/realloc.m4: Likewise.
89645         * m4/regex.m4: Likewise.
89646         * m4/stat.m4: Likewise.
89647         * m4/strftime.m4: Likewise.
89648
89649 2000-07-02  Jim Meyering  <meyering@lucent.com>
89650
89651         * lib/quotearg.c (mbstate_t): Don't define here.
89652
89653 2000-07-02  Jim Meyering  <meyering@lucent.com>
89654
89655         * lib/nanosleep.c (SIGCONT): Define if not already defined.
89656
89657 2000-07-01  Jim Meyering  <meyering@lucent.com>
89658
89659         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
89660
89661 2000-07-01  Jim Meyering  <meyering@lucent.com>
89662
89663         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
89664         problem.
89665
89666 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89667
89668         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
89669         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
89670
89671 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89672
89673         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
89674         per change in ../m4/ls-mntd-fs.m4.
89675         (read_filesystem_list): Ignore symbolic links.
89676
89677 2000-06-29  Jim Meyering  <meyering@lucent.com>
89678
89679         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
89680         for declaration of strcmp.
89681
89682         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
89683
89684         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
89685         Avoid warning by casting result to `char *' to remove `const'.
89686
89687 2000-06-28  Jim Meyering  <meyering@lucent.com>
89688
89689         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
89690         included by quotearg.c, for which we perform this test.  From
89691         Bruno Haible.
89692
89693 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89694
89695         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
89696         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
89697         <utmpx.h> exists, put readutmp.o into LIBOBJS.
89698
89699 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89700
89701         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
89702
89703 2000-06-26  Paul Eggert  <eggert@twinsun.com>
89704
89705         savedir now sets errno on failure and invokes xmalloc to get memory.
89706         Fix a couple of other minor bugs while we're at it.
89707
89708         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
89709         (NAMLEN): Remove macro.
89710         (malloc, realloc): Remove decls.
89711         (stpcpy): Likewise.
89712         ("xalloc.h"): Include.
89713         (NAME_SIZE_DEFAULT): New macro.
89714         (savedir): Use xmalloc / xrealloc to allocate memory.
89715         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
89716         Skip "" directory entries.
89717         Use strlen to calculate directory entry length, since the old method
89718         is rarely used these days and isn't worth supporting.
89719         Don't use a pointer after freeing it.
89720         Check for integer overflow when calculating allocation size.
89721         Use memcpy to copy entries, instead of stpcpy.
89722         Set errno properly when returning NULL.
89723         Check for readdir error.
89724
89725 2000-06-26  Jim Meyering  <meyering@lucent.com>
89726
89727         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
89728
89729 2000-06-25  Jim Meyering  <meyering@lucent.com>
89730
89731         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
89732         Linux header bug when _XOPEN_SOURCE is defined to 500.
89733
89734 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89735
89736         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
89737         deficiency.
89738
89739 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89740
89741         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
89742         Include xalloc.h.
89743         Don't include <stdlib.h>.  Don't declare malloc, realloc.
89744
89745 2000-06-24  Jim Meyering  <meyering@lucent.com>
89746
89747         * m4/strerror_r.m4: Revive this file -- to try out an experimental
89748         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
89749         for which strerror does return char*, but which lacks a conveniently
89750         accessible declaration of the function.  If the compile-test says
89751         strerror_r doesn't work, then resort to a `run'-test that works on
89752         BeOS and segfaults on DEC Unix.
89753
89754 2000-06-24  Jim Meyering  <meyering@lucent.com>
89755
89756         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
89757
89758 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89759
89760         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
89761         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
89762
89763 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89764
89765         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
89766         (mbrtowc, mbstate_t): Define substitutes if
89767         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
89768         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
89769         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
89770
89771 2000-06-23  Jim Meyering  <meyering@lucent.com>
89772
89773         * m4/afs.m4: Add missing AC_MSG_RESULT.
89774         Reported by Bruno Haible.
89775
89776         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
89777         Suggestion from Bruno Haible.
89778
89779 2000-06-23  Jim Meyering  <meyering@lucent.com>
89780
89781         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
89782
89783 2000-06-21  Jim Meyering  <meyering@lucent.com>
89784
89785         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
89786
89787 2000-06-21  Jim Meyering  <meyering@lucent.com>
89788
89789         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
89790         (noinst_HEADERS): Add getstr.h.
89791
89792         * lib/getline.c (getstr): Move into a separate file.
89793         * lib/getstr.c (getstr): New file, extracted from getline.c, with
89794         the following changes: new parameter, delim2; both delim[12]
89795         parameters have type `int', not `char'.  The latter would lose
89796         with 8-bit delimiters.
89797         * lib/getstr.h: New file.
89798
89799 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89800
89801         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
89802         than 1024, return a memory chunk of least possible size, instead
89803         of size PATH_MAX + 2. In the loop, increment the size proportionally.
89804         Use free/xmalloc instead of xrealloc to avoid copying for very long
89805         paths.
89806
89807 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89808
89809         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
89810         the empty string.
89811
89812 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89813
89814         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
89815         address, not strdup.  Include <stdlib.h> and don't declare free().
89816
89817 2000-06-19  Jim Meyering  <meyering@lucent.com>
89818
89819         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
89820
89821 2000-06-18  Jim Meyering  <meyering@lucent.com>
89822
89823         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
89824
89825         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
89826         `checking whether...' message to be consistent with that of the
89827         lstat test.
89828
89829 2000-06-18  Jim Meyering  <meyering@lucent.com>
89830
89831         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
89832         Besides, these days every porting target provides a mkdir function.
89833
89834         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
89835         needed. (this snippet comes from src/system.h).
89836
89837 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
89838
89839         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
89840
89841 2000-06-15  Paul Eggert  <eggert@twinsun.com>
89842
89843         * lib/human.c (adjust_value): New function.
89844         (human_readable_inexact): Apply rounding style even when
89845         printing approximate values.
89846
89847 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89848
89849         * lib/human.c (human_readable_inexact): Allow an input block
89850         size that is not a multiple of the output block size, and vice versa.
89851         Reported by Piergiorgio Sartor.
89852
89853 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89854
89855         * lib/getdate.y (get_date): Apply relative times after time
89856         zone indicator, not before.  Reported by Todd A. Jacobs.
89857
89858 2000-06-13  Jim Meyering  <meyering@lucent.com>
89859
89860         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
89861
89862         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
89863
89864 2000-06-12  Paul Eggert  <eggert@twinsun.com>
89865
89866         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
89867
89868 2000-06-12  Jim Meyering  <meyering@lucent.com>
89869
89870         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
89871         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
89872         optional argument.
89873         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
89874         the optional argument, `lib'.
89875
89876 2000-06-08  Jim Meyering  <meyering@lucent.com>
89877
89878         * m4/largefile.m4: Remove file (now that it's part of autoconf).
89879
89880 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89881
89882         Rewrite largefile configuration so that we don't need to run
89883         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
89884         AC_CANONICAL_HOST in configure.in -- jmm]
89885
89886         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
89887         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
89888         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
89889         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
89890         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
89891         All uses changed.
89892         Instead of inspecting the output of getconf, try to compile the
89893         test program without and with the macro definition.
89894         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
89895         for getconf.  Instead, check for the needed flags by compiling
89896         test programs.
89897
89898 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89899
89900         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
89901
89902 2000-06-04  Jim Meyering  <meyering@lucent.com>
89903
89904         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
89905         SunOS 4.1.4 for which gid_t is an unsigned type.
89906
89907 2000-06-03  Jim Meyering  <meyering@lucent.com>
89908
89909         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
89910         now that autoconf requires that.
89911
89912         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
89913         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
89914         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
89915
89916 2000-06-03  Jim Meyering  <meyering@lucent.com>
89917
89918         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
89919
89920 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89921
89922         * m4/glibc21.m4: New file.
89923         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
89924
89925 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89926
89927         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
89928         newer, don't install charset.alias.
89929         * lib/config.charset: Change the Linux/glibc rules so they become empty
89930         on glibc-2.1 or newer.
89931
89932 2000-06-02  Jim Meyering  <meyering@lucent.com>
89933
89934         * lib/mountlist.c: Back out last change.  Instead, do this...
89935         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
89936         me_dummy member using the same `ignore'-testing code.
89937         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
89938         fs_type strings.
89939         From Mark D. Roth.
89940
89941 2000-05-29  Jim Meyering  <meyering@lucent.com>
89942
89943         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
89944         mounts with the `ignore' attribute.  Based on a patch from
89945         Mark D. Roth.
89946
89947 2000-05-28  Jim Meyering  <meyering@lucent.com>
89948
89949         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
89950         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89951         * m4/stat.m4: Likewise.
89952         * m4/lstat.m4: Likewise.
89953         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
89954
89955         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
89956         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
89957
89958 2000-05-26  Jim Meyering  <meyering@lucent.com>
89959
89960         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
89961
89962 2000-05-24  Jim Meyering  <meyering@lucent.com>
89963
89964         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
89965         autoconf requires that.
89966         * m4/lib-check.m4: Likewise.
89967         * m4/jm-macros.m4: Likewise.
89968         * m4/strftime.m4: Likewise.
89969
89970         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
89971         AC_CHECK_DECLS, now that autoconf requires that.
89972
89973 2000-05-22  Jim Meyering  <meyering@lucent.com>
89974
89975         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89976         * m4/lstat.m4: Likewise.
89977
89978 2000-05-22  Jim Meyering  <meyering@lucent.com>
89979
89980         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
89981
89982 2000-05-20  Jim Meyering  <meyering@lucent.com>
89983
89984         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
89985         (jm_PREREQ): Use it.
89986
89987 2000-05-18  Jim Meyering  <meyering@lucent.com>
89988
89989         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
89990         back, too, since it may have been modified by allocate_entry.
89991         (hash_delete): Rewrite to use neither the assignment operator
89992         nor the comma operator in an if-expression.
89993
89994 2000-05-15  Paul Eggert  <eggert@twinsun.com>
89995
89996         * lib/closeout.c:
89997         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
89998         Remove; no longer needed.
89999         "quotearg.h": Add include.
90000         (file_name): Do not bother to explicitly initialize to NULL; it's less
90001         efficient on some hosts.
90002         (close_stdout_status): Remove test as to whether stdout was already
90003         closed; it breaks for the case "echo x | sort >&-".
90004         Quote file name colons.
90005         Do not assume that _("write error") lacks format strings.
90006
90007 2000-05-15  Jim Meyering  <meyering@lucent.com>
90008
90009         * lib/version-etc.c (version_etc_copyright): Update the copyright
90010         string used in all --version output.
90011
90012 2000-05-14  Jim Meyering  <meyering@lucent.com>
90013
90014         * lib/closeout.c (close_stdout_set_file_name): New function.
90015         (close_stdout_status): Use new file-scoped global.
90016         Return right away if fstat says the stdout file descriptor is invalid.
90017         * lib/closeout.h (close_stdout_set_file_name): Declare.
90018
90019 2000-05-10  Jim Meyering  <meyering@lucent.com>
90020
90021         * lib/closeout.c [default_exit_status]: New file-scoped variable.
90022         (close_stdout_set_status): New function.
90023         * lib/closeout.h (close_stdout_set_status): Declare.
90024
90025 2000-05-09  Jim Meyering  <meyering@lucent.com>
90026
90027         * m4/gettext.m4: Rename this...
90028         * m4/libintl.m4: ...to this.
90029
90030 2000-05-08  Jim Meyering  <meyering@lucent.com>
90031
90032         * lib/long-options.c: Don't include closeout.h.
90033         (parse_long_options): Don't call close_stdout for --version.
90034
90035 2000-05-06  Paul Eggert  <eggert@twinsun.com>
90036
90037         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
90038         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
90039         2.1.3 bug.  This avoids a clash when files like regex.c define
90040         _GNU_SOURCE.
90041
90042 2000-05-06  Jim Meyering  <meyering@lucent.com>
90043
90044         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
90045         (AC_REPLACE_FUNCS): Add strnlen.
90046
90047         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
90048         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
90049
90050         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
90051         AC_SEARCH_LIBS call for nanosleep.
90052         (LIB_NANOSLEEP): Set and AC_SUBST.
90053
90054 2000-05-06  Jim Meyering  <meyering@lucent.com>
90055
90056         * lib/strnlen.c: Undefine __strnlen and strnlen.
90057         [!weak_alias]: Define __strnlen to strnlen.
90058
90059         * lib/atexit.c: New file, from libiberty.
90060
90061 2000-05-06  Jim Meyering  <meyering@lucent.com>
90062
90063         * lib/closeout.c (close_stdout_status): Also check for errors on the
90064         stderr stream.
90065
90066 2000-05-05  Jim Meyering  <meyering@lucent.com>
90067
90068         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
90069         AC_SEARCH_LIBS call for clock_gettime.
90070         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
90071
90072         * m4/search-libs.m4: Update from autoconf.
90073
90074         su doesn't work on Solaris 2.6.
90075         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
90076         <shadow.h>.  Reported by Dragos Harabor.
90077
90078 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
90079
90080         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
90081         memcpy instead of xmalloc, xrealloc, path_concat.
90082         (locale_charset): Treat empty environment variables as absent.
90083         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
90084
90085 2000-05-04  Jim Meyering  <meyering@lucent.com>
90086
90087         * lib/getopt.c: Update from glibc.
90088         * lib/obstack.c: Likewise.
90089         * lib/obstack.h: Likewise.
90090         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
90091         file
90092
90093         * lib/regex.h: Likewise.
90094         * lib/strndup.c: Likewise.
90095         * lib/strnlen.c: New file, from glibc.
90096
90097 2000-05-03  Jim Meyering  <meyering@lucent.com>
90098
90099         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
90100
90101 2000-05-02  Paul Eggert  <eggert@twinsun.com>
90102
90103         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
90104         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
90105         compile-time test, rather than inspecting host and OS, to
90106         decide whether to define _LARGEFILE_SOURCE.
90107
90108 2000-05-01  Jim Meyering  <meyering@lucent.com>
90109
90110         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
90111
90112         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
90113         Based on a patch from Bruno Haible.
90114
90115 2000-05-01  Jim Meyering  <meyering@lucent.com>
90116
90117         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
90118
90119 2000-04-29  Jim Meyering  <meyering@lucent.com>
90120
90121         * lib/path-concat.c: Declare strdup only if it's not defined.
90122         * lib/canon-host.c: Likewise.
90123
90124 2000-04-28  Jim Meyering  <meyering@lucent.com>
90125
90126         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
90127         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
90128         is included first, then limits.h is included by locale.h by libintl.h.
90129         From John David Anglin.
90130
90131 2000-04-25  Jim Meyering  <meyering@lucent.com>
90132
90133         * lib/makepath.c (S_IRWXUGO): Define.
90134         (make_path): Always perform explicit chmod if MODE specifies any
90135         of the `special' permission bits.  Prompted by a bug report against
90136         install from Mate Wierdl and Joost van Baal.
90137
90138 2000-04-18  Jim Meyering  <meyering@lucent.com>
90139
90140         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
90141         (jm_PREREQ): Use it.
90142
90143 2000-04-18  Jim Meyering  <meyering@lucent.com>
90144
90145         * lib/README: New file.
90146
90147         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
90148         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
90149
90150 2000-04-17  Jim Meyering  <meyering@lucent.com>
90151
90152         Get it right :-)
90153         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
90154         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
90155         Suggestion from Akim Demaille.
90156
90157 2000-04-17  Jim Meyering  <meyering@lucent.com>
90158
90159         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
90160         the definition of it to rpl_strftime also defined-away the system's
90161         declaration.
90162
90163 2000-04-15  Jim Meyering  <meyering@lucent.com>
90164
90165         Use `C' to denote so-called `contiguous' files, the same way
90166         that tar does.
90167         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
90168         (ftypelet): Use S_ISCTG.
90169         From Michael Deutschmann.
90170
90171 2000-04-14  Jim Meyering  <meyering@lucent.com>
90172
90173         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
90174         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
90175         clobbered.
90176
90177 2000-04-14  Jim Meyering  <meyering@lucent.com>
90178
90179         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
90180
90181 2000-04-13  Jim Meyering  <meyering@lucent.com>
90182
90183         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
90184         AH_VERBATIM to insert required #ifndef into config.h.in.
90185         Suggestion from Akim Demaille.
90186
90187 2000-04-12  Jim Meyering  <meyering@lucent.com>
90188
90189         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
90190         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
90191         Christian Krackowizer.
90192
90193         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
90194         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
90195         (AC_SYS_LARGEFILE): Require.
90196         (AM_C_PROTOTYPES): Require.
90197
90198 2000-04-08  Jim Meyering  <meyering@lucent.com>
90199
90200         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
90201         names don't conflict.  Reported by Eli Zaretskii.
90202
90203 2000-04-07  Jim Meyering  <meyering@lucent.com>
90204
90205         * lib/putenv.c: Move inclusion of errno.h so it follows that of
90206         sys/types.h, to work around system header problems on AIX 3.2.5.
90207         From Bruno Haible.
90208
90209 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
90210
90211         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
90212         bug.  Deal with the different error behavior of Irix iconv.
90213
90214 2000-04-05  Paul Eggert  <eggert@twinsun.com>
90215
90216         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
90217         IRIX if the installer said otherwise.
90218
90219 2000-04-05  Jim Meyering  <meyering@lucent.com>
90220
90221         Portability tweaks required for ultrix4.3.
90222         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
90223         (jm_CHECK_DECLS): Add getutent to the list of functions.
90224         (_jm_DECL_HEADERS): Add utmpx.h.
90225         From John David Anglin.
90226
90227         * m4/strftime.m4: Back out the 2000-04-02 change.
90228         Instead of that change, simply undefine putenv in the test program.
90229
90230 2000-04-05  Jim Meyering  <meyering@lucent.com>
90231
90232         Portability tweaks required for ultrix4.3.
90233         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
90234         getutent.
90235         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
90236         * lib/canon-host.c: Declare strdup.
90237         * lib/path-concat.c: Likewise.
90238         From John David Anglin.
90239
90240 2000-04-04  Jim Meyering  <meyering@lucent.com>
90241
90242         Be more DOS 8.3-friendly.
90243         * lib/ref-add.sin: Renamed from ref-add.sed.in.
90244         * lib/ref-del.sin: Renamed from ref-del.sed.in.
90245         * lib/Makefile.am: Reflect renaming.
90246         Reported by Eli Zaretskii.
90247
90248         Use a temporary file name that won't clash with `charset.alias'
90249         in the DOS 8.3 name space.
90250         * lib/Makefile.am (charset_tmp): Define.
90251         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
90252         (uninstall-local): Likewise.
90253         Reported by Eli Zaretskii.
90254
90255 2000-04-03  Jim Meyering  <meyering@lucent.com>
90256
90257         * m4/gettext.m4: Fix typo in comment.
90258
90259         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
90260         textutils/configure.in).  Suggestion from Paul Eggert.
90261         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
90262
90263 2000-04-02  Paul Eggert  <eggert@twinsun.com>
90264
90265         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
90266         variable in the shell rather than using putenv, which isn't
90267         portable.  This avoids the configure-time inter-test dependency
90268         on the potentially-renamed putenv function.
90269
90270 2000-03-30  Paul Eggert  <eggert@twinsun.com>
90271
90272         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
90273         before checking struct stat.st_blksize, so that
90274         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
90275
90276 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90277
90278         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
90279         since strftime.c uses HAVE_STRFTIME to decide whether to use
90280         the underlying strftime.
90281
90282 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90283
90284         * lib/time/strftime.c (my_strftime): Make sure we call the system
90285         strftime, not ourselves, when invoking the underlying strftime.
90286
90287 2000-03-24  Jim Meyering  <meyering@lucent.com>
90288
90289         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
90290         (charset_alias): Define.
90291         (install-exec-local): Factor out common code.
90292         (uninstall-local): Split lines longer than 80.
90293         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
90294         (SUFFIXES): Define.
90295         (.sed.in.sed): New rule.  Don't redirect directly to $@.
90296         (CLEANFILES): Add ref-add.sed and ref-del.sed.
90297
90298 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
90299
90300         * lib/config.charset: Output a line containing "Packages using this
90301         file".
90302         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
90303         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
90304         ref-del.sed): New rules.
90305
90306 2000-03-17  Jim Meyering  <meyering@lucent.com>
90307
90308         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
90309         Otherwise, include <strings.h>
90310
90311 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
90312
90313         * lib/unicodeio.c (utf8_wctomb): New function.
90314         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
90315         format instead of in UCS-4 with platform dependent endianness.
90316
90317 2000-03-10  Jim Meyering  <meyering@lucent.com>
90318
90319         * m4/lib-check.m4: Look for getspnam in -lgen, too.
90320         From Marco Franzen.
90321
90322 2000-03-07  Paul Eggert  <eggert@twinsun.com>
90323
90324         * lib/savedir.c (savedir): Work even if directory size is
90325         negative; this can happen with some screwy NFS configurations.
90326
90327 2000-03-06  Jim Meyering  <meyering@lucent.com>
90328
90329         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
90330         if it's NULL (because we ran out of memory).  From Bruno Haible.
90331
90332 2000-03-05  Jim Meyering  <meyering@lucent.com>
90333
90334         * lib/localcharset.c ("path-concat.h"): Include.
90335         (get_charset_aliases): Use path_concat instead of ANSI string
90336         concatenation.
90337
90338         * lib/unicodeio.h (PARAMS): Define.
90339         Use it to guard prototype.
90340
90341 2000-03-04  Jim Meyering  <meyering@lucent.com>
90342
90343         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
90344         for lib/localcharset.c.
90345
90346 2000-03-04  Jim Meyering  <meyering@lucent.com>
90347
90348         * lib/Makefile.am (install-exec-local): Create $(libdir) before
90349         installing into it.
90350         (uninstall-local): Uncomment this rule so `make distcheck' works
90351         once again.
90352
90353         * lib/unicodeio.c (<errno.h>): Include it.
90354         (errno): Declare if not defined.
90355
90356         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
90357
90358         * lib/config.charset: New version, incorporating remarks from a linux
90359         i18n mailing list.  From Bruno Haible.
90360
90361 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
90362
90363         * m4/codeset.m4: New file.
90364         * m4/iconv.m4: New file.
90365         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
90366
90367 2000-03-03  Jim Meyering  <meyering@lucent.com>
90368
90369         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
90370
90371 2000-03-02  Jim Meyering  <meyering@lucent.com>
90372
90373         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
90374         the messages come out on separate lines.
90375
90376         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
90377         rather than jm_CHECK_DECLARATIONS.
90378         * m4/decl.m4: Remove now-unused file.
90379
90380         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
90381         geteuid.
90382
90383 2000-03-02  Jim Meyering  <meyering@lucent.com>
90384
90385         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
90386
90387 2000-03-01  Jim Meyering  <meyering@lucent.com>
90388
90389         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
90390         * lib/unicodeio.c: Likewise.
90391
90392 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
90393
90394         * lib/config.charset: New file.
90395         * lib/localcharset.c: New file.
90396         * lib/unicodeio.h, lib/unicodeio.c: New files.
90397         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
90398         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
90399         (noinst_HEADERS): Add unicodeio.h.
90400         (all-local, install-exec-local, charset.alias): New targets.
90401
90402 2000-02-28  Paul Eggert  <eggert@twinsun.com>
90403
90404         * lib/quotearg.c (ALERT_CHAR): New macro.
90405         (quotearg_buffer_restyled): Use it.
90406
90407 2000-02-27  Jim Meyering  <meyering@lucent.com>
90408
90409         * m4/check-decl.m4: Add getenv to the list.
90410
90411 2000-02-27  Jim Meyering  <meyering@lucent.com>
90412
90413         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
90414         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
90415
90416         * lib/backupfile.c: Guard inclusion of stdlib.h with
90417         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
90418         Declare malloc if needed.
90419
90420         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
90421         `#ifndef HAVE_DECL..'
90422         now that autoconf always defines the HAVE_DECL_ symbols.
90423         * lib/human.c: Likewise.
90424         * lib/same.c: Likewise.
90425         * lib/strtoumax.c: Likewise.
90426
90427         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
90428         declaration check was not run.
90429         * lib/hash.c: Likewise.
90430         * lib/human.c: Likewise.
90431         * lib/same.c: Likewise.
90432         * lib/strtoumax.c: Likewise.
90433
90434         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
90435         `.', then first look up the entire `.'-containing string as a login
90436         name.
90437
90438 2000-02-23  Jim Meyering  <meyering@lucent.com>
90439
90440         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
90441         in place of my hack.
90442
90443 2000-02-18  Paul Eggert  <eggert@twinsun.com>
90444
90445         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
90446         (textint): New typedef.
90447         (parser_control): Member year changed from int to textint.
90448         All uses changed.
90449         (YYSTYPE): Removed; replaced by %union with int and textint members.
90450         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
90451         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
90452         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
90453         (tSNUMBER, tUNUMBER): Now of type <textintval>.
90454         (date, number, to_year): Use width of number in digits, not its value,
90455         to determine whether it's a 2-digit year, or a 2-digit time.
90456         (yylex): Store number of digits of numeric tokens.
90457         Reported by John Kendall.
90458
90459         (parser_control): Changed from struct parser_control to typedef (for
90460         consistency).  All uses changed.
90461
90462         (tID): Removed; not used.
90463         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
90464
90465 2000-02-14  Paul Eggert  <eggert@twinsun.com>
90466
90467         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
90468         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
90469
90470 2000-02-12  Jim Meyering  <meyering@lucent.com>
90471
90472         * lib/userspec.c (ISDIGIT): Define it.
90473         (isdigit): Remove definition.
90474         (is_number): Use ISDIGIT, not isdigit.
90475         <libintl.h>: Include.
90476         (_ and N_): Define.
90477         (parse_user_spec): Mark translatable strings.
90478
90479 2000-02-10  Jim Meyering  <meyering@lucent.com>
90480
90481         With these changes, nanosleep.[ch] are finally enough like the other
90482         lib/* replacement files to compile on a few more losing systems.
90483
90484         * lib/nanosleep.h: Don't include config.h.
90485         Remove prototype from declaration of nanosleep.
90486         (PARAMS): Remove now-unneeded definition.
90487         * lib/nanosleep.c: #undef nanosleep.
90488         (rpl_nanosleep): Rename from nanosleep.
90489
90490 2000-02-10  Jim Meyering  <meyering@lucent.com>
90491
90492         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
90493         gnu_nanosleep to rpl_nanosleep.
90494
90495 2000-02-09  Jim Meyering  <meyering@lucent.com>
90496
90497         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
90498         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
90499
90500 2000-02-08  Akim Demaille  <akim@epita.fr>
90501
90502         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
90503         `[' and `]' and remove uses of `changequote'.
90504         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
90505         (AC_SYS_LARGEFILE): Likewise.
90506         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
90507         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
90508         of changequote.
90509         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
90510         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
90511         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
90512         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
90513
90514 2000-02-05  Jim Meyering  <meyering@lucent.com>
90515
90516         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
90517         Remove explicit use of AC_HEADER_TIME.  It is required by
90518         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
90519         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
90520         in autoconf whereby the expansion of the latter ended up preceding
90521         the expansion of its prerequisite, AC_HEADER_TIME.
90522         Reported by Volker Borchert.
90523
90524 2000-02-03  Jim Meyering  <meyering@lucent.com>
90525
90526         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
90527
90528 2000-02-03  Jim Meyering  <meyering@lucent.com>
90529
90530         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
90531         rather than with `#if HAVE_UTMPNAME'.
90532
90533 2000-02-02  Jim Meyering  <meyering@lucent.com>
90534
90535         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
90536         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
90537         Reported by Eli Zaretskii.
90538
90539 2000-02-01  Jim Meyering  <meyering@lucent.com>
90540
90541         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
90542
90543 2000-01-31  Jim Meyering  <meyering@lucent.com>
90544
90545         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
90546         functions.  Add the time.h and sys/time.h headers along with the
90547         AC_REQUIRE'ment of AC_HEADER_TIME.
90548
90549 2000-01-31  Jim Meyering  <meyering@lucent.com>
90550
90551         * lib/nanosleep.h (nanosleep): Guard declaration with
90552         `#if ! HAVE_DECL_NANOSLEEP'.
90553         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
90554         the declaration in that vendor's sys/timers.h.
90555         Reported by Christian Krackowizer.
90556
90557         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
90558         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
90559         (ISPRINT): Likewise.
90560         Reported by Tom Tromey.
90561
90562 2000-01-30  Jim Meyering  <meyering@lucent.com>
90563
90564         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
90565
90566         * m4/prereq.m4 (utmp_includes): Define.
90567         Check for ut_user and ut_name members in both struct utmpx
90568         and struct utmp.
90569
90570 2000-01-30  Jim Meyering  <meyering@lucent.com>
90571
90572         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
90573         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
90574         header files where only utmpx.ut_user is declared.
90575
90576         * lib/readutmp.h (UT_USER): Define.
90577
90578 2000-01-29  Jim Meyering  <meyering@lucent.com>
90579
90580         * m4/lib-check.m4: New file containing library-related checks from
90581         fileutils and sh-utils (textutils had none).
90582
90583 2000-01-28  Jim Meyering  <meyering@lucent.com>
90584
90585         * m4/perl.m4: Change format of warning message to look more like that
90586         from the missing script.  Suggestion from François Pinard.
90587
90588 2000-01-25  Jim Meyering  <meyering@lucent.com>
90589
90590         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
90591         well as time.h in the compile check.
90592         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
90593         Fix typo in cross-compiling case: s/yes/no/.
90594
90595 2000-01-23  Jim Meyering  <meyering@lucent.com>
90596
90597         * m4/jm-macros.m4: Move df-related tests here from
90598         fileutils/configure.in
90599
90600         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
90601         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
90602
90603         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
90604         s/space/ac_fsusage_space/.
90605         (jm_FILE_SYSTEM_USAGE): Take two parameters.
90606
90607         * m4/ftruncate.m4: New file (derived from part of
90608         fileutils/configure.in).
90609         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
90610         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
90611
90612         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
90613         AC_SUBST these here, rather than just in sh-util/configure.in, so
90614         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
90615         all the same.
90616         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
90617         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
90618         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
90619         (AC_SUBST(POW_LIBM)): Likewise.
90620         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
90621
90622 2000-01-23  Jim Meyering  <meyering@lucent.com>
90623
90624         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
90625         obstack.c.
90626
90627 2000-01-22  Jim Meyering  <meyering@lucent.com>
90628
90629         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
90630
90631         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
90632
90633         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
90634         configure.in
90635         (AC_CHECK_HEADERS): Likewise for sh-utils.
90636         (AC_CHECK_HEADERS): Likewise for textutils.
90637         Merge the three lists of headers.
90638
90639         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
90640         from fileutils' configure.in.
90641
90642         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
90643         code. Moved tests into their own function (_jm_DECL_HEADERS) in
90644         check-decl.m4.
90645
90646         * m4/check-decl.m4: Use #if rather than #ifdef.
90647         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
90648         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
90649         (_jm_DECL_HEADERS): Define new function.
90650         (jm_CHECK_DECLARATIONS): Require it.
90651
90652 2000-01-22  Jim Meyering  <meyering@lucent.com>
90653
90654         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
90655         [! HAVE_DECL_STRTOULL]: Declare strtoull.
90656         Required for some AIX systems.  Reported by Christian Krackowizer.
90657         [TESTING] (main): New function.
90658
90659         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
90660         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
90661         letters.
90662
90663         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
90664         iswprint.
90665
90666         * lib/strverscmp.c (ISDIGIT): Define.
90667         (strverscmp): Use ISDIGIT, not isdigit.
90668
90669 2000-01-19  Jim Meyering  <meyering@lucent.com>
90670
90671         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
90672         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
90673         defines `struct timespec' in <sys/time.h>
90674
90675         * m4/c-bs-a.m4: Remove uses of changequote altogether.
90676         Thanks to Akim for explaining.
90677
90678 2000-01-17  Paul Eggert  <eggert@twinsun.com>
90679
90680         * lib/nanosleep.c (nanosleep):
90681         Don't use SA_INTERRUPT to decide whether to call sigaction, as
90682         POSIX.1 doesn't require SA_INTERRUPT and some systems
90683         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
90684         it's been part of POSIX.1 since day 1 (in 1988).
90685
90686 2000-01-17  Jim Meyering  <meyering@lucent.com>
90687
90688         * lib/interlock: Remove unused file.  Reported by François Pinard.
90689
90690 2000-01-16  Paul Eggert  <eggert@twinsun.com>
90691
90692         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
90693         alert, backslash, formfeed, and vertical tab unnecessarily in
90694         shell quoting style.
90695
90696 2000-01-16  Jim Meyering  <meyering@lucent.com>
90697
90698         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
90699         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
90700         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
90701         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
90702
90703 2000-01-16  Jim Meyering  <meyering@lucent.com>
90704
90705         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
90706         because the latter didn't work.
90707
90708 2000-01-15  Jim Meyering  <meyering@lucent.com>
90709
90710         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
90711         (AC_REPLACE_FUNCS): Add memcpy and memset.
90712         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
90713         Add strpbrk.
90714         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
90715
90716 2000-01-12  Jim Meyering  <meyering@lucent.com>
90717
90718         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
90719         (jm_PREREQ): Use it.
90720         (jm_PREREQ_READUTMP): New macro.
90721         (jm_PREREQ): Use it.
90722
90723 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90724
90725         Quote multibyte characters correctly.
90726         * m4/c-bs-a.m4: New file.
90727         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
90728         (jm_PREREQ): Use it.
90729
90730 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90731
90732         * m4/uintmax_t.m4: Port to autoconf 2.13.
90733
90734 2000-01-08  Jim Meyering  <meyering@ascend.com>
90735
90736         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
90737         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
90738
90739 2000-01-04  Jim Meyering  <meyering@ascend.com>
90740
90741         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
90742         jm_STRUCT_DIRENT_D_TYPE.
90743         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
90744         jm_STRUCT_DIRENT_D_INO.
90745         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
90746         jm_STRUCT_UTIMBUF.
90747         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
90748         renamings.
90749         * m4/utime.m4: Likewise.
90750
90751         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
90752         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
90753
90754 2000-01-03  Paul Eggert  <eggert@twinsun.com>
90755
90756         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
90757         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
90758
90759 2000-01-02  Jim Meyering  <meyering@ascend.com>
90760
90761         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
90762         remember if this is necessary.
90763
90764 1999-12-26  Jim Meyering  <meyering@ascend.com>
90765
90766         * m4/jm-macros.m4: Use it here.
90767         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
90768
90769 1999-12-23  Jim Meyering  <meyering@ascend.com>
90770
90771         * m4/jm-macros.m4: Check for clock_gettime (moved from
90772         fileutils/configure.in)
90773         Check for gettimeofday.
90774
90775 1999-12-20  Jim Meyering  <meyering@ascend.com>
90776
90777         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
90778         autoconf-2.14a-1999-12-20.
90779
90780 1999-12-19  Jim Meyering  <meyering@ascend.com>
90781
90782         * m4/lstat-slash.m4: New file.
90783         * m4/jm-macros.m4: Use the new macro:
90784         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90785
90786 1999-12-07  Jim Meyering  <meyering@ascend.com>
90787
90788         * m4/perl.m4: Require that File::Compare be available, too.
90789         Too many systems seem to lack it.
90790
90791         * m4/strftime.m4: Add checks for most of the cpp macros tested in
90792         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
90793
90794 1999-11-18  Paul Eggert  <eggert@twinsun.com>
90795
90796         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
90797         problem with the QNX 4.25 shell, which doesn't propagate exit
90798         status of failed commands inside shell assignments.
90799
90800 1999-11-17  Jim Meyering  <meyering@ascend.com>
90801
90802         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
90803
90804 1999-11-07  Jim Meyering  <meyering@ascend.com>
90805
90806         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
90807
90808 1999-11-06  Jim Meyering  <meyering@ascend.com>
90809
90810         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
90811         * m4/jm-macros.m4 (jm_MACROS): Use it here.
90812
90813 1999-11-05  Jim Meyering  <meyering@ascend.com>
90814
90815         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
90816         configure.in of textutils, fileutils, and sh-utils into this one
90817         (shared between those packages) file.
90818         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
90819         AC_STRUCT_ST_BLKSIZE.
90820
90821 1999-11-03  Jim Meyering  <meyering@ascend.com>
90822
90823         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
90824         of AC_CHECK_TYPE checks includes unistd.h.
90825         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
90826         Suggestion from Akim Demaille.
90827
90828 1999-10-30  Jim Meyering  <meyering@ascend.com>
90829
90830         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
90831         m4-quoted string.
90832         * m4/ls-mntd-fs.m4: Likewise.
90833         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
90834         * m4/jm-winsz1.m4: Likewise.
90835
90836         * m4/const.m4: Remove file, since the fix made it into the experimental
90837         version of autoconf.
90838         * m4/mktime.m4: Likewise.
90839
90840         * m4/check-type.m4: Remove file, now that the latest version of
90841         AC_CHECK_TYPE takes a third arg to specify additional #includes.
90842
90843         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
90844         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
90845         AC_CHECK_TYPE.
90846
90847 1999-10-04  Jim Meyering  <meyering@ascend.com>
90848
90849         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
90850
90851 1999-09-22  Paul Eggert  <eggert@twinsun.com>
90852
90853         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
90854         2.95.1 bug with HP-UX 10.20.
90855
90856 1999-09-17  Jim Meyering  <meyering@ascend.com>
90857
90858         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
90859         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
90860         due to missing strdup (against sh-utils-2.0).
90861
90862 1999-08-29  Jim Meyering  <meyering@ascend.com>
90863
90864         * m4/jm-macros.m4: Require jm_BISON.
90865         * m4/bison.m4: New file.
90866
90867 1999-08-17  Paul Eggert  <eggert@twinsun.com>
90868
90869         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
90870         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
90871
90872 1999-08-05  Jim Meyering  <meyering@ascend.com>
90873
90874         * m4/getline.m4: Rename test file from conftestdata to conftest.data
90875         to avoid conflicts with `conftest' on 8+3 filesystems.
90876         Suggestion from Eli Zaretskii.
90877
90878 1999-08-04  Jim Meyering  <meyering@ascend.com>
90879
90880         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
90881         fileutils and sh-utils (textutils's getline test was inadequate).
90882         (AM_FUNC_GETLINE): Run this test.
90883         (AC_CHECK_FUNCS): Check for getdelim.
90884         Reported by Bob Proulx.
90885
90886 1999-08-02  Jim Meyering  <meyering@ascend.com>
90887
90888         * m4/jm-macros.m4: Add a comment.
90889
90890 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90891
90892         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
90893         <inttypes.h> defines strtoumax as a macro (and not as a
90894         function).
90895
90896 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90897
90898         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
90899         that we can shift, multiply and divide unsigned long long
90900         values; Ultrix cc can't do it.
90901
90902 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90903
90904         * m4/mktime.m4: New file, which is a preview of what should appear
90905         in the next public autoconf release.
90906
90907 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90908
90909         * m4/lfs.m4: Remove this file.
90910         * m4/largefile.m4: New file.  It contains the old contents of
90911         lfs.m4, except that all names with prefix AC_LFS have been
90912         changed to use the prefix AC_SYS_LARGEFILE instead, to be
90913         compatible with future autoconf versions.  Also, some minor m4
90914         quoting problems have been fixed.
90915
90916 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90917
90918         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
90919         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
90920         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
90921         and simplify the shell code.
90922
90923 1999-08-01  Jim Meyering  <meyering@ascend.com>
90924
90925         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
90926         m4.
90927
90928 1999-07-20  Jim Meyering  <meyering@ascend.com>
90929
90930         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
90931
90932 1999-07-15  Jim Meyering  <meyering@ascend.com>
90933
90934         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
90935
90936 1999-05-22  Jim Meyering  <meyering@ascend.com>
90937
90938         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
90939
90940 1999-05-20  Jim Meyering  <meyering@ascend.com>
90941
90942         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
90943         Add a colon after each `then' in case $4 is empty.
90944
90945 1999-05-16  Jim Meyering  <meyering@ascend.com>
90946
90947         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
90948
90949 1999-05-10  Jim Meyering  <meyering@ascend.com>
90950
90951         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
90952
90953         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
90954         AC_FUNC_MKTIME.
90955
90956 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
90957
90958         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
90959
90960 1999-05-04  Paul Eggert  <eggert@twinsun.com>
90961
90962         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
90963         not CPPFLAGS, so that linking works correctly in IRIX.
90964
90965 1999-04-30  Paul Eggert  <eggert@twinsun.com>
90966
90967         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
90968
90969 1999-04-20  Paul Eggert  <eggert@twinsun.com>
90970
90971         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
90972         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
90973         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
90974         jm_AC_TYPE_UNSIGNED_LONG_LONG.
90975         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
90976
90977         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
90978
90979 1999-04-20  Jim Meyering  <meyering@ascend.com>
90980
90981         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
90982         AC_REPLACE xstroull if necessary.  From Paul Eggert.
90983         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
90984
90985 1999-04-18  Jim Meyering  <meyering@ascend.com>
90986
90987         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
90988         * m4/jm-macros.m4: Use it.
90989
90990 1999-04-06  Jim Meyering  <meyering@ascend.com>
90991
90992         * m4/strftime.m4: Remove test for %f.
90993
90994 1999-03-29  Jim Meyering  <meyering@ascend.com>
90995
90996         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
90997         superset of the AC_TYPE_* checks in the textutils, fileutils,
90998         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
90999         AC_TYPE_PID_T.
91000
91001 1999-03-28  Jim Meyering  <meyering@ascend.com>
91002
91003         * m4/jm-macros.m4: Define GNU_PACKAGE here.
91004         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
91005         replaced e.g., in the *.sh files of the sh-utils.
91006
91007 1999-03-20  Jim Meyering  <meyering@ascend.com>
91008
91009         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
91010         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
91011         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
91012
91013 1999-03-19  Jim Meyering  <meyering@ascend.com>
91014
91015         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
91016
91017 1999-03-12  Jim Meyering  <meyering@ascend.com>
91018
91019         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
91020
91021 1999-03-07  Jim Meyering  <meyering@ascend.com>
91022
91023         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
91024         declared.
91025
91026 1999-02-17  Jim Meyering  <meyering@ascend.com>
91027
91028         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
91029         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
91030
91031 1999-02-07  Jim Meyering  <meyering@ascend.com>
91032
91033         * m4/group-member.m4: New file -- extracted from sh-utils'
91034         configure.in.
91035
91036         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
91037         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
91038
91039 1999-02-06  Jim Meyering  <meyering@ascend.com>
91040
91041         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
91042         * m4/fnmatch.m4: Likewise.
91043         * m4/getgroups.m4: Likewise.
91044         * m4/lstat.m4: Likewise.
91045         * m4/malloc.m4: Likewise.
91046         * m4/putenv.m4: Likewise.
91047         * m4/realloc.m4: Likewise.
91048         * m4/regex.m4: Likewise.
91049         * m4/stat.m4: Likewise.
91050         * m4/strftime.m4: Likewise.
91051         Suggestion from Alain Magloire.
91052
91053         * m4/chown.m4: Use `.$ac_objext', not `.o'.
91054         * m4/fnmatch.m4: Likewise.
91055         * m4/getgroups.m4: Likewise.
91056         * m4/getline.m4: Likewise.
91057         * m4/lstat.m4: Likewise.
91058         * m4/malloc.m4: Likewise.
91059         * m4/memcmp.m4: Likewise.
91060         * m4/putenv.m4: Likewise.
91061         * m4/realloc.m4: Likewise.
91062         * m4/regex.m4: Likewise.
91063         * m4/stat.m4: Likewise.
91064         * m4/strftime.m4: Likewise.
91065         Suggestion from Alain Magloire.
91066
91067         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
91068         an argument.
91069
91070         * m4/regex.m4: Add a run-time Test for proper operation of
91071         re_compile_pattern.
91072
91073 1999-01-31  Jim Meyering  <meyering@ascend.com>
91074
91075         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
91076
91077 1999-01-30  Jim Meyering  <meyering@ascend.com>
91078
91079         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
91080
91081         * m4/jm-mktime.m4: Make this a wrapper around the official
91082         AM_FUNC_MKTIME rather than my private copy, now that the official one
91083         is up to date.
91084         * m4/mktime.m4: Remove file.
91085
91086         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
91087         * m4/uptime.m4: Likewise.
91088         * m4/uintmax_t.m4: Likewise.
91089
91090 1999-01-28  Jim Meyering  <meyering@ascend.com>
91091
91092         * m4/jm-macros.m4: Use jm_AFS.
91093         * m4/afs.m4: New file (from fileutils' configure.in).
91094
91095         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
91096         * m4/chown.m4: Likewise.
91097         * m4/d-ino.m4: Likewise.
91098         * m4/d-type.m4: Likewise.
91099         * m4/fnmatch.m4: Likewise.
91100         * m4/getgroups.m4: Likewise.
91101         * m4/gettext.m4: Likewise.
91102         * m4/jm-mktime.m4: Likewise.
91103         * m4/jm-winsz2.m4: Likewise.
91104         * m4/lcmessage.m4: Likewise.
91105         * m4/ls-mntd-fs.m4: Likewise.
91106         * m4/malloc.m4: Likewise.
91107         * m4/memcmp.m4: Likewise.
91108         * m4/putenv.m4: Likewise.
91109         * m4/realloc.m4: Likewise.
91110         * m4/st_mtim.m4: Likewise.
91111         * m4/strftime.m4: Likewise.
91112
91113 1999-01-16  Jim Meyering  <meyering@ascend.com>
91114
91115         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
91116         (ARGMATCH_DIE_DECL): Define.
91117
91118 1999-01-12  Jim Meyering  <meyering@ascend.com>
91119
91120         * m4/Makefile.am.in: Rewrite to avoid using fmt.
91121         Reported by Lars Hecking.
91122
91123 1999-01-10  Jim Meyering  <meyering@ascend.com>
91124
91125         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
91126         gross kludge.
91127         * m4/inttypes_h.m4: Likewise.
91128         * m4/lstat.m4: Likewise.
91129         * m4/malloc.m4: Likewise.
91130         * m4/readdir.m4: Likewise.
91131         * m4/realloc.m4: Likewise.
91132         * m4/st_dm_mode.m4: Likewise.
91133         * m4/stat.m4: Likewise.
91134         * m4/utimbuf.m4: Likewise.
91135         * m4/utimes.m4: Likewise.
91136
91137         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
91138         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
91139         comments in config.h.in are meaningful.
91140
91141         * m4/jm-macros.m4: Require autoconf-2.13 here.
91142
91143         * m4/regex.m4: By default, don't use the included regex.c on systems
91144         with glibc 2.  Suggestion from Uli Drepper.
91145
91146 1999-01-02  Jim Meyering  <meyering@ascend.com>
91147
91148         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
91149
91150 1998-12-18  Jim Meyering  <meyering@ascend.com>
91151
91152         * m4/Makefile.am.in (Makefile.am): Simplify rule.
91153         Based on a suggestion from Lars Hecking.
91154
91155 1998-11-16  Paul Eggert  <eggert@twinsun.com>
91156
91157         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
91158
91159 1998-11-16  Jim Meyering  <meyering@ascend.com>
91160
91161         * m4/lfs.m4: Double-quote the `uname...` expression.
91162
91163 1998-11-14  Jim Meyering  <meyering@ascend.com>
91164
91165         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
91166         * m4/stat.m4: Likewise.
91167
91168 1998-11-03  Jim Meyering  <meyering@ascend.com>
91169
91170         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
91171         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
91172
91173 1998-10-18  Jim Meyering  <meyering@ascend.com>
91174
91175         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
91176
91177 1998-10-17  Jim Meyering  <meyering@ascend.com>
91178
91179         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
91180         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
91181         calls for those previously hard-coded headers.  Instead, take a new
91182         parameter.
91183         (jm_CHECK_DECLARATIONS): Reflect interface change.
91184         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
91185         (jm_CHECK_DECL_LOCALTIME_R): New macro.
91186
91187         * m4/mktime.m4: Test for spring-forward gap before long-running test.
91188
91189 1998-10-14  Jim Meyering  <meyering@ascend.com>
91190
91191         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
91192         instead of "TZ=America/Vancouver".  From Paul Eggert.
91193
91194 1998-10-11  Jim Meyering  <meyering@ascend.com>
91195
91196         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
91197         This adds a test for a recently added compatibility fix for mktime.c.
91198         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
91199
91200 1998-09-27  Jim Meyering  <meyering@ascend.com>
91201
91202         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
91203
91204         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
91205         ../configure.in, including a change from Gordon Matzigkeit to allow
91206         cross-compiling for the Hurd.
91207
91208         * m4/glibc.m4: New file/macro to test for the GNU C Library
91209         versions 1 and 2.  From Gordon Matzigkeit.
91210         Indent.
91211
91212 1998-09-21  Jim Meyering  <meyering@ascend.com>
91213
91214         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
91215
91216 1998-08-18  Paul Eggert  <eggert@twinsun.com>
91217
91218         Port nanosecond-resolution times to UnixWare 2.1.2 and
91219         pedantic Solaris 2.6.
91220
91221         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
91222         AC_STRUCT_ST_MTIM.
91223         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
91224         Generate name of ns member, instead of just 1 or undef.
91225         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
91226
91227 1998-08-15  Jim Meyering  <meyering@ascend.com>
91228
91229         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
91230         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
91231         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
91232         instead of jm_TYPE_SSIZE_T.
91233
91234 1998-08-12  Jim Meyering  <meyering@ascend.com>
91235
91236         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
91237
91238 1998-08-02  Jim Meyering  <meyering@ascend.com>
91239
91240         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
91241         in acconfig.h manually.
91242
91243 1998-07-31  Paul Eggert  <eggert@twinsun.com>
91244
91245         * m4/st_mtim.m4: New file.
91246
91247 1998-07-28  Jim Meyering  <meyering@ascend.com>
91248
91249         * m4/utimes.m4: Undef stat.
91250
91251 1998-07-25  Jim Meyering  <meyering@ascend.com>
91252
91253         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
91254         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
91255
91256 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
91257
91258         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
91259         uid and gid actually remain unchanged.
91260
91261 1998-07-07  Jim Meyering  <meyering@ascend.com>
91262
91263         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
91264
91265 1998-07-04  Jim Meyering  <meyering@ascend.com>
91266
91267         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
91268         to prove that this macro can be used in packages without regex.c.
91269
91270 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
91271
91272         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
91273         is to be used.
91274
91275 1998-07-03  Jim Meyering  <meyering@ascend.com>
91276
91277         * m4/gettext.m4: Add -lintl if it's found to be necessary.
91278
91279         * m4/gettext.m4: New file -- from gettext-0.10.35.
91280         * m4/lcmessage.m4: Likewise.
91281         * m4/progtest.m4: Likewise.
91282
91283         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
91284         * m4/jm-macros.m4: Require the new macro.
91285
91286 1998-06-29  Jim Meyering  <meyering@ascend.com>
91287
91288         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
91289         for the definition of NGROUPS (used in a system header included
91290         by sys/mount.h).
91291
91292 1998-06-28  Jim Meyering  <meyering@ascend.com>
91293
91294         * m4/ls-mntd-fs.m4: New file.
91295         * m4/fstypename.m4: New file.
91296
91297         * m4/jm-macros.m4: Require the new macro.
91298         * m4/jm-glibc-io.m4: New file.
91299
91300 1998-05-19  Jim Meyering  <meyering@ascend.com>
91301
91302         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
91303         * m4/lchown.m4: New file.
91304
91305         * m4/Makefile.am.in: New file.
91306         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
91307
91308 1998-05-14  Jim Meyering  <meyering@ascend.com>
91309
91310         * m4/Makefile.am (EXTRA_DIST): Add them.
91311         * m4/jm-macros.m4: New file.
91312         * m4/utimbuf.m4: New file.
91313
91314 1998-05-12  Jim Meyering  <meyering@ascend.com>
91315
91316         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
91317
91318 1998-05-11  Jim Meyering  <meyering@ascend.com>
91319
91320         * m4/isc-posix.m4: New file.
91321
91322 1998-05-10  Jim Meyering  <meyering@ascend.com>
91323
91324         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
91325
91326 1998-05-09  Jim Meyering  <meyering@ascend.com>
91327
91328         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
91329         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
91330         with automake.
91331
91332         * m4/ssize_t.m4: New file.
91333         * m4/mktime.m4: Remove file -- the new automake has this now.
91334
91335 1998-04-26  Jim Meyering  <meyering@ascend.com>
91336
91337         * m4/assert.m4: New file.
91338         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
91339
91340 1998-04-05  Jim Meyering  <meyering@ascend.com>
91341
91342         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
91343         (jm_PREREQ): Use it here.
91344
91345 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
91346
91347         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
91348         in acconfig.h.
91349
91350 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
91351
91352         * m4/prereq.m4: New file.
91353         * m4/error.m4: New file.
91354         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
91355
91356 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
91357
91358         * m4/getline.m4: Don't set am_cv_func_working_getline before the
91359         cache-check for the same variable -- that defeated the purpose of
91360         the test; the test program was never run.  This was a problem only
91361         on systems with losing getline functions -- HP-UX 10.20 is one.
91362         Reported by Bjorn Helgaas.
91363
91364 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
91365
91366         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
91367
91368 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
91369
91370         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
91371
91372         * m4/const.m4: New file.  Use an initializer in this declaration
91373         typedef int charset[2]; const charset x;
91374         Reported by Bob Glickstein.
91375
91376 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
91377
91378         * m4/chown.m4: Fix reversed types on -1 args to chown.
91379         From Kaveh Ghazi.
91380
91381 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
91382
91383         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
91384         Add lseek and memchr.
91385
91386         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
91387         T.E.Dickey <dickey@clark.net> said that some older preprocessors
91388         have a 20-character limit on names.
91389
91390 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
91391
91392         * m4/inttypes_h.m4: New file.
91393         * m4/uintmax_t.m4: New file.
91394         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
91395
91396
91397         -----
91398
91399         Local Variables:
91400         coding: utf-8
91401         End:
91402
91403         Copyright (C) 1997-2012 Free Software Foundation, Inc.
91404
91405         Copying and distribution of this file, with or without
91406         modification, are permitted provided the copyright notice
91407         and this notice are preserved.